Commit | Line | Data |
---|---|---|
2ee0aedf TG |
1 | 2010-11-05 Tristan Gingold <gingold@adacore.com> |
2 | ||
3 | * po/ld.pot: Regenerate | |
4 | * po/POTFILES.in: Regenerate | |
5 | ||
44f45767 TG |
6 | 2010-11-05 Tristan Gingold <gingold@adacore.com> |
7 | ||
8 | * NEWS: Add marker for 2.21. | |
9 | ||
d44ad554 DK |
10 | 2010-11-05 Dave Korn <dave.korn.cygwin@gmail.com> |
11 | ||
12 | * plugin.h (plugin_active_plugins_p): New prototype. | |
13 | (is_ir_dummy_bfd): Delete prototype. | |
14 | * plugin.c: Fix formatting issues. | |
15 | (is_ir_dummy_bfd): Make static. | |
16 | (plugin_active_plugins_p): New function. | |
17 | * ldfile.c (ldfile_try_open_bfd): Use it to save work if no plugins | |
18 | are loaded. Always close file descriptor after claim handler returns. | |
19 | * ldmain.c (add_archive_element): Likewise. | |
20 | ||
f4eaaf7f AM |
21 | 2010-11-05 Alan Modra <amodra@gmail.com> |
22 | ||
23 | * ldlang.c (lang_add_section): Distinguish ELF treatment of NOLOAD. | |
24 | (map_input_to_output_sections): Likewise. | |
25 | (lang_size_sections_1): Likewise. | |
26 | (IGNORE_SECTION): Don't test SEC_NEVER_LOAD. | |
27 | (lang_check_section_addresses): Likewise. | |
28 | ||
802d4822 KT |
29 | 2010-11-04 Kai Tietz <kai.tietz@onevision.com> |
30 | ||
31 | * scripttempl/pe.sc (.debug_types): New. | |
32 | * scripttempl/pep.sc: Likewise. | |
33 | ||
129b5d55 AM |
34 | 2010-11-04 Alan Modra <amodra@gmail.com> |
35 | ||
36 | * plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd. | |
37 | ||
e597fa08 NC |
38 | 2010-11-03 Nick Clifton <nickc@redhat.com> |
39 | ||
40 | PR ld/12001 | |
41 | * ldlang.c (ldlang_def_chain_list): New variable. Contains a list | |
42 | of symbols defined via the --defsym command line option and | |
43 | currently waiting assignment. | |
44 | (insert_defined): Add a defined symbol to the symbol table. | |
45 | (ldlang_add_def): Add a entry to the ldlang_def_chain_list. | |
46 | (lang_place_defineds): Walk ldlang_def_chain_list defining the | |
47 | symbols. | |
48 | (lang_process): Call lang_place_defineds. | |
49 | (lang_add_assignment): If the assignment has come from a --defsym | |
50 | command line option then call lang_add_def. | |
51 | ||
2ebf3964 AM |
52 | 2010-11-03 Alan Modra <amodra@gmail.com> |
53 | ||
54 | * Makefile.am (eelf64hppa.c): Correct dependencies. | |
55 | * Makefile.in: Regenerate. | |
56 | ||
34734a01 L |
57 | 2010-11-02 H.J. Lu <hongjiu.lu@intel.com> |
58 | ||
59 | * scripttempl/armbpabi.sc: Include compressed DWARF debug | |
60 | sections. | |
61 | * scripttempl/avr.sc: Likewise. | |
62 | * scripttempl/elf32cr16.sc: Likewise. | |
63 | * scripttempl/elf32crx.sc: Likewise. | |
64 | * scripttempl/elf32msp430.sc: Likewise. | |
65 | * scripttempl/elf32msp430_3.sc: Likewise. | |
66 | * scripttempl/elf32sh-symbian.sc: Likewise. | |
67 | * scripttempl/elf64hppa.sc: Likewise. | |
68 | * scripttempl/elf_chaos.sc: Likewise. | |
69 | * scripttempl/elfd10v.sc: Likewise. | |
70 | * scripttempl/elfd30v.sc: Likewise. | |
71 | * scripttempl/elfi370.sc: Likewise. | |
72 | * scripttempl/elfm68hc11.sc: Likewise. | |
73 | * scripttempl/elfm68hc12.sc: Likewise. | |
74 | * scripttempl/elfxtensa.sc: Likewise. | |
75 | * scripttempl/ip2k.sc: Likewise. | |
76 | * scripttempl/iq2000.sc: Likewise. | |
77 | * scripttempl/mep.sc: Likewise. | |
78 | * scripttempl/mmo.sc: Likewise. | |
79 | * scripttempl/v850.sc: Likewise. | |
80 | * scripttempl/xstormy16.sc: Likewise. | |
81 | ||
4a114e3e L |
82 | 2010-10-29 H.J. Lu <hongjiu.lu@intel.com> |
83 | ||
84 | * ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after | |
85 | bfd_openr returns. | |
86 | * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise. | |
87 | ||
88 | * scripttempl/elf.sc: Include compressed DWARF debug sections. | |
89 | ||
ace9d866 AM |
90 | 2010-10-28 Alan Modra <amodra@gmail.com> |
91 | ||
92 | * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR. | |
93 | ||
9160ea82 AM |
94 | 2010-10-28 Matthias Klose <doko@ubuntu.com> |
95 | ||
96 | * ld.texinfo: Add directory section for info document. | |
97 | * ldint.texinfo: Likewise. | |
98 | ||
71755fdf AM |
99 | 2010-10-28 Alan Modra <amodra@gmail.com> |
100 | ||
101 | * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For | |
102 | --no-undefined-version, don't report dot sym versions added by ld. | |
103 | ||
24898b70 AM |
104 | 2010-10-28 Alan Modra <amodra@gmail.com> |
105 | ||
106 | * ldlang.h (ldlang_add_undef): Add cmdline param. | |
107 | * ldlang.c (undef_from_cmdline): New var. | |
108 | (ldlang_add_undef): Add cmdline param. Set undef_from_cmdline. | |
109 | (lang_end): Really require -e or -u from command line on | |
110 | relocatable --gc-sections. | |
111 | * ldemul.c (after_parse_default): Adjust ldlang_add_undef call. | |
112 | * ldgram.y (extern_name_list_body): Likewise. | |
113 | * lexsup.c (parse_args): Likewise. | |
114 | * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise. | |
115 | ||
bc110b6e AM |
116 | 2010-10-25 Alan Modra <amodra@gmail.com> |
117 | ||
118 | * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id. | |
119 | Formatting. | |
120 | ||
1360ba76 RO |
121 | 2010-10-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
122 | ||
123 | * emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to | |
124 | elf32-sparc-sol2. | |
125 | * emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to | |
126 | elf64-sparc-sol2. | |
127 | ||
2b42b063 AM |
128 | 2010-10-22 Alan Modra <amodra@gmail.com> |
129 | ||
130 | * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't | |
131 | output when section has no contents. | |
132 | (build_link_order <lang_reloc_statement_enum>): Likewise. | |
133 | ||
75fa6dc1 JM |
134 | 2010-10-21 Joseph Myers <joseph@codesourcery.com> |
135 | ||
136 | * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use | |
137 | .c6xabi.attributes, not __TI_build_attributes. | |
138 | ||
7bac81d3 DK |
139 | 2010-10-20 Dave Korn <dave.korn.cygwin@gmail.com> |
140 | ||
141 | * plugin.c (get_symbols): Check symbol type correctly. | |
142 | ||
3917d5d5 DK |
143 | 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com> |
144 | ||
145 | * configure.in: If <dlfcn.h> can't be found, try for <Windows.h> | |
146 | * configure: Regenerate. | |
147 | * config.in: Likewise. | |
148 | * plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide | |
149 | trival LoadLibrary-based replacement for Windows systems. | |
150 | [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial | |
151 | replacement based on GetProcAddress. | |
152 | [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary. | |
153 | * sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS | |
154 | anymore, use its own guard. | |
155 | ||
d4cb7acd DK |
156 | 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com> |
157 | ||
158 | * plugin.c (add_input_file): Take copy of input string. | |
159 | (add_input_library): Likewise. | |
160 | (set_extra_library_path): Likewise. | |
161 | ||
2b42b063 | 162 | 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com> |
5d3236ee DK |
163 | |
164 | Apply LD plugin patch series (part 6/6). | |
165 | * ldlang.c (load_symbols): Handle bfd subsitution when calling the | |
166 | add_archive_element callback. | |
167 | * ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive | |
168 | member to the plugins and if claimed set "subsbfd" output parameter to | |
169 | point to the dummy IR-only BFD. | |
170 | ||
2b42b063 | 171 | 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com> |
5d3236ee DK |
172 | |
173 | Apply LD plugin patch series (part 5/6). | |
174 | * plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd, | |
175 | find the elf symbol data and set the visibility in the st_other field. | |
176 | ||
2b42b063 | 177 | 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com> |
5d3236ee DK |
178 | |
179 | Apply LD plugin patch series (part 4/6). | |
180 | * ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of | |
181 | plugin_call_all_symbols_read to before setting of gc_sym_list, and | |
182 | open any new input files that may have been added during it. | |
183 | * ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to | |
184 | plugin_multiple_definition and let it have first say over what to do | |
185 | with the clashing definitions. | |
186 | * plugin.c (no_more_claiming): New boolean variable. | |
187 | (plugin_cached_allow_multiple_defs): Likewise. | |
188 | (add_input_file): Implement. | |
189 | (add_input_library): Likewise. | |
190 | (set_extra_library_path): Likewise. | |
191 | (plugin_call_claim_file): Don't do anything when no_more_claiming set. | |
192 | (plugin_call_all_symbols_read): Set it. Disable link info | |
193 | "allow_multiple_definition" flag, but cache its value. | |
194 | (plugin_multiple_definition): New function. | |
195 | * plugin.h (plugin_multiple_definition): Add prototype. | |
196 | * testplug.c (addfile_enum_t): New enumerated typedef. | |
197 | (add_file_t): New struct typedef. | |
198 | (addfiles_list): New variable. | |
199 | (addfiles_tail_chain_ptr): Likewise. | |
200 | (record_add_file): New function. | |
201 | (parse_option): Parse "add:", "lib:" and "dir:" options and call it. | |
202 | (onall_symbols_read): Iterate the list of new files, libs and dirs, | |
203 | adding them. | |
204 | ||
2b42b063 | 205 | 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com> |
5d3236ee DK |
206 | |
207 | Apply LD plugin patch series (part 3/6). | |
208 | * ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice. | |
209 | * plugin.c (non_ironly_hash): Add new bfd hash table. | |
210 | (plugin_load_plugins): Exit early if no plugins to load. If plugins | |
211 | do load successfully, set notice_all flag in link info. | |
212 | (get_symbols): Implement. | |
213 | (plugin_load_plugins): Exit early if no plugins to load, else after | |
214 | loading plugins successfully enable notice_all mode. | |
215 | (init_non_ironly_hash): Lazily init non_ironly_hash table. | |
216 | (plugin_notice): Record symbols referenced from non-IR files in the | |
217 | non_ironly_hash. Suppress tracing, cref generation and nocrossrefs | |
218 | tracking for symbols from dummy IR bfds. | |
219 | * plugin.h: Fix formatting. | |
220 | (plugin_notice): Add prototype. | |
221 | * testplug.c (dumpresolutions): New global var. | |
222 | (parse_options): Accept "dumpresolutions". | |
223 | (onall_symbols_read): Get syms and dump resolutions if it was given. | |
224 | ||
2b42b063 | 225 | 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com> |
5d3236ee DK |
226 | |
227 | Apply LD plugin patch series (part 2/6). | |
228 | * ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early | |
229 | during compat checks if they pass, instead offer any successfully | |
230 | opened and accepted file to the plugin claim file hooks chain. Create | |
231 | a dummy bfd to accept symbols added by the plugin, if the plugin | |
232 | claims the file. | |
233 | * ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols | |
234 | read hook chain before ldemul_after_open. | |
235 | * ldlang.h (struct lang_input_statement_struct): Add new single-bit | |
236 | 'claimed' flag. | |
237 | * plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix. | |
238 | (IRONLY_SUFFIX_LEN): Length of the above string. | |
239 | (plugin_get_ir_dummy_bfd): New function to create the dummy bfd used | |
240 | to store symbols for ir-only files. | |
241 | (is_ir_dummy_bfd): New function to check if a bfd is ir-only. | |
242 | (asymbol_from_plugin_symbol): New function converts symbol formats. | |
243 | (add_symbols): Call it to convert plugin syms to bfd syms and add | |
244 | them to the dummy bfd. | |
245 | * plugin.h: Add missing include guards. | |
246 | (plugin_get_ir_dummy_bfd): Add prototype. | |
247 | (is_ir_dummy_bfd): Likewise. | |
248 | * testplug.c (TV_MESSAGE): New helper macro. | |
249 | (struct claim_file): New struct. | |
250 | (claim_file_t): New typedef. | |
251 | (tag_names[]): Make static and const. | |
252 | (claimfiles_list): New variable. | |
253 | (claimfiles_tail_chain_ptr): Likewise. | |
254 | (last_claimfile): Likewise. | |
255 | (record_claim_file): Record a file to claim on a singly-linked list. | |
256 | (parse_symdefstr): Parse an ASCII representation of a symbol from a | |
257 | plugin option into the fields of a struct ld_plugin_symbol. | |
258 | (record_claimed_file_symbol): Use it to parse plugin option for | |
259 | adding a symbol. | |
260 | (parse_option): Parse claim file and add symbol options. | |
261 | (dump_tv_tag): Use TV_MESSAGE. | |
262 | (onload): Likewise. | |
263 | (onclaim_file): Make static. Use TV_MESSAGE. Scan list of files to | |
264 | claim and claim this file if required, adding any symbols specified. | |
265 | (onall_symbols_read): Make static and use TV_MESSAGE. | |
266 | (oncleanup): Likewise. | |
267 | ||
2b42b063 | 268 | 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com> |
5d3236ee DK |
269 | |
270 | Apply LD plugin patch series (part 1/6). | |
271 | * configure.in: Add AC_CHECKs for file io and dlfcn headers and | |
272 | functions and AC_SEARCH for -ldl. | |
273 | (enable_plugins): New shell variable set if above tests find dlopen | |
274 | functionality. | |
275 | (ENABLE_PLUGINS): Add related automake conditional. | |
276 | * configure: Regenerate. | |
277 | * config.in: Likewise. | |
278 | * Makefile.am (PLUGIN_C): Declare plugin C source file, conditional | |
279 | on ENABLE_PLUGINS being defined. | |
280 | (PLUGIN_H): Likewise for header file. | |
281 | (PLUGIN_OBJECT): Likewise for object file. | |
282 | (PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support. | |
283 | (AM_CPPFLAGS): Use PLUGIN_CFLAGS. | |
284 | (CFILES): Use PLUGIN_C. | |
285 | (HFILES): Use PLUGIN_H. | |
286 | (OFILES): Use PLUGIN_OBJECT. | |
287 | (ld_new_SOURCES): Use PLUGIN_C. | |
288 | (noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin. | |
289 | (libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition | |
290 | for test plugin. | |
291 | (libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise. | |
292 | (libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise. | |
293 | * Makefile.in: Regenerate. | |
294 | * sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or | |
295 | sys/file.h where available. Include dlfcn.h when ENABLE_PLUGINS. | |
296 | (O_RDONLY): Supply default definition likewise to bfd's sysdep.h | |
297 | (O_WRONLY): Likewise. | |
298 | (O_RDWR): Likewise. | |
299 | (O_ACCMODE): Likewise. | |
300 | (O_BINARY): Likewise. | |
301 | (SEEK_SET): Likewise. | |
302 | (SEEK_CUR): Likewise. | |
303 | (SEEK_END): Likewise. | |
304 | * ldmisc.c (vfinfo): Make non-static. Add %p format char. | |
305 | * ldmisc.h (vfinfo): Declare extern prototype. | |
306 | * lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for | |
307 | OPTION_PLUGIN and OPTION_PLUGIN_OPT. | |
308 | (ld_options[])[ENABLE_PLUGINS]: Add option data for the above two. | |
309 | (parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once | |
310 | option parsing is complete. | |
311 | * ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just | |
312 | after lang_finish. | |
313 | * plugin.c: New source file. | |
314 | * plugin.h: Likewise new header. | |
315 | * testplug.c: New source file. | |
316 | ||
18a1a992 RO |
317 | 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
318 | ||
319 | * emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed | |
320 | basever_syms to global_syms. | |
321 | Emit global_syms into .dynamic section for all executables and | |
322 | shared objects. | |
323 | (elf_solaris2_after_allocation): New function. | |
324 | (LDEMUL_AFTER_ALLOCATION): Use it. | |
325 | * emulparams/solaris2.sh: New file. | |
326 | * emulparams/elf32_sparc_sol2.sh: Use it. | |
327 | * emulparams/elf64_sparc_sol2.sh: Likewise. | |
328 | * emulparams/elf_i386_sol2.sh: Likewise. | |
329 | * emulparams/elf_x86_64_sol2.sh: Likewise. | |
330 | * Makefile.am (eelf32_sparc_sol2.c): Depend on | |
331 | $(srcdir)/emulparams/solaris2.sh. | |
332 | (eelf64_sparc_sol2.c): Likewise. | |
333 | (eelf_x86_64_sol2.c): Likewise. | |
334 | (eelf_i386_sol2.c): Likewise. | |
335 | * Makefile.in: Regenerate. | |
336 | ||
ea5cae92 NC |
337 | 2010-10-06 Nick Clifton <nickc@redhat.com> |
338 | ||
339 | * ld.texinfo: Update description of computation of VMA and LMA | |
340 | addresses for output sections. | |
341 | ||
9034a328 RW |
342 | 2010-10-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
343 | ||
4560bc04 RW |
344 | * Makefile.am (ALL_64_EMULATIONS): Fix typo in last commit. |
345 | * Makefile.in: Regenerate. | |
346 | ||
9034a328 RW |
347 | * Makefile.am (ALL_EMULATIONS): Rewrite in terms of ... |
348 | (ALL_EMULATION_SOURCES): ... this new variable. | |
349 | (ALL_64_EMULATIONS): Rewrite in terms of ... | |
350 | (ALL_64_EMULATION_SOURCES): ... this new variable. | |
351 | (EXTRA_ld_new_SOURCES): Rewrite in terms of the _SOURCES | |
352 | variables. | |
353 | (eelf32microblaze.c): Fix indentation. | |
354 | * Makefile.in: Regenerate. | |
355 | ||
d4730f92 BS |
356 | 2010-10-04 Bernd Schmidt <bernds@codesourcery.com> |
357 | ||
358 | * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use | |
359 | _bfd_elf_single_rel_hdr. | |
360 | ||
abf4be64 AM |
361 | 2010-10-01 Alan Modra <amodra@gmail.com> |
362 | ||
363 | PR ld/12066 | |
364 | * ldexp.c (fold_name): Treat absolute symbols as plain numbers. | |
365 | * ld.texinfo (Expression Section): Don't say absolute symbols | |
366 | are addresses. | |
367 | ||
30920cab AM |
368 | 2010-09-29 Alan Modra <amodra@gmail.com> |
369 | ||
370 | * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load | |
371 | section for orphans handled here. | |
372 | ||
3cac54d2 RW |
373 | 2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
374 | ||
375 | * configure: Regenerate. | |
376 | ||
9396a3ce DK |
377 | 2010-09-23 Dave Korn <dave.korn.cygwin@gmail.com> |
378 | ||
379 | * scripttempl/armcoff.sc: Revert 2010-09-22 change. | |
380 | ||
0814be7d AM |
381 | 2010-09-23 Alan Modra <amodra@gmail.com> |
382 | ||
383 | * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input | |
384 | to output section on a final link. | |
385 | ||
d4874973 KT |
386 | 2010-09-22 Kai Tietz <kai.tietz@onevision.com> |
387 | ||
e4b0fe2f KT |
388 | * ldlang.c (lang_add_section): Allow for debugging |
389 | section to be marked as noload but to keep content. | |
390 | (IGNORE_SECTION): Likewise. | |
391 | (lang_check_section_addresses): Likewise. | |
392 | * ldwrite.c (build_link_order): Likewise. | |
393 | ||
d4874973 KT |
394 | * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add |
395 | idata to orphan set. | |
396 | * emultempl/pep.em: Likewise. | |
397 | * scripttempl/armcoff.sc: Separate idata | |
398 | and add __IAT_start__ and __IAT_end__ labels. | |
399 | * scripttempl/pe.sc: Likewise. | |
400 | * scripttempl/pep.sc: Likewise. | |
401 | ||
d9b807ab DM |
402 | 2010-09-20 David S. Miller <davem@davemloft.net> |
403 | ||
404 | * emulparams/elf32_sparc.sh: Set NOP to 0x01000000 | |
405 | ||
2e76e85a AM |
406 | 2010-09-16 Alan Modra <amodra@gmail.com> |
407 | ||
408 | * ld.texinfo (NOLOAD): Do not erroneously state that contents will | |
409 | appear in output file. | |
410 | * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload | |
411 | unless SEC_COFF_SHARED_LIBRARY. | |
412 | (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload | |
413 | output sections. | |
414 | (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding | |
415 | to update dot in region. Ditto when setting SEC_ALLOC if dot | |
416 | advanced due to assignment. | |
417 | * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD. | |
418 | ||
2d7f4929 KT |
419 | 2010-09-15 Kai Tietz <kai.tietz@onevision.com> |
420 | ||
d3fe237d KT |
421 | * scripttempl/pep.sc: Add .xdata segment and |
422 | put into .pdata all segments beginning with .pdata. | |
2d7f4929 | 423 | |
8658f989 AM |
424 | 2010-09-10 Alan Modra <amodra@gmail.com> |
425 | ||
426 | PR ld/11931 | |
427 | * ldlang.h (lang_for_each_statement_worker): Declare. | |
428 | * ldlang.c (lang_for_each_statement_worker): Make global. Don't | |
429 | recurse into children of output_section_statement with constraint | |
430 | set to -1. | |
431 | (print_assignment): Handle NULL output_section->bfd_section. | |
432 | (lang_size_sections_1): Ignore output section statement address | |
433 | when constraint is -1. | |
434 | * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete. | |
435 | ||
75875724 TG |
436 | 2010-09-09 Tristan Gingold <gingold@adacore.com> |
437 | ||
438 | * NEWS: Add a entry for alpha-vms. | |
439 | ||
3dbcc61d NC |
440 | 2010-09-07 Andrew Burgess <aburgess@broadcom.com> |
441 | ||
442 | * ldwrite.c (clone_section): Call bfd_copy_private_section_data on | |
443 | newly cloned section. | |
444 | ||
c518ddd8 RH |
445 | 2010-09-02 Richard Henderson <rth@redhat.com> |
446 | ||
447 | * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too. | |
448 | ||
107c6e11 NC |
449 | 2010-08-31 Nick Clifton <nickc@redhat.com> |
450 | ||
451 | * ldlex.l (WILDCHAR): Add the caret and exclamation point | |
0d6cedc0 | 452 | characters, so that they can be used inside globs. |
107c6e11 | 453 | |
c09e9a8c NC |
454 | 2010-08-31 Nick Clifton <nickc@redhat.com> |
455 | ||
456 | * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in | |
457 | a region's attributes. | |
458 | ||
6be999b8 AM |
459 | 2010-08-31 Alan Modra <amodra@gmail.com> |
460 | ||
461 | * scripttempl/mmo.sc: Move assignment to "Main" inside .text | |
462 | output section statement. | |
463 | ||
8dd881b6 L |
464 | 2010-08-25 H.J. Lu <hongjiu.lu@intel.com> |
465 | ||
466 | PR ld/11946 | |
467 | * emultempl/elf32.em (_before_allocation): Check audit entry | |
468 | only on ELF input. | |
469 | ||
4440bb77 L |
470 | 2010-08-22 H.J. Lu <hongjiu.lu@intel.com> |
471 | ||
472 | PR ld/11937 | |
473 | * emultempl/elf32.em (_after_open): Find one .eh_frame section | |
474 | for --eh-frame-hdr. | |
475 | ||
a654efd6 L |
476 | 2010-08-22 H.J. Lu <hongjiu.lu@intel.com> |
477 | ||
478 | PR ld/11937 | |
479 | * emultempl/elf32.em (_after_open): Find an ELF input for | |
480 | --build-id and --eh-frame-hdr. | |
481 | ||
d820eaae MR |
482 | 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com> |
483 | ||
484 | * Makefile.am (eshlelf_fd.c): Correct the name of the tool | |
485 | directory. | |
486 | * Makefile.in: Regenerate. | |
487 | ||
c13526ca NC |
488 | 2010-08-20 Nick Clifton <nickc@redhat.com> |
489 | ||
490 | * emultempl/elf32.em (_after_open): Check for get_elf_backend_data | |
491 | returning NULL. | |
492 | ||
5fec8599 L |
493 | 2010-08-19 Alan Modra <amodra@gmail.com> |
494 | ||
495 | * NEWS: Mention change in linker script expression evaluation. | |
496 | ||
7542af2a AM |
497 | 2010-08-19 Alan Modra <amodra@gmail.com> |
498 | ||
499 | * ld.texinfo (Expression Section): Detail expression evaluation. | |
500 | (Builtin Functions <ADDR>): Correct. | |
501 | (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally | |
502 | the same as ADDR. | |
503 | (Builtin Functions <SEGMENT_START>): Typo fix. | |
504 | * ldexp.c (new_number): New function. | |
505 | (make_abs, exp_get_abs_int): Cope with NULL expld.result.section. | |
506 | (fold_unary <'~', '!', '-'>): Don't make_abs. | |
507 | (fold_binary): Simplify result section logic. Return NULL section | |
508 | for logical ops. | |
509 | (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to | |
510 | a consistent result. | |
511 | (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs. | |
512 | (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise. | |
513 | (fold_name <NAME>): No need to handle absolute symbols differently | |
514 | from relative ones. | |
515 | (fold_name <ORIGIN>): Don't return valid result when | |
516 | lang_first_phase_enum. Return new_rel_from_abs, not new_abs. | |
517 | (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel. | |
518 | (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning | |
519 | a plain number to dot, assume the value is relative to expld.section. | |
520 | Make terms not in an output section, absolute. | |
521 | * ldlang.c (print_assignment): Fix style nit. | |
522 | (lang_size_sections_1): Cope with NULL expld.result.section. | |
523 | (lang_do_assignments_1): Likewise. | |
524 | ||
5942515f AM |
525 | 2010-08-12 Alan Modra <amodra@gmail.com> |
526 | ||
527 | * ldexp.c (new_rel): Remove "str". Update all call sites. | |
528 | (exp_fold_tree_1): When assigning to dot, calculate nextdot | |
529 | using expld.result.section rather than expld.section. | |
530 | ||
1e0061d2 AM |
531 | 2010-08-06 Alan Modra <amodra@gmail.com> |
532 | ||
533 | PR ld/11887 | |
534 | * ldlang.c (lang_add_vers_depend): Don't leave version_needed | |
535 | uninitialised. | |
536 | ||
ae78bbeb AM |
537 | 2010-07-28 Alan Modra <amodra@gmail.com> |
538 | ||
539 | * ldexp.c (exp_print_tree): Print function-like binary nodes as | |
540 | functions rather than in-fix operators. Use fputs and fputc | |
541 | where appropriate. | |
542 | ||
1cd986c5 NC |
543 | 2010-07-23 Naveen.H.S <naveen.S@kpitcummins.com> |
544 | Ina Pandit <ina.pandit@kpitcummins.com> | |
545 | ||
546 | * configure.tgt: Match all v850 targets. | |
547 | ||
bb1515f2 MF |
548 | 2010-07-20 Mike Frysinger <vapier@gentoo.org> |
549 | ||
550 | * ld.texinfo (VERSION): Remove "int" from example script and add ";". | |
551 | Declare the default language as C. | |
552 | ||
f4427a75 AM |
553 | 2010-07-17 Alan Modra <amodra@gmail.com> |
554 | ||
555 | * ldlang.c (lang_check_section_addresses): Catch overlap for | |
556 | sections that wrap around the address space. | |
557 | ||
ec51c381 NC |
558 | 2010-06-29 Nick Clifton <nickc@redhat.com> |
559 | ||
560 | * scripttempl/xstormy16.sc (.gcc_except_table): Include sections | |
561 | with the .gcc_except_table. prefix. | |
562 | ||
360cfc9c AM |
563 | 2010-06-29 Alan Modra <amodra@gmail.com> |
564 | ||
565 | * emulparams/maxqcoff.sh: Delete file. | |
566 | * scripttempl/maxqcoff.sc: Delete file. | |
567 | * Makefile.am: Remove references to maxq. | |
568 | * configure.tgt: Likewise. | |
569 | * Makefile.in: Regenerate. | |
570 | * configure: Regenerate. | |
571 | * po/POTFILES.in: Regenerate. | |
572 | ||
c7e2358a AM |
573 | 2010-06-27 Alan Modra <amodra@gmail.com> |
574 | ||
575 | * pe-dll.c (fill_edata): Avoid set but unused warning. | |
576 | (pe_walk_relocs_of_symbol): Delete set but unused variables. | |
577 | (generate_reloc, pe_implied_import_dll): Likewise. | |
578 | * emultempl/aix.em (open_dynamic_archive): Likewise. | |
579 | * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise. | |
580 | (xtensa_layout_wild): Likewise. | |
581 | (xtensa_colocate_output_literals_callback): Likewise. | |
582 | ||
ba761f19 AM |
583 | 2010-06-25 Alan Modra <amodra@gmail.com> |
584 | ||
585 | * emultempl/ppc64elf.em (prelim_size_sections): New function. | |
586 | (ppc_before_allocation): Use it. Size sections before toc edit too. | |
587 | ||
bded3693 AM |
588 | 2010-06-25 Alan Modra <amodra@gmail.com> |
589 | ||
590 | * emultempl/elf32.em (find_exp_assignment): Handle etree_provided. | |
591 | ||
09db93a8 DS |
592 | 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net> |
593 | ||
594 | * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make | |
bded3693 AM |
595 | auto-import and merge-rdata defaults same for i[3-7]86 and |
596 | x86_64 mingw. | |
597 | ||
59e6276b JM |
598 | 2010-06-15 Joseph Myers <joseph@codesourcery.com> |
599 | ||
600 | * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define. | |
601 | ||
75898d57 DK |
602 | 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com> |
603 | ||
604 | PR ld/11603 | |
605 | * pe-dll.c (process_def_file_and_drectve): Reorder check for | |
606 | forwarded export name after check for ordinary export. | |
607 | ||
11dd4e37 BS |
608 | 2010-06-08 Bernd Schmidt <bernds@codesourcery.com> |
609 | ||
610 | * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New. | |
611 | ||
9fbcbd81 NC |
612 | 2010-06-08 Nick Clifton <nickc@redhat.com> |
613 | ||
614 | * fdl.texi: Replace with v1.3 text. | |
615 | * ld.texinfo: Replace abbreviated 20th century year numbers with | |
616 | full versions. | |
617 | * ldint.texinfo: Likewise. | |
618 | Relicense under GFDL v1.3. Replace text of v1.1 FDL with an | |
619 | include of the fdl.texi file. | |
620 | ||
46d00b8a TG |
621 | 2010-06-01 Tristan Gingold <gingold@adacore.com> |
622 | ||
623 | * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the | |
624 | readonly output-section. Handle LIB$INITIALIZE and sections | |
625 | created by gcc. | |
626 | * emultempl/vms.em (vms_place_orphan): Add comments. | |
627 | ||
de072cdc NC |
628 | 2010-05-28 Nick Clifton <nickc@redhat.com> |
629 | ||
630 | * Makefile.am (eshlelf_fd.c): Fix typo in rule. | |
631 | * Makefile.in: Regenerate. | |
632 | ||
c8ce5710 L |
633 | 2010-05-26 H.J. Lu <hongjiu.lu@intel.com> |
634 | ||
635 | PR ld/11628 | |
636 | * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't | |
637 | multiple of maximum page size. | |
638 | ||
d19e70fb NC |
639 | 2010-05-25 Nick Clifton <nickc@redhat.com> |
640 | ||
641 | * Makefile.am: Fix typo. | |
642 | * Makefile.in: Regenerate. | |
643 | ||
8e45593f NC |
644 | 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com> |
645 | Joseph Myers <joseph@codesourcery.com> | |
646 | Andrew Stubbs <ams@codesourcery.com> | |
647 | ||
648 | * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o. | |
649 | (eshelf_fd.c, eshlelf_fd.c): New rules. | |
650 | * Makefile.in: Regenerate. | |
651 | * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd | |
652 | emulations. | |
653 | * emulparams/shelf_fd.sh: New file. | |
654 | * emulparams/shlelf_fd.sh: New file. | |
655 | * emulparams/shlelf_linux.sh: Update comment. | |
656 | ||
52a6ecd2 NC |
657 | 2010-05-25 Jay Krell <jay.krell@cornell.edu> |
658 | ||
659 | PR ld/11621 | |
660 | * Makefile.am: Replace all occurences of .o with .@OBJEXT@ | |
661 | * Makefile.in: Regenerate. | |
662 | ||
ca5f2203 KT |
663 | 2010-05-25 Kai Tietz <kai.tietz@onevision.com> |
664 | ||
770c040b KT |
665 | * deffilep.y (opt_name): Allow leading dot. |
666 | (dot_name): Likewise. | |
667 | (anylang_id): Likewise. | |
6ec6c79c KT |
668 | * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by |
669 | default auto_import. | |
670 | (gld${EMULATION_NAME}_handle_option): Warn about v1. | |
671 | (pep_find_data_imports): Remove superflous warnings about | |
672 | auto-import. | |
673 | (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import | |
674 | and active pseudo-relocation-v2 rdata into data section. | |
ca5f2203 KT |
675 | * emultempl/pe.em (default_merge_rdata): New shell variable. |
676 | (MERGE_RDATA_V2): New macro. | |
677 | (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import | |
678 | selected script. | |
679 | ||
d74720d2 KT |
680 | 2010-05-15 Kai Tietz <kai.tietz@onevision.com> |
681 | ||
682 | * emultempl/pe.em (is_underscoring): New helper function. | |
683 | (gld_${EMULATION_NAME}_before_parse): Replace code | |
684 | for pe(p)_leading_underscore detection by is_underscoring. | |
685 | (U): Likewise. | |
686 | (GET_INIT_SYMBOL_NAME): Likewise. | |
687 | (U_SIZE): Likewise. | |
688 | (set_pe_name): | |
689 | (set_entry_point): | |
690 | (gld_${EMULATION_NAME}_set_symbols): | |
691 | * emultempl/pep.em: Likewise. | |
692 | * pe-dll.c (pe_detail_list): Set default | |
693 | underscoring for x64 target. | |
694 | (pe_dll_id_target): Add initialization of | |
695 | pe(p)_leading_underscore. | |
696 | ||
1b610c93 DK |
697 | 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com> |
698 | ||
699 | * pe-dll.c: Removed trailing whitespaces. | |
700 | ||
e092cb30 AM |
701 | 2010-05-14 Alan Modra <amodra@gmail.com> |
702 | ||
703 | PR ld/11583 | |
704 | * ldexp.c (exp_fold_tree_1): If assignment source expression is | |
705 | invalid, make the destination symbol undefined. | |
706 | ||
b804e4af KT |
707 | 2010-05-11 Kai Tietz <kai.tietz@onevision.com> |
708 | ||
709 | * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): | |
710 | Initialize pe(p)_leading_underscore variable. | |
711 | (set_pe_name): Likewise. | |
712 | * emultempl/pep.em: Likewise. | |
713 | Additional change default to non-underscore for | |
714 | pep_leading_underscore equal to -1. | |
715 | ||
6540b386 TG |
716 | 2010-05-07 Tristan Gingold <gingold@adacore.com> |
717 | ||
718 | * Makefile.in: Regenerate with automake 1.11.1. | |
719 | * aclocal.m4: Ditto. | |
720 | ||
3e01a7fd NC |
721 | 2010-05-05 Nick Clifton <nickc@redhat.com> |
722 | ||
723 | * po/es.po: Updated Spanish translation. | |
724 | ||
17f73277 KT |
725 | 2010-04-27 Kai Tietz <kai.tietz@onevision.com> |
726 | ||
727 | * pe-dll.c (_nm_-symbols): Use always underscored variant | |
728 | for symbols. | |
729 | (__imp_-symbols): Likewise. | |
730 | (___imp_-symbols): Likewise. | |
731 | * NEWS: Mention ABI change for x64 PE-COFF. | |
732 | ||
7ad2014a L |
733 | 2010-04-27 H.J. Lu <hongjiu.lu@intel.com> |
734 | ||
735 | * Makefile.am (install-exec-local): Properly install ld as | |
736 | default cross linker. | |
737 | * Makefile.in: Regenerated. | |
738 | ||
4fda8867 NC |
739 | 2010-04-27 H.J. Lu <hongjiu.lu@intel.com> |
740 | Nick Clifton <nickc@redhat.com> | |
741 | ||
742 | * configure.in (install_as_default): Define and set to true | |
743 | unless --enable-gold=both/gold has been specified. | |
744 | * configure: Regenerate. | |
745 | ||
746 | * Makefile.am (transform): Use ld.bfd as the default name of | |
747 | the linker. | |
748 | (install-exec-local): Also install the executable as a binary | |
749 | named 'ld' if install_as_default is true. | |
750 | * Makefile.in: Regenerate. | |
751 | ||
9c9c98a5 NC |
752 | 2010-04-22 Nick Clifton <nickc@redhat.com> |
753 | ||
754 | * po/ld.pot: Updated by the Translation project. | |
755 | * po/vi.po: Updated Vietnamese translation. | |
756 | * po/bg.po: Updated Bulgarian translation. | |
757 | ||
85fdf906 AH |
758 | 2010-04-15 Andrew Haley <aph@redhat.com> |
759 | ||
760 | * emultempl/armelf.em (merge_exidx_entries): New variable. | |
761 | (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition. | |
762 | ("no-merge-exidx-entries"): New option. | |
763 | * ld.texinfo (merge-exidx-entries): Document this option. | |
764 | ||
8b351884 TG |
765 | 2010-04-14 Tristan Gingold <gingold@adacore.com> |
766 | ||
767 | * emulparams/alphavms.sh: New file. | |
768 | * emultempl/vms.em: New file. | |
769 | * scripttempl/alphavms.sc: New file. | |
770 | * configure.tgt (alpha*-*-*vms*): Added. | |
771 | * Makefile.am (ALL_EMULATIONS): Add ealphavms.o | |
772 | (ealphavms.c): New target. | |
773 | * Makefile.in: Regenerate. | |
774 | ||
3d540e93 NC |
775 | 2010-04-09 Nick Clifton <nickc@redhat.com> |
776 | ||
777 | * ldlang.c (wild_sort): Remove unused variable section_name. | |
778 | ||
397841b5 AM |
779 | 2010-04-07 Alan Modra <amodra@gmail.com> |
780 | ||
781 | * configure: Regenerate. | |
782 | ||
6f8bcf84 L |
783 | 2010-04-06 H.J. Lu <hongjiu.lu@intel.com> |
784 | ||
785 | PR ld/11434 | |
786 | * ld/testsuite/ld-x86-64/unique1.d: New. | |
787 | * ld/testsuite/ld-x86-64/unique1.s: Likewise. | |
788 | ||
789 | * ld-x86-64/x86-64.exp: Run unique1. | |
790 | ||
522f09cd KT |
791 | 2010-04-05 Kai Tietz <kai.tietz@onevision.com> |
792 | ||
793 | * emultempl/pep.em (U): Macro modified. | |
794 | (U_SIZE): New helper macro. | |
795 | (GET_INIT_SYMBOL_NAME): Likewise. | |
796 | (enum options): Add OPTION_NO_LEADING_UNDERSCORE | |
797 | and OPTION_LEADING_UNDERSCORE enumerator-values. | |
798 | (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore | |
799 | option. | |
800 | (definfo): Add new member is_c_symbol. | |
801 | (D): Add to macro underscore mode parameter. | |
802 | (init): Add definition for is_c_symbol. | |
803 | (gld_${EMULATION_NAME}_list_options): Display new options. | |
804 | (set_pep_name): Adjust underscoring dependent fixed | |
805 | symbol handling. | |
806 | (gld_${EMULATION_NAME}_set_symbols): Likewise. | |
807 | (saw_option): Likewise. | |
808 | (gld_${EMULATION_NAME}_unrecognized_file): Likewise. | |
809 | (set_entry_point): Initial initial_symbol_char dependent to | |
810 | target's default and new option flag pep_leading_underscore. | |
811 | * emultempl/pe.em (U): Macro modified. | |
812 | (U_SIZE): New helper macro. | |
813 | (GET_INIT_SYMBOL_NAME): Likewise. | |
814 | (OPTION_LEADING_UNDERSCORE): Add new option define. | |
815 | (OPTION_NO_LEADING_UNDERSCORE): Likewise. | |
816 | (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore | |
817 | option. | |
818 | (definfo): Add new member is_c_symbol. | |
819 | (D): Add to macro underscore mode parameter. | |
820 | (init): Add definition for is_c_symbol. | |
821 | (gld_${EMULATION_NAME}_list_options): Display new options. | |
822 | (set_pep_name): Adjust underscoring dependent fixed | |
823 | symbol handling. | |
824 | (gld_${EMULATION_NAME}_set_symbols): Likewise. | |
825 | (saw_option): Likewise. | |
826 | (gld_${EMULATION_NAME}_unrecognized_file): Likewise. | |
827 | (set_entry_point): Initial initial_symbol_char dependent to | |
828 | target's default and new option flag pep_leading_underscore. | |
829 | * pe-dll.c (pe_leading_underscore): New flag variable. | |
830 | (pe_detail_list): Remove const to allow modify of | |
831 | member underscore. | |
832 | (pe_dll_id_target): Initialize pe_details' underscore variable | |
833 | dependent to target's default and flag pe_leading_underscore. | |
834 | * pe-dll.h (pe_leading_underscore): Add extern declaration of | |
835 | option flag. | |
836 | * pep-dll.c (pe_leading_underscore): Add alias define for | |
837 | pep_leading_underscore. | |
838 | * pep-dll.h (pep_leading_underscore) Add extern declaration of | |
839 | option flag. | |
840 | * ld.texinfo: Add documentation for --(no-)leading-underscore | |
841 | option. | |
842 | ||
edc314c9 AM |
843 | 2010-03-26 Alan Modra <amodra@gmail.com> |
844 | ||
845 | PR ld/11426 | |
846 | * configure.host (many linux targets <HOSTING_CRT0>): Remove edits. | |
847 | (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo. | |
848 | ||
40b36596 JM |
849 | 2010-03-25 Joseph Myers <joseph@codesourcery.com> |
850 | ||
851 | * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and | |
852 | eelf32_tic6x_le.o. | |
853 | (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New. | |
854 | * NEWS: Add news entry for TI C6X support. | |
855 | * configure.tgt (tic6x-*-*): New. | |
856 | * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New. | |
857 | ||
349e935b JM |
858 | 2010-03-23 Joseph Myers <joseph@codesourcery.com> |
859 | ||
860 | * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME, | |
861 | BSS_NAME): Define if not already defined. Use in place of some | |
862 | hardcoded section names. | |
863 | ||
576ee33a L |
864 | 2010-03-18 H.J. Lu <hongjiu.lu@intel.com> |
865 | ||
866 | * scripttempl/elf.sc (INIT_ARRAY): Re-indent. | |
867 | ||
54801c2d NC |
868 | 2010-03-18 Aymeric Vincent <vincent@labri.fr> |
869 | ||
870 | PR ld/11384 | |
871 | * emultempl/sh64elf.em: Add missing EOF. | |
872 | ||
17299ac7 NC |
873 | 2010-03-18 Doug Semler <dougsemler@gmail.com> |
874 | ||
875 | * pe-dll.c (make_one): Make text section readonly. | |
876 | (make_one): Add *ABS* symbol @feat.00 with value 1 to tag | |
877 | the jump stub on X86 as /SAFESEH compatible for | |
878 | native toolchains. | |
879 | ||
e535e147 AM |
880 | 2010-03-17 Alan Modra <amodra@gmail.com> |
881 | ||
882 | * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from | |
883 | *prev instead. Update all callers. | |
884 | ||
f77c3948 DJ |
885 | 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
886 | ||
887 | * ldlang.c (lang_insert_orphan): Place loadable orphans in the same | |
888 | region and phdrs as their placement section. | |
889 | ||
d43d0b53 AM |
890 | 2010-03-15 Alan Modra <amodra@gmail.com> |
891 | ||
892 | * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New. | |
893 | (ppc_before_allocation): Call sort_toc_sections. | |
894 | (no_toc_sort, OPTION_NO_TOC_SORT): New. | |
895 | (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS, | |
896 | PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort. | |
897 | ||
70cc837d AM |
898 | 2010-03-14 Alan Modra <amodra@gmail.com> |
899 | ||
900 | PR ld/11378 | |
901 | * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call | |
902 | ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs. | |
903 | ||
806fc311 AM |
904 | 2010-03-11 George Gensure <werkt0@gmail.com> |
905 | ||
906 | PR ld/11367 | |
907 | * ldcref.c (handle_asneeded_cref): Correct copying of refs. | |
908 | ||
a6cc6b3b RO |
909 | 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
910 | ||
911 | * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o, | |
912 | eelf_i386_sol2.o. | |
913 | (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o. | |
914 | (eelf32_sparc_sol2.c): New rule. | |
915 | (eelf64_sparc_sol2.c): Likewise. | |
916 | (eelf_x86_64_sol2.c): Likewise. | |
917 | (eelf_i386_sol2.c): Likewise. | |
918 | * Makefile.in: Regenerate. | |
919 | * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to | |
920 | elf_i386_sol2. | |
921 | Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls. | |
922 | (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2. | |
923 | Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls. | |
924 | (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2. | |
925 | Add target_extra_emuls. | |
926 | (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2. | |
927 | Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls. | |
928 | (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2. | |
929 | Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls. | |
930 | * emulparams/elf32_sparc_sol2.sh: New file. | |
931 | * emulparams/elf64_sparc_sol2.sh: New file. | |
932 | * emulparams/elf_i386_sol2.sh: New file. | |
933 | * emulparams/elf_x86_64_sol2.sh: New file. | |
934 | * emultempl/solaris2.em: New file. | |
935 | ||
fc073cb7 L |
936 | 2010-02-27 H.J. Lu <hongjiu.lu@intel.com> |
937 | ||
938 | PR ld/11330 | |
939 | * ld.texinfo: Replace explicitely with explicitly. | |
940 | ||
3cff7cc7 JZ |
941 | 2010-02-27 Jie Zhang <jie@codesourcery.com> |
942 | ||
943 | * scripttempl/armbpabi.sc: Don't combine .init_array.* or | |
944 | .fini_array.* when do relocatable linking. | |
945 | * scripttempl/elf.sc: Likewise. | |
946 | * scripttempl/elf32sh-symbian.sc: Likewise. | |
947 | * scripttempl/elf64hppa.sc: Likewise. | |
948 | * scripttempl/elfxtensa.sc: Likewise. | |
949 | ||
9445af9a AM |
950 | 2010-02-26 Alan Modra <amodra@gmail.com> |
951 | ||
952 | * scripttempl/elf.sc (.fini_array): Place input .fini_array after | |
953 | .fini_array.*. | |
954 | * scripttempl/armbpabi.sc: Likewise. | |
955 | * scripttempl/elf32sh-symbian.sc: Likewise. | |
956 | * scripttempl/elf64hppa.sc: Likewise. | |
957 | * scripttempl/elfxtensa.sc: Likewise. | |
958 | ||
dfa7b0b8 AM |
959 | 2010-02-25 Alan Modra <amodra@gmail.com> |
960 | ||
961 | PR ld/11304 | |
962 | * ldlang.c (init_os): Remove isec param. Don't check for | |
963 | bfd_section already set or call bfd_init_private_section_data | |
964 | here. | |
965 | (exp_init_os): Update init_os call. | |
966 | (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE | |
967 | flags. Call bfd_init_private_section_data here. | |
968 | (map_input_to_output_sections): Tidy. Update init_os calls. | |
969 | Use os->sectype to select sec flags for lang_data_statement. | |
970 | ||
a431bc2e AM |
971 | 2010-02-23 Alan Modra <amodra@gmail.com> |
972 | ||
973 | PR ld/11304 | |
974 | * ldlang.c: Revert last patch. | |
975 | ||
1c063135 NC |
976 | 2010-02-23 Nick Clifton <nickc@redhat.com> |
977 | ||
978 | * po/bg.po: Updated Bulgarian translation. | |
979 | ||
c380a809 AM |
980 | 2010-02-22 Alan Modra <amodra@gmail.com> |
981 | ||
982 | PR ld/11304 | |
983 | * ldlang.c (exp_init_os): Delete forward declaration. | |
984 | (init_os): Don't check for bfd_section already created and don't | |
985 | init addr_tree and load_base expressions here. | |
986 | (map_input_to_output_sections): Only map input to output sections | |
987 | and set constraints here, and as an exception, create output | |
988 | sections which have their address set. Move all the other code to.. | |
989 | (create_other_output_sections): ..here. New function. Handle init | |
990 | of addr_tree and load_base here too. | |
991 | (lang_process): Call create_other_output_sections. | |
992 | ||
c8c66882 AM |
993 | 2010-02-19 Alan Modra <amodra@gmail.com> |
994 | ||
995 | * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS. | |
996 | * Makefile.in: Regenerate. | |
997 | ||
d0bf826b AM |
998 | 2010-02-19 Alan Modra <amodra@gmail.com> |
999 | ||
1000 | * ldlang.c (unique_section_p): Add os param. Allow group | |
1001 | sections to match /DISCARD/. Update all callers. | |
1002 | * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New. | |
1003 | (LDEMUL_BEFORE_ALLOCATION): Define. | |
1004 | ||
ab7875de NC |
1005 | 2010-02-15 Nick Clifton <nickc@redhat.com> |
1006 | ||
1007 | * po/vi.po: Updated Vietnamese translation. | |
1008 | ||
45e481d1 RS |
1009 | 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com> |
1010 | ||
1011 | * Makefile.am (CFILES): Add ldlex-wrapper.c. | |
1012 | (OFILES): Replace ldlex.c with ldlex-wrapper.c. | |
1013 | (ldlex.o): Replace with... | |
1014 | (ldlex-wrapper.o): ...this new rule. | |
1015 | (EXTRA_ld_new_SOURCES): Add ldlex.l. | |
1016 | (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c. | |
1017 | * Makefile.in: Regenerate. | |
1018 | * ldlex.l (sysdep.h): Don't include here. | |
1019 | * ldlex-wrapper.c: New file. | |
1020 | ||
33c0ec9d AM |
1021 | 2010-02-09 Alan Modra <amodra@gmail.com> |
1022 | ||
1023 | * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed | |
1024 | function parameters. | |
1025 | ||
ef3f88be NC |
1026 | 2010-02-05 Nick Clifton <nickc@redhat.com> |
1027 | ||
1028 | * configure.in (ALL_LIBGUAS): Add bg. | |
1029 | * configure: Regenerate. | |
1030 | * po/bg.po: New Bulgarian translation. | |
1031 | ||
f8266dc4 NC |
1032 | 2010-02-05 Ryan Mansfield <rmansfield@qnx.com> |
1033 | ||
1034 | * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for | |
1035 | --target1-abs and --target1-rel options. | |
1036 | ||
4dfe6ac6 NC |
1037 | 2010-02-03 Nick Clifton <nickc@redhat.com> |
1038 | ||
1039 | * emultempl/alphaelf.em: Update value expected from elf_object_id. | |
1040 | * emultempl/hppaelf.em: Likewise. | |
1041 | * emultempl/mipself.em: Likewise. | |
1042 | * emultempl/ppc32elf.em: Likewise. | |
1043 | * emultempl/ppc64elf.em: Likewise. | |
1044 | ||
927be08e AM |
1045 | 2010-02-03 Alan Modra <amodra@gmail.com> |
1046 | ||
1047 | * emultempl/ppc64elf.em (build_toc_list): Report errors from | |
1048 | ppc64_elf_next_toc_section. | |
1049 | (after_allocation): Update for changed function names and params. | |
1050 | Run second pass of multitoc partitioning. | |
1051 | ||
c4b78195 NC |
1052 | 2010-01-21 Jon Grant <jg@jguk.org> |
1053 | Nick Clifton <nickc@redhat.com> | |
1054 | ||
1055 | PR 4437 | |
1056 | * ldfile.c: (ldfile_open_file): Do not stop link upon encountering | |
1057 | a missing file or library. Instead mark the entry as missing and | |
1058 | set the global flag to indicate that missing files were | |
1059 | encountered. | |
1060 | * ldlang.c (missing_files): New exported variable. | |
1061 | (load_symbols): Skip loading if the file is missing. | |
1062 | (open_input_bfds): Terminate link if any input files were | |
1063 | missing. | |
1064 | * ldlang.h (struct lang_input_statement_struct): Add missing_file | |
1065 | field. | |
1066 | Add export of missing_file variable. | |
1067 | ||
b5f14a6d DD |
1068 | 2010-01-13 DJ Delorie <dj@redhat.com> |
1069 | ||
1070 | * emultempl/elf32.em (_place_orphan): If an input section doesn't | |
1071 | match an existing output section, but an unused output section | |
1072 | statement does match, use it. | |
1073 | * emultempl/pe.em (_place_orphan): Likewise. | |
1074 | * emultempl/pep.em (_place_orphan): Likewise. | |
1075 | ||
3725885a RW |
1076 | 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
1077 | ||
1078 | * configure: Regenerate. | |
1079 | * Makefile.in: Regenerate. | |
1080 | ||
5256a5b0 L |
1081 | 2010-01-08 H.J. Lu <hongjiu.lu@intel.com> |
1082 | ||
1083 | * ldver.c (ldversion): Change to "Copyright 2010". | |
1084 | ||
b903363e AM |
1085 | 2010-01-08 Alan Modra <amodra@gmail.com> |
1086 | ||
1087 | PR 11107 | |
1088 | * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr. | |
9dda37c1 | 1089 | |
43ecc30f | 1090 | For older changes see ChangeLog-2009 |
252b5132 RH |
1091 | \f |
1092 | Local Variables: | |
1093 | mode: change-log | |
1094 | left-margin: 8 | |
1095 | fill-column: 74 | |
1096 | version-control: never | |
1097 | End: |