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