1 2010-11-08 Thomas Schwinge <thomas@schwinge.name>
3 * configure.host: Add stanza for *-*-gnu*.
5 2010-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
7 * emultempl/spuelf.em (new_tmp_file): Fix wrong first parameter.
9 2010-11-05 Tristan Gingold <gingold@adacore.com>
11 * po/ld.pot: Regenerate
12 * po/POTFILES.in: Regenerate
14 2010-11-05 Tristan Gingold <gingold@adacore.com>
16 * NEWS: Add marker for 2.21.
18 2010-11-05 Dave Korn <dave.korn.cygwin@gmail.com>
20 * plugin.h (plugin_active_plugins_p): New prototype.
21 (is_ir_dummy_bfd): Delete prototype.
22 * plugin.c: Fix formatting issues.
23 (is_ir_dummy_bfd): Make static.
24 (plugin_active_plugins_p): New function.
25 * ldfile.c (ldfile_try_open_bfd): Use it to save work if no plugins
26 are loaded. Always close file descriptor after claim handler returns.
27 * ldmain.c (add_archive_element): Likewise.
29 2010-11-05 Alan Modra <amodra@gmail.com>
31 * ldlang.c (lang_add_section): Distinguish ELF treatment of NOLOAD.
32 (map_input_to_output_sections): Likewise.
33 (lang_size_sections_1): Likewise.
34 (IGNORE_SECTION): Don't test SEC_NEVER_LOAD.
35 (lang_check_section_addresses): Likewise.
37 2010-11-04 Kai Tietz <kai.tietz@onevision.com>
39 * scripttempl/pe.sc (.debug_types): New.
40 * scripttempl/pep.sc: Likewise.
42 2010-11-04 Alan Modra <amodra@gmail.com>
44 * plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd.
46 2010-11-03 Nick Clifton <nickc@redhat.com>
49 * ldlang.c (ldlang_def_chain_list): New variable. Contains a list
50 of symbols defined via the --defsym command line option and
51 currently waiting assignment.
52 (insert_defined): Add a defined symbol to the symbol table.
53 (ldlang_add_def): Add a entry to the ldlang_def_chain_list.
54 (lang_place_defineds): Walk ldlang_def_chain_list defining the
56 (lang_process): Call lang_place_defineds.
57 (lang_add_assignment): If the assignment has come from a --defsym
58 command line option then call lang_add_def.
60 2010-11-03 Alan Modra <amodra@gmail.com>
62 * Makefile.am (eelf64hppa.c): Correct dependencies.
63 * Makefile.in: Regenerate.
65 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
67 * scripttempl/armbpabi.sc: Include compressed DWARF debug
69 * scripttempl/avr.sc: Likewise.
70 * scripttempl/elf32cr16.sc: Likewise.
71 * scripttempl/elf32crx.sc: Likewise.
72 * scripttempl/elf32msp430.sc: Likewise.
73 * scripttempl/elf32msp430_3.sc: Likewise.
74 * scripttempl/elf32sh-symbian.sc: Likewise.
75 * scripttempl/elf64hppa.sc: Likewise.
76 * scripttempl/elf_chaos.sc: Likewise.
77 * scripttempl/elfd10v.sc: Likewise.
78 * scripttempl/elfd30v.sc: Likewise.
79 * scripttempl/elfi370.sc: Likewise.
80 * scripttempl/elfm68hc11.sc: Likewise.
81 * scripttempl/elfm68hc12.sc: Likewise.
82 * scripttempl/elfxtensa.sc: Likewise.
83 * scripttempl/ip2k.sc: Likewise.
84 * scripttempl/iq2000.sc: Likewise.
85 * scripttempl/mep.sc: Likewise.
86 * scripttempl/mmo.sc: Likewise.
87 * scripttempl/v850.sc: Likewise.
88 * scripttempl/xstormy16.sc: Likewise.
90 2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
92 * ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after
94 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
96 * scripttempl/elf.sc: Include compressed DWARF debug sections.
98 2010-10-28 Alan Modra <amodra@gmail.com>
100 * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.
102 2010-10-28 Matthias Klose <doko@ubuntu.com>
104 * ld.texinfo: Add directory section for info document.
105 * ldint.texinfo: Likewise.
107 2010-10-28 Alan Modra <amodra@gmail.com>
109 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For
110 --no-undefined-version, don't report dot sym versions added by ld.
112 2010-10-28 Alan Modra <amodra@gmail.com>
114 * ldlang.h (ldlang_add_undef): Add cmdline param.
115 * ldlang.c (undef_from_cmdline): New var.
116 (ldlang_add_undef): Add cmdline param. Set undef_from_cmdline.
117 (lang_end): Really require -e or -u from command line on
118 relocatable --gc-sections.
119 * ldemul.c (after_parse_default): Adjust ldlang_add_undef call.
120 * ldgram.y (extern_name_list_body): Likewise.
121 * lexsup.c (parse_args): Likewise.
122 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
124 2010-10-25 Alan Modra <amodra@gmail.com>
126 * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
129 2010-10-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
131 * emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to
133 * emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to
136 2010-10-22 Alan Modra <amodra@gmail.com>
138 * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
139 output when section has no contents.
140 (build_link_order <lang_reloc_statement_enum>): Likewise.
142 2010-10-21 Joseph Myers <joseph@codesourcery.com>
144 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use
145 .c6xabi.attributes, not __TI_build_attributes.
147 2010-10-20 Dave Korn <dave.korn.cygwin@gmail.com>
149 * plugin.c (get_symbols): Check symbol type correctly.
151 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
153 * configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
154 * configure: Regenerate.
155 * config.in: Likewise.
156 * plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
157 trival LoadLibrary-based replacement for Windows systems.
158 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
159 replacement based on GetProcAddress.
160 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
161 * sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
162 anymore, use its own guard.
164 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
166 * plugin.c (add_input_file): Take copy of input string.
167 (add_input_library): Likewise.
168 (set_extra_library_path): Likewise.
170 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
172 Apply LD plugin patch series (part 6/6).
173 * ldlang.c (load_symbols): Handle bfd subsitution when calling the
174 add_archive_element callback.
175 * ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive
176 member to the plugins and if claimed set "subsbfd" output parameter to
177 point to the dummy IR-only BFD.
179 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
181 Apply LD plugin patch series (part 5/6).
182 * plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd,
183 find the elf symbol data and set the visibility in the st_other field.
185 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
187 Apply LD plugin patch series (part 4/6).
188 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of
189 plugin_call_all_symbols_read to before setting of gc_sym_list, and
190 open any new input files that may have been added during it.
191 * ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to
192 plugin_multiple_definition and let it have first say over what to do
193 with the clashing definitions.
194 * plugin.c (no_more_claiming): New boolean variable.
195 (plugin_cached_allow_multiple_defs): Likewise.
196 (add_input_file): Implement.
197 (add_input_library): Likewise.
198 (set_extra_library_path): Likewise.
199 (plugin_call_claim_file): Don't do anything when no_more_claiming set.
200 (plugin_call_all_symbols_read): Set it. Disable link info
201 "allow_multiple_definition" flag, but cache its value.
202 (plugin_multiple_definition): New function.
203 * plugin.h (plugin_multiple_definition): Add prototype.
204 * testplug.c (addfile_enum_t): New enumerated typedef.
205 (add_file_t): New struct typedef.
206 (addfiles_list): New variable.
207 (addfiles_tail_chain_ptr): Likewise.
208 (record_add_file): New function.
209 (parse_option): Parse "add:", "lib:" and "dir:" options and call it.
210 (onall_symbols_read): Iterate the list of new files, libs and dirs,
213 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
215 Apply LD plugin patch series (part 3/6).
216 * ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice.
217 * plugin.c (non_ironly_hash): Add new bfd hash table.
218 (plugin_load_plugins): Exit early if no plugins to load. If plugins
219 do load successfully, set notice_all flag in link info.
220 (get_symbols): Implement.
221 (plugin_load_plugins): Exit early if no plugins to load, else after
222 loading plugins successfully enable notice_all mode.
223 (init_non_ironly_hash): Lazily init non_ironly_hash table.
224 (plugin_notice): Record symbols referenced from non-IR files in the
225 non_ironly_hash. Suppress tracing, cref generation and nocrossrefs
226 tracking for symbols from dummy IR bfds.
227 * plugin.h: Fix formatting.
228 (plugin_notice): Add prototype.
229 * testplug.c (dumpresolutions): New global var.
230 (parse_options): Accept "dumpresolutions".
231 (onall_symbols_read): Get syms and dump resolutions if it was given.
233 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
235 Apply LD plugin patch series (part 2/6).
236 * ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early
237 during compat checks if they pass, instead offer any successfully
238 opened and accepted file to the plugin claim file hooks chain. Create
239 a dummy bfd to accept symbols added by the plugin, if the plugin
241 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols
242 read hook chain before ldemul_after_open.
243 * ldlang.h (struct lang_input_statement_struct): Add new single-bit
245 * plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix.
246 (IRONLY_SUFFIX_LEN): Length of the above string.
247 (plugin_get_ir_dummy_bfd): New function to create the dummy bfd used
248 to store symbols for ir-only files.
249 (is_ir_dummy_bfd): New function to check if a bfd is ir-only.
250 (asymbol_from_plugin_symbol): New function converts symbol formats.
251 (add_symbols): Call it to convert plugin syms to bfd syms and add
252 them to the dummy bfd.
253 * plugin.h: Add missing include guards.
254 (plugin_get_ir_dummy_bfd): Add prototype.
255 (is_ir_dummy_bfd): Likewise.
256 * testplug.c (TV_MESSAGE): New helper macro.
257 (struct claim_file): New struct.
258 (claim_file_t): New typedef.
259 (tag_names[]): Make static and const.
260 (claimfiles_list): New variable.
261 (claimfiles_tail_chain_ptr): Likewise.
262 (last_claimfile): Likewise.
263 (record_claim_file): Record a file to claim on a singly-linked list.
264 (parse_symdefstr): Parse an ASCII representation of a symbol from a
265 plugin option into the fields of a struct ld_plugin_symbol.
266 (record_claimed_file_symbol): Use it to parse plugin option for
268 (parse_option): Parse claim file and add symbol options.
269 (dump_tv_tag): Use TV_MESSAGE.
271 (onclaim_file): Make static. Use TV_MESSAGE. Scan list of files to
272 claim and claim this file if required, adding any symbols specified.
273 (onall_symbols_read): Make static and use TV_MESSAGE.
274 (oncleanup): Likewise.
276 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
278 Apply LD plugin patch series (part 1/6).
279 * configure.in: Add AC_CHECKs for file io and dlfcn headers and
280 functions and AC_SEARCH for -ldl.
281 (enable_plugins): New shell variable set if above tests find dlopen
283 (ENABLE_PLUGINS): Add related automake conditional.
284 * configure: Regenerate.
285 * config.in: Likewise.
286 * Makefile.am (PLUGIN_C): Declare plugin C source file, conditional
287 on ENABLE_PLUGINS being defined.
288 (PLUGIN_H): Likewise for header file.
289 (PLUGIN_OBJECT): Likewise for object file.
290 (PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support.
291 (AM_CPPFLAGS): Use PLUGIN_CFLAGS.
292 (CFILES): Use PLUGIN_C.
293 (HFILES): Use PLUGIN_H.
294 (OFILES): Use PLUGIN_OBJECT.
295 (ld_new_SOURCES): Use PLUGIN_C.
296 (noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin.
297 (libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition
299 (libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise.
300 (libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise.
301 * Makefile.in: Regenerate.
302 * sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or
303 sys/file.h where available. Include dlfcn.h when ENABLE_PLUGINS.
304 (O_RDONLY): Supply default definition likewise to bfd's sysdep.h
305 (O_WRONLY): Likewise.
307 (O_ACCMODE): Likewise.
308 (O_BINARY): Likewise.
309 (SEEK_SET): Likewise.
310 (SEEK_CUR): Likewise.
311 (SEEK_END): Likewise.
312 * ldmisc.c (vfinfo): Make non-static. Add %p format char.
313 * ldmisc.h (vfinfo): Declare extern prototype.
314 * lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for
315 OPTION_PLUGIN and OPTION_PLUGIN_OPT.
316 (ld_options[])[ENABLE_PLUGINS]: Add option data for the above two.
317 (parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once
318 option parsing is complete.
319 * ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just
321 * plugin.c: New source file.
322 * plugin.h: Likewise new header.
323 * testplug.c: New source file.
325 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
327 * emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed
328 basever_syms to global_syms.
329 Emit global_syms into .dynamic section for all executables and
331 (elf_solaris2_after_allocation): New function.
332 (LDEMUL_AFTER_ALLOCATION): Use it.
333 * emulparams/solaris2.sh: New file.
334 * emulparams/elf32_sparc_sol2.sh: Use it.
335 * emulparams/elf64_sparc_sol2.sh: Likewise.
336 * emulparams/elf_i386_sol2.sh: Likewise.
337 * emulparams/elf_x86_64_sol2.sh: Likewise.
338 * Makefile.am (eelf32_sparc_sol2.c): Depend on
339 $(srcdir)/emulparams/solaris2.sh.
340 (eelf64_sparc_sol2.c): Likewise.
341 (eelf_x86_64_sol2.c): Likewise.
342 (eelf_i386_sol2.c): Likewise.
343 * Makefile.in: Regenerate.
345 2010-10-06 Nick Clifton <nickc@redhat.com>
347 * ld.texinfo: Update description of computation of VMA and LMA
348 addresses for output sections.
350 2010-10-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
352 * Makefile.am (ALL_64_EMULATIONS): Fix typo in last commit.
353 * Makefile.in: Regenerate.
355 * Makefile.am (ALL_EMULATIONS): Rewrite in terms of ...
356 (ALL_EMULATION_SOURCES): ... this new variable.
357 (ALL_64_EMULATIONS): Rewrite in terms of ...
358 (ALL_64_EMULATION_SOURCES): ... this new variable.
359 (EXTRA_ld_new_SOURCES): Rewrite in terms of the _SOURCES
361 (eelf32microblaze.c): Fix indentation.
362 * Makefile.in: Regenerate.
364 2010-10-04 Bernd Schmidt <bernds@codesourcery.com>
366 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use
367 _bfd_elf_single_rel_hdr.
369 2010-10-01 Alan Modra <amodra@gmail.com>
372 * ldexp.c (fold_name): Treat absolute symbols as plain numbers.
373 * ld.texinfo (Expression Section): Don't say absolute symbols
376 2010-09-29 Alan Modra <amodra@gmail.com>
378 * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
379 section for orphans handled here.
381 2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
383 * configure: Regenerate.
385 2010-09-23 Dave Korn <dave.korn.cygwin@gmail.com>
387 * scripttempl/armcoff.sc: Revert 2010-09-22 change.
389 2010-09-23 Alan Modra <amodra@gmail.com>
391 * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
392 to output section on a final link.
394 2010-09-22 Kai Tietz <kai.tietz@onevision.com>
396 * ldlang.c (lang_add_section): Allow for debugging
397 section to be marked as noload but to keep content.
398 (IGNORE_SECTION): Likewise.
399 (lang_check_section_addresses): Likewise.
400 * ldwrite.c (build_link_order): Likewise.
402 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
404 * emultempl/pep.em: Likewise.
405 * scripttempl/armcoff.sc: Separate idata
406 and add __IAT_start__ and __IAT_end__ labels.
407 * scripttempl/pe.sc: Likewise.
408 * scripttempl/pep.sc: Likewise.
410 2010-09-20 David S. Miller <davem@davemloft.net>
412 * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
414 2010-09-16 Alan Modra <amodra@gmail.com>
416 * ld.texinfo (NOLOAD): Do not erroneously state that contents will
417 appear in output file.
418 * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
419 unless SEC_COFF_SHARED_LIBRARY.
420 (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
422 (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
423 to update dot in region. Ditto when setting SEC_ALLOC if dot
424 advanced due to assignment.
425 * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
427 2010-09-15 Kai Tietz <kai.tietz@onevision.com>
429 * scripttempl/pep.sc: Add .xdata segment and
430 put into .pdata all segments beginning with .pdata.
432 2010-09-10 Alan Modra <amodra@gmail.com>
435 * ldlang.h (lang_for_each_statement_worker): Declare.
436 * ldlang.c (lang_for_each_statement_worker): Make global. Don't
437 recurse into children of output_section_statement with constraint
439 (print_assignment): Handle NULL output_section->bfd_section.
440 (lang_size_sections_1): Ignore output section statement address
441 when constraint is -1.
442 * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
444 2010-09-09 Tristan Gingold <gingold@adacore.com>
446 * NEWS: Add a entry for alpha-vms.
448 2010-09-07 Andrew Burgess <aburgess@broadcom.com>
450 * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
451 newly cloned section.
453 2010-09-02 Richard Henderson <rth@redhat.com>
455 * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too.
457 2010-08-31 Nick Clifton <nickc@redhat.com>
459 * ldlex.l (WILDCHAR): Add the caret and exclamation point
460 characters, so that they can be used inside globs.
462 2010-08-31 Nick Clifton <nickc@redhat.com>
464 * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
465 a region's attributes.
467 2010-08-31 Alan Modra <amodra@gmail.com>
469 * scripttempl/mmo.sc: Move assignment to "Main" inside .text
470 output section statement.
472 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
475 * emultempl/elf32.em (_before_allocation): Check audit entry
478 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
481 * emultempl/elf32.em (_after_open): Find one .eh_frame section
484 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
487 * emultempl/elf32.em (_after_open): Find an ELF input for
488 --build-id and --eh-frame-hdr.
490 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
492 * Makefile.am (eshlelf_fd.c): Correct the name of the tool
494 * Makefile.in: Regenerate.
496 2010-08-20 Nick Clifton <nickc@redhat.com>
498 * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
501 2010-08-19 Alan Modra <amodra@gmail.com>
503 * NEWS: Mention change in linker script expression evaluation.
505 2010-08-19 Alan Modra <amodra@gmail.com>
507 * ld.texinfo (Expression Section): Detail expression evaluation.
508 (Builtin Functions <ADDR>): Correct.
509 (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
511 (Builtin Functions <SEGMENT_START>): Typo fix.
512 * ldexp.c (new_number): New function.
513 (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
514 (fold_unary <'~', '!', '-'>): Don't make_abs.
515 (fold_binary): Simplify result section logic. Return NULL section
517 (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
519 (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
520 (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
521 (fold_name <NAME>): No need to handle absolute symbols differently
523 (fold_name <ORIGIN>): Don't return valid result when
524 lang_first_phase_enum. Return new_rel_from_abs, not new_abs.
525 (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
526 (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning
527 a plain number to dot, assume the value is relative to expld.section.
528 Make terms not in an output section, absolute.
529 * ldlang.c (print_assignment): Fix style nit.
530 (lang_size_sections_1): Cope with NULL expld.result.section.
531 (lang_do_assignments_1): Likewise.
533 2010-08-12 Alan Modra <amodra@gmail.com>
535 * ldexp.c (new_rel): Remove "str". Update all call sites.
536 (exp_fold_tree_1): When assigning to dot, calculate nextdot
537 using expld.result.section rather than expld.section.
539 2010-08-06 Alan Modra <amodra@gmail.com>
542 * ldlang.c (lang_add_vers_depend): Don't leave version_needed
545 2010-07-28 Alan Modra <amodra@gmail.com>
547 * ldexp.c (exp_print_tree): Print function-like binary nodes as
548 functions rather than in-fix operators. Use fputs and fputc
551 2010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
552 Ina Pandit <ina.pandit@kpitcummins.com>
554 * configure.tgt: Match all v850 targets.
556 2010-07-20 Mike Frysinger <vapier@gentoo.org>
558 * ld.texinfo (VERSION): Remove "int" from example script and add ";".
559 Declare the default language as C.
561 2010-07-17 Alan Modra <amodra@gmail.com>
563 * ldlang.c (lang_check_section_addresses): Catch overlap for
564 sections that wrap around the address space.
566 2010-06-29 Nick Clifton <nickc@redhat.com>
568 * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
569 with the .gcc_except_table. prefix.
571 2010-06-29 Alan Modra <amodra@gmail.com>
573 * emulparams/maxqcoff.sh: Delete file.
574 * scripttempl/maxqcoff.sc: Delete file.
575 * Makefile.am: Remove references to maxq.
576 * configure.tgt: Likewise.
577 * Makefile.in: Regenerate.
578 * configure: Regenerate.
579 * po/POTFILES.in: Regenerate.
581 2010-06-27 Alan Modra <amodra@gmail.com>
583 * pe-dll.c (fill_edata): Avoid set but unused warning.
584 (pe_walk_relocs_of_symbol): Delete set but unused variables.
585 (generate_reloc, pe_implied_import_dll): Likewise.
586 * emultempl/aix.em (open_dynamic_archive): Likewise.
587 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
588 (xtensa_layout_wild): Likewise.
589 (xtensa_colocate_output_literals_callback): Likewise.
591 2010-06-25 Alan Modra <amodra@gmail.com>
593 * emultempl/ppc64elf.em (prelim_size_sections): New function.
594 (ppc_before_allocation): Use it. Size sections before toc edit too.
596 2010-06-25 Alan Modra <amodra@gmail.com>
598 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
600 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
602 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
603 auto-import and merge-rdata defaults same for i[3-7]86 and
606 2010-06-15 Joseph Myers <joseph@codesourcery.com>
608 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
610 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
613 * pe-dll.c (process_def_file_and_drectve): Reorder check for
614 forwarded export name after check for ordinary export.
616 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
618 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
620 2010-06-08 Nick Clifton <nickc@redhat.com>
622 * fdl.texi: Replace with v1.3 text.
623 * ld.texinfo: Replace abbreviated 20th century year numbers with
625 * ldint.texinfo: Likewise.
626 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
627 include of the fdl.texi file.
629 2010-06-01 Tristan Gingold <gingold@adacore.com>
631 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
632 readonly output-section. Handle LIB$INITIALIZE and sections
634 * emultempl/vms.em (vms_place_orphan): Add comments.
636 2010-05-28 Nick Clifton <nickc@redhat.com>
638 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
639 * Makefile.in: Regenerate.
641 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
644 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
645 multiple of maximum page size.
647 2010-05-25 Nick Clifton <nickc@redhat.com>
649 * Makefile.am: Fix typo.
650 * Makefile.in: Regenerate.
652 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
653 Joseph Myers <joseph@codesourcery.com>
654 Andrew Stubbs <ams@codesourcery.com>
656 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
657 (eshelf_fd.c, eshlelf_fd.c): New rules.
658 * Makefile.in: Regenerate.
659 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
661 * emulparams/shelf_fd.sh: New file.
662 * emulparams/shlelf_fd.sh: New file.
663 * emulparams/shlelf_linux.sh: Update comment.
665 2010-05-25 Jay Krell <jay.krell@cornell.edu>
668 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
669 * Makefile.in: Regenerate.
671 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
673 * deffilep.y (opt_name): Allow leading dot.
674 (dot_name): Likewise.
675 (anylang_id): Likewise.
676 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
678 (gld${EMULATION_NAME}_handle_option): Warn about v1.
679 (pep_find_data_imports): Remove superflous warnings about
681 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
682 and active pseudo-relocation-v2 rdata into data section.
683 * emultempl/pe.em (default_merge_rdata): New shell variable.
684 (MERGE_RDATA_V2): New macro.
685 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
688 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
690 * emultempl/pe.em (is_underscoring): New helper function.
691 (gld_${EMULATION_NAME}_before_parse): Replace code
692 for pe(p)_leading_underscore detection by is_underscoring.
694 (GET_INIT_SYMBOL_NAME): Likewise.
698 (gld_${EMULATION_NAME}_set_symbols):
699 * emultempl/pep.em: Likewise.
700 * pe-dll.c (pe_detail_list): Set default
701 underscoring for x64 target.
702 (pe_dll_id_target): Add initialization of
703 pe(p)_leading_underscore.
705 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
707 * pe-dll.c: Removed trailing whitespaces.
709 2010-05-14 Alan Modra <amodra@gmail.com>
712 * ldexp.c (exp_fold_tree_1): If assignment source expression is
713 invalid, make the destination symbol undefined.
715 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
717 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
718 Initialize pe(p)_leading_underscore variable.
719 (set_pe_name): Likewise.
720 * emultempl/pep.em: Likewise.
721 Additional change default to non-underscore for
722 pep_leading_underscore equal to -1.
724 2010-05-07 Tristan Gingold <gingold@adacore.com>
726 * Makefile.in: Regenerate with automake 1.11.1.
729 2010-05-05 Nick Clifton <nickc@redhat.com>
731 * po/es.po: Updated Spanish translation.
733 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
735 * pe-dll.c (_nm_-symbols): Use always underscored variant
737 (__imp_-symbols): Likewise.
738 (___imp_-symbols): Likewise.
739 * NEWS: Mention ABI change for x64 PE-COFF.
741 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
743 * Makefile.am (install-exec-local): Properly install ld as
744 default cross linker.
745 * Makefile.in: Regenerated.
747 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
748 Nick Clifton <nickc@redhat.com>
750 * configure.in (install_as_default): Define and set to true
751 unless --enable-gold=both/gold has been specified.
752 * configure: Regenerate.
754 * Makefile.am (transform): Use ld.bfd as the default name of
756 (install-exec-local): Also install the executable as a binary
757 named 'ld' if install_as_default is true.
758 * Makefile.in: Regenerate.
760 2010-04-22 Nick Clifton <nickc@redhat.com>
762 * po/ld.pot: Updated by the Translation project.
763 * po/vi.po: Updated Vietnamese translation.
764 * po/bg.po: Updated Bulgarian translation.
766 2010-04-15 Andrew Haley <aph@redhat.com>
768 * emultempl/armelf.em (merge_exidx_entries): New variable.
769 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
770 ("no-merge-exidx-entries"): New option.
771 * ld.texinfo (merge-exidx-entries): Document this option.
773 2010-04-14 Tristan Gingold <gingold@adacore.com>
775 * emulparams/alphavms.sh: New file.
776 * emultempl/vms.em: New file.
777 * scripttempl/alphavms.sc: New file.
778 * configure.tgt (alpha*-*-*vms*): Added.
779 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
780 (ealphavms.c): New target.
781 * Makefile.in: Regenerate.
783 2010-04-09 Nick Clifton <nickc@redhat.com>
785 * ldlang.c (wild_sort): Remove unused variable section_name.
787 2010-04-07 Alan Modra <amodra@gmail.com>
789 * configure: Regenerate.
791 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
794 * ld/testsuite/ld-x86-64/unique1.d: New.
795 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
797 * ld-x86-64/x86-64.exp: Run unique1.
799 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
801 * emultempl/pep.em (U): Macro modified.
802 (U_SIZE): New helper macro.
803 (GET_INIT_SYMBOL_NAME): Likewise.
804 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
805 and OPTION_LEADING_UNDERSCORE enumerator-values.
806 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
808 (definfo): Add new member is_c_symbol.
809 (D): Add to macro underscore mode parameter.
810 (init): Add definition for is_c_symbol.
811 (gld_${EMULATION_NAME}_list_options): Display new options.
812 (set_pep_name): Adjust underscoring dependent fixed
814 (gld_${EMULATION_NAME}_set_symbols): Likewise.
815 (saw_option): Likewise.
816 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
817 (set_entry_point): Initial initial_symbol_char dependent to
818 target's default and new option flag pep_leading_underscore.
819 * emultempl/pe.em (U): Macro modified.
820 (U_SIZE): New helper macro.
821 (GET_INIT_SYMBOL_NAME): Likewise.
822 (OPTION_LEADING_UNDERSCORE): Add new option define.
823 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
824 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
826 (definfo): Add new member is_c_symbol.
827 (D): Add to macro underscore mode parameter.
828 (init): Add definition for is_c_symbol.
829 (gld_${EMULATION_NAME}_list_options): Display new options.
830 (set_pep_name): Adjust underscoring dependent fixed
832 (gld_${EMULATION_NAME}_set_symbols): Likewise.
833 (saw_option): Likewise.
834 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
835 (set_entry_point): Initial initial_symbol_char dependent to
836 target's default and new option flag pep_leading_underscore.
837 * pe-dll.c (pe_leading_underscore): New flag variable.
838 (pe_detail_list): Remove const to allow modify of
840 (pe_dll_id_target): Initialize pe_details' underscore variable
841 dependent to target's default and flag pe_leading_underscore.
842 * pe-dll.h (pe_leading_underscore): Add extern declaration of
844 * pep-dll.c (pe_leading_underscore): Add alias define for
845 pep_leading_underscore.
846 * pep-dll.h (pep_leading_underscore) Add extern declaration of
848 * ld.texinfo: Add documentation for --(no-)leading-underscore
851 2010-03-26 Alan Modra <amodra@gmail.com>
854 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
855 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
857 2010-03-25 Joseph Myers <joseph@codesourcery.com>
859 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
861 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
862 * NEWS: Add news entry for TI C6X support.
863 * configure.tgt (tic6x-*-*): New.
864 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
866 2010-03-23 Joseph Myers <joseph@codesourcery.com>
868 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
869 BSS_NAME): Define if not already defined. Use in place of some
870 hardcoded section names.
872 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
874 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
876 2010-03-18 Aymeric Vincent <vincent@labri.fr>
879 * emultempl/sh64elf.em: Add missing EOF.
881 2010-03-18 Doug Semler <dougsemler@gmail.com>
883 * pe-dll.c (make_one): Make text section readonly.
884 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
885 the jump stub on X86 as /SAFESEH compatible for
888 2010-03-17 Alan Modra <amodra@gmail.com>
890 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
891 *prev instead. Update all callers.
893 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
895 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
896 region and phdrs as their placement section.
898 2010-03-15 Alan Modra <amodra@gmail.com>
900 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
901 (ppc_before_allocation): Call sort_toc_sections.
902 (no_toc_sort, OPTION_NO_TOC_SORT): New.
903 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
904 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
906 2010-03-14 Alan Modra <amodra@gmail.com>
909 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
910 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
912 2010-03-11 George Gensure <werkt0@gmail.com>
915 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
917 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
919 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
921 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
922 (eelf32_sparc_sol2.c): New rule.
923 (eelf64_sparc_sol2.c): Likewise.
924 (eelf_x86_64_sol2.c): Likewise.
925 (eelf_i386_sol2.c): Likewise.
926 * Makefile.in: Regenerate.
927 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
929 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
930 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
931 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
932 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
933 Add target_extra_emuls.
934 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
935 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
936 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
937 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
938 * emulparams/elf32_sparc_sol2.sh: New file.
939 * emulparams/elf64_sparc_sol2.sh: New file.
940 * emulparams/elf_i386_sol2.sh: New file.
941 * emulparams/elf_x86_64_sol2.sh: New file.
942 * emultempl/solaris2.em: New file.
944 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
947 * ld.texinfo: Replace explicitely with explicitly.
949 2010-02-27 Jie Zhang <jie@codesourcery.com>
951 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
952 .fini_array.* when do relocatable linking.
953 * scripttempl/elf.sc: Likewise.
954 * scripttempl/elf32sh-symbian.sc: Likewise.
955 * scripttempl/elf64hppa.sc: Likewise.
956 * scripttempl/elfxtensa.sc: Likewise.
958 2010-02-26 Alan Modra <amodra@gmail.com>
960 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
962 * scripttempl/armbpabi.sc: Likewise.
963 * scripttempl/elf32sh-symbian.sc: Likewise.
964 * scripttempl/elf64hppa.sc: Likewise.
965 * scripttempl/elfxtensa.sc: Likewise.
967 2010-02-25 Alan Modra <amodra@gmail.com>
970 * ldlang.c (init_os): Remove isec param. Don't check for
971 bfd_section already set or call bfd_init_private_section_data
973 (exp_init_os): Update init_os call.
974 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
975 flags. Call bfd_init_private_section_data here.
976 (map_input_to_output_sections): Tidy. Update init_os calls.
977 Use os->sectype to select sec flags for lang_data_statement.
979 2010-02-23 Alan Modra <amodra@gmail.com>
982 * ldlang.c: Revert last patch.
984 2010-02-23 Nick Clifton <nickc@redhat.com>
986 * po/bg.po: Updated Bulgarian translation.
988 2010-02-22 Alan Modra <amodra@gmail.com>
991 * ldlang.c (exp_init_os): Delete forward declaration.
992 (init_os): Don't check for bfd_section already created and don't
993 init addr_tree and load_base expressions here.
994 (map_input_to_output_sections): Only map input to output sections
995 and set constraints here, and as an exception, create output
996 sections which have their address set. Move all the other code to..
997 (create_other_output_sections): ..here. New function. Handle init
998 of addr_tree and load_base here too.
999 (lang_process): Call create_other_output_sections.
1001 2010-02-19 Alan Modra <amodra@gmail.com>
1003 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
1004 * Makefile.in: Regenerate.
1006 2010-02-19 Alan Modra <amodra@gmail.com>
1008 * ldlang.c (unique_section_p): Add os param. Allow group
1009 sections to match /DISCARD/. Update all callers.
1010 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
1011 (LDEMUL_BEFORE_ALLOCATION): Define.
1013 2010-02-15 Nick Clifton <nickc@redhat.com>
1015 * po/vi.po: Updated Vietnamese translation.
1017 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
1019 * Makefile.am (CFILES): Add ldlex-wrapper.c.
1020 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
1021 (ldlex.o): Replace with...
1022 (ldlex-wrapper.o): ...this new rule.
1023 (EXTRA_ld_new_SOURCES): Add ldlex.l.
1024 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
1025 * Makefile.in: Regenerate.
1026 * ldlex.l (sysdep.h): Don't include here.
1027 * ldlex-wrapper.c: New file.
1029 2010-02-09 Alan Modra <amodra@gmail.com>
1031 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
1032 function parameters.
1034 2010-02-05 Nick Clifton <nickc@redhat.com>
1036 * configure.in (ALL_LIBGUAS): Add bg.
1037 * configure: Regenerate.
1038 * po/bg.po: New Bulgarian translation.
1040 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
1042 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
1043 --target1-abs and --target1-rel options.
1045 2010-02-03 Nick Clifton <nickc@redhat.com>
1047 * emultempl/alphaelf.em: Update value expected from elf_object_id.
1048 * emultempl/hppaelf.em: Likewise.
1049 * emultempl/mipself.em: Likewise.
1050 * emultempl/ppc32elf.em: Likewise.
1051 * emultempl/ppc64elf.em: Likewise.
1053 2010-02-03 Alan Modra <amodra@gmail.com>
1055 * emultempl/ppc64elf.em (build_toc_list): Report errors from
1056 ppc64_elf_next_toc_section.
1057 (after_allocation): Update for changed function names and params.
1058 Run second pass of multitoc partitioning.
1060 2010-01-21 Jon Grant <jg@jguk.org>
1061 Nick Clifton <nickc@redhat.com>
1064 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
1065 a missing file or library. Instead mark the entry as missing and
1066 set the global flag to indicate that missing files were
1068 * ldlang.c (missing_files): New exported variable.
1069 (load_symbols): Skip loading if the file is missing.
1070 (open_input_bfds): Terminate link if any input files were
1072 * ldlang.h (struct lang_input_statement_struct): Add missing_file
1074 Add export of missing_file variable.
1076 2010-01-13 DJ Delorie <dj@redhat.com>
1078 * emultempl/elf32.em (_place_orphan): If an input section doesn't
1079 match an existing output section, but an unused output section
1080 statement does match, use it.
1081 * emultempl/pe.em (_place_orphan): Likewise.
1082 * emultempl/pep.em (_place_orphan): Likewise.
1084 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1086 * configure: Regenerate.
1087 * Makefile.in: Regenerate.
1089 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
1091 * ldver.c (ldversion): Change to "Copyright 2010".
1093 2010-01-08 Alan Modra <amodra@gmail.com>
1096 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
1098 For older changes see ChangeLog-2009
1104 version-control: never