1 2010-12-20 Alan Modra <amodra@gmail.com>
4 * ld.texinfo (Expression Section): Describe treatment of numbers
6 * ldemul.c (after_open_default): Look up __ld_compatibility.
7 * ldexp.c (fold_name): Convert absolute symbols to numbers when
8 inside output section definitions, or when __ld_compatibility >= 221.
9 (exp_fold_tree_1): Convert numbers to absolute when not in output
10 section definition and __ld_compatibility < 221. Don't always
11 convert values outside an output section definition to absolute.
12 * ldexp.h (uses_defined): Comment.
13 * ldlang.c (ld_compatibility): New variable.
14 * ldlang.h (ld_compatibility): Declare.
15 * emultempl/aix.em, * emultempl/armcoff.em, * emultempl/beos.em,
16 * emultempl/elf32.em, * emultempl/genelf.em, * emultempl/lnk960.em,
17 * emultempl/m68kcoff.em, * emultempl/mmo.em, * emultempl/pe.em,
18 * emultempl/pep.em, * emultempl/sunos.em, * emultempl/z80.em: Call
19 after_open_default from after_open function.
21 2010-12-20 Alan Modra <amodra@gmail.com>
24 Revert 2010-11-03 Nick Clifton
25 * ldlang.c (ldlang_def_chain_list): Delete.
26 (insert_defined, ldlang_add_def, lang_place_defineds): Delete.
27 (lang_process): Don't call lang_place_defineds.
28 (lang_add_assignment): Don't do anything special for --defsym.
30 * ldexp.h (struct ldexp_control): Add uses_defined.
31 (exp_fold_tree_no_dot): Declare.
32 * ldexp.c (exp_fold_tree): Clear uses_defined.
33 (exp_fold_tree_no_dot): Likewise. Make global.
34 (fold_name <DEFINED>): Set uses_defined.
35 (exp_fold_tree_1 <etree_assign>): Define symbol during first phase
36 even when the value being assigned isn't valid.
37 * ldlang.c (open_input_bfds): Process assignment statements.
38 (lang_process): Bump lang_statement_iteration.
39 (scan_for_self_assignment): Formatting.
40 (print_assignment): Style.
42 2010-12-15 H.J. Lu <hongjiu.lu@intel.com>
44 * Makefile.am (GENSCRIPTS): Add @enable_initfini_array@.
46 * NEWS: Mention SORT_BY_INIT_PRIORITY.
48 * configure.in: Add AC_CANONICAL_BUILD.
49 Add --enable-initfini-array.
51 * genscripts.sh (ENABLE_INITFINI_ARRAY): New.
53 * ld.h (sort_type): Add by_init_priority.
55 * ld.texinfo: Document SORT_BY_INIT_PRIORITY.
57 * ldgram.y (SORT_BY_INIT_PRIORITY): New.
58 (wildcard_spec): Handle SORT_BY_INIT_PRIORITY.
60 * ldlang.c (get_init_priority): New.
61 (compare_section): Use get_init_priority for by_init_priority.
63 * ldlex.l (SORT_BY_INIT_PRIORITY): New.
65 * scripttempl/elf.sc: Support ENABLE_INITFINI_ARRAY.
67 * Makefile.in: Regenerated.
68 * aclocal.m4: Regenerated.
69 * config.in: Likewise.
70 * configure: Likewise.
72 2010-12-13 Alan Modra <amodra@gmail.com>
74 * ldlang.c (load_symbols): Correct last change.
76 2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
78 * ldlang.c (load_symbols): Optimize for add_archive_element.
80 2010-12-09 Mike Frysinger <vapier@gentoo.org>
82 * .gitignore: New file.
84 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
86 * lexsup.c (ld_options): Add -flto and -flto-partition= for
87 GCC LTO option compatibility.
89 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
92 * plugin.c (message): Don't add the trailing `\n' for
95 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
98 * testplug.c: Remove the trailing `\n' from TV_MESSAGE.
100 2010-12-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
103 * plugin.c (message): Use putchar for the trailing `\n'.
105 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
106 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
109 * ldmain.c (main): Don't call plugin_call_cleanup.
111 * plugin.c (plugin_call_cleanup): Make it static.
112 (message): Don't call plugin_call_cleanup.
113 (plugin_load_plugins): Call xatexit with plugin_call_cleanup.
115 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
118 * plugin.c (message): Call plugin_call_cleanup on fatal
121 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
123 * plugin.c (message): Add a space after `:' in error message.
125 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
127 * plugin.c (asymbol_from_plugin_symbol): Add the trailing `\n'
129 (get_symbols): Likewise.
130 (plugin_notice): Likewise.
131 (plugin_multiple_definition): Likewise.
133 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
136 * plugin.c (message): Add the trailing `\n'.
138 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
140 * ldfile.c (ldfile_open_file_search): Check maybe_archive instead
142 * emultempl/aix.em: Likewise.
143 * emultempl/elf32.em: Likewise.
144 * emultempl/linux.em: Likewise.
145 * emultempl/pe.em: Likewise.
146 * emultempl/pep.em: Likewise.
147 * emultempl/sunos.em: Likewise.
148 * emultempl/vms.em: Likewise.
150 * ldlang.c (new_afile): Set maybe_archive instead of is_archive..
152 * ldlang.h (lang_input_statement_struct): Replace is_archive
155 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
158 * plugin.c (asymbol_from_plugin_symbol): Properly convert LTO
159 plugin visibility to ELF visibility.
160 (is_visible_from_outside): Re-indent.
162 2010-12-04 Alan Modra <amodra@gmail.com>
164 * ldlang.c (lang_size_sections_1): Align lma using same alignment
167 2010-12-03 H.J. Lu <hongjiu.lu@intel.com>
169 * lexsup.c (ld_options): Fix a typo in comments.
171 2010-12-01 H.J. Lu <hongjiu.lu@intel.com>
173 * plugin.h: Re-indent.
175 2010-11-30 Joel Sherrill <joel.sherrill@oarcorp.com>
177 * configure.tgt: Add sparc64-rtems.
179 2010-11-26 Alan Modra <amodra@gmail.com>
183 2010-11-25 Alan Modra <amodra@gmail.com>
189 * po/zh_CN.po: Update.
191 2010-11-25 Jan Hubicka <hubicka@ucw.cz>
193 * scripttempl/elf.sc: Group .text.exit, text.startup and .text.hot
196 2010-11-23 Matthias Klose <doko@ubuntu.com>
198 * configure.ac: For --enable-gold, handle value `default' instead of
199 `both*'. Always install ld as ld.gold, install as ld if gold is
201 * configure: Regenerate.
203 2010-11-21 H.J. Lu <hongjiu.lu@intel.com>
205 * ldfile.c: Re-indent plugin code.
206 * ldlang.c: Likewise.
207 * ldmain.c: Likewise.
208 * plugin.c: Likewise.
210 2010-11-20 H.J. Lu <hongjiu.lu@intel.com>
213 * plugin.c (asymbol_from_plugin_symbol): Set alignment of
214 common symbol to 1 for For ELF targets.
216 2010-11-20 H.J. Lu <hongjiu.lu@intel.com>
219 * lexsup.c (parse_args): Properly report loading plugin error.
221 2010-11-19 Dave Korn <dave.korn.cygwin@gmail.com>
223 * plugin.c (is_visible_from_outside): New function.
224 (get_symbols): Use it.
226 2010-11-16 Jie Zhang <jie.zhang@analog.com>
228 * Makefile.am (eelf32bfinfd.c, eelf32bfin.c): Depend on bfin.em.
229 * Makefile.in: Regenerated.
230 * emulparams/bfin.sh (EXTRA_EM_FILE): Set.
231 * emulparams/elf32bfinfd.sh (EXTRA_EM_FILE): Likewise.
232 * emultempl/bfin.em: New.
234 2010-11-16 Yasuaki Taniguchi <taniguchi.yasua@jp.fujitsu.com>
236 * emultempl/pe.em (_list_options): Correct typo.
237 * emultempl/pep.em (_list_options): Likewise.
239 2010-11-08 Thomas Schwinge <thomas@schwinge.name>
241 * configure.host: Add stanza for *-*-gnu*.
243 2010-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
245 * emultempl/spuelf.em (new_tmp_file): Fix wrong first parameter.
247 2010-11-05 Tristan Gingold <gingold@adacore.com>
249 * po/ld.pot: Regenerate
250 * po/POTFILES.in: Regenerate
252 2010-11-05 Tristan Gingold <gingold@adacore.com>
254 * NEWS: Add marker for 2.21.
256 2010-11-05 Dave Korn <dave.korn.cygwin@gmail.com>
258 * plugin.h (plugin_active_plugins_p): New prototype.
259 (is_ir_dummy_bfd): Delete prototype.
260 * plugin.c: Fix formatting issues.
261 (is_ir_dummy_bfd): Make static.
262 (plugin_active_plugins_p): New function.
263 * ldfile.c (ldfile_try_open_bfd): Use it to save work if no plugins
264 are loaded. Always close file descriptor after claim handler returns.
265 * ldmain.c (add_archive_element): Likewise.
267 2010-11-05 Alan Modra <amodra@gmail.com>
269 * ldlang.c (lang_add_section): Distinguish ELF treatment of NOLOAD.
270 (map_input_to_output_sections): Likewise.
271 (lang_size_sections_1): Likewise.
272 (IGNORE_SECTION): Don't test SEC_NEVER_LOAD.
273 (lang_check_section_addresses): Likewise.
275 2010-11-04 Kai Tietz <kai.tietz@onevision.com>
277 * scripttempl/pe.sc (.debug_types): New.
278 * scripttempl/pep.sc: Likewise.
280 2010-11-04 Alan Modra <amodra@gmail.com>
282 * plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd.
284 2010-11-03 Nick Clifton <nickc@redhat.com>
287 * ldlang.c (ldlang_def_chain_list): New variable. Contains a list
288 of symbols defined via the --defsym command line option and
289 currently waiting assignment.
290 (insert_defined): Add a defined symbol to the symbol table.
291 (ldlang_add_def): Add a entry to the ldlang_def_chain_list.
292 (lang_place_defineds): Walk ldlang_def_chain_list defining the
294 (lang_process): Call lang_place_defineds.
295 (lang_add_assignment): If the assignment has come from a --defsym
296 command line option then call lang_add_def.
298 2010-11-03 Alan Modra <amodra@gmail.com>
300 * Makefile.am (eelf64hppa.c): Correct dependencies.
301 * Makefile.in: Regenerate.
303 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
305 * scripttempl/armbpabi.sc: Include compressed DWARF debug
307 * scripttempl/avr.sc: Likewise.
308 * scripttempl/elf32cr16.sc: Likewise.
309 * scripttempl/elf32crx.sc: Likewise.
310 * scripttempl/elf32msp430.sc: Likewise.
311 * scripttempl/elf32msp430_3.sc: Likewise.
312 * scripttempl/elf32sh-symbian.sc: Likewise.
313 * scripttempl/elf64hppa.sc: Likewise.
314 * scripttempl/elf_chaos.sc: Likewise.
315 * scripttempl/elfd10v.sc: Likewise.
316 * scripttempl/elfd30v.sc: Likewise.
317 * scripttempl/elfi370.sc: Likewise.
318 * scripttempl/elfm68hc11.sc: Likewise.
319 * scripttempl/elfm68hc12.sc: Likewise.
320 * scripttempl/elfxtensa.sc: Likewise.
321 * scripttempl/ip2k.sc: Likewise.
322 * scripttempl/iq2000.sc: Likewise.
323 * scripttempl/mep.sc: Likewise.
324 * scripttempl/mmo.sc: Likewise.
325 * scripttempl/v850.sc: Likewise.
326 * scripttempl/xstormy16.sc: Likewise.
328 2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
330 * ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after
332 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
334 * scripttempl/elf.sc: Include compressed DWARF debug sections.
336 2010-10-28 Alan Modra <amodra@gmail.com>
338 * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.
340 2010-10-28 Matthias Klose <doko@ubuntu.com>
342 * ld.texinfo: Add directory section for info document.
343 * ldint.texinfo: Likewise.
345 2010-10-28 Alan Modra <amodra@gmail.com>
347 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For
348 --no-undefined-version, don't report dot sym versions added by ld.
350 2010-10-28 Alan Modra <amodra@gmail.com>
352 * ldlang.h (ldlang_add_undef): Add cmdline param.
353 * ldlang.c (undef_from_cmdline): New var.
354 (ldlang_add_undef): Add cmdline param. Set undef_from_cmdline.
355 (lang_end): Really require -e or -u from command line on
356 relocatable --gc-sections.
357 * ldemul.c (after_parse_default): Adjust ldlang_add_undef call.
358 * ldgram.y (extern_name_list_body): Likewise.
359 * lexsup.c (parse_args): Likewise.
360 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
362 2010-10-25 Alan Modra <amodra@gmail.com>
364 * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
367 2010-10-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
369 * emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to
371 * emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to
374 2010-10-22 Alan Modra <amodra@gmail.com>
376 * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
377 output when section has no contents.
378 (build_link_order <lang_reloc_statement_enum>): Likewise.
380 2010-10-21 Joseph Myers <joseph@codesourcery.com>
382 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use
383 .c6xabi.attributes, not __TI_build_attributes.
385 2010-10-20 Dave Korn <dave.korn.cygwin@gmail.com>
387 * plugin.c (get_symbols): Check symbol type correctly.
389 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
391 * configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
392 * configure: Regenerate.
393 * config.in: Likewise.
394 * plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
395 trival LoadLibrary-based replacement for Windows systems.
396 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
397 replacement based on GetProcAddress.
398 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
399 * sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
400 anymore, use its own guard.
402 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
404 * plugin.c (add_input_file): Take copy of input string.
405 (add_input_library): Likewise.
406 (set_extra_library_path): Likewise.
408 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
410 Apply LD plugin patch series (part 6/6).
411 * ldlang.c (load_symbols): Handle bfd subsitution when calling the
412 add_archive_element callback.
413 * ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive
414 member to the plugins and if claimed set "subsbfd" output parameter to
415 point to the dummy IR-only BFD.
417 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
419 Apply LD plugin patch series (part 5/6).
420 * plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd,
421 find the elf symbol data and set the visibility in the st_other field.
423 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
425 Apply LD plugin patch series (part 4/6).
426 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of
427 plugin_call_all_symbols_read to before setting of gc_sym_list, and
428 open any new input files that may have been added during it.
429 * ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to
430 plugin_multiple_definition and let it have first say over what to do
431 with the clashing definitions.
432 * plugin.c (no_more_claiming): New boolean variable.
433 (plugin_cached_allow_multiple_defs): Likewise.
434 (add_input_file): Implement.
435 (add_input_library): Likewise.
436 (set_extra_library_path): Likewise.
437 (plugin_call_claim_file): Don't do anything when no_more_claiming set.
438 (plugin_call_all_symbols_read): Set it. Disable link info
439 "allow_multiple_definition" flag, but cache its value.
440 (plugin_multiple_definition): New function.
441 * plugin.h (plugin_multiple_definition): Add prototype.
442 * testplug.c (addfile_enum_t): New enumerated typedef.
443 (add_file_t): New struct typedef.
444 (addfiles_list): New variable.
445 (addfiles_tail_chain_ptr): Likewise.
446 (record_add_file): New function.
447 (parse_option): Parse "add:", "lib:" and "dir:" options and call it.
448 (onall_symbols_read): Iterate the list of new files, libs and dirs,
451 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
453 Apply LD plugin patch series (part 3/6).
454 * ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice.
455 * plugin.c (non_ironly_hash): Add new bfd hash table.
456 (plugin_load_plugins): Exit early if no plugins to load. If plugins
457 do load successfully, set notice_all flag in link info.
458 (get_symbols): Implement.
459 (plugin_load_plugins): Exit early if no plugins to load, else after
460 loading plugins successfully enable notice_all mode.
461 (init_non_ironly_hash): Lazily init non_ironly_hash table.
462 (plugin_notice): Record symbols referenced from non-IR files in the
463 non_ironly_hash. Suppress tracing, cref generation and nocrossrefs
464 tracking for symbols from dummy IR bfds.
465 * plugin.h: Fix formatting.
466 (plugin_notice): Add prototype.
467 * testplug.c (dumpresolutions): New global var.
468 (parse_options): Accept "dumpresolutions".
469 (onall_symbols_read): Get syms and dump resolutions if it was given.
471 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
473 Apply LD plugin patch series (part 2/6).
474 * ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early
475 during compat checks if they pass, instead offer any successfully
476 opened and accepted file to the plugin claim file hooks chain. Create
477 a dummy bfd to accept symbols added by the plugin, if the plugin
479 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols
480 read hook chain before ldemul_after_open.
481 * ldlang.h (struct lang_input_statement_struct): Add new single-bit
483 * plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix.
484 (IRONLY_SUFFIX_LEN): Length of the above string.
485 (plugin_get_ir_dummy_bfd): New function to create the dummy bfd used
486 to store symbols for ir-only files.
487 (is_ir_dummy_bfd): New function to check if a bfd is ir-only.
488 (asymbol_from_plugin_symbol): New function converts symbol formats.
489 (add_symbols): Call it to convert plugin syms to bfd syms and add
490 them to the dummy bfd.
491 * plugin.h: Add missing include guards.
492 (plugin_get_ir_dummy_bfd): Add prototype.
493 (is_ir_dummy_bfd): Likewise.
494 * testplug.c (TV_MESSAGE): New helper macro.
495 (struct claim_file): New struct.
496 (claim_file_t): New typedef.
497 (tag_names[]): Make static and const.
498 (claimfiles_list): New variable.
499 (claimfiles_tail_chain_ptr): Likewise.
500 (last_claimfile): Likewise.
501 (record_claim_file): Record a file to claim on a singly-linked list.
502 (parse_symdefstr): Parse an ASCII representation of a symbol from a
503 plugin option into the fields of a struct ld_plugin_symbol.
504 (record_claimed_file_symbol): Use it to parse plugin option for
506 (parse_option): Parse claim file and add symbol options.
507 (dump_tv_tag): Use TV_MESSAGE.
509 (onclaim_file): Make static. Use TV_MESSAGE. Scan list of files to
510 claim and claim this file if required, adding any symbols specified.
511 (onall_symbols_read): Make static and use TV_MESSAGE.
512 (oncleanup): Likewise.
514 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
516 Apply LD plugin patch series (part 1/6).
517 * configure.in: Add AC_CHECKs for file io and dlfcn headers and
518 functions and AC_SEARCH for -ldl.
519 (enable_plugins): New shell variable set if above tests find dlopen
521 (ENABLE_PLUGINS): Add related automake conditional.
522 * configure: Regenerate.
523 * config.in: Likewise.
524 * Makefile.am (PLUGIN_C): Declare plugin C source file, conditional
525 on ENABLE_PLUGINS being defined.
526 (PLUGIN_H): Likewise for header file.
527 (PLUGIN_OBJECT): Likewise for object file.
528 (PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support.
529 (AM_CPPFLAGS): Use PLUGIN_CFLAGS.
530 (CFILES): Use PLUGIN_C.
531 (HFILES): Use PLUGIN_H.
532 (OFILES): Use PLUGIN_OBJECT.
533 (ld_new_SOURCES): Use PLUGIN_C.
534 (noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin.
535 (libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition
537 (libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise.
538 (libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise.
539 * Makefile.in: Regenerate.
540 * sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or
541 sys/file.h where available. Include dlfcn.h when ENABLE_PLUGINS.
542 (O_RDONLY): Supply default definition likewise to bfd's sysdep.h
543 (O_WRONLY): Likewise.
545 (O_ACCMODE): Likewise.
546 (O_BINARY): Likewise.
547 (SEEK_SET): Likewise.
548 (SEEK_CUR): Likewise.
549 (SEEK_END): Likewise.
550 * ldmisc.c (vfinfo): Make non-static. Add %p format char.
551 * ldmisc.h (vfinfo): Declare extern prototype.
552 * lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for
553 OPTION_PLUGIN and OPTION_PLUGIN_OPT.
554 (ld_options[])[ENABLE_PLUGINS]: Add option data for the above two.
555 (parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once
556 option parsing is complete.
557 * ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just
559 * plugin.c: New source file.
560 * plugin.h: Likewise new header.
561 * testplug.c: New source file.
563 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
565 * emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed
566 basever_syms to global_syms.
567 Emit global_syms into .dynamic section for all executables and
569 (elf_solaris2_after_allocation): New function.
570 (LDEMUL_AFTER_ALLOCATION): Use it.
571 * emulparams/solaris2.sh: New file.
572 * emulparams/elf32_sparc_sol2.sh: Use it.
573 * emulparams/elf64_sparc_sol2.sh: Likewise.
574 * emulparams/elf_i386_sol2.sh: Likewise.
575 * emulparams/elf_x86_64_sol2.sh: Likewise.
576 * Makefile.am (eelf32_sparc_sol2.c): Depend on
577 $(srcdir)/emulparams/solaris2.sh.
578 (eelf64_sparc_sol2.c): Likewise.
579 (eelf_x86_64_sol2.c): Likewise.
580 (eelf_i386_sol2.c): Likewise.
581 * Makefile.in: Regenerate.
583 2010-10-06 Nick Clifton <nickc@redhat.com>
585 * ld.texinfo: Update description of computation of VMA and LMA
586 addresses for output sections.
588 2010-10-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
590 * Makefile.am (ALL_64_EMULATIONS): Fix typo in last commit.
591 * Makefile.in: Regenerate.
593 * Makefile.am (ALL_EMULATIONS): Rewrite in terms of ...
594 (ALL_EMULATION_SOURCES): ... this new variable.
595 (ALL_64_EMULATIONS): Rewrite in terms of ...
596 (ALL_64_EMULATION_SOURCES): ... this new variable.
597 (EXTRA_ld_new_SOURCES): Rewrite in terms of the _SOURCES
599 (eelf32microblaze.c): Fix indentation.
600 * Makefile.in: Regenerate.
602 2010-10-04 Bernd Schmidt <bernds@codesourcery.com>
604 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use
605 _bfd_elf_single_rel_hdr.
607 2010-10-01 Alan Modra <amodra@gmail.com>
610 * ldexp.c (fold_name): Treat absolute symbols as plain numbers.
611 * ld.texinfo (Expression Section): Don't say absolute symbols
614 2010-09-29 Alan Modra <amodra@gmail.com>
616 * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
617 section for orphans handled here.
619 2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
621 * configure: Regenerate.
623 2010-09-23 Dave Korn <dave.korn.cygwin@gmail.com>
625 * scripttempl/armcoff.sc: Revert 2010-09-22 change.
627 2010-09-23 Alan Modra <amodra@gmail.com>
629 * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
630 to output section on a final link.
632 2010-09-22 Kai Tietz <kai.tietz@onevision.com>
634 * ldlang.c (lang_add_section): Allow for debugging
635 section to be marked as noload but to keep content.
636 (IGNORE_SECTION): Likewise.
637 (lang_check_section_addresses): Likewise.
638 * ldwrite.c (build_link_order): Likewise.
640 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
642 * emultempl/pep.em: Likewise.
643 * scripttempl/armcoff.sc: Separate idata
644 and add __IAT_start__ and __IAT_end__ labels.
645 * scripttempl/pe.sc: Likewise.
646 * scripttempl/pep.sc: Likewise.
648 2010-09-20 David S. Miller <davem@davemloft.net>
650 * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
652 2010-09-16 Alan Modra <amodra@gmail.com>
654 * ld.texinfo (NOLOAD): Do not erroneously state that contents will
655 appear in output file.
656 * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
657 unless SEC_COFF_SHARED_LIBRARY.
658 (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
660 (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
661 to update dot in region. Ditto when setting SEC_ALLOC if dot
662 advanced due to assignment.
663 * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
665 2010-09-15 Kai Tietz <kai.tietz@onevision.com>
667 * scripttempl/pep.sc: Add .xdata segment and
668 put into .pdata all segments beginning with .pdata.
670 2010-09-10 Alan Modra <amodra@gmail.com>
673 * ldlang.h (lang_for_each_statement_worker): Declare.
674 * ldlang.c (lang_for_each_statement_worker): Make global. Don't
675 recurse into children of output_section_statement with constraint
677 (print_assignment): Handle NULL output_section->bfd_section.
678 (lang_size_sections_1): Ignore output section statement address
679 when constraint is -1.
680 * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
682 2010-09-09 Tristan Gingold <gingold@adacore.com>
684 * NEWS: Add a entry for alpha-vms.
686 2010-09-07 Andrew Burgess <aburgess@broadcom.com>
688 * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
689 newly cloned section.
691 2010-09-02 Richard Henderson <rth@redhat.com>
693 * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too.
695 2010-08-31 Nick Clifton <nickc@redhat.com>
697 * ldlex.l (WILDCHAR): Add the caret and exclamation point
698 characters, so that they can be used inside globs.
700 2010-08-31 Nick Clifton <nickc@redhat.com>
702 * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
703 a region's attributes.
705 2010-08-31 Alan Modra <amodra@gmail.com>
707 * scripttempl/mmo.sc: Move assignment to "Main" inside .text
708 output section statement.
710 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
713 * emultempl/elf32.em (_before_allocation): Check audit entry
716 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
719 * emultempl/elf32.em (_after_open): Find one .eh_frame section
722 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
725 * emultempl/elf32.em (_after_open): Find an ELF input for
726 --build-id and --eh-frame-hdr.
728 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
730 * Makefile.am (eshlelf_fd.c): Correct the name of the tool
732 * Makefile.in: Regenerate.
734 2010-08-20 Nick Clifton <nickc@redhat.com>
736 * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
739 2010-08-19 Alan Modra <amodra@gmail.com>
741 * NEWS: Mention change in linker script expression evaluation.
743 2010-08-19 Alan Modra <amodra@gmail.com>
745 * ld.texinfo (Expression Section): Detail expression evaluation.
746 (Builtin Functions <ADDR>): Correct.
747 (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
749 (Builtin Functions <SEGMENT_START>): Typo fix.
750 * ldexp.c (new_number): New function.
751 (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
752 (fold_unary <'~', '!', '-'>): Don't make_abs.
753 (fold_binary): Simplify result section logic. Return NULL section
755 (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
757 (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
758 (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
759 (fold_name <NAME>): No need to handle absolute symbols differently
761 (fold_name <ORIGIN>): Don't return valid result when
762 lang_first_phase_enum. Return new_rel_from_abs, not new_abs.
763 (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
764 (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning
765 a plain number to dot, assume the value is relative to expld.section.
766 Make terms not in an output section, absolute.
767 * ldlang.c (print_assignment): Fix style nit.
768 (lang_size_sections_1): Cope with NULL expld.result.section.
769 (lang_do_assignments_1): Likewise.
771 2010-08-12 Alan Modra <amodra@gmail.com>
773 * ldexp.c (new_rel): Remove "str". Update all call sites.
774 (exp_fold_tree_1): When assigning to dot, calculate nextdot
775 using expld.result.section rather than expld.section.
777 2010-08-06 Alan Modra <amodra@gmail.com>
780 * ldlang.c (lang_add_vers_depend): Don't leave version_needed
783 2010-07-28 Alan Modra <amodra@gmail.com>
785 * ldexp.c (exp_print_tree): Print function-like binary nodes as
786 functions rather than in-fix operators. Use fputs and fputc
789 2010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
790 Ina Pandit <ina.pandit@kpitcummins.com>
792 * configure.tgt: Match all v850 targets.
794 2010-07-20 Mike Frysinger <vapier@gentoo.org>
796 * ld.texinfo (VERSION): Remove "int" from example script and add ";".
797 Declare the default language as C.
799 2010-07-17 Alan Modra <amodra@gmail.com>
801 * ldlang.c (lang_check_section_addresses): Catch overlap for
802 sections that wrap around the address space.
804 2010-06-29 Nick Clifton <nickc@redhat.com>
806 * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
807 with the .gcc_except_table. prefix.
809 2010-06-29 Alan Modra <amodra@gmail.com>
811 * emulparams/maxqcoff.sh: Delete file.
812 * scripttempl/maxqcoff.sc: Delete file.
813 * Makefile.am: Remove references to maxq.
814 * configure.tgt: Likewise.
815 * Makefile.in: Regenerate.
816 * configure: Regenerate.
817 * po/POTFILES.in: Regenerate.
819 2010-06-27 Alan Modra <amodra@gmail.com>
821 * pe-dll.c (fill_edata): Avoid set but unused warning.
822 (pe_walk_relocs_of_symbol): Delete set but unused variables.
823 (generate_reloc, pe_implied_import_dll): Likewise.
824 * emultempl/aix.em (open_dynamic_archive): Likewise.
825 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
826 (xtensa_layout_wild): Likewise.
827 (xtensa_colocate_output_literals_callback): Likewise.
829 2010-06-25 Alan Modra <amodra@gmail.com>
831 * emultempl/ppc64elf.em (prelim_size_sections): New function.
832 (ppc_before_allocation): Use it. Size sections before toc edit too.
834 2010-06-25 Alan Modra <amodra@gmail.com>
836 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
838 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
840 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
841 auto-import and merge-rdata defaults same for i[3-7]86 and
844 2010-06-15 Joseph Myers <joseph@codesourcery.com>
846 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
848 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
851 * pe-dll.c (process_def_file_and_drectve): Reorder check for
852 forwarded export name after check for ordinary export.
854 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
856 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
858 2010-06-08 Nick Clifton <nickc@redhat.com>
860 * fdl.texi: Replace with v1.3 text.
861 * ld.texinfo: Replace abbreviated 20th century year numbers with
863 * ldint.texinfo: Likewise.
864 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
865 include of the fdl.texi file.
867 2010-06-01 Tristan Gingold <gingold@adacore.com>
869 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
870 readonly output-section. Handle LIB$INITIALIZE and sections
872 * emultempl/vms.em (vms_place_orphan): Add comments.
874 2010-05-28 Nick Clifton <nickc@redhat.com>
876 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
877 * Makefile.in: Regenerate.
879 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
882 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
883 multiple of maximum page size.
885 2010-05-25 Nick Clifton <nickc@redhat.com>
887 * Makefile.am: Fix typo.
888 * Makefile.in: Regenerate.
890 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
891 Joseph Myers <joseph@codesourcery.com>
892 Andrew Stubbs <ams@codesourcery.com>
894 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
895 (eshelf_fd.c, eshlelf_fd.c): New rules.
896 * Makefile.in: Regenerate.
897 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
899 * emulparams/shelf_fd.sh: New file.
900 * emulparams/shlelf_fd.sh: New file.
901 * emulparams/shlelf_linux.sh: Update comment.
903 2010-05-25 Jay Krell <jay.krell@cornell.edu>
906 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
907 * Makefile.in: Regenerate.
909 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
911 * deffilep.y (opt_name): Allow leading dot.
912 (dot_name): Likewise.
913 (anylang_id): Likewise.
914 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
916 (gld${EMULATION_NAME}_handle_option): Warn about v1.
917 (pep_find_data_imports): Remove superflous warnings about
919 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
920 and active pseudo-relocation-v2 rdata into data section.
921 * emultempl/pe.em (default_merge_rdata): New shell variable.
922 (MERGE_RDATA_V2): New macro.
923 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
926 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
928 * emultempl/pe.em (is_underscoring): New helper function.
929 (gld_${EMULATION_NAME}_before_parse): Replace code
930 for pe(p)_leading_underscore detection by is_underscoring.
932 (GET_INIT_SYMBOL_NAME): Likewise.
936 (gld_${EMULATION_NAME}_set_symbols):
937 * emultempl/pep.em: Likewise.
938 * pe-dll.c (pe_detail_list): Set default
939 underscoring for x64 target.
940 (pe_dll_id_target): Add initialization of
941 pe(p)_leading_underscore.
943 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
945 * pe-dll.c: Removed trailing whitespaces.
947 2010-05-14 Alan Modra <amodra@gmail.com>
950 * ldexp.c (exp_fold_tree_1): If assignment source expression is
951 invalid, make the destination symbol undefined.
953 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
955 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
956 Initialize pe(p)_leading_underscore variable.
957 (set_pe_name): Likewise.
958 * emultempl/pep.em: Likewise.
959 Additional change default to non-underscore for
960 pep_leading_underscore equal to -1.
962 2010-05-07 Tristan Gingold <gingold@adacore.com>
964 * Makefile.in: Regenerate with automake 1.11.1.
967 2010-05-05 Nick Clifton <nickc@redhat.com>
969 * po/es.po: Updated Spanish translation.
971 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
973 * pe-dll.c (_nm_-symbols): Use always underscored variant
975 (__imp_-symbols): Likewise.
976 (___imp_-symbols): Likewise.
977 * NEWS: Mention ABI change for x64 PE-COFF.
979 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
981 * Makefile.am (install-exec-local): Properly install ld as
982 default cross linker.
983 * Makefile.in: Regenerated.
985 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
986 Nick Clifton <nickc@redhat.com>
988 * configure.in (install_as_default): Define and set to true
989 unless --enable-gold=both/gold has been specified.
990 * configure: Regenerate.
992 * Makefile.am (transform): Use ld.bfd as the default name of
994 (install-exec-local): Also install the executable as a binary
995 named 'ld' if install_as_default is true.
996 * Makefile.in: Regenerate.
998 2010-04-22 Nick Clifton <nickc@redhat.com>
1000 * po/ld.pot: Updated by the Translation project.
1001 * po/vi.po: Updated Vietnamese translation.
1002 * po/bg.po: Updated Bulgarian translation.
1004 2010-04-15 Andrew Haley <aph@redhat.com>
1006 * emultempl/armelf.em (merge_exidx_entries): New variable.
1007 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
1008 ("no-merge-exidx-entries"): New option.
1009 * ld.texinfo (merge-exidx-entries): Document this option.
1011 2010-04-14 Tristan Gingold <gingold@adacore.com>
1013 * emulparams/alphavms.sh: New file.
1014 * emultempl/vms.em: New file.
1015 * scripttempl/alphavms.sc: New file.
1016 * configure.tgt (alpha*-*-*vms*): Added.
1017 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
1018 (ealphavms.c): New target.
1019 * Makefile.in: Regenerate.
1021 2010-04-09 Nick Clifton <nickc@redhat.com>
1023 * ldlang.c (wild_sort): Remove unused variable section_name.
1025 2010-04-07 Alan Modra <amodra@gmail.com>
1027 * configure: Regenerate.
1029 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
1032 * ld/testsuite/ld-x86-64/unique1.d: New.
1033 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
1035 * ld-x86-64/x86-64.exp: Run unique1.
1037 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
1039 * emultempl/pep.em (U): Macro modified.
1040 (U_SIZE): New helper macro.
1041 (GET_INIT_SYMBOL_NAME): Likewise.
1042 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
1043 and OPTION_LEADING_UNDERSCORE enumerator-values.
1044 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
1046 (definfo): Add new member is_c_symbol.
1047 (D): Add to macro underscore mode parameter.
1048 (init): Add definition for is_c_symbol.
1049 (gld_${EMULATION_NAME}_list_options): Display new options.
1050 (set_pep_name): Adjust underscoring dependent fixed
1052 (gld_${EMULATION_NAME}_set_symbols): Likewise.
1053 (saw_option): Likewise.
1054 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
1055 (set_entry_point): Initial initial_symbol_char dependent to
1056 target's default and new option flag pep_leading_underscore.
1057 * emultempl/pe.em (U): Macro modified.
1058 (U_SIZE): New helper macro.
1059 (GET_INIT_SYMBOL_NAME): Likewise.
1060 (OPTION_LEADING_UNDERSCORE): Add new option define.
1061 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
1062 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
1064 (definfo): Add new member is_c_symbol.
1065 (D): Add to macro underscore mode parameter.
1066 (init): Add definition for is_c_symbol.
1067 (gld_${EMULATION_NAME}_list_options): Display new options.
1068 (set_pep_name): Adjust underscoring dependent fixed
1070 (gld_${EMULATION_NAME}_set_symbols): Likewise.
1071 (saw_option): Likewise.
1072 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
1073 (set_entry_point): Initial initial_symbol_char dependent to
1074 target's default and new option flag pep_leading_underscore.
1075 * pe-dll.c (pe_leading_underscore): New flag variable.
1076 (pe_detail_list): Remove const to allow modify of
1078 (pe_dll_id_target): Initialize pe_details' underscore variable
1079 dependent to target's default and flag pe_leading_underscore.
1080 * pe-dll.h (pe_leading_underscore): Add extern declaration of
1082 * pep-dll.c (pe_leading_underscore): Add alias define for
1083 pep_leading_underscore.
1084 * pep-dll.h (pep_leading_underscore) Add extern declaration of
1086 * ld.texinfo: Add documentation for --(no-)leading-underscore
1089 2010-03-26 Alan Modra <amodra@gmail.com>
1092 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
1093 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
1095 2010-03-25 Joseph Myers <joseph@codesourcery.com>
1097 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
1099 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
1100 * NEWS: Add news entry for TI C6X support.
1101 * configure.tgt (tic6x-*-*): New.
1102 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
1104 2010-03-23 Joseph Myers <joseph@codesourcery.com>
1106 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
1107 BSS_NAME): Define if not already defined. Use in place of some
1108 hardcoded section names.
1110 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
1112 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
1114 2010-03-18 Aymeric Vincent <vincent@labri.fr>
1117 * emultempl/sh64elf.em: Add missing EOF.
1119 2010-03-18 Doug Semler <dougsemler@gmail.com>
1121 * pe-dll.c (make_one): Make text section readonly.
1122 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
1123 the jump stub on X86 as /SAFESEH compatible for
1126 2010-03-17 Alan Modra <amodra@gmail.com>
1128 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
1129 *prev instead. Update all callers.
1131 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1133 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
1134 region and phdrs as their placement section.
1136 2010-03-15 Alan Modra <amodra@gmail.com>
1138 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
1139 (ppc_before_allocation): Call sort_toc_sections.
1140 (no_toc_sort, OPTION_NO_TOC_SORT): New.
1141 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
1142 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
1144 2010-03-14 Alan Modra <amodra@gmail.com>
1147 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
1148 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
1150 2010-03-11 George Gensure <werkt0@gmail.com>
1153 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
1155 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1157 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
1159 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
1160 (eelf32_sparc_sol2.c): New rule.
1161 (eelf64_sparc_sol2.c): Likewise.
1162 (eelf_x86_64_sol2.c): Likewise.
1163 (eelf_i386_sol2.c): Likewise.
1164 * Makefile.in: Regenerate.
1165 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
1167 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
1168 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
1169 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
1170 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
1171 Add target_extra_emuls.
1172 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
1173 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
1174 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
1175 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
1176 * emulparams/elf32_sparc_sol2.sh: New file.
1177 * emulparams/elf64_sparc_sol2.sh: New file.
1178 * emulparams/elf_i386_sol2.sh: New file.
1179 * emulparams/elf_x86_64_sol2.sh: New file.
1180 * emultempl/solaris2.em: New file.
1182 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
1185 * ld.texinfo: Replace explicitely with explicitly.
1187 2010-02-27 Jie Zhang <jie@codesourcery.com>
1189 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
1190 .fini_array.* when do relocatable linking.
1191 * scripttempl/elf.sc: Likewise.
1192 * scripttempl/elf32sh-symbian.sc: Likewise.
1193 * scripttempl/elf64hppa.sc: Likewise.
1194 * scripttempl/elfxtensa.sc: Likewise.
1196 2010-02-26 Alan Modra <amodra@gmail.com>
1198 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
1200 * scripttempl/armbpabi.sc: Likewise.
1201 * scripttempl/elf32sh-symbian.sc: Likewise.
1202 * scripttempl/elf64hppa.sc: Likewise.
1203 * scripttempl/elfxtensa.sc: Likewise.
1205 2010-02-25 Alan Modra <amodra@gmail.com>
1208 * ldlang.c (init_os): Remove isec param. Don't check for
1209 bfd_section already set or call bfd_init_private_section_data
1211 (exp_init_os): Update init_os call.
1212 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
1213 flags. Call bfd_init_private_section_data here.
1214 (map_input_to_output_sections): Tidy. Update init_os calls.
1215 Use os->sectype to select sec flags for lang_data_statement.
1217 2010-02-23 Alan Modra <amodra@gmail.com>
1220 * ldlang.c: Revert last patch.
1222 2010-02-23 Nick Clifton <nickc@redhat.com>
1224 * po/bg.po: Updated Bulgarian translation.
1226 2010-02-22 Alan Modra <amodra@gmail.com>
1229 * ldlang.c (exp_init_os): Delete forward declaration.
1230 (init_os): Don't check for bfd_section already created and don't
1231 init addr_tree and load_base expressions here.
1232 (map_input_to_output_sections): Only map input to output sections
1233 and set constraints here, and as an exception, create output
1234 sections which have their address set. Move all the other code to..
1235 (create_other_output_sections): ..here. New function. Handle init
1236 of addr_tree and load_base here too.
1237 (lang_process): Call create_other_output_sections.
1239 2010-02-19 Alan Modra <amodra@gmail.com>
1241 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
1242 * Makefile.in: Regenerate.
1244 2010-02-19 Alan Modra <amodra@gmail.com>
1246 * ldlang.c (unique_section_p): Add os param. Allow group
1247 sections to match /DISCARD/. Update all callers.
1248 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
1249 (LDEMUL_BEFORE_ALLOCATION): Define.
1251 2010-02-15 Nick Clifton <nickc@redhat.com>
1253 * po/vi.po: Updated Vietnamese translation.
1255 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
1257 * Makefile.am (CFILES): Add ldlex-wrapper.c.
1258 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
1259 (ldlex.o): Replace with...
1260 (ldlex-wrapper.o): ...this new rule.
1261 (EXTRA_ld_new_SOURCES): Add ldlex.l.
1262 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
1263 * Makefile.in: Regenerate.
1264 * ldlex.l (sysdep.h): Don't include here.
1265 * ldlex-wrapper.c: New file.
1267 2010-02-09 Alan Modra <amodra@gmail.com>
1269 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
1270 function parameters.
1272 2010-02-05 Nick Clifton <nickc@redhat.com>
1274 * configure.in (ALL_LIBGUAS): Add bg.
1275 * configure: Regenerate.
1276 * po/bg.po: New Bulgarian translation.
1278 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
1280 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
1281 --target1-abs and --target1-rel options.
1283 2010-02-03 Nick Clifton <nickc@redhat.com>
1285 * emultempl/alphaelf.em: Update value expected from elf_object_id.
1286 * emultempl/hppaelf.em: Likewise.
1287 * emultempl/mipself.em: Likewise.
1288 * emultempl/ppc32elf.em: Likewise.
1289 * emultempl/ppc64elf.em: Likewise.
1291 2010-02-03 Alan Modra <amodra@gmail.com>
1293 * emultempl/ppc64elf.em (build_toc_list): Report errors from
1294 ppc64_elf_next_toc_section.
1295 (after_allocation): Update for changed function names and params.
1296 Run second pass of multitoc partitioning.
1298 2010-01-21 Jon Grant <jg@jguk.org>
1299 Nick Clifton <nickc@redhat.com>
1302 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
1303 a missing file or library. Instead mark the entry as missing and
1304 set the global flag to indicate that missing files were
1306 * ldlang.c (missing_files): New exported variable.
1307 (load_symbols): Skip loading if the file is missing.
1308 (open_input_bfds): Terminate link if any input files were
1310 * ldlang.h (struct lang_input_statement_struct): Add missing_file
1312 Add export of missing_file variable.
1314 2010-01-13 DJ Delorie <dj@redhat.com>
1316 * emultempl/elf32.em (_place_orphan): If an input section doesn't
1317 match an existing output section, but an unused output section
1318 statement does match, use it.
1319 * emultempl/pe.em (_place_orphan): Likewise.
1320 * emultempl/pep.em (_place_orphan): Likewise.
1322 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1324 * configure: Regenerate.
1325 * Makefile.in: Regenerate.
1327 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
1329 * ldver.c (ldversion): Change to "Copyright 2010".
1331 2010-01-08 Alan Modra <amodra@gmail.com>
1334 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
1336 For older changes see ChangeLog-2009
1342 version-control: never