1 2010-07-17 Alan Modra <amodra@gmail.com>
3 * ldlang.c (lang_check_section_addresses): Catch overlap for
4 sections that wrap around the address space.
6 2010-06-29 Nick Clifton <nickc@redhat.com>
8 * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
9 with the .gcc_except_table. prefix.
11 2010-06-29 Alan Modra <amodra@gmail.com>
13 * emulparams/maxqcoff.sh: Delete file.
14 * scripttempl/maxqcoff.sc: Delete file.
15 * Makefile.am: Remove references to maxq.
16 * configure.tgt: Likewise.
17 * Makefile.in: Regenerate.
18 * configure: Regenerate.
19 * po/POTFILES.in: Regenerate.
21 2010-06-27 Alan Modra <amodra@gmail.com>
23 * pe-dll.c (fill_edata): Avoid set but unused warning.
24 (pe_walk_relocs_of_symbol): Delete set but unused variables.
25 (generate_reloc, pe_implied_import_dll): Likewise.
26 * emultempl/aix.em (open_dynamic_archive): Likewise.
27 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
28 (xtensa_layout_wild): Likewise.
29 (xtensa_colocate_output_literals_callback): Likewise.
31 2010-06-25 Alan Modra <amodra@gmail.com>
33 * emultempl/ppc64elf.em (prelim_size_sections): New function.
34 (ppc_before_allocation): Use it. Size sections before toc edit too.
36 2010-06-25 Alan Modra <amodra@gmail.com>
38 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
40 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
42 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
43 auto-import and merge-rdata defaults same for i[3-7]86 and
46 2010-06-15 Joseph Myers <joseph@codesourcery.com>
48 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
50 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
53 * pe-dll.c (process_def_file_and_drectve): Reorder check for
54 forwarded export name after check for ordinary export.
56 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
58 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
60 2010-06-08 Nick Clifton <nickc@redhat.com>
62 * fdl.texi: Replace with v1.3 text.
63 * ld.texinfo: Replace abbreviated 20th century year numbers with
65 * ldint.texinfo: Likewise.
66 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
67 include of the fdl.texi file.
69 2010-06-01 Tristan Gingold <gingold@adacore.com>
71 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
72 readonly output-section. Handle LIB$INITIALIZE and sections
74 * emultempl/vms.em (vms_place_orphan): Add comments.
76 2010-05-28 Nick Clifton <nickc@redhat.com>
78 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
79 * Makefile.in: Regenerate.
81 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
84 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
85 multiple of maximum page size.
87 2010-05-25 Nick Clifton <nickc@redhat.com>
89 * Makefile.am: Fix typo.
90 * Makefile.in: Regenerate.
92 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
93 Joseph Myers <joseph@codesourcery.com>
94 Andrew Stubbs <ams@codesourcery.com>
96 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
97 (eshelf_fd.c, eshlelf_fd.c): New rules.
98 * Makefile.in: Regenerate.
99 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
101 * emulparams/shelf_fd.sh: New file.
102 * emulparams/shlelf_fd.sh: New file.
103 * emulparams/shlelf_linux.sh: Update comment.
105 2010-05-25 Jay Krell <jay.krell@cornell.edu>
108 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
109 * Makefile.in: Regenerate.
111 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
113 * deffilep.y (opt_name): Allow leading dot.
114 (dot_name): Likewise.
115 (anylang_id): Likewise.
116 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
118 (gld${EMULATION_NAME}_handle_option): Warn about v1.
119 (pep_find_data_imports): Remove superflous warnings about
121 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
122 and active pseudo-relocation-v2 rdata into data section.
123 * emultempl/pe.em (default_merge_rdata): New shell variable.
124 (MERGE_RDATA_V2): New macro.
125 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
128 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
130 * emultempl/pe.em (is_underscoring): New helper function.
131 (gld_${EMULATION_NAME}_before_parse): Replace code
132 for pe(p)_leading_underscore detection by is_underscoring.
134 (GET_INIT_SYMBOL_NAME): Likewise.
138 (gld_${EMULATION_NAME}_set_symbols):
139 * emultempl/pep.em: Likewise.
140 * pe-dll.c (pe_detail_list): Set default
141 underscoring for x64 target.
142 (pe_dll_id_target): Add initialization of
143 pe(p)_leading_underscore.
145 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
147 * pe-dll.c: Removed trailing whitespaces.
149 2010-05-14 Alan Modra <amodra@gmail.com>
152 * ldexp.c (exp_fold_tree_1): If assignment source expression is
153 invalid, make the destination symbol undefined.
155 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
157 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
158 Initialize pe(p)_leading_underscore variable.
159 (set_pe_name): Likewise.
160 * emultempl/pep.em: Likewise.
161 Additional change default to non-underscore for
162 pep_leading_underscore equal to -1.
164 2010-05-07 Tristan Gingold <gingold@adacore.com>
166 * Makefile.in: Regenerate with automake 1.11.1.
169 2010-05-05 Nick Clifton <nickc@redhat.com>
171 * po/es.po: Updated Spanish translation.
173 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
175 * pe-dll.c (_nm_-symbols): Use always underscored variant
177 (__imp_-symbols): Likewise.
178 (___imp_-symbols): Likewise.
179 * NEWS: Mention ABI change for x64 PE-COFF.
181 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
183 * Makefile.am (install-exec-local): Properly install ld as
184 default cross linker.
185 * Makefile.in: Regenerated.
187 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
188 Nick Clifton <nickc@redhat.com>
190 * configure.in (install_as_default): Define and set to true
191 unless --enable-gold=both/gold has been specified.
192 * configure: Regenerate.
194 * Makefile.am (transform): Use ld.bfd as the default name of
196 (install-exec-local): Also install the executable as a binary
197 named 'ld' if install_as_default is true.
198 * Makefile.in: Regenerate.
200 2010-04-22 Nick Clifton <nickc@redhat.com>
202 * po/ld.pot: Updated by the Translation project.
203 * po/vi.po: Updated Vietnamese translation.
204 * po/bg.po: Updated Bulgarian translation.
206 2010-04-15 Andrew Haley <aph@redhat.com>
208 * emultempl/armelf.em (merge_exidx_entries): New variable.
209 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
210 ("no-merge-exidx-entries"): New option.
211 * ld.texinfo (merge-exidx-entries): Document this option.
213 2010-04-14 Tristan Gingold <gingold@adacore.com>
215 * emulparams/alphavms.sh: New file.
216 * emultempl/vms.em: New file.
217 * scripttempl/alphavms.sc: New file.
218 * configure.tgt (alpha*-*-*vms*): Added.
219 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
220 (ealphavms.c): New target.
221 * Makefile.in: Regenerate.
223 2010-04-09 Nick Clifton <nickc@redhat.com>
225 * ldlang.c (wild_sort): Remove unused variable section_name.
227 2010-04-07 Alan Modra <amodra@gmail.com>
229 * configure: Regenerate.
231 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
234 * ld/testsuite/ld-x86-64/unique1.d: New.
235 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
237 * ld-x86-64/x86-64.exp: Run unique1.
239 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
241 * emultempl/pep.em (U): Macro modified.
242 (U_SIZE): New helper macro.
243 (GET_INIT_SYMBOL_NAME): Likewise.
244 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
245 and OPTION_LEADING_UNDERSCORE enumerator-values.
246 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
248 (definfo): Add new member is_c_symbol.
249 (D): Add to macro underscore mode parameter.
250 (init): Add definition for is_c_symbol.
251 (gld_${EMULATION_NAME}_list_options): Display new options.
252 (set_pep_name): Adjust underscoring dependent fixed
254 (gld_${EMULATION_NAME}_set_symbols): Likewise.
255 (saw_option): Likewise.
256 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
257 (set_entry_point): Initial initial_symbol_char dependent to
258 target's default and new option flag pep_leading_underscore.
259 * emultempl/pe.em (U): Macro modified.
260 (U_SIZE): New helper macro.
261 (GET_INIT_SYMBOL_NAME): Likewise.
262 (OPTION_LEADING_UNDERSCORE): Add new option define.
263 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
264 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
266 (definfo): Add new member is_c_symbol.
267 (D): Add to macro underscore mode parameter.
268 (init): Add definition for is_c_symbol.
269 (gld_${EMULATION_NAME}_list_options): Display new options.
270 (set_pep_name): Adjust underscoring dependent fixed
272 (gld_${EMULATION_NAME}_set_symbols): Likewise.
273 (saw_option): Likewise.
274 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
275 (set_entry_point): Initial initial_symbol_char dependent to
276 target's default and new option flag pep_leading_underscore.
277 * pe-dll.c (pe_leading_underscore): New flag variable.
278 (pe_detail_list): Remove const to allow modify of
280 (pe_dll_id_target): Initialize pe_details' underscore variable
281 dependent to target's default and flag pe_leading_underscore.
282 * pe-dll.h (pe_leading_underscore): Add extern declaration of
284 * pep-dll.c (pe_leading_underscore): Add alias define for
285 pep_leading_underscore.
286 * pep-dll.h (pep_leading_underscore) Add extern declaration of
288 * ld.texinfo: Add documentation for --(no-)leading-underscore
291 2010-03-26 Alan Modra <amodra@gmail.com>
294 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
295 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
297 2010-03-25 Joseph Myers <joseph@codesourcery.com>
299 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
301 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
302 * NEWS: Add news entry for TI C6X support.
303 * configure.tgt (tic6x-*-*): New.
304 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
306 2010-03-23 Joseph Myers <joseph@codesourcery.com>
308 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
309 BSS_NAME): Define if not already defined. Use in place of some
310 hardcoded section names.
312 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
314 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
316 2010-03-18 Aymeric Vincent <vincent@labri.fr>
319 * emultempl/sh64elf.em: Add missing EOF.
321 2010-03-18 Doug Semler <dougsemler@gmail.com>
323 * pe-dll.c (make_one): Make text section readonly.
324 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
325 the jump stub on X86 as /SAFESEH compatible for
328 2010-03-17 Alan Modra <amodra@gmail.com>
330 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
331 *prev instead. Update all callers.
333 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
335 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
336 region and phdrs as their placement section.
338 2010-03-15 Alan Modra <amodra@gmail.com>
340 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
341 (ppc_before_allocation): Call sort_toc_sections.
342 (no_toc_sort, OPTION_NO_TOC_SORT): New.
343 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
344 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
346 2010-03-14 Alan Modra <amodra@gmail.com>
349 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
350 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
352 2010-03-11 George Gensure <werkt0@gmail.com>
355 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
357 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
359 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
361 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
362 (eelf32_sparc_sol2.c): New rule.
363 (eelf64_sparc_sol2.c): Likewise.
364 (eelf_x86_64_sol2.c): Likewise.
365 (eelf_i386_sol2.c): Likewise.
366 * Makefile.in: Regenerate.
367 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
369 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
370 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
371 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
372 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
373 Add target_extra_emuls.
374 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
375 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
376 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
377 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
378 * emulparams/elf32_sparc_sol2.sh: New file.
379 * emulparams/elf64_sparc_sol2.sh: New file.
380 * emulparams/elf_i386_sol2.sh: New file.
381 * emulparams/elf_x86_64_sol2.sh: New file.
382 * emultempl/solaris2.em: New file.
384 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
387 * ld.texinfo: Replace explicitely with explicitly.
389 2010-02-27 Jie Zhang <jie@codesourcery.com>
391 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
392 .fini_array.* when do relocatable linking.
393 * scripttempl/elf.sc: Likewise.
394 * scripttempl/elf32sh-symbian.sc: Likewise.
395 * scripttempl/elf64hppa.sc: Likewise.
396 * scripttempl/elfxtensa.sc: Likewise.
398 2010-02-26 Alan Modra <amodra@gmail.com>
400 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
402 * scripttempl/armbpabi.sc: Likewise.
403 * scripttempl/elf32sh-symbian.sc: Likewise.
404 * scripttempl/elf64hppa.sc: Likewise.
405 * scripttempl/elfxtensa.sc: Likewise.
407 2010-02-25 Alan Modra <amodra@gmail.com>
410 * ldlang.c (init_os): Remove isec param. Don't check for
411 bfd_section already set or call bfd_init_private_section_data
413 (exp_init_os): Update init_os call.
414 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
415 flags. Call bfd_init_private_section_data here.
416 (map_input_to_output_sections): Tidy. Update init_os calls.
417 Use os->sectype to select sec flags for lang_data_statement.
419 2010-02-23 Alan Modra <amodra@gmail.com>
422 * ldlang.c: Revert last patch.
424 2010-02-23 Nick Clifton <nickc@redhat.com>
426 * po/bg.po: Updated Bulgarian translation.
428 2010-02-22 Alan Modra <amodra@gmail.com>
431 * ldlang.c (exp_init_os): Delete forward declaration.
432 (init_os): Don't check for bfd_section already created and don't
433 init addr_tree and load_base expressions here.
434 (map_input_to_output_sections): Only map input to output sections
435 and set constraints here, and as an exception, create output
436 sections which have their address set. Move all the other code to..
437 (create_other_output_sections): ..here. New function. Handle init
438 of addr_tree and load_base here too.
439 (lang_process): Call create_other_output_sections.
441 2010-02-19 Alan Modra <amodra@gmail.com>
443 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
444 * Makefile.in: Regenerate.
446 2010-02-19 Alan Modra <amodra@gmail.com>
448 * ldlang.c (unique_section_p): Add os param. Allow group
449 sections to match /DISCARD/. Update all callers.
450 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
451 (LDEMUL_BEFORE_ALLOCATION): Define.
453 2010-02-15 Nick Clifton <nickc@redhat.com>
455 * po/vi.po: Updated Vietnamese translation.
457 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
459 * Makefile.am (CFILES): Add ldlex-wrapper.c.
460 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
461 (ldlex.o): Replace with...
462 (ldlex-wrapper.o): ...this new rule.
463 (EXTRA_ld_new_SOURCES): Add ldlex.l.
464 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
465 * Makefile.in: Regenerate.
466 * ldlex.l (sysdep.h): Don't include here.
467 * ldlex-wrapper.c: New file.
469 2010-02-09 Alan Modra <amodra@gmail.com>
471 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
474 2010-02-05 Nick Clifton <nickc@redhat.com>
476 * configure.in (ALL_LIBGUAS): Add bg.
477 * configure: Regenerate.
478 * po/bg.po: New Bulgarian translation.
480 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
482 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
483 --target1-abs and --target1-rel options.
485 2010-02-03 Nick Clifton <nickc@redhat.com>
487 * emultempl/alphaelf.em: Update value expected from elf_object_id.
488 * emultempl/hppaelf.em: Likewise.
489 * emultempl/mipself.em: Likewise.
490 * emultempl/ppc32elf.em: Likewise.
491 * emultempl/ppc64elf.em: Likewise.
493 2010-02-03 Alan Modra <amodra@gmail.com>
495 * emultempl/ppc64elf.em (build_toc_list): Report errors from
496 ppc64_elf_next_toc_section.
497 (after_allocation): Update for changed function names and params.
498 Run second pass of multitoc partitioning.
500 2010-01-21 Jon Grant <jg@jguk.org>
501 Nick Clifton <nickc@redhat.com>
504 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
505 a missing file or library. Instead mark the entry as missing and
506 set the global flag to indicate that missing files were
508 * ldlang.c (missing_files): New exported variable.
509 (load_symbols): Skip loading if the file is missing.
510 (open_input_bfds): Terminate link if any input files were
512 * ldlang.h (struct lang_input_statement_struct): Add missing_file
514 Add export of missing_file variable.
516 2010-01-13 DJ Delorie <dj@redhat.com>
518 * emultempl/elf32.em (_place_orphan): If an input section doesn't
519 match an existing output section, but an unused output section
520 statement does match, use it.
521 * emultempl/pe.em (_place_orphan): Likewise.
522 * emultempl/pep.em (_place_orphan): Likewise.
524 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
526 * configure: Regenerate.
527 * Makefile.in: Regenerate.
529 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
531 * ldver.c (ldversion): Change to "Copyright 2010".
533 2010-01-08 Alan Modra <amodra@gmail.com>
536 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
538 For older changes see ChangeLog-2009
544 version-control: never