Add ATTRIBUTE_UNUSED to info in compute_bucket_count.
[binutils.git] / ld / ChangeLog
blobfb1804bf1eca9470169b35826aea9613ec9cf32b
1 2010-07-28  Alan Modra  <amodra@gmail.com>
3         * ldexp.c (exp_print_tree): Print function-like binary nodes as
4         functions rather than in-fix operators.  Use fputs and fputc
5         where appropriate.
7 2010-07-23  Naveen.H.S  <naveen.S@kpitcummins.com>
8             Ina Pandit  <ina.pandit@kpitcummins.com>
10         * configure.tgt: Match all v850 targets.
12 2010-07-20  Mike Frysinger  <vapier@gentoo.org>
14         * ld.texinfo (VERSION): Remove "int" from example script and add ";".
15         Declare the default language as C.
17 2010-07-17  Alan Modra  <amodra@gmail.com>
19         * ldlang.c (lang_check_section_addresses): Catch overlap for
20         sections that wrap around the address space.
22 2010-06-29  Nick Clifton  <nickc@redhat.com>
24         * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
25         with the .gcc_except_table. prefix.
27 2010-06-29  Alan Modra  <amodra@gmail.com>
29         * emulparams/maxqcoff.sh: Delete file.
30         * scripttempl/maxqcoff.sc: Delete file.
31         * Makefile.am: Remove references to maxq.
32         * configure.tgt: Likewise.
33         * Makefile.in: Regenerate.
34         * configure: Regenerate.
35         * po/POTFILES.in: Regenerate.
37 2010-06-27  Alan Modra  <amodra@gmail.com>
39         * pe-dll.c (fill_edata): Avoid set but unused warning.
40         (pe_walk_relocs_of_symbol): Delete set but unused variables.
41         (generate_reloc, pe_implied_import_dll): Likewise.
42         * emultempl/aix.em (open_dynamic_archive): Likewise.
43         * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
44         (xtensa_layout_wild): Likewise.
45         (xtensa_colocate_output_literals_callback): Likewise.
47 2010-06-25  Alan Modra  <amodra@gmail.com>
49         * emultempl/ppc64elf.em (prelim_size_sections): New function.
50         (ppc_before_allocation): Use it.  Size sections before toc edit too.
52 2010-06-25  Alan Modra  <amodra@gmail.com>
54         * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
56 2010-06-20  Danny Smith  <dannysmith@users.sourceforge.net>
58         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
59         auto-import and merge-rdata defaults same for i[3-7]86 and
60         x86_64 mingw.
62 2010-06-15  Joseph Myers  <joseph@codesourcery.com>
64         * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
66 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
68         PR ld/11603
69         * pe-dll.c (process_def_file_and_drectve): Reorder check for
70         forwarded export name after check for ordinary export.
72 2010-06-08  Bernd Schmidt  <bernds@codesourcery.com>
74         * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
76 2010-06-08  Nick Clifton  <nickc@redhat.com>
78         * fdl.texi: Replace with v1.3 text.
79         * ld.texinfo: Replace abbreviated 20th century year numbers with
80         full versions.
81         * ldint.texinfo: Likewise.
82         Relicense under GFDL v1.3.  Replace text of v1.1 FDL with an
83         include of the fdl.texi file.
85 2010-06-01  Tristan Gingold  <gingold@adacore.com>
87         * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
88         readonly output-section. Handle LIB$INITIALIZE and sections
89         created by gcc.
90         * emultempl/vms.em (vms_place_orphan): Add comments.
92 2010-05-28  Nick Clifton  <nickc@redhat.com>
94         * Makefile.am (eshlelf_fd.c): Fix typo in rule.
95         * Makefile.in: Regenerate.
97 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
99         PR ld/11628
100         * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
101         multiple of maximum page size.
103 2010-05-25  Nick Clifton  <nickc@redhat.com>
105         * Makefile.am: Fix typo.
106         * Makefile.in: Regenerate.
108 2010-05-25  Daniel Jacobowitz  <dan@codesourcery.com>
109             Joseph Myers  <joseph@codesourcery.com>
110             Andrew Stubbs  <ams@codesourcery.com>
112         * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
113         (eshelf_fd.c, eshlelf_fd.c): New rules.
114         * Makefile.in: Regenerate.
115         * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
116         emulations.
117         * emulparams/shelf_fd.sh: New file.
118         * emulparams/shlelf_fd.sh: New file.
119         * emulparams/shlelf_linux.sh: Update comment.
121 2010-05-25  Jay Krell  <jay.krell@cornell.edu>
123         PR ld/11621
124         * Makefile.am: Replace all occurences of .o with .@OBJEXT@
125         * Makefile.in: Regenerate.
127 2010-05-25  Kai Tietz  <kai.tietz@onevision.com>
129         * deffilep.y (opt_name): Allow leading dot.
130         (dot_name): Likewise.
131         (anylang_id): Likewise.
132         * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
133         default auto_import.
134         (gld${EMULATION_NAME}_handle_option): Warn about v1.
135         (pep_find_data_imports): Remove superflous warnings about
136         auto-import.
137         (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
138         and active pseudo-relocation-v2 rdata into data section.
139         * emultempl/pe.em (default_merge_rdata): New shell variable.
140         (MERGE_RDATA_V2): New macro.
141         (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
142         selected script.
144 2010-05-15  Kai Tietz  <kai.tietz@onevision.com>
146         * emultempl/pe.em (is_underscoring): New helper function.
147         (gld_${EMULATION_NAME}_before_parse): Replace code
148         for pe(p)_leading_underscore detection by is_underscoring.
149         (U): Likewise.
150         (GET_INIT_SYMBOL_NAME): Likewise.
151         (U_SIZE): Likewise.
152         (set_pe_name):
153         (set_entry_point):
154         (gld_${EMULATION_NAME}_set_symbols):
155         * emultempl/pep.em: Likewise.
156         * pe-dll.c (pe_detail_list): Set default
157         underscoring for x64 target.
158         (pe_dll_id_target): Add initialization of
159         pe(p)_leading_underscore.
161 2010-05-15  Dave Korn  <dave.korn.cygwin@gmail.com>
163         * pe-dll.c: Removed trailing whitespaces.
165 2010-05-14  Alan Modra  <amodra@gmail.com>
167         PR ld/11583
168         * ldexp.c (exp_fold_tree_1): If assignment source expression is
169         invalid, make the destination symbol undefined.
171 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
173         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
174         Initialize pe(p)_leading_underscore variable.
175         (set_pe_name): Likewise.
176         * emultempl/pep.em: Likewise.
177         Additional change default to non-underscore for
178         pep_leading_underscore equal to -1.
180 2010-05-07  Tristan Gingold  <gingold@adacore.com>
182         * Makefile.in: Regenerate with automake 1.11.1.
183         * aclocal.m4: Ditto.
185 2010-05-05  Nick Clifton  <nickc@redhat.com>
187         * po/es.po: Updated Spanish translation.
189 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
191         * pe-dll.c (_nm_-symbols): Use always underscored variant
192         for symbols.
193         (__imp_-symbols): Likewise.
194         (___imp_-symbols): Likewise.
195         * NEWS: Mention ABI change for x64 PE-COFF.
197 2010-04-27  H.J. Lu  <hongjiu.lu@intel.com>
199         * Makefile.am (install-exec-local): Properly install ld as
200         default cross linker.
201         * Makefile.in: Regenerated.
203 2010-04-27  H.J. Lu  <hongjiu.lu@intel.com>
204             Nick Clifton  <nickc@redhat.com>
206         * configure.in (install_as_default): Define and set to true
207         unless --enable-gold=both/gold has been specified.
208         * configure: Regenerate.
210         * Makefile.am (transform): Use ld.bfd as the default name of
211         the linker.
212         (install-exec-local): Also install the executable as a binary
213         named 'ld' if install_as_default is true.
214         * Makefile.in: Regenerate.
216 2010-04-22  Nick Clifton  <nickc@redhat.com>
218         * po/ld.pot: Updated by the Translation project.
219         * po/vi.po: Updated Vietnamese translation.
220         * po/bg.po: Updated Bulgarian translation.
222 2010-04-15  Andrew Haley  <aph@redhat.com>
224         * emultempl/armelf.em (merge_exidx_entries): New variable.
225         (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
226         ("no-merge-exidx-entries"): New option.
227         * ld.texinfo (merge-exidx-entries): Document this option.
229 2010-04-14  Tristan Gingold  <gingold@adacore.com>
231         * emulparams/alphavms.sh: New file.
232         * emultempl/vms.em: New file.
233         * scripttempl/alphavms.sc: New file.
234         * configure.tgt (alpha*-*-*vms*): Added.
235         * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
236         (ealphavms.c): New target.
237         * Makefile.in: Regenerate.
239 2010-04-09  Nick Clifton  <nickc@redhat.com>
241         * ldlang.c (wild_sort): Remove unused variable section_name.
243 2010-04-07  Alan Modra  <amodra@gmail.com>
245         * configure: Regenerate.
247 2010-04-06  H.J. Lu  <hongjiu.lu@intel.com>
249         PR ld/11434
250         * ld/testsuite/ld-x86-64/unique1.d: New.
251         * ld/testsuite/ld-x86-64/unique1.s: Likewise.
253         * ld-x86-64/x86-64.exp: Run unique1.
255 2010-04-05  Kai Tietz  <kai.tietz@onevision.com>
257         * emultempl/pep.em (U): Macro modified.
258         (U_SIZE): New helper macro.
259         (GET_INIT_SYMBOL_NAME): Likewise.
260         (enum options): Add OPTION_NO_LEADING_UNDERSCORE
261         and OPTION_LEADING_UNDERSCORE enumerator-values.
262         (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
263         option.
264         (definfo): Add new member is_c_symbol.
265         (D): Add to macro underscore mode parameter.
266         (init): Add definition for is_c_symbol.
267         (gld_${EMULATION_NAME}_list_options): Display new options.
268         (set_pep_name): Adjust underscoring dependent fixed
269         symbol handling.
270         (gld_${EMULATION_NAME}_set_symbols): Likewise.
271         (saw_option): Likewise.
272         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
273         (set_entry_point): Initial initial_symbol_char dependent to
274         target's default and new option flag pep_leading_underscore.
275         * emultempl/pe.em (U): Macro modified.
276         (U_SIZE): New helper macro.
277         (GET_INIT_SYMBOL_NAME): Likewise.
278         (OPTION_LEADING_UNDERSCORE): Add new option define.
279         (OPTION_NO_LEADING_UNDERSCORE): Likewise.
280         (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
281         option.
282         (definfo): Add new member is_c_symbol.
283         (D): Add to macro underscore mode parameter.
284         (init): Add definition for is_c_symbol.
285         (gld_${EMULATION_NAME}_list_options): Display new options.
286         (set_pep_name): Adjust underscoring dependent fixed
287         symbol handling.
288         (gld_${EMULATION_NAME}_set_symbols): Likewise.
289         (saw_option): Likewise.
290         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
291         (set_entry_point): Initial initial_symbol_char dependent to
292         target's default and new option flag pep_leading_underscore.
293         * pe-dll.c (pe_leading_underscore): New flag variable.
294         (pe_detail_list): Remove const to allow modify of
295         member underscore.
296         (pe_dll_id_target): Initialize pe_details' underscore variable
297         dependent to target's default and flag pe_leading_underscore.
298         * pe-dll.h (pe_leading_underscore): Add extern declaration of
299         option flag.
300         * pep-dll.c (pe_leading_underscore): Add alias define for
301         pep_leading_underscore.
302         * pep-dll.h (pep_leading_underscore) Add extern declaration of
303         option flag.
304         * ld.texinfo: Add documentation for --(no-)leading-underscore
305         option.
307 2010-03-26  Alan Modra  <amodra@gmail.com>
309         PR ld/11426
310         * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
311         (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
313 2010-03-25  Joseph Myers  <joseph@codesourcery.com>
315         * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
316         eelf32_tic6x_le.o.
317         (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
318         * NEWS: Add news entry for TI C6X support.
319         * configure.tgt (tic6x-*-*): New.
320         * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
322 2010-03-23  Joseph Myers  <joseph@codesourcery.com>
324         * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
325         BSS_NAME): Define if not already defined.  Use in place of some
326         hardcoded section names.
328 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
330         * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
332 2010-03-18  Aymeric Vincent  <vincent@labri.fr>
334         PR ld/11384
335         * emultempl/sh64elf.em: Add missing EOF.
337 2010-03-18  Doug Semler  <dougsemler@gmail.com>
339         * pe-dll.c (make_one): Make text section readonly.
340         (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
341         the jump stub on X86 as /SAFESEH compatible for
342         native toolchains.
344 2010-03-17  Alan Modra  <amodra@gmail.com>
346         * ldlang.c (lang_size_sections_1): Remove "s" param.  Set "s" from
347         *prev instead.  Update all callers.
349 2010-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
351         * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
352         region and phdrs as their placement section.
354 2010-03-15  Alan Modra  <amodra@gmail.com>
356         * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
357         (ppc_before_allocation): Call sort_toc_sections.
358         (no_toc_sort, OPTION_NO_TOC_SORT): New.
359         (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
360          PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
362 2010-03-14  Alan Modra  <amodra@gmail.com>
364         PR ld/11378
365         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
366         ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
368 2010-03-11  George Gensure  <werkt0@gmail.com>
370         PR ld/11367
371         * ldcref.c (handle_asneeded_cref): Correct copying of refs.
373 2010-03-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
375         * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
376         eelf_i386_sol2.o.
377         (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
378         (eelf32_sparc_sol2.c): New rule.
379         (eelf64_sparc_sol2.c): Likewise.
380         (eelf_x86_64_sol2.c): Likewise.
381         (eelf_i386_sol2.c): Likewise.
382         * Makefile.in: Regenerate.
383         * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
384         elf_i386_sol2.
385         Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
386         (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
387         Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
388         (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
389         Add target_extra_emuls.
390         (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
391         Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
392         (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
393         Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
394         * emulparams/elf32_sparc_sol2.sh: New file.
395         * emulparams/elf64_sparc_sol2.sh: New file.
396         * emulparams/elf_i386_sol2.sh: New file.
397         * emulparams/elf_x86_64_sol2.sh: New file.
398         * emultempl/solaris2.em: New file.
400 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
402         PR ld/11330
403         * ld.texinfo: Replace explicitely with explicitly.
405 2010-02-27  Jie Zhang  <jie@codesourcery.com>
407         * scripttempl/armbpabi.sc: Don't combine .init_array.* or
408         .fini_array.* when do relocatable linking.
409         * scripttempl/elf.sc: Likewise.
410         * scripttempl/elf32sh-symbian.sc: Likewise.
411         * scripttempl/elf64hppa.sc: Likewise.
412         * scripttempl/elfxtensa.sc: Likewise.
414 2010-02-26  Alan Modra  <amodra@gmail.com>
416         * scripttempl/elf.sc (.fini_array): Place input .fini_array after
417         .fini_array.*.
418         * scripttempl/armbpabi.sc: Likewise.
419         * scripttempl/elf32sh-symbian.sc: Likewise.
420         * scripttempl/elf64hppa.sc: Likewise.
421         * scripttempl/elfxtensa.sc: Likewise.
423 2010-02-25  Alan Modra  <amodra@gmail.com>
425         PR ld/11304
426         * ldlang.c (init_os): Remove isec param.  Don't check for
427         bfd_section already set or call bfd_init_private_section_data
428         here.
429         (exp_init_os): Update init_os call.
430         (lang_add_section): Tidy.  Really don't set SEC_LINK_ONCE
431         flags.  Call bfd_init_private_section_data here.
432         (map_input_to_output_sections): Tidy.  Update init_os calls.
433         Use os->sectype to select sec flags for lang_data_statement.
435 2010-02-23  Alan Modra  <amodra@gmail.com>
437         PR ld/11304
438         * ldlang.c: Revert last patch.
440 2010-02-23  Nick Clifton  <nickc@redhat.com>
442         * po/bg.po: Updated Bulgarian translation.
444 2010-02-22  Alan Modra  <amodra@gmail.com>
446         PR ld/11304
447         * ldlang.c (exp_init_os): Delete forward declaration.
448         (init_os): Don't check for bfd_section already created and don't
449         init addr_tree and load_base expressions here.
450         (map_input_to_output_sections): Only map input to output sections
451         and set constraints here, and as an exception, create output
452         sections which have their address set.  Move all the other code to..
453         (create_other_output_sections): ..here.  New function.  Handle init
454         of addr_tree and load_base here too.
455         (lang_process): Call create_other_output_sections.
457 2010-02-19  Alan Modra  <amodra@gmail.com>
459         * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
460         * Makefile.in: Regenerate.
462 2010-02-19  Alan Modra  <amodra@gmail.com>
464         * ldlang.c (unique_section_p): Add os param.  Allow group
465         sections to match /DISCARD/.  Update all callers.
466         * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
467         (LDEMUL_BEFORE_ALLOCATION): Define.
469 2010-02-15  Nick Clifton  <nickc@redhat.com>
471         * po/vi.po: Updated Vietnamese translation.
473 2010-02-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
475         * Makefile.am (CFILES): Add ldlex-wrapper.c.
476         (OFILES): Replace ldlex.c with ldlex-wrapper.c.
477         (ldlex.o): Replace with...
478         (ldlex-wrapper.o): ...this new rule.
479         (EXTRA_ld_new_SOURCES): Add ldlex.l.
480         (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
481         * Makefile.in: Regenerate.
482         * ldlex.l (sysdep.h): Don't include here.
483         * ldlex-wrapper.c: New file.
485 2010-02-09  Alan Modra  <amodra@gmail.com>
487         * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
488         function parameters.
490 2010-02-05  Nick Clifton  <nickc@redhat.com>
492         * configure.in (ALL_LIBGUAS): Add bg.
493         * configure: Regenerate.
494         * po/bg.po: New Bulgarian translation.
496 2010-02-05  Ryan Mansfield  <rmansfield@qnx.com>
498         * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
499         --target1-abs and --target1-rel options.
501 2010-02-03  Nick Clifton  <nickc@redhat.com>
503         * emultempl/alphaelf.em: Update value expected from elf_object_id.
504         * emultempl/hppaelf.em: Likewise.
505         * emultempl/mipself.em: Likewise.
506         * emultempl/ppc32elf.em: Likewise.
507         * emultempl/ppc64elf.em: Likewise.
509 2010-02-03  Alan Modra  <amodra@gmail.com>
511         * emultempl/ppc64elf.em (build_toc_list): Report errors from
512         ppc64_elf_next_toc_section.
513         (after_allocation): Update for changed function names and params.
514         Run second pass of multitoc partitioning.
516 2010-01-21  Jon Grant  <jg@jguk.org>
517             Nick Clifton  <nickc@redhat.com>
519         PR 4437
520         * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
521         a missing file or library.  Instead mark the entry as missing and
522         set the global flag to indicate that missing files were
523         encountered.
524         * ldlang.c (missing_files): New exported variable.
525         (load_symbols): Skip loading if the file is missing.
526         (open_input_bfds): Terminate link if any input files were
527         missing.
528         * ldlang.h (struct lang_input_statement_struct): Add missing_file
529         field.
530         Add export of missing_file variable.
532 2010-01-13  DJ Delorie  <dj@redhat.com>
534         * emultempl/elf32.em (_place_orphan): If an input section doesn't
535         match an existing output section, but an unused output section
536         statement does match, use it.
537         * emultempl/pe.em (_place_orphan): Likewise.
538         * emultempl/pep.em (_place_orphan): Likewise.
540 2010-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
542         * configure: Regenerate.
543         * Makefile.in: Regenerate.
545 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
547         * ldver.c (ldversion): Change to "Copyright 2010".
549 2010-01-08  Alan Modra  <amodra@gmail.com>
551         PR 11107
552         * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
554 For older changes see ChangeLog-2009
556 Local Variables:
557 mode: change-log
558 left-margin: 8
559 fill-column: 74
560 version-control: never
561 End: