1 2010-08-06 Alan Modra <amodra@gmail.com>
4 * ldlang.c (lang_add_vers_depend): Don't leave version_needed
7 2010-07-28 Alan Modra <amodra@gmail.com>
9 * ldexp.c (exp_print_tree): Print function-like binary nodes as
10 functions rather than in-fix operators. Use fputs and fputc
13 2010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
14 Ina Pandit <ina.pandit@kpitcummins.com>
16 * configure.tgt: Match all v850 targets.
18 2010-07-20 Mike Frysinger <vapier@gentoo.org>
20 * ld.texinfo (VERSION): Remove "int" from example script and add ";".
21 Declare the default language as C.
23 2010-07-17 Alan Modra <amodra@gmail.com>
25 * ldlang.c (lang_check_section_addresses): Catch overlap for
26 sections that wrap around the address space.
28 2010-06-29 Nick Clifton <nickc@redhat.com>
30 * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
31 with the .gcc_except_table. prefix.
33 2010-06-29 Alan Modra <amodra@gmail.com>
35 * emulparams/maxqcoff.sh: Delete file.
36 * scripttempl/maxqcoff.sc: Delete file.
37 * Makefile.am: Remove references to maxq.
38 * configure.tgt: Likewise.
39 * Makefile.in: Regenerate.
40 * configure: Regenerate.
41 * po/POTFILES.in: Regenerate.
43 2010-06-27 Alan Modra <amodra@gmail.com>
45 * pe-dll.c (fill_edata): Avoid set but unused warning.
46 (pe_walk_relocs_of_symbol): Delete set but unused variables.
47 (generate_reloc, pe_implied_import_dll): Likewise.
48 * emultempl/aix.em (open_dynamic_archive): Likewise.
49 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
50 (xtensa_layout_wild): Likewise.
51 (xtensa_colocate_output_literals_callback): Likewise.
53 2010-06-25 Alan Modra <amodra@gmail.com>
55 * emultempl/ppc64elf.em (prelim_size_sections): New function.
56 (ppc_before_allocation): Use it. Size sections before toc edit too.
58 2010-06-25 Alan Modra <amodra@gmail.com>
60 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
62 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
64 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
65 auto-import and merge-rdata defaults same for i[3-7]86 and
68 2010-06-15 Joseph Myers <joseph@codesourcery.com>
70 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
72 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
75 * pe-dll.c (process_def_file_and_drectve): Reorder check for
76 forwarded export name after check for ordinary export.
78 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
80 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
82 2010-06-08 Nick Clifton <nickc@redhat.com>
84 * fdl.texi: Replace with v1.3 text.
85 * ld.texinfo: Replace abbreviated 20th century year numbers with
87 * ldint.texinfo: Likewise.
88 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
89 include of the fdl.texi file.
91 2010-06-01 Tristan Gingold <gingold@adacore.com>
93 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
94 readonly output-section. Handle LIB$INITIALIZE and sections
96 * emultempl/vms.em (vms_place_orphan): Add comments.
98 2010-05-28 Nick Clifton <nickc@redhat.com>
100 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
101 * Makefile.in: Regenerate.
103 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
106 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
107 multiple of maximum page size.
109 2010-05-25 Nick Clifton <nickc@redhat.com>
111 * Makefile.am: Fix typo.
112 * Makefile.in: Regenerate.
114 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
115 Joseph Myers <joseph@codesourcery.com>
116 Andrew Stubbs <ams@codesourcery.com>
118 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
119 (eshelf_fd.c, eshlelf_fd.c): New rules.
120 * Makefile.in: Regenerate.
121 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
123 * emulparams/shelf_fd.sh: New file.
124 * emulparams/shlelf_fd.sh: New file.
125 * emulparams/shlelf_linux.sh: Update comment.
127 2010-05-25 Jay Krell <jay.krell@cornell.edu>
130 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
131 * Makefile.in: Regenerate.
133 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
135 * deffilep.y (opt_name): Allow leading dot.
136 (dot_name): Likewise.
137 (anylang_id): Likewise.
138 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
140 (gld${EMULATION_NAME}_handle_option): Warn about v1.
141 (pep_find_data_imports): Remove superflous warnings about
143 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
144 and active pseudo-relocation-v2 rdata into data section.
145 * emultempl/pe.em (default_merge_rdata): New shell variable.
146 (MERGE_RDATA_V2): New macro.
147 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
150 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
152 * emultempl/pe.em (is_underscoring): New helper function.
153 (gld_${EMULATION_NAME}_before_parse): Replace code
154 for pe(p)_leading_underscore detection by is_underscoring.
156 (GET_INIT_SYMBOL_NAME): Likewise.
160 (gld_${EMULATION_NAME}_set_symbols):
161 * emultempl/pep.em: Likewise.
162 * pe-dll.c (pe_detail_list): Set default
163 underscoring for x64 target.
164 (pe_dll_id_target): Add initialization of
165 pe(p)_leading_underscore.
167 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
169 * pe-dll.c: Removed trailing whitespaces.
171 2010-05-14 Alan Modra <amodra@gmail.com>
174 * ldexp.c (exp_fold_tree_1): If assignment source expression is
175 invalid, make the destination symbol undefined.
177 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
179 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
180 Initialize pe(p)_leading_underscore variable.
181 (set_pe_name): Likewise.
182 * emultempl/pep.em: Likewise.
183 Additional change default to non-underscore for
184 pep_leading_underscore equal to -1.
186 2010-05-07 Tristan Gingold <gingold@adacore.com>
188 * Makefile.in: Regenerate with automake 1.11.1.
191 2010-05-05 Nick Clifton <nickc@redhat.com>
193 * po/es.po: Updated Spanish translation.
195 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
197 * pe-dll.c (_nm_-symbols): Use always underscored variant
199 (__imp_-symbols): Likewise.
200 (___imp_-symbols): Likewise.
201 * NEWS: Mention ABI change for x64 PE-COFF.
203 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
205 * Makefile.am (install-exec-local): Properly install ld as
206 default cross linker.
207 * Makefile.in: Regenerated.
209 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
210 Nick Clifton <nickc@redhat.com>
212 * configure.in (install_as_default): Define and set to true
213 unless --enable-gold=both/gold has been specified.
214 * configure: Regenerate.
216 * Makefile.am (transform): Use ld.bfd as the default name of
218 (install-exec-local): Also install the executable as a binary
219 named 'ld' if install_as_default is true.
220 * Makefile.in: Regenerate.
222 2010-04-22 Nick Clifton <nickc@redhat.com>
224 * po/ld.pot: Updated by the Translation project.
225 * po/vi.po: Updated Vietnamese translation.
226 * po/bg.po: Updated Bulgarian translation.
228 2010-04-15 Andrew Haley <aph@redhat.com>
230 * emultempl/armelf.em (merge_exidx_entries): New variable.
231 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
232 ("no-merge-exidx-entries"): New option.
233 * ld.texinfo (merge-exidx-entries): Document this option.
235 2010-04-14 Tristan Gingold <gingold@adacore.com>
237 * emulparams/alphavms.sh: New file.
238 * emultempl/vms.em: New file.
239 * scripttempl/alphavms.sc: New file.
240 * configure.tgt (alpha*-*-*vms*): Added.
241 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
242 (ealphavms.c): New target.
243 * Makefile.in: Regenerate.
245 2010-04-09 Nick Clifton <nickc@redhat.com>
247 * ldlang.c (wild_sort): Remove unused variable section_name.
249 2010-04-07 Alan Modra <amodra@gmail.com>
251 * configure: Regenerate.
253 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
256 * ld/testsuite/ld-x86-64/unique1.d: New.
257 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
259 * ld-x86-64/x86-64.exp: Run unique1.
261 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
263 * emultempl/pep.em (U): Macro modified.
264 (U_SIZE): New helper macro.
265 (GET_INIT_SYMBOL_NAME): Likewise.
266 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
267 and OPTION_LEADING_UNDERSCORE enumerator-values.
268 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
270 (definfo): Add new member is_c_symbol.
271 (D): Add to macro underscore mode parameter.
272 (init): Add definition for is_c_symbol.
273 (gld_${EMULATION_NAME}_list_options): Display new options.
274 (set_pep_name): Adjust underscoring dependent fixed
276 (gld_${EMULATION_NAME}_set_symbols): Likewise.
277 (saw_option): Likewise.
278 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
279 (set_entry_point): Initial initial_symbol_char dependent to
280 target's default and new option flag pep_leading_underscore.
281 * emultempl/pe.em (U): Macro modified.
282 (U_SIZE): New helper macro.
283 (GET_INIT_SYMBOL_NAME): Likewise.
284 (OPTION_LEADING_UNDERSCORE): Add new option define.
285 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
286 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
288 (definfo): Add new member is_c_symbol.
289 (D): Add to macro underscore mode parameter.
290 (init): Add definition for is_c_symbol.
291 (gld_${EMULATION_NAME}_list_options): Display new options.
292 (set_pep_name): Adjust underscoring dependent fixed
294 (gld_${EMULATION_NAME}_set_symbols): Likewise.
295 (saw_option): Likewise.
296 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
297 (set_entry_point): Initial initial_symbol_char dependent to
298 target's default and new option flag pep_leading_underscore.
299 * pe-dll.c (pe_leading_underscore): New flag variable.
300 (pe_detail_list): Remove const to allow modify of
302 (pe_dll_id_target): Initialize pe_details' underscore variable
303 dependent to target's default and flag pe_leading_underscore.
304 * pe-dll.h (pe_leading_underscore): Add extern declaration of
306 * pep-dll.c (pe_leading_underscore): Add alias define for
307 pep_leading_underscore.
308 * pep-dll.h (pep_leading_underscore) Add extern declaration of
310 * ld.texinfo: Add documentation for --(no-)leading-underscore
313 2010-03-26 Alan Modra <amodra@gmail.com>
316 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
317 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
319 2010-03-25 Joseph Myers <joseph@codesourcery.com>
321 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
323 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
324 * NEWS: Add news entry for TI C6X support.
325 * configure.tgt (tic6x-*-*): New.
326 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
328 2010-03-23 Joseph Myers <joseph@codesourcery.com>
330 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
331 BSS_NAME): Define if not already defined. Use in place of some
332 hardcoded section names.
334 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
336 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
338 2010-03-18 Aymeric Vincent <vincent@labri.fr>
341 * emultempl/sh64elf.em: Add missing EOF.
343 2010-03-18 Doug Semler <dougsemler@gmail.com>
345 * pe-dll.c (make_one): Make text section readonly.
346 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
347 the jump stub on X86 as /SAFESEH compatible for
350 2010-03-17 Alan Modra <amodra@gmail.com>
352 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
353 *prev instead. Update all callers.
355 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
357 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
358 region and phdrs as their placement section.
360 2010-03-15 Alan Modra <amodra@gmail.com>
362 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
363 (ppc_before_allocation): Call sort_toc_sections.
364 (no_toc_sort, OPTION_NO_TOC_SORT): New.
365 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
366 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
368 2010-03-14 Alan Modra <amodra@gmail.com>
371 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
372 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
374 2010-03-11 George Gensure <werkt0@gmail.com>
377 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
379 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
381 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
383 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
384 (eelf32_sparc_sol2.c): New rule.
385 (eelf64_sparc_sol2.c): Likewise.
386 (eelf_x86_64_sol2.c): Likewise.
387 (eelf_i386_sol2.c): Likewise.
388 * Makefile.in: Regenerate.
389 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
391 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
392 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
393 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
394 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
395 Add target_extra_emuls.
396 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
397 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
398 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
399 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
400 * emulparams/elf32_sparc_sol2.sh: New file.
401 * emulparams/elf64_sparc_sol2.sh: New file.
402 * emulparams/elf_i386_sol2.sh: New file.
403 * emulparams/elf_x86_64_sol2.sh: New file.
404 * emultempl/solaris2.em: New file.
406 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
409 * ld.texinfo: Replace explicitely with explicitly.
411 2010-02-27 Jie Zhang <jie@codesourcery.com>
413 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
414 .fini_array.* when do relocatable linking.
415 * scripttempl/elf.sc: Likewise.
416 * scripttempl/elf32sh-symbian.sc: Likewise.
417 * scripttempl/elf64hppa.sc: Likewise.
418 * scripttempl/elfxtensa.sc: Likewise.
420 2010-02-26 Alan Modra <amodra@gmail.com>
422 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
424 * scripttempl/armbpabi.sc: Likewise.
425 * scripttempl/elf32sh-symbian.sc: Likewise.
426 * scripttempl/elf64hppa.sc: Likewise.
427 * scripttempl/elfxtensa.sc: Likewise.
429 2010-02-25 Alan Modra <amodra@gmail.com>
432 * ldlang.c (init_os): Remove isec param. Don't check for
433 bfd_section already set or call bfd_init_private_section_data
435 (exp_init_os): Update init_os call.
436 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
437 flags. Call bfd_init_private_section_data here.
438 (map_input_to_output_sections): Tidy. Update init_os calls.
439 Use os->sectype to select sec flags for lang_data_statement.
441 2010-02-23 Alan Modra <amodra@gmail.com>
444 * ldlang.c: Revert last patch.
446 2010-02-23 Nick Clifton <nickc@redhat.com>
448 * po/bg.po: Updated Bulgarian translation.
450 2010-02-22 Alan Modra <amodra@gmail.com>
453 * ldlang.c (exp_init_os): Delete forward declaration.
454 (init_os): Don't check for bfd_section already created and don't
455 init addr_tree and load_base expressions here.
456 (map_input_to_output_sections): Only map input to output sections
457 and set constraints here, and as an exception, create output
458 sections which have their address set. Move all the other code to..
459 (create_other_output_sections): ..here. New function. Handle init
460 of addr_tree and load_base here too.
461 (lang_process): Call create_other_output_sections.
463 2010-02-19 Alan Modra <amodra@gmail.com>
465 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
466 * Makefile.in: Regenerate.
468 2010-02-19 Alan Modra <amodra@gmail.com>
470 * ldlang.c (unique_section_p): Add os param. Allow group
471 sections to match /DISCARD/. Update all callers.
472 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
473 (LDEMUL_BEFORE_ALLOCATION): Define.
475 2010-02-15 Nick Clifton <nickc@redhat.com>
477 * po/vi.po: Updated Vietnamese translation.
479 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
481 * Makefile.am (CFILES): Add ldlex-wrapper.c.
482 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
483 (ldlex.o): Replace with...
484 (ldlex-wrapper.o): ...this new rule.
485 (EXTRA_ld_new_SOURCES): Add ldlex.l.
486 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
487 * Makefile.in: Regenerate.
488 * ldlex.l (sysdep.h): Don't include here.
489 * ldlex-wrapper.c: New file.
491 2010-02-09 Alan Modra <amodra@gmail.com>
493 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
496 2010-02-05 Nick Clifton <nickc@redhat.com>
498 * configure.in (ALL_LIBGUAS): Add bg.
499 * configure: Regenerate.
500 * po/bg.po: New Bulgarian translation.
502 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
504 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
505 --target1-abs and --target1-rel options.
507 2010-02-03 Nick Clifton <nickc@redhat.com>
509 * emultempl/alphaelf.em: Update value expected from elf_object_id.
510 * emultempl/hppaelf.em: Likewise.
511 * emultempl/mipself.em: Likewise.
512 * emultempl/ppc32elf.em: Likewise.
513 * emultempl/ppc64elf.em: Likewise.
515 2010-02-03 Alan Modra <amodra@gmail.com>
517 * emultempl/ppc64elf.em (build_toc_list): Report errors from
518 ppc64_elf_next_toc_section.
519 (after_allocation): Update for changed function names and params.
520 Run second pass of multitoc partitioning.
522 2010-01-21 Jon Grant <jg@jguk.org>
523 Nick Clifton <nickc@redhat.com>
526 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
527 a missing file or library. Instead mark the entry as missing and
528 set the global flag to indicate that missing files were
530 * ldlang.c (missing_files): New exported variable.
531 (load_symbols): Skip loading if the file is missing.
532 (open_input_bfds): Terminate link if any input files were
534 * ldlang.h (struct lang_input_statement_struct): Add missing_file
536 Add export of missing_file variable.
538 2010-01-13 DJ Delorie <dj@redhat.com>
540 * emultempl/elf32.em (_place_orphan): If an input section doesn't
541 match an existing output section, but an unused output section
542 statement does match, use it.
543 * emultempl/pe.em (_place_orphan): Likewise.
544 * emultempl/pep.em (_place_orphan): Likewise.
546 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
548 * configure: Regenerate.
549 * Makefile.in: Regenerate.
551 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
553 * ldver.c (ldversion): Change to "Copyright 2010".
555 2010-01-08 Alan Modra <amodra@gmail.com>
558 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
560 For older changes see ChangeLog-2009
566 version-control: never