1 2014-02-17 Alan Modra <amodra@gmail.com>
3 * emultemps/ppc64elf.em (params): New static struct replacing
4 various other static vars. Adjust code throughout file.
6 2014-02-17 Alan Modra <amodra@gmail.com>
8 * emultempl/ppc32elf.em (ppc_after_open_output): Really enable
9 ppc476 workaround for ld -r.
11 2014-02-12 Alan Modra <amodra@gmail.com>
13 * emultempl/ppc32elf.em (pagesize): New static var.
14 (ppc_after_open_output): Set params.pagesize_p2 from pagesize.
15 (PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
17 2014-02-11 Andrew Pinski <apinski@cavium.com>
19 * emulparams/aarch64linux32.sh (LIBPATH_SUFFIX): Change to ilp32.
20 (ELF_INTERPRETER_NAME): Define.
21 * emulparams/aarch64linux32b.sh (ELF_INTERPRETER_NAME): Define.
23 2014-02-10 Alan Modra <amodra@gmail.com>
25 * po/ld.pot: Regenerate.
27 2014-02-03 Alan Modra <amodra@gmail.com>
29 * emultempl/ppc32elf.em (no_tls_get_addr_opt, emit_stub_syms)
30 plt_style): Delete. Adjust all refs to instead use..
31 (params): ..this. New variable.
32 (ppc_after_open_output): New function. Tweak params and pass to
34 (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
35 (ppc_before_allocation): Adjust ppc_elf_tls_setup call. Enable
36 relaxation for ppc476 workaround.
37 (PARSE_AND_LIST_*): Add --{no-,}ppc476-workaround support.
38 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
40 2014-02-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
42 * ld/ld.texinfo: Change ALIGN_WITH_INPUT documentation.
43 * ld/ldlang.c (lang_size_sections_1): Add dotdelta
44 variable which reflects the VMA change due to alignment
45 requirements. Use dotdelta do change the LMA if
46 ALIGN_WITH_INPUT is requested.
48 2014-02-01 Hans-Peter Nilsson <hp@bitrange.com>
50 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
51 call to bfd_set_section_vma exposed by recent bfd_set_section_vma
54 2014-01-30 Sandra Loosemore <sandra@codesourcery.com>
56 * Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
57 * Makefile.in: Regenerated.
58 * emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
59 * emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
60 * emultempl/nios2elf.em: New file.
61 * gen-doc.texi (NIOSII): Set.
62 * ld.texinfo (NIOSII): Set.
64 2014-01-28 Nick Clifton <nickc@redhat.com>
66 * Makefile.am: Remove obsolete MSP430 emulations.
67 * configure.tgt: Likewise.
68 * emulparams/msp430all.sh: Likewise.
69 * Makefile.in: Regenerate.
71 2014-01-24 H.J. Lu <hongjiu.lu@intel.com>
74 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Improve
75 orphaned TLS section handling.
77 2014-01-24 Alan Modra <amodra@gmail.com>
79 * ldlang.c (lang_output_section_find_by_flags): Be careful to
80 test look->bfd_section->flags if available rather than
81 look->flags. Separate SEC_THREAD_LOCAL handling from
82 SEC_READONLY loop, and rewrite.
84 2014-01-22 Alan Modra <amodra@gmail.com>
86 * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
87 (lang_init): Initialise them.
88 (lang_print_asneeded): New function.
89 (lang_process): Call lang_print_asneeded.
90 * ldlang.h (struct asneeded_minfo): New.
91 (asneeded_list_tail): Declare.
92 * ldmain.c (add_archive_element): Improve archive map heading.
93 * ldmisc.c (minfo): Stash --as-needed info.
95 2014-01-22 Alan Modra <amodra@gmail.com>
97 * ld.h (struct map_symbol_def): Move to..
99 * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
101 2014-01-22 Alan Modra <amodra@gmail.com>
103 * ld.texinfo (Output Section Discarding): Mention assigning to dot
104 as a way of keeping otherwise empty sections.
105 * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
106 is_dot_plus_0, is_align_conditional): New predicates.
107 (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
108 output section, except for some special cases.
109 * scripttempl/elfmicroblaze.sc: Use canonical form to align at
110 end of .heap and .stack.
112 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
114 * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
116 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
118 * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
120 2014-01-20 Alan Modra <amodra@gmail.com>
122 * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
123 by_script. Make iteration a single bit field.
124 (lang_track_definedness, lang_symbol_definition_iteration): Delete.
125 (lang_symbol_defined): Declare.
126 * ldlang.c (lang_statement_iteration): Expand comment a little.
127 (lang_init <lang_definedness_table>): Make it bigger.
128 (lang_track_definedness, lang_symbol_definition): Delete.
129 (lang_definedness_newfunc): Update.
130 (lang_symbol_defined): New function.
131 (lang_update_definedness): Create entries here. Do track whether
132 script definition of symbol is valid, even when also defined in
134 * ldexp.c (fold_name <DEFINED>): Update.
135 (fold_name <NAME>): Allow self-assignment for absolute symbols
136 defined in a linker script.
138 2014-01-20 Guy Martin <gmsoft@tuxicoman.be>
139 Alan Modra <amodra@gmail.com>
141 * ldlang.h (lang_output_section_get): Define.
142 * ldlang.c (lang_output_section_get): Likewise.
143 (init_os): Set the output_section userdata to the output
145 * emultempl/hppaelf.em: Use lang_output_section_get instead of
146 lang_output_section_find where applicable.
147 * emultempl/aarch64elf.em: Likewise.
148 * emultempl/aix.em: Likewise.
149 * emultempl/armelf.em: Likewise.
150 * emultempl/m68hc1xelf.em: Likewise.
151 * emultempl/metagelf.em: Likewise.
152 * emultempl/mipself.em: Likewise.
153 * emultempl/ppc64elf.em: Likewise.
154 * emultempl/spuelf.em: Likewise.
156 2014-01-17 Alan Modra <amodra@gmail.com>
158 * genscripts.sh (COMPILE_IN): Don't set if already set.
159 * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
161 * emulparams/nds32elf16m.sh: Likewise.
162 * emulparams/nds32elf_linux.sh: Likewise.
163 * emultempl/aix.em: Test COMPILE_IN value is "yes".
164 * emultempl/armcoff.em: Likewise.
165 * emultempl/elf32.em: Likewise.
166 * emultempl/generic.em: Likewise.
167 * emultempl/gld960.em: Likewise.
168 * emultempl/gld960c.em: Likewise.
169 * emultempl/linux.em: Likewise.
170 * emultempl/lnk960.em: Likewise.
171 * emultempl/m68kcoff.em: Likewise.
172 * emultempl/sunos.em: Likewise.
173 * emultempl/ticoff.em: Likewise.
175 2014-01-16 H.J. Lu <hongjiu.lu@intel.com>
178 * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
180 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
181 for elf32_x86_64 emulation.
182 * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
183 for elf_i386 emulation.
185 2014-01-16 Alan Modra <amodra@gmail.com>
187 * ld.h (fat_section_userdata_type, get_userdata): Move to..
188 * ldlang.h (input_section_userdata_type, get_userdata): ..here.
189 * ldlang.c (init_map_userdata): Delete. Fold into..
190 (sort_def_symbol): ..here. Don't attach input section userdata
191 to output sections or global bfd sections.
192 (lang_map): Don't pre-allocate input section userdata.
193 (init_os): Don't allocate userdata for output sections.
194 (print_all_symbols): Update.
196 2014-01-15 H.J. Lu <hongjiu.lu@intel.com>
198 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
199 Silence uninitialized warning on ehdr_start_save with older
202 2014-01-15 Alan Modra <amodra@gmail.com>
204 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
205 __ehdr_start before size_dynamic_sections and restore afterwards.
207 2014-01-10 Alan Modra <amodra@gmail.com>
212 * ldlang.c (lang_size_sections): Remove unneeded RELRO base
213 adjust. Tidy comments.
214 * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
216 2014-01-10 Hans-Peter Nilsson <hp@axis.com>
218 * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
220 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
225 * ldlang.c (lang_size_sections): Properly align RELRO base.
227 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
229 * ldver.c (ldversion): Update copyright year to 2014.
231 For older changes see ChangeLog-2013
233 Copyright (C) 2014 Free Software Foundation, Inc.
235 Copying and distribution of this file, with or without modification,
236 are permitted in any medium without royalty provided the copyright
237 notice and this notice are preserved.
243 version-control: never