1 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3 * emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed
4 basever_syms to global_syms.
5 Emit global_syms into .dynamic section for all executables and
7 (elf_solaris2_after_allocation): New function.
8 (LDEMUL_AFTER_ALLOCATION): Use it.
9 * emulparams/solaris2.sh: New file.
10 * emulparams/elf32_sparc_sol2.sh: Use it.
11 * emulparams/elf64_sparc_sol2.sh: Likewise.
12 * emulparams/elf_i386_sol2.sh: Likewise.
13 * emulparams/elf_x86_64_sol2.sh: Likewise.
14 * Makefile.am (eelf32_sparc_sol2.c): Depend on
15 $(srcdir)/emulparams/solaris2.sh.
16 (eelf64_sparc_sol2.c): Likewise.
17 (eelf_x86_64_sol2.c): Likewise.
18 (eelf_i386_sol2.c): Likewise.
19 * Makefile.in: Regenerate.
21 2010-10-06 Nick Clifton <nickc@redhat.com>
23 * ld.texinfo: Update description of computation of VMA and LMA
24 addresses for output sections.
26 2010-10-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28 * Makefile.am (ALL_64_EMULATIONS): Fix typo in last commit.
29 * Makefile.in: Regenerate.
31 * Makefile.am (ALL_EMULATIONS): Rewrite in terms of ...
32 (ALL_EMULATION_SOURCES): ... this new variable.
33 (ALL_64_EMULATIONS): Rewrite in terms of ...
34 (ALL_64_EMULATION_SOURCES): ... this new variable.
35 (EXTRA_ld_new_SOURCES): Rewrite in terms of the _SOURCES
37 (eelf32microblaze.c): Fix indentation.
38 * Makefile.in: Regenerate.
40 2010-10-04 Bernd Schmidt <bernds@codesourcery.com>
42 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use
43 _bfd_elf_single_rel_hdr.
45 2010-10-01 Alan Modra <amodra@gmail.com>
48 * ldexp.c (fold_name): Treat absolute symbols as plain numbers.
49 * ld.texinfo (Expression Section): Don't say absolute symbols
52 2010-09-29 Alan Modra <amodra@gmail.com>
54 * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
55 section for orphans handled here.
57 2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59 * configure: Regenerate.
61 2010-09-23 Dave Korn <dave.korn.cygwin@gmail.com>
63 * scripttempl/armcoff.sc: Revert 2010-09-22 change.
65 2010-09-23 Alan Modra <amodra@gmail.com>
67 * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
68 to output section on a final link.
70 2010-09-22 Kai Tietz <kai.tietz@onevision.com>
72 * ldlang.c (lang_add_section): Allow for debugging
73 section to be marked as noload but to keep content.
74 (IGNORE_SECTION): Likewise.
75 (lang_check_section_addresses): Likewise.
76 * ldwrite.c (build_link_order): Likewise.
78 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
80 * emultempl/pep.em: Likewise.
81 * scripttempl/armcoff.sc: Separate idata
82 and add __IAT_start__ and __IAT_end__ labels.
83 * scripttempl/pe.sc: Likewise.
84 * scripttempl/pep.sc: Likewise.
86 2010-09-20 David S. Miller <davem@davemloft.net>
88 * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
90 2010-09-16 Alan Modra <amodra@gmail.com>
92 * ld.texinfo (NOLOAD): Do not erroneously state that contents will
93 appear in output file.
94 * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
95 unless SEC_COFF_SHARED_LIBRARY.
96 (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
98 (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
99 to update dot in region. Ditto when setting SEC_ALLOC if dot
100 advanced due to assignment.
101 * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
103 2010-09-15 Kai Tietz <kai.tietz@onevision.com>
105 * scripttempl/pep.sc: Add .xdata segment and
106 put into .pdata all segments beginning with .pdata.
108 2010-09-10 Alan Modra <amodra@gmail.com>
111 * ldlang.h (lang_for_each_statement_worker): Declare.
112 * ldlang.c (lang_for_each_statement_worker): Make global. Don't
113 recurse into children of output_section_statement with constraint
115 (print_assignment): Handle NULL output_section->bfd_section.
116 (lang_size_sections_1): Ignore output section statement address
117 when constraint is -1.
118 * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
120 2010-09-09 Tristan Gingold <gingold@adacore.com>
122 * NEWS: Add a entry for alpha-vms.
124 2010-09-07 Andrew Burgess <aburgess@broadcom.com>
126 * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
127 newly cloned section.
129 2010-09-02 Richard Henderson <rth@redhat.com>
131 * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too.
133 2010-08-31 Nick Clifton <nickc@redhat.com>
135 * ldlex.l (WILDCHAR): Add the caret and exclamation point
136 characters, so that they can be used inside globs.
138 2010-08-31 Nick Clifton <nickc@redhat.com>
140 * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
141 a region's attributes.
143 2010-08-31 Alan Modra <amodra@gmail.com>
145 * scripttempl/mmo.sc: Move assignment to "Main" inside .text
146 output section statement.
148 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
151 * emultempl/elf32.em (_before_allocation): Check audit entry
154 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
157 * emultempl/elf32.em (_after_open): Find one .eh_frame section
160 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
163 * emultempl/elf32.em (_after_open): Find an ELF input for
164 --build-id and --eh-frame-hdr.
166 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
168 * Makefile.am (eshlelf_fd.c): Correct the name of the tool
170 * Makefile.in: Regenerate.
172 2010-08-20 Nick Clifton <nickc@redhat.com>
174 * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
177 2010-08-19 Alan Modra <amodra@gmail.com>
179 * NEWS: Mention change in linker script expression evaluation.
181 2010-08-19 Alan Modra <amodra@gmail.com>
183 * ld.texinfo (Expression Section): Detail expression evaluation.
184 (Builtin Functions <ADDR>): Correct.
185 (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
187 (Builtin Functions <SEGMENT_START>): Typo fix.
188 * ldexp.c (new_number): New function.
189 (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
190 (fold_unary <'~', '!', '-'>): Don't make_abs.
191 (fold_binary): Simplify result section logic. Return NULL section
193 (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
195 (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
196 (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
197 (fold_name <NAME>): No need to handle absolute symbols differently
199 (fold_name <ORIGIN>): Don't return valid result when
200 lang_first_phase_enum. Return new_rel_from_abs, not new_abs.
201 (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
202 (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning
203 a plain number to dot, assume the value is relative to expld.section.
204 Make terms not in an output section, absolute.
205 * ldlang.c (print_assignment): Fix style nit.
206 (lang_size_sections_1): Cope with NULL expld.result.section.
207 (lang_do_assignments_1): Likewise.
209 2010-08-12 Alan Modra <amodra@gmail.com>
211 * ldexp.c (new_rel): Remove "str". Update all call sites.
212 (exp_fold_tree_1): When assigning to dot, calculate nextdot
213 using expld.result.section rather than expld.section.
215 2010-08-06 Alan Modra <amodra@gmail.com>
218 * ldlang.c (lang_add_vers_depend): Don't leave version_needed
221 2010-07-28 Alan Modra <amodra@gmail.com>
223 * ldexp.c (exp_print_tree): Print function-like binary nodes as
224 functions rather than in-fix operators. Use fputs and fputc
227 2010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
228 Ina Pandit <ina.pandit@kpitcummins.com>
230 * configure.tgt: Match all v850 targets.
232 2010-07-20 Mike Frysinger <vapier@gentoo.org>
234 * ld.texinfo (VERSION): Remove "int" from example script and add ";".
235 Declare the default language as C.
237 2010-07-17 Alan Modra <amodra@gmail.com>
239 * ldlang.c (lang_check_section_addresses): Catch overlap for
240 sections that wrap around the address space.
242 2010-06-29 Nick Clifton <nickc@redhat.com>
244 * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
245 with the .gcc_except_table. prefix.
247 2010-06-29 Alan Modra <amodra@gmail.com>
249 * emulparams/maxqcoff.sh: Delete file.
250 * scripttempl/maxqcoff.sc: Delete file.
251 * Makefile.am: Remove references to maxq.
252 * configure.tgt: Likewise.
253 * Makefile.in: Regenerate.
254 * configure: Regenerate.
255 * po/POTFILES.in: Regenerate.
257 2010-06-27 Alan Modra <amodra@gmail.com>
259 * pe-dll.c (fill_edata): Avoid set but unused warning.
260 (pe_walk_relocs_of_symbol): Delete set but unused variables.
261 (generate_reloc, pe_implied_import_dll): Likewise.
262 * emultempl/aix.em (open_dynamic_archive): Likewise.
263 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
264 (xtensa_layout_wild): Likewise.
265 (xtensa_colocate_output_literals_callback): Likewise.
267 2010-06-25 Alan Modra <amodra@gmail.com>
269 * emultempl/ppc64elf.em (prelim_size_sections): New function.
270 (ppc_before_allocation): Use it. Size sections before toc edit too.
272 2010-06-25 Alan Modra <amodra@gmail.com>
274 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
276 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
278 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
279 auto-import and merge-rdata defaults same for i[3-7]86 and
282 2010-06-15 Joseph Myers <joseph@codesourcery.com>
284 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
286 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
289 * pe-dll.c (process_def_file_and_drectve): Reorder check for
290 forwarded export name after check for ordinary export.
292 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
294 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
296 2010-06-08 Nick Clifton <nickc@redhat.com>
298 * fdl.texi: Replace with v1.3 text.
299 * ld.texinfo: Replace abbreviated 20th century year numbers with
301 * ldint.texinfo: Likewise.
302 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
303 include of the fdl.texi file.
305 2010-06-01 Tristan Gingold <gingold@adacore.com>
307 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
308 readonly output-section. Handle LIB$INITIALIZE and sections
310 * emultempl/vms.em (vms_place_orphan): Add comments.
312 2010-05-28 Nick Clifton <nickc@redhat.com>
314 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
315 * Makefile.in: Regenerate.
317 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
320 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
321 multiple of maximum page size.
323 2010-05-25 Nick Clifton <nickc@redhat.com>
325 * Makefile.am: Fix typo.
326 * Makefile.in: Regenerate.
328 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
329 Joseph Myers <joseph@codesourcery.com>
330 Andrew Stubbs <ams@codesourcery.com>
332 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
333 (eshelf_fd.c, eshlelf_fd.c): New rules.
334 * Makefile.in: Regenerate.
335 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
337 * emulparams/shelf_fd.sh: New file.
338 * emulparams/shlelf_fd.sh: New file.
339 * emulparams/shlelf_linux.sh: Update comment.
341 2010-05-25 Jay Krell <jay.krell@cornell.edu>
344 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
345 * Makefile.in: Regenerate.
347 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
349 * deffilep.y (opt_name): Allow leading dot.
350 (dot_name): Likewise.
351 (anylang_id): Likewise.
352 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
354 (gld${EMULATION_NAME}_handle_option): Warn about v1.
355 (pep_find_data_imports): Remove superflous warnings about
357 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
358 and active pseudo-relocation-v2 rdata into data section.
359 * emultempl/pe.em (default_merge_rdata): New shell variable.
360 (MERGE_RDATA_V2): New macro.
361 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
364 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
366 * emultempl/pe.em (is_underscoring): New helper function.
367 (gld_${EMULATION_NAME}_before_parse): Replace code
368 for pe(p)_leading_underscore detection by is_underscoring.
370 (GET_INIT_SYMBOL_NAME): Likewise.
374 (gld_${EMULATION_NAME}_set_symbols):
375 * emultempl/pep.em: Likewise.
376 * pe-dll.c (pe_detail_list): Set default
377 underscoring for x64 target.
378 (pe_dll_id_target): Add initialization of
379 pe(p)_leading_underscore.
381 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
383 * pe-dll.c: Removed trailing whitespaces.
385 2010-05-14 Alan Modra <amodra@gmail.com>
388 * ldexp.c (exp_fold_tree_1): If assignment source expression is
389 invalid, make the destination symbol undefined.
391 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
393 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
394 Initialize pe(p)_leading_underscore variable.
395 (set_pe_name): Likewise.
396 * emultempl/pep.em: Likewise.
397 Additional change default to non-underscore for
398 pep_leading_underscore equal to -1.
400 2010-05-07 Tristan Gingold <gingold@adacore.com>
402 * Makefile.in: Regenerate with automake 1.11.1.
405 2010-05-05 Nick Clifton <nickc@redhat.com>
407 * po/es.po: Updated Spanish translation.
409 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
411 * pe-dll.c (_nm_-symbols): Use always underscored variant
413 (__imp_-symbols): Likewise.
414 (___imp_-symbols): Likewise.
415 * NEWS: Mention ABI change for x64 PE-COFF.
417 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
419 * Makefile.am (install-exec-local): Properly install ld as
420 default cross linker.
421 * Makefile.in: Regenerated.
423 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
424 Nick Clifton <nickc@redhat.com>
426 * configure.in (install_as_default): Define and set to true
427 unless --enable-gold=both/gold has been specified.
428 * configure: Regenerate.
430 * Makefile.am (transform): Use ld.bfd as the default name of
432 (install-exec-local): Also install the executable as a binary
433 named 'ld' if install_as_default is true.
434 * Makefile.in: Regenerate.
436 2010-04-22 Nick Clifton <nickc@redhat.com>
438 * po/ld.pot: Updated by the Translation project.
439 * po/vi.po: Updated Vietnamese translation.
440 * po/bg.po: Updated Bulgarian translation.
442 2010-04-15 Andrew Haley <aph@redhat.com>
444 * emultempl/armelf.em (merge_exidx_entries): New variable.
445 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
446 ("no-merge-exidx-entries"): New option.
447 * ld.texinfo (merge-exidx-entries): Document this option.
449 2010-04-14 Tristan Gingold <gingold@adacore.com>
451 * emulparams/alphavms.sh: New file.
452 * emultempl/vms.em: New file.
453 * scripttempl/alphavms.sc: New file.
454 * configure.tgt (alpha*-*-*vms*): Added.
455 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
456 (ealphavms.c): New target.
457 * Makefile.in: Regenerate.
459 2010-04-09 Nick Clifton <nickc@redhat.com>
461 * ldlang.c (wild_sort): Remove unused variable section_name.
463 2010-04-07 Alan Modra <amodra@gmail.com>
465 * configure: Regenerate.
467 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
470 * ld/testsuite/ld-x86-64/unique1.d: New.
471 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
473 * ld-x86-64/x86-64.exp: Run unique1.
475 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
477 * emultempl/pep.em (U): Macro modified.
478 (U_SIZE): New helper macro.
479 (GET_INIT_SYMBOL_NAME): Likewise.
480 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
481 and OPTION_LEADING_UNDERSCORE enumerator-values.
482 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
484 (definfo): Add new member is_c_symbol.
485 (D): Add to macro underscore mode parameter.
486 (init): Add definition for is_c_symbol.
487 (gld_${EMULATION_NAME}_list_options): Display new options.
488 (set_pep_name): Adjust underscoring dependent fixed
490 (gld_${EMULATION_NAME}_set_symbols): Likewise.
491 (saw_option): Likewise.
492 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
493 (set_entry_point): Initial initial_symbol_char dependent to
494 target's default and new option flag pep_leading_underscore.
495 * emultempl/pe.em (U): Macro modified.
496 (U_SIZE): New helper macro.
497 (GET_INIT_SYMBOL_NAME): Likewise.
498 (OPTION_LEADING_UNDERSCORE): Add new option define.
499 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
500 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
502 (definfo): Add new member is_c_symbol.
503 (D): Add to macro underscore mode parameter.
504 (init): Add definition for is_c_symbol.
505 (gld_${EMULATION_NAME}_list_options): Display new options.
506 (set_pep_name): Adjust underscoring dependent fixed
508 (gld_${EMULATION_NAME}_set_symbols): Likewise.
509 (saw_option): Likewise.
510 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
511 (set_entry_point): Initial initial_symbol_char dependent to
512 target's default and new option flag pep_leading_underscore.
513 * pe-dll.c (pe_leading_underscore): New flag variable.
514 (pe_detail_list): Remove const to allow modify of
516 (pe_dll_id_target): Initialize pe_details' underscore variable
517 dependent to target's default and flag pe_leading_underscore.
518 * pe-dll.h (pe_leading_underscore): Add extern declaration of
520 * pep-dll.c (pe_leading_underscore): Add alias define for
521 pep_leading_underscore.
522 * pep-dll.h (pep_leading_underscore) Add extern declaration of
524 * ld.texinfo: Add documentation for --(no-)leading-underscore
527 2010-03-26 Alan Modra <amodra@gmail.com>
530 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
531 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
533 2010-03-25 Joseph Myers <joseph@codesourcery.com>
535 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
537 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
538 * NEWS: Add news entry for TI C6X support.
539 * configure.tgt (tic6x-*-*): New.
540 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
542 2010-03-23 Joseph Myers <joseph@codesourcery.com>
544 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
545 BSS_NAME): Define if not already defined. Use in place of some
546 hardcoded section names.
548 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
550 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
552 2010-03-18 Aymeric Vincent <vincent@labri.fr>
555 * emultempl/sh64elf.em: Add missing EOF.
557 2010-03-18 Doug Semler <dougsemler@gmail.com>
559 * pe-dll.c (make_one): Make text section readonly.
560 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
561 the jump stub on X86 as /SAFESEH compatible for
564 2010-03-17 Alan Modra <amodra@gmail.com>
566 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
567 *prev instead. Update all callers.
569 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
571 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
572 region and phdrs as their placement section.
574 2010-03-15 Alan Modra <amodra@gmail.com>
576 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
577 (ppc_before_allocation): Call sort_toc_sections.
578 (no_toc_sort, OPTION_NO_TOC_SORT): New.
579 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
580 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
582 2010-03-14 Alan Modra <amodra@gmail.com>
585 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
586 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
588 2010-03-11 George Gensure <werkt0@gmail.com>
591 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
593 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
595 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
597 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
598 (eelf32_sparc_sol2.c): New rule.
599 (eelf64_sparc_sol2.c): Likewise.
600 (eelf_x86_64_sol2.c): Likewise.
601 (eelf_i386_sol2.c): Likewise.
602 * Makefile.in: Regenerate.
603 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
605 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
606 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
607 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
608 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
609 Add target_extra_emuls.
610 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
611 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
612 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
613 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
614 * emulparams/elf32_sparc_sol2.sh: New file.
615 * emulparams/elf64_sparc_sol2.sh: New file.
616 * emulparams/elf_i386_sol2.sh: New file.
617 * emulparams/elf_x86_64_sol2.sh: New file.
618 * emultempl/solaris2.em: New file.
620 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
623 * ld.texinfo: Replace explicitely with explicitly.
625 2010-02-27 Jie Zhang <jie@codesourcery.com>
627 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
628 .fini_array.* when do relocatable linking.
629 * scripttempl/elf.sc: Likewise.
630 * scripttempl/elf32sh-symbian.sc: Likewise.
631 * scripttempl/elf64hppa.sc: Likewise.
632 * scripttempl/elfxtensa.sc: Likewise.
634 2010-02-26 Alan Modra <amodra@gmail.com>
636 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
638 * scripttempl/armbpabi.sc: Likewise.
639 * scripttempl/elf32sh-symbian.sc: Likewise.
640 * scripttempl/elf64hppa.sc: Likewise.
641 * scripttempl/elfxtensa.sc: Likewise.
643 2010-02-25 Alan Modra <amodra@gmail.com>
646 * ldlang.c (init_os): Remove isec param. Don't check for
647 bfd_section already set or call bfd_init_private_section_data
649 (exp_init_os): Update init_os call.
650 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
651 flags. Call bfd_init_private_section_data here.
652 (map_input_to_output_sections): Tidy. Update init_os calls.
653 Use os->sectype to select sec flags for lang_data_statement.
655 2010-02-23 Alan Modra <amodra@gmail.com>
658 * ldlang.c: Revert last patch.
660 2010-02-23 Nick Clifton <nickc@redhat.com>
662 * po/bg.po: Updated Bulgarian translation.
664 2010-02-22 Alan Modra <amodra@gmail.com>
667 * ldlang.c (exp_init_os): Delete forward declaration.
668 (init_os): Don't check for bfd_section already created and don't
669 init addr_tree and load_base expressions here.
670 (map_input_to_output_sections): Only map input to output sections
671 and set constraints here, and as an exception, create output
672 sections which have their address set. Move all the other code to..
673 (create_other_output_sections): ..here. New function. Handle init
674 of addr_tree and load_base here too.
675 (lang_process): Call create_other_output_sections.
677 2010-02-19 Alan Modra <amodra@gmail.com>
679 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
680 * Makefile.in: Regenerate.
682 2010-02-19 Alan Modra <amodra@gmail.com>
684 * ldlang.c (unique_section_p): Add os param. Allow group
685 sections to match /DISCARD/. Update all callers.
686 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
687 (LDEMUL_BEFORE_ALLOCATION): Define.
689 2010-02-15 Nick Clifton <nickc@redhat.com>
691 * po/vi.po: Updated Vietnamese translation.
693 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
695 * Makefile.am (CFILES): Add ldlex-wrapper.c.
696 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
697 (ldlex.o): Replace with...
698 (ldlex-wrapper.o): ...this new rule.
699 (EXTRA_ld_new_SOURCES): Add ldlex.l.
700 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
701 * Makefile.in: Regenerate.
702 * ldlex.l (sysdep.h): Don't include here.
703 * ldlex-wrapper.c: New file.
705 2010-02-09 Alan Modra <amodra@gmail.com>
707 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
710 2010-02-05 Nick Clifton <nickc@redhat.com>
712 * configure.in (ALL_LIBGUAS): Add bg.
713 * configure: Regenerate.
714 * po/bg.po: New Bulgarian translation.
716 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
718 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
719 --target1-abs and --target1-rel options.
721 2010-02-03 Nick Clifton <nickc@redhat.com>
723 * emultempl/alphaelf.em: Update value expected from elf_object_id.
724 * emultempl/hppaelf.em: Likewise.
725 * emultempl/mipself.em: Likewise.
726 * emultempl/ppc32elf.em: Likewise.
727 * emultempl/ppc64elf.em: Likewise.
729 2010-02-03 Alan Modra <amodra@gmail.com>
731 * emultempl/ppc64elf.em (build_toc_list): Report errors from
732 ppc64_elf_next_toc_section.
733 (after_allocation): Update for changed function names and params.
734 Run second pass of multitoc partitioning.
736 2010-01-21 Jon Grant <jg@jguk.org>
737 Nick Clifton <nickc@redhat.com>
740 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
741 a missing file or library. Instead mark the entry as missing and
742 set the global flag to indicate that missing files were
744 * ldlang.c (missing_files): New exported variable.
745 (load_symbols): Skip loading if the file is missing.
746 (open_input_bfds): Terminate link if any input files were
748 * ldlang.h (struct lang_input_statement_struct): Add missing_file
750 Add export of missing_file variable.
752 2010-01-13 DJ Delorie <dj@redhat.com>
754 * emultempl/elf32.em (_place_orphan): If an input section doesn't
755 match an existing output section, but an unused output section
756 statement does match, use it.
757 * emultempl/pe.em (_place_orphan): Likewise.
758 * emultempl/pep.em (_place_orphan): Likewise.
760 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
762 * configure: Regenerate.
763 * Makefile.in: Regenerate.
765 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
767 * ldver.c (ldversion): Change to "Copyright 2010".
769 2010-01-08 Alan Modra <amodra@gmail.com>
772 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
774 For older changes see ChangeLog-2009
780 version-control: never