1 2010-12-31 Robert Millan <rmh@gnu.org>
2 Richard Sandiford <rdsandiford@googlemail.com>
4 * configure.tgt: Recognize mips-freebsd and mips-kfreebsd-gnu.
6 * emulparams/elf32btsmip_fbsd.sh: New file.
7 * emulparams/elf32btsmipn32_fbsd.sh: Likewise.
8 * emulparams/elf32ltsmip_fbsd.sh: Likewise.
9 * emulparams/elf32ltsmipn32_fbsd.sh: Likewise.
10 * emulparams/elf64btsmip_fbsd.sh: Likewise.
11 * emulparams/elf64ltsmip_fbsd.sh: Likewise.
13 * Makefile.am: Add build rules for `eelf32btsmip_fbsd.c',
14 `eelf32btsmipn32_fbsd.c', `eelf32ltsmip_fbsd.c',
15 `eelf32ltsmipn32_fbsd.c', `eelf64btsmip_fbsd.c' and
16 `eelf64ltsmip_fbsd.c'.
17 * Makefile.in: Regenerate.
19 2010-12-30 H.J. Lu <hongjiu.lu@intel.com>
21 * emulparams/elf32_x86_64.sh: New.
23 * configure.tgt (targ64_extra_emuls): Add elf32_x86_64 for
25 (targ_extra_libpath): Likewise.
26 (targ_extra_emuls): Add elf32_x86_64 for x86_64-*-linux-*.
27 (targ_extra_libpath): Likewise.
29 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64.c.
30 (eelf32_x86_64.c): New.
31 * Makefile.in: Regenerated.
33 2010-12-20 Alan Modra <amodra@gmail.com>
36 * ld.texinfo (Expression Section): Describe treatment of numbers
38 * ldemul.c (after_open_default): Look up __ld_compatibility.
39 * ldexp.c (fold_name): Convert absolute symbols to numbers when
40 inside output section definitions, or when __ld_compatibility >= 221.
41 (exp_fold_tree_1): Convert numbers to absolute when not in output
42 section definition and __ld_compatibility < 221. Don't always
43 convert values outside an output section definition to absolute.
44 * ldexp.h (uses_defined): Comment.
45 * ldlang.c (ld_compatibility): New variable.
46 * ldlang.h (ld_compatibility): Declare.
47 * emultempl/aix.em, * emultempl/armcoff.em, * emultempl/beos.em,
48 * emultempl/elf32.em, * emultempl/genelf.em, * emultempl/lnk960.em,
49 * emultempl/m68kcoff.em, * emultempl/mmo.em, * emultempl/pe.em,
50 * emultempl/pep.em, * emultempl/sunos.em, * emultempl/z80.em: Call
51 after_open_default from after_open function.
53 2010-12-20 Alan Modra <amodra@gmail.com>
56 Revert 2010-11-03 Nick Clifton
57 * ldlang.c (ldlang_def_chain_list): Delete.
58 (insert_defined, ldlang_add_def, lang_place_defineds): Delete.
59 (lang_process): Don't call lang_place_defineds.
60 (lang_add_assignment): Don't do anything special for --defsym.
62 * ldexp.h (struct ldexp_control): Add uses_defined.
63 (exp_fold_tree_no_dot): Declare.
64 * ldexp.c (exp_fold_tree): Clear uses_defined.
65 (exp_fold_tree_no_dot): Likewise. Make global.
66 (fold_name <DEFINED>): Set uses_defined.
67 (exp_fold_tree_1 <etree_assign>): Define symbol during first phase
68 even when the value being assigned isn't valid.
69 * ldlang.c (open_input_bfds): Process assignment statements.
70 (lang_process): Bump lang_statement_iteration.
71 (scan_for_self_assignment): Formatting.
72 (print_assignment): Style.
74 2010-12-15 H.J. Lu <hongjiu.lu@intel.com>
76 * Makefile.am (GENSCRIPTS): Add @enable_initfini_array@.
78 * NEWS: Mention SORT_BY_INIT_PRIORITY.
80 * configure.in: Add AC_CANONICAL_BUILD.
81 Add --enable-initfini-array.
83 * genscripts.sh (ENABLE_INITFINI_ARRAY): New.
85 * ld.h (sort_type): Add by_init_priority.
87 * ld.texinfo: Document SORT_BY_INIT_PRIORITY.
89 * ldgram.y (SORT_BY_INIT_PRIORITY): New.
90 (wildcard_spec): Handle SORT_BY_INIT_PRIORITY.
92 * ldlang.c (get_init_priority): New.
93 (compare_section): Use get_init_priority for by_init_priority.
95 * ldlex.l (SORT_BY_INIT_PRIORITY): New.
97 * scripttempl/elf.sc: Support ENABLE_INITFINI_ARRAY.
99 * Makefile.in: Regenerated.
100 * aclocal.m4: Regenerated.
101 * config.in: Likewise.
102 * configure: Likewise.
104 2010-12-13 Alan Modra <amodra@gmail.com>
106 * ldlang.c (load_symbols): Correct last change.
108 2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
110 * ldlang.c (load_symbols): Optimize for add_archive_element.
112 2010-12-09 Mike Frysinger <vapier@gentoo.org>
114 * .gitignore: New file.
116 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
118 * lexsup.c (ld_options): Add -flto and -flto-partition= for
119 GCC LTO option compatibility.
121 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
124 * plugin.c (message): Don't add the trailing `\n' for
127 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
130 * testplug.c: Remove the trailing `\n' from TV_MESSAGE.
132 2010-12-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
135 * plugin.c (message): Use putchar for the trailing `\n'.
137 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
138 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
141 * ldmain.c (main): Don't call plugin_call_cleanup.
143 * plugin.c (plugin_call_cleanup): Make it static.
144 (message): Don't call plugin_call_cleanup.
145 (plugin_load_plugins): Call xatexit with plugin_call_cleanup.
147 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
150 * plugin.c (message): Call plugin_call_cleanup on fatal
153 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
155 * plugin.c (message): Add a space after `:' in error message.
157 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
159 * plugin.c (asymbol_from_plugin_symbol): Add the trailing `\n'
161 (get_symbols): Likewise.
162 (plugin_notice): Likewise.
163 (plugin_multiple_definition): Likewise.
165 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
168 * plugin.c (message): Add the trailing `\n'.
170 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
172 * ldfile.c (ldfile_open_file_search): Check maybe_archive instead
174 * emultempl/aix.em: Likewise.
175 * emultempl/elf32.em: Likewise.
176 * emultempl/linux.em: Likewise.
177 * emultempl/pe.em: Likewise.
178 * emultempl/pep.em: Likewise.
179 * emultempl/sunos.em: Likewise.
180 * emultempl/vms.em: Likewise.
182 * ldlang.c (new_afile): Set maybe_archive instead of is_archive..
184 * ldlang.h (lang_input_statement_struct): Replace is_archive
187 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
190 * plugin.c (asymbol_from_plugin_symbol): Properly convert LTO
191 plugin visibility to ELF visibility.
192 (is_visible_from_outside): Re-indent.
194 2010-12-04 Alan Modra <amodra@gmail.com>
196 * ldlang.c (lang_size_sections_1): Align lma using same alignment
199 2010-12-03 H.J. Lu <hongjiu.lu@intel.com>
201 * lexsup.c (ld_options): Fix a typo in comments.
203 2010-12-01 H.J. Lu <hongjiu.lu@intel.com>
205 * plugin.h: Re-indent.
207 2010-11-30 Joel Sherrill <joel.sherrill@oarcorp.com>
209 * configure.tgt: Add sparc64-rtems.
211 2010-11-26 Alan Modra <amodra@gmail.com>
215 2010-11-25 Alan Modra <amodra@gmail.com>
221 * po/zh_CN.po: Update.
223 2010-11-25 Jan Hubicka <hubicka@ucw.cz>
225 * scripttempl/elf.sc: Group .text.exit, text.startup and .text.hot
228 2010-11-23 Matthias Klose <doko@ubuntu.com>
230 * configure.ac: For --enable-gold, handle value `default' instead of
231 `both*'. Always install ld as ld.gold, install as ld if gold is
233 * configure: Regenerate.
235 2010-11-21 H.J. Lu <hongjiu.lu@intel.com>
237 * ldfile.c: Re-indent plugin code.
238 * ldlang.c: Likewise.
239 * ldmain.c: Likewise.
240 * plugin.c: Likewise.
242 2010-11-20 H.J. Lu <hongjiu.lu@intel.com>
245 * plugin.c (asymbol_from_plugin_symbol): Set alignment of
246 common symbol to 1 for For ELF targets.
248 2010-11-20 H.J. Lu <hongjiu.lu@intel.com>
251 * lexsup.c (parse_args): Properly report loading plugin error.
253 2010-11-19 Dave Korn <dave.korn.cygwin@gmail.com>
255 * plugin.c (is_visible_from_outside): New function.
256 (get_symbols): Use it.
258 2010-11-16 Jie Zhang <jie.zhang@analog.com>
260 * Makefile.am (eelf32bfinfd.c, eelf32bfin.c): Depend on bfin.em.
261 * Makefile.in: Regenerated.
262 * emulparams/bfin.sh (EXTRA_EM_FILE): Set.
263 * emulparams/elf32bfinfd.sh (EXTRA_EM_FILE): Likewise.
264 * emultempl/bfin.em: New.
266 2010-11-16 Yasuaki Taniguchi <taniguchi.yasua@jp.fujitsu.com>
268 * emultempl/pe.em (_list_options): Correct typo.
269 * emultempl/pep.em (_list_options): Likewise.
271 2010-11-08 Thomas Schwinge <thomas@schwinge.name>
273 * configure.host: Add stanza for *-*-gnu*.
275 2010-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
277 * emultempl/spuelf.em (new_tmp_file): Fix wrong first parameter.
279 2010-11-05 Tristan Gingold <gingold@adacore.com>
281 * po/ld.pot: Regenerate
282 * po/POTFILES.in: Regenerate
284 2010-11-05 Tristan Gingold <gingold@adacore.com>
286 * NEWS: Add marker for 2.21.
288 2010-11-05 Dave Korn <dave.korn.cygwin@gmail.com>
290 * plugin.h (plugin_active_plugins_p): New prototype.
291 (is_ir_dummy_bfd): Delete prototype.
292 * plugin.c: Fix formatting issues.
293 (is_ir_dummy_bfd): Make static.
294 (plugin_active_plugins_p): New function.
295 * ldfile.c (ldfile_try_open_bfd): Use it to save work if no plugins
296 are loaded. Always close file descriptor after claim handler returns.
297 * ldmain.c (add_archive_element): Likewise.
299 2010-11-05 Alan Modra <amodra@gmail.com>
301 * ldlang.c (lang_add_section): Distinguish ELF treatment of NOLOAD.
302 (map_input_to_output_sections): Likewise.
303 (lang_size_sections_1): Likewise.
304 (IGNORE_SECTION): Don't test SEC_NEVER_LOAD.
305 (lang_check_section_addresses): Likewise.
307 2010-11-04 Kai Tietz <kai.tietz@onevision.com>
309 * scripttempl/pe.sc (.debug_types): New.
310 * scripttempl/pep.sc: Likewise.
312 2010-11-04 Alan Modra <amodra@gmail.com>
314 * plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd.
316 2010-11-03 Nick Clifton <nickc@redhat.com>
319 * ldlang.c (ldlang_def_chain_list): New variable. Contains a list
320 of symbols defined via the --defsym command line option and
321 currently waiting assignment.
322 (insert_defined): Add a defined symbol to the symbol table.
323 (ldlang_add_def): Add a entry to the ldlang_def_chain_list.
324 (lang_place_defineds): Walk ldlang_def_chain_list defining the
326 (lang_process): Call lang_place_defineds.
327 (lang_add_assignment): If the assignment has come from a --defsym
328 command line option then call lang_add_def.
330 2010-11-03 Alan Modra <amodra@gmail.com>
332 * Makefile.am (eelf64hppa.c): Correct dependencies.
333 * Makefile.in: Regenerate.
335 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
337 * scripttempl/armbpabi.sc: Include compressed DWARF debug
339 * scripttempl/avr.sc: Likewise.
340 * scripttempl/elf32cr16.sc: Likewise.
341 * scripttempl/elf32crx.sc: Likewise.
342 * scripttempl/elf32msp430.sc: Likewise.
343 * scripttempl/elf32msp430_3.sc: Likewise.
344 * scripttempl/elf32sh-symbian.sc: Likewise.
345 * scripttempl/elf64hppa.sc: Likewise.
346 * scripttempl/elf_chaos.sc: Likewise.
347 * scripttempl/elfd10v.sc: Likewise.
348 * scripttempl/elfd30v.sc: Likewise.
349 * scripttempl/elfi370.sc: Likewise.
350 * scripttempl/elfm68hc11.sc: Likewise.
351 * scripttempl/elfm68hc12.sc: Likewise.
352 * scripttempl/elfxtensa.sc: Likewise.
353 * scripttempl/ip2k.sc: Likewise.
354 * scripttempl/iq2000.sc: Likewise.
355 * scripttempl/mep.sc: Likewise.
356 * scripttempl/mmo.sc: Likewise.
357 * scripttempl/v850.sc: Likewise.
358 * scripttempl/xstormy16.sc: Likewise.
360 2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
362 * ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after
364 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
366 * scripttempl/elf.sc: Include compressed DWARF debug sections.
368 2010-10-28 Alan Modra <amodra@gmail.com>
370 * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.
372 2010-10-28 Matthias Klose <doko@ubuntu.com>
374 * ld.texinfo: Add directory section for info document.
375 * ldint.texinfo: Likewise.
377 2010-10-28 Alan Modra <amodra@gmail.com>
379 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For
380 --no-undefined-version, don't report dot sym versions added by ld.
382 2010-10-28 Alan Modra <amodra@gmail.com>
384 * ldlang.h (ldlang_add_undef): Add cmdline param.
385 * ldlang.c (undef_from_cmdline): New var.
386 (ldlang_add_undef): Add cmdline param. Set undef_from_cmdline.
387 (lang_end): Really require -e or -u from command line on
388 relocatable --gc-sections.
389 * ldemul.c (after_parse_default): Adjust ldlang_add_undef call.
390 * ldgram.y (extern_name_list_body): Likewise.
391 * lexsup.c (parse_args): Likewise.
392 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
394 2010-10-25 Alan Modra <amodra@gmail.com>
396 * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
399 2010-10-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
401 * emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to
403 * emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to
406 2010-10-22 Alan Modra <amodra@gmail.com>
408 * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
409 output when section has no contents.
410 (build_link_order <lang_reloc_statement_enum>): Likewise.
412 2010-10-21 Joseph Myers <joseph@codesourcery.com>
414 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use
415 .c6xabi.attributes, not __TI_build_attributes.
417 2010-10-20 Dave Korn <dave.korn.cygwin@gmail.com>
419 * plugin.c (get_symbols): Check symbol type correctly.
421 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
423 * configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
424 * configure: Regenerate.
425 * config.in: Likewise.
426 * plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
427 trival LoadLibrary-based replacement for Windows systems.
428 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
429 replacement based on GetProcAddress.
430 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
431 * sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
432 anymore, use its own guard.
434 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
436 * plugin.c (add_input_file): Take copy of input string.
437 (add_input_library): Likewise.
438 (set_extra_library_path): Likewise.
440 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
442 Apply LD plugin patch series (part 6/6).
443 * ldlang.c (load_symbols): Handle bfd subsitution when calling the
444 add_archive_element callback.
445 * ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive
446 member to the plugins and if claimed set "subsbfd" output parameter to
447 point to the dummy IR-only BFD.
449 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
451 Apply LD plugin patch series (part 5/6).
452 * plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd,
453 find the elf symbol data and set the visibility in the st_other field.
455 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
457 Apply LD plugin patch series (part 4/6).
458 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of
459 plugin_call_all_symbols_read to before setting of gc_sym_list, and
460 open any new input files that may have been added during it.
461 * ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to
462 plugin_multiple_definition and let it have first say over what to do
463 with the clashing definitions.
464 * plugin.c (no_more_claiming): New boolean variable.
465 (plugin_cached_allow_multiple_defs): Likewise.
466 (add_input_file): Implement.
467 (add_input_library): Likewise.
468 (set_extra_library_path): Likewise.
469 (plugin_call_claim_file): Don't do anything when no_more_claiming set.
470 (plugin_call_all_symbols_read): Set it. Disable link info
471 "allow_multiple_definition" flag, but cache its value.
472 (plugin_multiple_definition): New function.
473 * plugin.h (plugin_multiple_definition): Add prototype.
474 * testplug.c (addfile_enum_t): New enumerated typedef.
475 (add_file_t): New struct typedef.
476 (addfiles_list): New variable.
477 (addfiles_tail_chain_ptr): Likewise.
478 (record_add_file): New function.
479 (parse_option): Parse "add:", "lib:" and "dir:" options and call it.
480 (onall_symbols_read): Iterate the list of new files, libs and dirs,
483 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
485 Apply LD plugin patch series (part 3/6).
486 * ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice.
487 * plugin.c (non_ironly_hash): Add new bfd hash table.
488 (plugin_load_plugins): Exit early if no plugins to load. If plugins
489 do load successfully, set notice_all flag in link info.
490 (get_symbols): Implement.
491 (plugin_load_plugins): Exit early if no plugins to load, else after
492 loading plugins successfully enable notice_all mode.
493 (init_non_ironly_hash): Lazily init non_ironly_hash table.
494 (plugin_notice): Record symbols referenced from non-IR files in the
495 non_ironly_hash. Suppress tracing, cref generation and nocrossrefs
496 tracking for symbols from dummy IR bfds.
497 * plugin.h: Fix formatting.
498 (plugin_notice): Add prototype.
499 * testplug.c (dumpresolutions): New global var.
500 (parse_options): Accept "dumpresolutions".
501 (onall_symbols_read): Get syms and dump resolutions if it was given.
503 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
505 Apply LD plugin patch series (part 2/6).
506 * ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early
507 during compat checks if they pass, instead offer any successfully
508 opened and accepted file to the plugin claim file hooks chain. Create
509 a dummy bfd to accept symbols added by the plugin, if the plugin
511 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols
512 read hook chain before ldemul_after_open.
513 * ldlang.h (struct lang_input_statement_struct): Add new single-bit
515 * plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix.
516 (IRONLY_SUFFIX_LEN): Length of the above string.
517 (plugin_get_ir_dummy_bfd): New function to create the dummy bfd used
518 to store symbols for ir-only files.
519 (is_ir_dummy_bfd): New function to check if a bfd is ir-only.
520 (asymbol_from_plugin_symbol): New function converts symbol formats.
521 (add_symbols): Call it to convert plugin syms to bfd syms and add
522 them to the dummy bfd.
523 * plugin.h: Add missing include guards.
524 (plugin_get_ir_dummy_bfd): Add prototype.
525 (is_ir_dummy_bfd): Likewise.
526 * testplug.c (TV_MESSAGE): New helper macro.
527 (struct claim_file): New struct.
528 (claim_file_t): New typedef.
529 (tag_names[]): Make static and const.
530 (claimfiles_list): New variable.
531 (claimfiles_tail_chain_ptr): Likewise.
532 (last_claimfile): Likewise.
533 (record_claim_file): Record a file to claim on a singly-linked list.
534 (parse_symdefstr): Parse an ASCII representation of a symbol from a
535 plugin option into the fields of a struct ld_plugin_symbol.
536 (record_claimed_file_symbol): Use it to parse plugin option for
538 (parse_option): Parse claim file and add symbol options.
539 (dump_tv_tag): Use TV_MESSAGE.
541 (onclaim_file): Make static. Use TV_MESSAGE. Scan list of files to
542 claim and claim this file if required, adding any symbols specified.
543 (onall_symbols_read): Make static and use TV_MESSAGE.
544 (oncleanup): Likewise.
546 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
548 Apply LD plugin patch series (part 1/6).
549 * configure.in: Add AC_CHECKs for file io and dlfcn headers and
550 functions and AC_SEARCH for -ldl.
551 (enable_plugins): New shell variable set if above tests find dlopen
553 (ENABLE_PLUGINS): Add related automake conditional.
554 * configure: Regenerate.
555 * config.in: Likewise.
556 * Makefile.am (PLUGIN_C): Declare plugin C source file, conditional
557 on ENABLE_PLUGINS being defined.
558 (PLUGIN_H): Likewise for header file.
559 (PLUGIN_OBJECT): Likewise for object file.
560 (PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support.
561 (AM_CPPFLAGS): Use PLUGIN_CFLAGS.
562 (CFILES): Use PLUGIN_C.
563 (HFILES): Use PLUGIN_H.
564 (OFILES): Use PLUGIN_OBJECT.
565 (ld_new_SOURCES): Use PLUGIN_C.
566 (noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin.
567 (libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition
569 (libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise.
570 (libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise.
571 * Makefile.in: Regenerate.
572 * sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or
573 sys/file.h where available. Include dlfcn.h when ENABLE_PLUGINS.
574 (O_RDONLY): Supply default definition likewise to bfd's sysdep.h
575 (O_WRONLY): Likewise.
577 (O_ACCMODE): Likewise.
578 (O_BINARY): Likewise.
579 (SEEK_SET): Likewise.
580 (SEEK_CUR): Likewise.
581 (SEEK_END): Likewise.
582 * ldmisc.c (vfinfo): Make non-static. Add %p format char.
583 * ldmisc.h (vfinfo): Declare extern prototype.
584 * lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for
585 OPTION_PLUGIN and OPTION_PLUGIN_OPT.
586 (ld_options[])[ENABLE_PLUGINS]: Add option data for the above two.
587 (parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once
588 option parsing is complete.
589 * ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just
591 * plugin.c: New source file.
592 * plugin.h: Likewise new header.
593 * testplug.c: New source file.
595 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
597 * emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed
598 basever_syms to global_syms.
599 Emit global_syms into .dynamic section for all executables and
601 (elf_solaris2_after_allocation): New function.
602 (LDEMUL_AFTER_ALLOCATION): Use it.
603 * emulparams/solaris2.sh: New file.
604 * emulparams/elf32_sparc_sol2.sh: Use it.
605 * emulparams/elf64_sparc_sol2.sh: Likewise.
606 * emulparams/elf_i386_sol2.sh: Likewise.
607 * emulparams/elf_x86_64_sol2.sh: Likewise.
608 * Makefile.am (eelf32_sparc_sol2.c): Depend on
609 $(srcdir)/emulparams/solaris2.sh.
610 (eelf64_sparc_sol2.c): Likewise.
611 (eelf_x86_64_sol2.c): Likewise.
612 (eelf_i386_sol2.c): Likewise.
613 * Makefile.in: Regenerate.
615 2010-10-06 Nick Clifton <nickc@redhat.com>
617 * ld.texinfo: Update description of computation of VMA and LMA
618 addresses for output sections.
620 2010-10-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
622 * Makefile.am (ALL_64_EMULATIONS): Fix typo in last commit.
623 * Makefile.in: Regenerate.
625 * Makefile.am (ALL_EMULATIONS): Rewrite in terms of ...
626 (ALL_EMULATION_SOURCES): ... this new variable.
627 (ALL_64_EMULATIONS): Rewrite in terms of ...
628 (ALL_64_EMULATION_SOURCES): ... this new variable.
629 (EXTRA_ld_new_SOURCES): Rewrite in terms of the _SOURCES
631 (eelf32microblaze.c): Fix indentation.
632 * Makefile.in: Regenerate.
634 2010-10-04 Bernd Schmidt <bernds@codesourcery.com>
636 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use
637 _bfd_elf_single_rel_hdr.
639 2010-10-01 Alan Modra <amodra@gmail.com>
642 * ldexp.c (fold_name): Treat absolute symbols as plain numbers.
643 * ld.texinfo (Expression Section): Don't say absolute symbols
646 2010-09-29 Alan Modra <amodra@gmail.com>
648 * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
649 section for orphans handled here.
651 2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
653 * configure: Regenerate.
655 2010-09-23 Dave Korn <dave.korn.cygwin@gmail.com>
657 * scripttempl/armcoff.sc: Revert 2010-09-22 change.
659 2010-09-23 Alan Modra <amodra@gmail.com>
661 * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
662 to output section on a final link.
664 2010-09-22 Kai Tietz <kai.tietz@onevision.com>
666 * ldlang.c (lang_add_section): Allow for debugging
667 section to be marked as noload but to keep content.
668 (IGNORE_SECTION): Likewise.
669 (lang_check_section_addresses): Likewise.
670 * ldwrite.c (build_link_order): Likewise.
672 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
674 * emultempl/pep.em: Likewise.
675 * scripttempl/armcoff.sc: Separate idata
676 and add __IAT_start__ and __IAT_end__ labels.
677 * scripttempl/pe.sc: Likewise.
678 * scripttempl/pep.sc: Likewise.
680 2010-09-20 David S. Miller <davem@davemloft.net>
682 * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
684 2010-09-16 Alan Modra <amodra@gmail.com>
686 * ld.texinfo (NOLOAD): Do not erroneously state that contents will
687 appear in output file.
688 * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
689 unless SEC_COFF_SHARED_LIBRARY.
690 (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
692 (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
693 to update dot in region. Ditto when setting SEC_ALLOC if dot
694 advanced due to assignment.
695 * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
697 2010-09-15 Kai Tietz <kai.tietz@onevision.com>
699 * scripttempl/pep.sc: Add .xdata segment and
700 put into .pdata all segments beginning with .pdata.
702 2010-09-10 Alan Modra <amodra@gmail.com>
705 * ldlang.h (lang_for_each_statement_worker): Declare.
706 * ldlang.c (lang_for_each_statement_worker): Make global. Don't
707 recurse into children of output_section_statement with constraint
709 (print_assignment): Handle NULL output_section->bfd_section.
710 (lang_size_sections_1): Ignore output section statement address
711 when constraint is -1.
712 * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
714 2010-09-09 Tristan Gingold <gingold@adacore.com>
716 * NEWS: Add a entry for alpha-vms.
718 2010-09-07 Andrew Burgess <aburgess@broadcom.com>
720 * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
721 newly cloned section.
723 2010-09-02 Richard Henderson <rth@redhat.com>
725 * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too.
727 2010-08-31 Nick Clifton <nickc@redhat.com>
729 * ldlex.l (WILDCHAR): Add the caret and exclamation point
730 characters, so that they can be used inside globs.
732 2010-08-31 Nick Clifton <nickc@redhat.com>
734 * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
735 a region's attributes.
737 2010-08-31 Alan Modra <amodra@gmail.com>
739 * scripttempl/mmo.sc: Move assignment to "Main" inside .text
740 output section statement.
742 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
745 * emultempl/elf32.em (_before_allocation): Check audit entry
748 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
751 * emultempl/elf32.em (_after_open): Find one .eh_frame section
754 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
757 * emultempl/elf32.em (_after_open): Find an ELF input for
758 --build-id and --eh-frame-hdr.
760 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
762 * Makefile.am (eshlelf_fd.c): Correct the name of the tool
764 * Makefile.in: Regenerate.
766 2010-08-20 Nick Clifton <nickc@redhat.com>
768 * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
771 2010-08-19 Alan Modra <amodra@gmail.com>
773 * NEWS: Mention change in linker script expression evaluation.
775 2010-08-19 Alan Modra <amodra@gmail.com>
777 * ld.texinfo (Expression Section): Detail expression evaluation.
778 (Builtin Functions <ADDR>): Correct.
779 (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
781 (Builtin Functions <SEGMENT_START>): Typo fix.
782 * ldexp.c (new_number): New function.
783 (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
784 (fold_unary <'~', '!', '-'>): Don't make_abs.
785 (fold_binary): Simplify result section logic. Return NULL section
787 (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
789 (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
790 (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
791 (fold_name <NAME>): No need to handle absolute symbols differently
793 (fold_name <ORIGIN>): Don't return valid result when
794 lang_first_phase_enum. Return new_rel_from_abs, not new_abs.
795 (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
796 (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning
797 a plain number to dot, assume the value is relative to expld.section.
798 Make terms not in an output section, absolute.
799 * ldlang.c (print_assignment): Fix style nit.
800 (lang_size_sections_1): Cope with NULL expld.result.section.
801 (lang_do_assignments_1): Likewise.
803 2010-08-12 Alan Modra <amodra@gmail.com>
805 * ldexp.c (new_rel): Remove "str". Update all call sites.
806 (exp_fold_tree_1): When assigning to dot, calculate nextdot
807 using expld.result.section rather than expld.section.
809 2010-08-06 Alan Modra <amodra@gmail.com>
812 * ldlang.c (lang_add_vers_depend): Don't leave version_needed
815 2010-07-28 Alan Modra <amodra@gmail.com>
817 * ldexp.c (exp_print_tree): Print function-like binary nodes as
818 functions rather than in-fix operators. Use fputs and fputc
821 2010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
822 Ina Pandit <ina.pandit@kpitcummins.com>
824 * configure.tgt: Match all v850 targets.
826 2010-07-20 Mike Frysinger <vapier@gentoo.org>
828 * ld.texinfo (VERSION): Remove "int" from example script and add ";".
829 Declare the default language as C.
831 2010-07-17 Alan Modra <amodra@gmail.com>
833 * ldlang.c (lang_check_section_addresses): Catch overlap for
834 sections that wrap around the address space.
836 2010-06-29 Nick Clifton <nickc@redhat.com>
838 * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
839 with the .gcc_except_table. prefix.
841 2010-06-29 Alan Modra <amodra@gmail.com>
843 * emulparams/maxqcoff.sh: Delete file.
844 * scripttempl/maxqcoff.sc: Delete file.
845 * Makefile.am: Remove references to maxq.
846 * configure.tgt: Likewise.
847 * Makefile.in: Regenerate.
848 * configure: Regenerate.
849 * po/POTFILES.in: Regenerate.
851 2010-06-27 Alan Modra <amodra@gmail.com>
853 * pe-dll.c (fill_edata): Avoid set but unused warning.
854 (pe_walk_relocs_of_symbol): Delete set but unused variables.
855 (generate_reloc, pe_implied_import_dll): Likewise.
856 * emultempl/aix.em (open_dynamic_archive): Likewise.
857 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
858 (xtensa_layout_wild): Likewise.
859 (xtensa_colocate_output_literals_callback): Likewise.
861 2010-06-25 Alan Modra <amodra@gmail.com>
863 * emultempl/ppc64elf.em (prelim_size_sections): New function.
864 (ppc_before_allocation): Use it. Size sections before toc edit too.
866 2010-06-25 Alan Modra <amodra@gmail.com>
868 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
870 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
872 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
873 auto-import and merge-rdata defaults same for i[3-7]86 and
876 2010-06-15 Joseph Myers <joseph@codesourcery.com>
878 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
880 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
883 * pe-dll.c (process_def_file_and_drectve): Reorder check for
884 forwarded export name after check for ordinary export.
886 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
888 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
890 2010-06-08 Nick Clifton <nickc@redhat.com>
892 * fdl.texi: Replace with v1.3 text.
893 * ld.texinfo: Replace abbreviated 20th century year numbers with
895 * ldint.texinfo: Likewise.
896 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
897 include of the fdl.texi file.
899 2010-06-01 Tristan Gingold <gingold@adacore.com>
901 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
902 readonly output-section. Handle LIB$INITIALIZE and sections
904 * emultempl/vms.em (vms_place_orphan): Add comments.
906 2010-05-28 Nick Clifton <nickc@redhat.com>
908 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
909 * Makefile.in: Regenerate.
911 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
914 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
915 multiple of maximum page size.
917 2010-05-25 Nick Clifton <nickc@redhat.com>
919 * Makefile.am: Fix typo.
920 * Makefile.in: Regenerate.
922 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
923 Joseph Myers <joseph@codesourcery.com>
924 Andrew Stubbs <ams@codesourcery.com>
926 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
927 (eshelf_fd.c, eshlelf_fd.c): New rules.
928 * Makefile.in: Regenerate.
929 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
931 * emulparams/shelf_fd.sh: New file.
932 * emulparams/shlelf_fd.sh: New file.
933 * emulparams/shlelf_linux.sh: Update comment.
935 2010-05-25 Jay Krell <jay.krell@cornell.edu>
938 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
939 * Makefile.in: Regenerate.
941 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
943 * deffilep.y (opt_name): Allow leading dot.
944 (dot_name): Likewise.
945 (anylang_id): Likewise.
946 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
948 (gld${EMULATION_NAME}_handle_option): Warn about v1.
949 (pep_find_data_imports): Remove superflous warnings about
951 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
952 and active pseudo-relocation-v2 rdata into data section.
953 * emultempl/pe.em (default_merge_rdata): New shell variable.
954 (MERGE_RDATA_V2): New macro.
955 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
958 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
960 * emultempl/pe.em (is_underscoring): New helper function.
961 (gld_${EMULATION_NAME}_before_parse): Replace code
962 for pe(p)_leading_underscore detection by is_underscoring.
964 (GET_INIT_SYMBOL_NAME): Likewise.
968 (gld_${EMULATION_NAME}_set_symbols):
969 * emultempl/pep.em: Likewise.
970 * pe-dll.c (pe_detail_list): Set default
971 underscoring for x64 target.
972 (pe_dll_id_target): Add initialization of
973 pe(p)_leading_underscore.
975 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
977 * pe-dll.c: Removed trailing whitespaces.
979 2010-05-14 Alan Modra <amodra@gmail.com>
982 * ldexp.c (exp_fold_tree_1): If assignment source expression is
983 invalid, make the destination symbol undefined.
985 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
987 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
988 Initialize pe(p)_leading_underscore variable.
989 (set_pe_name): Likewise.
990 * emultempl/pep.em: Likewise.
991 Additional change default to non-underscore for
992 pep_leading_underscore equal to -1.
994 2010-05-07 Tristan Gingold <gingold@adacore.com>
996 * Makefile.in: Regenerate with automake 1.11.1.
999 2010-05-05 Nick Clifton <nickc@redhat.com>
1001 * po/es.po: Updated Spanish translation.
1003 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
1005 * pe-dll.c (_nm_-symbols): Use always underscored variant
1007 (__imp_-symbols): Likewise.
1008 (___imp_-symbols): Likewise.
1009 * NEWS: Mention ABI change for x64 PE-COFF.
1011 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
1013 * Makefile.am (install-exec-local): Properly install ld as
1014 default cross linker.
1015 * Makefile.in: Regenerated.
1017 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
1018 Nick Clifton <nickc@redhat.com>
1020 * configure.in (install_as_default): Define and set to true
1021 unless --enable-gold=both/gold has been specified.
1022 * configure: Regenerate.
1024 * Makefile.am (transform): Use ld.bfd as the default name of
1026 (install-exec-local): Also install the executable as a binary
1027 named 'ld' if install_as_default is true.
1028 * Makefile.in: Regenerate.
1030 2010-04-22 Nick Clifton <nickc@redhat.com>
1032 * po/ld.pot: Updated by the Translation project.
1033 * po/vi.po: Updated Vietnamese translation.
1034 * po/bg.po: Updated Bulgarian translation.
1036 2010-04-15 Andrew Haley <aph@redhat.com>
1038 * emultempl/armelf.em (merge_exidx_entries): New variable.
1039 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
1040 ("no-merge-exidx-entries"): New option.
1041 * ld.texinfo (merge-exidx-entries): Document this option.
1043 2010-04-14 Tristan Gingold <gingold@adacore.com>
1045 * emulparams/alphavms.sh: New file.
1046 * emultempl/vms.em: New file.
1047 * scripttempl/alphavms.sc: New file.
1048 * configure.tgt (alpha*-*-*vms*): Added.
1049 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
1050 (ealphavms.c): New target.
1051 * Makefile.in: Regenerate.
1053 2010-04-09 Nick Clifton <nickc@redhat.com>
1055 * ldlang.c (wild_sort): Remove unused variable section_name.
1057 2010-04-07 Alan Modra <amodra@gmail.com>
1059 * configure: Regenerate.
1061 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
1064 * ld/testsuite/ld-x86-64/unique1.d: New.
1065 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
1067 * ld-x86-64/x86-64.exp: Run unique1.
1069 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
1071 * emultempl/pep.em (U): Macro modified.
1072 (U_SIZE): New helper macro.
1073 (GET_INIT_SYMBOL_NAME): Likewise.
1074 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
1075 and OPTION_LEADING_UNDERSCORE enumerator-values.
1076 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
1078 (definfo): Add new member is_c_symbol.
1079 (D): Add to macro underscore mode parameter.
1080 (init): Add definition for is_c_symbol.
1081 (gld_${EMULATION_NAME}_list_options): Display new options.
1082 (set_pep_name): Adjust underscoring dependent fixed
1084 (gld_${EMULATION_NAME}_set_symbols): Likewise.
1085 (saw_option): Likewise.
1086 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
1087 (set_entry_point): Initial initial_symbol_char dependent to
1088 target's default and new option flag pep_leading_underscore.
1089 * emultempl/pe.em (U): Macro modified.
1090 (U_SIZE): New helper macro.
1091 (GET_INIT_SYMBOL_NAME): Likewise.
1092 (OPTION_LEADING_UNDERSCORE): Add new option define.
1093 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
1094 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
1096 (definfo): Add new member is_c_symbol.
1097 (D): Add to macro underscore mode parameter.
1098 (init): Add definition for is_c_symbol.
1099 (gld_${EMULATION_NAME}_list_options): Display new options.
1100 (set_pep_name): Adjust underscoring dependent fixed
1102 (gld_${EMULATION_NAME}_set_symbols): Likewise.
1103 (saw_option): Likewise.
1104 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
1105 (set_entry_point): Initial initial_symbol_char dependent to
1106 target's default and new option flag pep_leading_underscore.
1107 * pe-dll.c (pe_leading_underscore): New flag variable.
1108 (pe_detail_list): Remove const to allow modify of
1110 (pe_dll_id_target): Initialize pe_details' underscore variable
1111 dependent to target's default and flag pe_leading_underscore.
1112 * pe-dll.h (pe_leading_underscore): Add extern declaration of
1114 * pep-dll.c (pe_leading_underscore): Add alias define for
1115 pep_leading_underscore.
1116 * pep-dll.h (pep_leading_underscore) Add extern declaration of
1118 * ld.texinfo: Add documentation for --(no-)leading-underscore
1121 2010-03-26 Alan Modra <amodra@gmail.com>
1124 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
1125 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
1127 2010-03-25 Joseph Myers <joseph@codesourcery.com>
1129 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
1131 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
1132 * NEWS: Add news entry for TI C6X support.
1133 * configure.tgt (tic6x-*-*): New.
1134 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
1136 2010-03-23 Joseph Myers <joseph@codesourcery.com>
1138 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
1139 BSS_NAME): Define if not already defined. Use in place of some
1140 hardcoded section names.
1142 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
1144 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
1146 2010-03-18 Aymeric Vincent <vincent@labri.fr>
1149 * emultempl/sh64elf.em: Add missing EOF.
1151 2010-03-18 Doug Semler <dougsemler@gmail.com>
1153 * pe-dll.c (make_one): Make text section readonly.
1154 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
1155 the jump stub on X86 as /SAFESEH compatible for
1158 2010-03-17 Alan Modra <amodra@gmail.com>
1160 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
1161 *prev instead. Update all callers.
1163 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1165 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
1166 region and phdrs as their placement section.
1168 2010-03-15 Alan Modra <amodra@gmail.com>
1170 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
1171 (ppc_before_allocation): Call sort_toc_sections.
1172 (no_toc_sort, OPTION_NO_TOC_SORT): New.
1173 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
1174 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
1176 2010-03-14 Alan Modra <amodra@gmail.com>
1179 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
1180 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
1182 2010-03-11 George Gensure <werkt0@gmail.com>
1185 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
1187 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1189 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
1191 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
1192 (eelf32_sparc_sol2.c): New rule.
1193 (eelf64_sparc_sol2.c): Likewise.
1194 (eelf_x86_64_sol2.c): Likewise.
1195 (eelf_i386_sol2.c): Likewise.
1196 * Makefile.in: Regenerate.
1197 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
1199 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
1200 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
1201 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
1202 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
1203 Add target_extra_emuls.
1204 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
1205 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
1206 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
1207 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
1208 * emulparams/elf32_sparc_sol2.sh: New file.
1209 * emulparams/elf64_sparc_sol2.sh: New file.
1210 * emulparams/elf_i386_sol2.sh: New file.
1211 * emulparams/elf_x86_64_sol2.sh: New file.
1212 * emultempl/solaris2.em: New file.
1214 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
1217 * ld.texinfo: Replace explicitely with explicitly.
1219 2010-02-27 Jie Zhang <jie@codesourcery.com>
1221 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
1222 .fini_array.* when do relocatable linking.
1223 * scripttempl/elf.sc: Likewise.
1224 * scripttempl/elf32sh-symbian.sc: Likewise.
1225 * scripttempl/elf64hppa.sc: Likewise.
1226 * scripttempl/elfxtensa.sc: Likewise.
1228 2010-02-26 Alan Modra <amodra@gmail.com>
1230 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
1232 * scripttempl/armbpabi.sc: Likewise.
1233 * scripttempl/elf32sh-symbian.sc: Likewise.
1234 * scripttempl/elf64hppa.sc: Likewise.
1235 * scripttempl/elfxtensa.sc: Likewise.
1237 2010-02-25 Alan Modra <amodra@gmail.com>
1240 * ldlang.c (init_os): Remove isec param. Don't check for
1241 bfd_section already set or call bfd_init_private_section_data
1243 (exp_init_os): Update init_os call.
1244 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
1245 flags. Call bfd_init_private_section_data here.
1246 (map_input_to_output_sections): Tidy. Update init_os calls.
1247 Use os->sectype to select sec flags for lang_data_statement.
1249 2010-02-23 Alan Modra <amodra@gmail.com>
1252 * ldlang.c: Revert last patch.
1254 2010-02-23 Nick Clifton <nickc@redhat.com>
1256 * po/bg.po: Updated Bulgarian translation.
1258 2010-02-22 Alan Modra <amodra@gmail.com>
1261 * ldlang.c (exp_init_os): Delete forward declaration.
1262 (init_os): Don't check for bfd_section already created and don't
1263 init addr_tree and load_base expressions here.
1264 (map_input_to_output_sections): Only map input to output sections
1265 and set constraints here, and as an exception, create output
1266 sections which have their address set. Move all the other code to..
1267 (create_other_output_sections): ..here. New function. Handle init
1268 of addr_tree and load_base here too.
1269 (lang_process): Call create_other_output_sections.
1271 2010-02-19 Alan Modra <amodra@gmail.com>
1273 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
1274 * Makefile.in: Regenerate.
1276 2010-02-19 Alan Modra <amodra@gmail.com>
1278 * ldlang.c (unique_section_p): Add os param. Allow group
1279 sections to match /DISCARD/. Update all callers.
1280 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
1281 (LDEMUL_BEFORE_ALLOCATION): Define.
1283 2010-02-15 Nick Clifton <nickc@redhat.com>
1285 * po/vi.po: Updated Vietnamese translation.
1287 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
1289 * Makefile.am (CFILES): Add ldlex-wrapper.c.
1290 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
1291 (ldlex.o): Replace with...
1292 (ldlex-wrapper.o): ...this new rule.
1293 (EXTRA_ld_new_SOURCES): Add ldlex.l.
1294 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
1295 * Makefile.in: Regenerate.
1296 * ldlex.l (sysdep.h): Don't include here.
1297 * ldlex-wrapper.c: New file.
1299 2010-02-09 Alan Modra <amodra@gmail.com>
1301 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
1302 function parameters.
1304 2010-02-05 Nick Clifton <nickc@redhat.com>
1306 * configure.in (ALL_LIBGUAS): Add bg.
1307 * configure: Regenerate.
1308 * po/bg.po: New Bulgarian translation.
1310 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
1312 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
1313 --target1-abs and --target1-rel options.
1315 2010-02-03 Nick Clifton <nickc@redhat.com>
1317 * emultempl/alphaelf.em: Update value expected from elf_object_id.
1318 * emultempl/hppaelf.em: Likewise.
1319 * emultempl/mipself.em: Likewise.
1320 * emultempl/ppc32elf.em: Likewise.
1321 * emultempl/ppc64elf.em: Likewise.
1323 2010-02-03 Alan Modra <amodra@gmail.com>
1325 * emultempl/ppc64elf.em (build_toc_list): Report errors from
1326 ppc64_elf_next_toc_section.
1327 (after_allocation): Update for changed function names and params.
1328 Run second pass of multitoc partitioning.
1330 2010-01-21 Jon Grant <jg@jguk.org>
1331 Nick Clifton <nickc@redhat.com>
1334 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
1335 a missing file or library. Instead mark the entry as missing and
1336 set the global flag to indicate that missing files were
1338 * ldlang.c (missing_files): New exported variable.
1339 (load_symbols): Skip loading if the file is missing.
1340 (open_input_bfds): Terminate link if any input files were
1342 * ldlang.h (struct lang_input_statement_struct): Add missing_file
1344 Add export of missing_file variable.
1346 2010-01-13 DJ Delorie <dj@redhat.com>
1348 * emultempl/elf32.em (_place_orphan): If an input section doesn't
1349 match an existing output section, but an unused output section
1350 statement does match, use it.
1351 * emultempl/pe.em (_place_orphan): Likewise.
1352 * emultempl/pep.em (_place_orphan): Likewise.
1354 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1356 * configure: Regenerate.
1357 * Makefile.in: Regenerate.
1359 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
1361 * ldver.c (ldversion): Change to "Copyright 2010".
1363 2010-01-08 Alan Modra <amodra@gmail.com>
1366 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
1368 For older changes see ChangeLog-2009
1374 version-control: never