Add directory section for info document.
[binutils.git] / ld / ChangeLog
blob0ee2ed7fc9aa461d703f5f69aaca26f92bb56716
1 2010-10-28  Matthias Klose  <doko@ubuntu.com>
3         * ld.texinfo: Add directory section for info document.
4         * ldint.texinfo: Likewise.
6 2010-10-28  Alan Modra  <amodra@gmail.com>
8         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For
9         --no-undefined-version, don't report dot sym versions added by ld.
11 2010-10-28  Alan Modra  <amodra@gmail.com>
13         * ldlang.h (ldlang_add_undef): Add cmdline param.
14         * ldlang.c (undef_from_cmdline): New var.
15         (ldlang_add_undef): Add cmdline param.  Set undef_from_cmdline.
16         (lang_end): Really require -e or -u from command line on
17         relocatable --gc-sections.
18         * ldemul.c (after_parse_default): Adjust ldlang_add_undef call.
19         * ldgram.y (extern_name_list_body): Likewise.
20         * lexsup.c (parse_args): Likewise.
21         * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
23 2010-10-25  Alan Modra  <amodra@gmail.com>
25         * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
26         Formatting.
28 2010-10-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30         * emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to
31         elf32-sparc-sol2.
32         * emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to
33         elf64-sparc-sol2.
35 2010-10-22  Alan Modra  <amodra@gmail.com>
37         * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
38         output when section has no contents.
39         (build_link_order <lang_reloc_statement_enum>): Likewise.
41 2010-10-21  Joseph Myers  <joseph@codesourcery.com>
43         * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use
44         .c6xabi.attributes, not __TI_build_attributes.
46 2010-10-20  Dave Korn  <dave.korn.cygwin@gmail.com>
48         * plugin.c (get_symbols): Check symbol type correctly.
50 2010-10-15  Dave Korn  <dave.korn.cygwin@gmail.com>
52         * configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
53         * configure: Regenerate.
54         * config.in: Likewise.
55         * plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
56         trival LoadLibrary-based replacement for Windows systems.
57         [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
58         replacement based on GetProcAddress.
59         [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
60         * sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
61         anymore, use its own guard.
63 2010-10-15  Dave Korn  <dave.korn.cygwin@gmail.com>
65         * plugin.c (add_input_file): Take copy of input string.
66         (add_input_library): Likewise.
67         (set_extra_library_path): Likewise.
69 2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>
71         Apply LD plugin patch series (part 6/6).
72         * ldlang.c (load_symbols): Handle bfd subsitution when calling the
73         add_archive_element callback.
74         * ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive
75         member to the plugins and if claimed set "subsbfd" output parameter to
76         point to the dummy IR-only BFD.
78 2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>
80         Apply LD plugin patch series (part 5/6).
81         * plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd,
82         find the elf symbol data and set the visibility in the st_other field.
84 2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>
86         Apply LD plugin patch series (part 4/6).
87         * ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of
88         plugin_call_all_symbols_read to before setting of gc_sym_list, and
89         open any new input files that may have been added during it.
90         * ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to
91         plugin_multiple_definition and let it have first say over what to do
92         with the clashing definitions.
93         * plugin.c (no_more_claiming): New boolean variable.
94         (plugin_cached_allow_multiple_defs): Likewise.
95         (add_input_file): Implement.
96         (add_input_library): Likewise.
97         (set_extra_library_path): Likewise.
98         (plugin_call_claim_file): Don't do anything when no_more_claiming set.
99         (plugin_call_all_symbols_read): Set it.  Disable link info
100         "allow_multiple_definition" flag, but cache its value.
101         (plugin_multiple_definition): New function.
102         * plugin.h (plugin_multiple_definition): Add prototype.
103         * testplug.c (addfile_enum_t): New enumerated typedef.
104         (add_file_t): New struct typedef.
105         (addfiles_list): New variable.
106         (addfiles_tail_chain_ptr): Likewise.
107         (record_add_file): New function.
108         (parse_option): Parse "add:", "lib:" and "dir:" options and call it.
109         (onall_symbols_read): Iterate the list of new files, libs and dirs,
110         adding them.
112 2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>
114         Apply LD plugin patch series (part 3/6).
115         * ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice.
116         * plugin.c (non_ironly_hash): Add new bfd hash table.
117         (plugin_load_plugins): Exit early if no plugins to load.  If plugins
118         do load successfully, set notice_all flag in link info.
119         (get_symbols): Implement.
120         (plugin_load_plugins): Exit early if no plugins to load, else after
121         loading plugins successfully enable notice_all mode.
122         (init_non_ironly_hash): Lazily init non_ironly_hash table.
123         (plugin_notice): Record symbols referenced from non-IR files in the
124         non_ironly_hash.  Suppress tracing, cref generation and nocrossrefs
125         tracking for symbols from dummy IR bfds.
126         * plugin.h: Fix formatting.
127         (plugin_notice): Add prototype.
128         * testplug.c (dumpresolutions): New global var.
129         (parse_options): Accept "dumpresolutions".
130         (onall_symbols_read): Get syms and dump resolutions if it was given.
132 2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>
134         Apply LD plugin patch series (part 2/6).
135         * ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early
136         during compat checks if they pass, instead offer any successfully
137         opened and accepted file to the plugin claim file hooks chain.  Create
138         a dummy bfd to accept symbols added by the plugin, if the plugin
139         claims the file.
140         * ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols
141         read hook chain before ldemul_after_open.
142         * ldlang.h (struct lang_input_statement_struct): Add new single-bit
143         'claimed' flag.
144         * plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix.
145         (IRONLY_SUFFIX_LEN): Length of the above string.
146         (plugin_get_ir_dummy_bfd): New function to create the dummy bfd used
147         to store symbols for ir-only files.
148         (is_ir_dummy_bfd): New function to check if a bfd is ir-only.
149         (asymbol_from_plugin_symbol): New function converts symbol formats.
150         (add_symbols): Call it to convert plugin syms to bfd syms and add
151         them to the dummy bfd.
152         * plugin.h: Add missing include guards.
153         (plugin_get_ir_dummy_bfd): Add prototype.
154         (is_ir_dummy_bfd): Likewise.
155         * testplug.c (TV_MESSAGE): New helper macro.
156         (struct claim_file): New struct.
157         (claim_file_t): New typedef.
158         (tag_names[]): Make static and const.
159         (claimfiles_list): New variable.
160         (claimfiles_tail_chain_ptr): Likewise.
161         (last_claimfile): Likewise.
162         (record_claim_file): Record a file to claim on a singly-linked list.
163         (parse_symdefstr): Parse an ASCII representation of a symbol from a
164         plugin option into the fields of a struct ld_plugin_symbol.
165         (record_claimed_file_symbol):  Use it to parse plugin option for
166         adding a symbol.
167         (parse_option): Parse claim file and add symbol options.
168         (dump_tv_tag): Use TV_MESSAGE.
169         (onload): Likewise.
170         (onclaim_file): Make static.  Use TV_MESSAGE.  Scan list of files to
171         claim and claim this file if required, adding any symbols specified.
172         (onall_symbols_read): Make static and use TV_MESSAGE.
173         (oncleanup): Likewise.
175 2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>
177         Apply LD plugin patch series (part 1/6).
178         * configure.in: Add AC_CHECKs for file io and dlfcn headers and
179         functions and AC_SEARCH for -ldl.
180         (enable_plugins): New shell variable set if above tests find dlopen
181         functionality.
182         (ENABLE_PLUGINS): Add related automake conditional.
183         * configure: Regenerate.
184         * config.in: Likewise.
185         * Makefile.am (PLUGIN_C): Declare plugin C source file, conditional
186         on ENABLE_PLUGINS being defined.
187         (PLUGIN_H): Likewise for header file.
188         (PLUGIN_OBJECT): Likewise for object file.
189         (PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support.
190         (AM_CPPFLAGS): Use PLUGIN_CFLAGS.
191         (CFILES): Use PLUGIN_C.
192         (HFILES): Use PLUGIN_H.
193         (OFILES): Use PLUGIN_OBJECT.
194         (ld_new_SOURCES): Use PLUGIN_C.
195         (noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin.
196         (libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition
197         for test plugin.
198         (libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise.
199         (libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise.
200         * Makefile.in: Regenerate.
201         * sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or
202         sys/file.h where available.  Include dlfcn.h when ENABLE_PLUGINS.
203         (O_RDONLY): Supply default definition likewise to bfd's sysdep.h
204         (O_WRONLY): Likewise.
205         (O_RDWR): Likewise.
206         (O_ACCMODE): Likewise.
207         (O_BINARY): Likewise.
208         (SEEK_SET): Likewise.
209         (SEEK_CUR): Likewise.
210         (SEEK_END): Likewise.
211         * ldmisc.c (vfinfo): Make non-static.  Add %p format char.
212         * ldmisc.h (vfinfo): Declare extern prototype.
213         * lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for
214         OPTION_PLUGIN and OPTION_PLUGIN_OPT.
215         (ld_options[])[ENABLE_PLUGINS]: Add option data for the above two.
216         (parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once
217         option parsing is complete.
218         * ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just
219         after lang_finish.
220         * plugin.c: New source file.
221         * plugin.h: Likewise new header.
222         * testplug.c: New source file.
224 2010-10-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
226         * emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed
227         basever_syms to global_syms.
228         Emit global_syms into .dynamic section for all executables and
229         shared objects.
230         (elf_solaris2_after_allocation): New function.
231         (LDEMUL_AFTER_ALLOCATION): Use it.
232         * emulparams/solaris2.sh: New file.
233         * emulparams/elf32_sparc_sol2.sh: Use it.
234         * emulparams/elf64_sparc_sol2.sh: Likewise.
235         * emulparams/elf_i386_sol2.sh: Likewise.
236         * emulparams/elf_x86_64_sol2.sh: Likewise.
237         * Makefile.am (eelf32_sparc_sol2.c): Depend on
238         $(srcdir)/emulparams/solaris2.sh.
239         (eelf64_sparc_sol2.c): Likewise.
240         (eelf_x86_64_sol2.c): Likewise.
241         (eelf_i386_sol2.c): Likewise.
242         * Makefile.in: Regenerate.
244 2010-10-06  Nick Clifton  <nickc@redhat.com>
246         * ld.texinfo: Update description of computation of VMA and LMA
247         addresses for output sections.
249 2010-10-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
251         * Makefile.am (ALL_64_EMULATIONS): Fix typo in last commit.
252         * Makefile.in: Regenerate.
254         * Makefile.am (ALL_EMULATIONS): Rewrite in terms of ...
255         (ALL_EMULATION_SOURCES): ... this new variable.
256         (ALL_64_EMULATIONS): Rewrite in terms of ...
257         (ALL_64_EMULATION_SOURCES): ... this new variable.
258         (EXTRA_ld_new_SOURCES): Rewrite in terms of the _SOURCES
259         variables.
260         (eelf32microblaze.c): Fix indentation.
261         * Makefile.in: Regenerate.
263 2010-10-04  Bernd Schmidt  <bernds@codesourcery.com>
265         * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use
266         _bfd_elf_single_rel_hdr.
268 2010-10-01  Alan Modra  <amodra@gmail.com>
270         PR ld/12066
271         * ldexp.c (fold_name): Treat absolute symbols as plain numbers.
272         * ld.texinfo (Expression Section): Don't say absolute symbols
273         are addresses.
275 2010-09-29  Alan Modra  <amodra@gmail.com>
277         * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
278         section for orphans handled here.
280 2010-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
282         * configure: Regenerate.
284 2010-09-23  Dave Korn  <dave.korn.cygwin@gmail.com>
286         * scripttempl/armcoff.sc: Revert 2010-09-22 change.
288 2010-09-23  Alan Modra  <amodra@gmail.com>
290         * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
291         to output section on a final link.
293 2010-09-22  Kai Tietz  <kai.tietz@onevision.com>
295         * ldlang.c (lang_add_section): Allow for debugging
296         section to be marked as noload but to keep content.
297         (IGNORE_SECTION): Likewise.
298         (lang_check_section_addresses): Likewise.
299         * ldwrite.c (build_link_order): Likewise.
301         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
302         idata to orphan set.
303         * emultempl/pep.em: Likewise.
304         * scripttempl/armcoff.sc: Separate idata
305         and add __IAT_start__ and __IAT_end__ labels.
306         * scripttempl/pe.sc: Likewise.
307         * scripttempl/pep.sc: Likewise.
309 2010-09-20  David S. Miller  <davem@davemloft.net>
311         * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
313 2010-09-16  Alan Modra  <amodra@gmail.com>
315         * ld.texinfo (NOLOAD): Do not erroneously state that contents will
316         appear in output file.
317         * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
318         unless SEC_COFF_SHARED_LIBRARY.
319         (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
320         output sections.
321         (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
322         to update dot in region.  Ditto when setting SEC_ALLOC if dot
323         advanced due to assignment.
324         * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
326 2010-09-15  Kai Tietz  <kai.tietz@onevision.com>
328         * scripttempl/pep.sc: Add .xdata segment and
329         put into .pdata all segments beginning with .pdata.
331 2010-09-10  Alan Modra  <amodra@gmail.com>
333         PR ld/11931
334         * ldlang.h (lang_for_each_statement_worker): Declare.
335         * ldlang.c (lang_for_each_statement_worker): Make global.  Don't
336         recurse into children of output_section_statement with constraint
337         set to -1.
338         (print_assignment): Handle NULL output_section->bfd_section.
339         (lang_size_sections_1): Ignore output section statement address
340         when constraint is -1.
341         * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
343 2010-09-09  Tristan Gingold  <gingold@adacore.com>
345         * NEWS: Add a entry for alpha-vms.
347 2010-09-07  Andrew Burgess  <aburgess@broadcom.com>
349         * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
350         newly cloned section.
352 2010-09-02  Richard Henderson  <rth@redhat.com>
354         * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too.
356 2010-08-31  Nick Clifton  <nickc@redhat.com>
358         * ldlex.l (WILDCHAR): Add the caret and exclamation point
359         characters, so that they can be used inside globs.
361 2010-08-31  Nick Clifton  <nickc@redhat.com>
363         * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
364         a region's attributes.
366 2010-08-31  Alan Modra  <amodra@gmail.com>
368         * scripttempl/mmo.sc: Move assignment to "Main" inside .text
369         output section statement.
371 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
373         PR ld/11946
374         * emultempl/elf32.em (_before_allocation): Check audit entry
375         only on ELF input.
377 2010-08-22  H.J. Lu  <hongjiu.lu@intel.com>
379         PR ld/11937
380         * emultempl/elf32.em (_after_open): Find one .eh_frame section
381         for --eh-frame-hdr.
383 2010-08-22  H.J. Lu  <hongjiu.lu@intel.com>
385         PR ld/11937
386         * emultempl/elf32.em (_after_open): Find an ELF input for
387         --build-id and --eh-frame-hdr.
389 2010-08-20  Maciej W. Rozycki  <macro@codesourcery.com>
391         * Makefile.am (eshlelf_fd.c): Correct the name of the tool
392         directory.
393         * Makefile.in: Regenerate.
395 2010-08-20  Nick Clifton  <nickc@redhat.com>
397         * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
398         returning NULL.
400 2010-08-19  Alan Modra  <amodra@gmail.com>
402         * NEWS: Mention change in linker script expression evaluation.
404 2010-08-19  Alan Modra  <amodra@gmail.com>
406         * ld.texinfo (Expression Section): Detail expression evaluation.
407         (Builtin Functions <ADDR>): Correct.
408         (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
409         the same as ADDR.
410         (Builtin Functions <SEGMENT_START>): Typo fix.
411         * ldexp.c (new_number): New function.
412         (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
413         (fold_unary <'~', '!', '-'>): Don't make_abs.
414         (fold_binary): Simplify result section logic.  Return NULL section
415         for logical ops.
416         (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
417         a consistent result.
418         (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
419         (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
420         (fold_name <NAME>): No need to handle absolute symbols differently
421         from relative ones.
422         (fold_name <ORIGIN>): Don't return valid result when
423         lang_first_phase_enum.  Return new_rel_from_abs, not new_abs.
424         (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
425         (exp_fold_tree_1): Ajust for NULL expld.result.section.  When assigning
426         a plain number to dot, assume the value is relative to expld.section.
427         Make terms not in an output section, absolute.
428         * ldlang.c (print_assignment): Fix style nit.
429         (lang_size_sections_1): Cope with NULL expld.result.section.
430         (lang_do_assignments_1): Likewise.
432 2010-08-12  Alan Modra  <amodra@gmail.com>
434         * ldexp.c (new_rel): Remove "str".  Update all call sites.
435         (exp_fold_tree_1): When assigning to dot, calculate nextdot
436         using expld.result.section rather than expld.section.
438 2010-08-06  Alan Modra  <amodra@gmail.com>
440         PR ld/11887
441         * ldlang.c (lang_add_vers_depend): Don't leave version_needed
442         uninitialised.
444 2010-07-28  Alan Modra  <amodra@gmail.com>
446         * ldexp.c (exp_print_tree): Print function-like binary nodes as
447         functions rather than in-fix operators.  Use fputs and fputc
448         where appropriate.
450 2010-07-23  Naveen.H.S  <naveen.S@kpitcummins.com>
451             Ina Pandit  <ina.pandit@kpitcummins.com>
453         * configure.tgt: Match all v850 targets.
455 2010-07-20  Mike Frysinger  <vapier@gentoo.org>
457         * ld.texinfo (VERSION): Remove "int" from example script and add ";".
458         Declare the default language as C.
460 2010-07-17  Alan Modra  <amodra@gmail.com>
462         * ldlang.c (lang_check_section_addresses): Catch overlap for
463         sections that wrap around the address space.
465 2010-06-29  Nick Clifton  <nickc@redhat.com>
467         * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
468         with the .gcc_except_table. prefix.
470 2010-06-29  Alan Modra  <amodra@gmail.com>
472         * emulparams/maxqcoff.sh: Delete file.
473         * scripttempl/maxqcoff.sc: Delete file.
474         * Makefile.am: Remove references to maxq.
475         * configure.tgt: Likewise.
476         * Makefile.in: Regenerate.
477         * configure: Regenerate.
478         * po/POTFILES.in: Regenerate.
480 2010-06-27  Alan Modra  <amodra@gmail.com>
482         * pe-dll.c (fill_edata): Avoid set but unused warning.
483         (pe_walk_relocs_of_symbol): Delete set but unused variables.
484         (generate_reloc, pe_implied_import_dll): Likewise.
485         * emultempl/aix.em (open_dynamic_archive): Likewise.
486         * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
487         (xtensa_layout_wild): Likewise.
488         (xtensa_colocate_output_literals_callback): Likewise.
490 2010-06-25  Alan Modra  <amodra@gmail.com>
492         * emultempl/ppc64elf.em (prelim_size_sections): New function.
493         (ppc_before_allocation): Use it.  Size sections before toc edit too.
495 2010-06-25  Alan Modra  <amodra@gmail.com>
497         * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
499 2010-06-20  Danny Smith  <dannysmith@users.sourceforge.net>
501         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
502         auto-import and merge-rdata defaults same for i[3-7]86 and
503         x86_64 mingw.
505 2010-06-15  Joseph Myers  <joseph@codesourcery.com>
507         * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
509 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
511         PR ld/11603
512         * pe-dll.c (process_def_file_and_drectve): Reorder check for
513         forwarded export name after check for ordinary export.
515 2010-06-08  Bernd Schmidt  <bernds@codesourcery.com>
517         * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
519 2010-06-08  Nick Clifton  <nickc@redhat.com>
521         * fdl.texi: Replace with v1.3 text.
522         * ld.texinfo: Replace abbreviated 20th century year numbers with
523         full versions.
524         * ldint.texinfo: Likewise.
525         Relicense under GFDL v1.3.  Replace text of v1.1 FDL with an
526         include of the fdl.texi file.
528 2010-06-01  Tristan Gingold  <gingold@adacore.com>
530         * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
531         readonly output-section. Handle LIB$INITIALIZE and sections
532         created by gcc.
533         * emultempl/vms.em (vms_place_orphan): Add comments.
535 2010-05-28  Nick Clifton  <nickc@redhat.com>
537         * Makefile.am (eshlelf_fd.c): Fix typo in rule.
538         * Makefile.in: Regenerate.
540 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
542         PR ld/11628
543         * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
544         multiple of maximum page size.
546 2010-05-25  Nick Clifton  <nickc@redhat.com>
548         * Makefile.am: Fix typo.
549         * Makefile.in: Regenerate.
551 2010-05-25  Daniel Jacobowitz  <dan@codesourcery.com>
552             Joseph Myers  <joseph@codesourcery.com>
553             Andrew Stubbs  <ams@codesourcery.com>
555         * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
556         (eshelf_fd.c, eshlelf_fd.c): New rules.
557         * Makefile.in: Regenerate.
558         * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
559         emulations.
560         * emulparams/shelf_fd.sh: New file.
561         * emulparams/shlelf_fd.sh: New file.
562         * emulparams/shlelf_linux.sh: Update comment.
564 2010-05-25  Jay Krell  <jay.krell@cornell.edu>
566         PR ld/11621
567         * Makefile.am: Replace all occurences of .o with .@OBJEXT@
568         * Makefile.in: Regenerate.
570 2010-05-25  Kai Tietz  <kai.tietz@onevision.com>
572         * deffilep.y (opt_name): Allow leading dot.
573         (dot_name): Likewise.
574         (anylang_id): Likewise.
575         * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
576         default auto_import.
577         (gld${EMULATION_NAME}_handle_option): Warn about v1.
578         (pep_find_data_imports): Remove superflous warnings about
579         auto-import.
580         (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
581         and active pseudo-relocation-v2 rdata into data section.
582         * emultempl/pe.em (default_merge_rdata): New shell variable.
583         (MERGE_RDATA_V2): New macro.
584         (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
585         selected script.
587 2010-05-15  Kai Tietz  <kai.tietz@onevision.com>
589         * emultempl/pe.em (is_underscoring): New helper function.
590         (gld_${EMULATION_NAME}_before_parse): Replace code
591         for pe(p)_leading_underscore detection by is_underscoring.
592         (U): Likewise.
593         (GET_INIT_SYMBOL_NAME): Likewise.
594         (U_SIZE): Likewise.
595         (set_pe_name):
596         (set_entry_point):
597         (gld_${EMULATION_NAME}_set_symbols):
598         * emultempl/pep.em: Likewise.
599         * pe-dll.c (pe_detail_list): Set default
600         underscoring for x64 target.
601         (pe_dll_id_target): Add initialization of
602         pe(p)_leading_underscore.
604 2010-05-15  Dave Korn  <dave.korn.cygwin@gmail.com>
606         * pe-dll.c: Removed trailing whitespaces.
608 2010-05-14  Alan Modra  <amodra@gmail.com>
610         PR ld/11583
611         * ldexp.c (exp_fold_tree_1): If assignment source expression is
612         invalid, make the destination symbol undefined.
614 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
616         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
617         Initialize pe(p)_leading_underscore variable.
618         (set_pe_name): Likewise.
619         * emultempl/pep.em: Likewise.
620         Additional change default to non-underscore for
621         pep_leading_underscore equal to -1.
623 2010-05-07  Tristan Gingold  <gingold@adacore.com>
625         * Makefile.in: Regenerate with automake 1.11.1.
626         * aclocal.m4: Ditto.
628 2010-05-05  Nick Clifton  <nickc@redhat.com>
630         * po/es.po: Updated Spanish translation.
632 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
634         * pe-dll.c (_nm_-symbols): Use always underscored variant
635         for symbols.
636         (__imp_-symbols): Likewise.
637         (___imp_-symbols): Likewise.
638         * NEWS: Mention ABI change for x64 PE-COFF.
640 2010-04-27  H.J. Lu  <hongjiu.lu@intel.com>
642         * Makefile.am (install-exec-local): Properly install ld as
643         default cross linker.
644         * Makefile.in: Regenerated.
646 2010-04-27  H.J. Lu  <hongjiu.lu@intel.com>
647             Nick Clifton  <nickc@redhat.com>
649         * configure.in (install_as_default): Define and set to true
650         unless --enable-gold=both/gold has been specified.
651         * configure: Regenerate.
653         * Makefile.am (transform): Use ld.bfd as the default name of
654         the linker.
655         (install-exec-local): Also install the executable as a binary
656         named 'ld' if install_as_default is true.
657         * Makefile.in: Regenerate.
659 2010-04-22  Nick Clifton  <nickc@redhat.com>
661         * po/ld.pot: Updated by the Translation project.
662         * po/vi.po: Updated Vietnamese translation.
663         * po/bg.po: Updated Bulgarian translation.
665 2010-04-15  Andrew Haley  <aph@redhat.com>
667         * emultempl/armelf.em (merge_exidx_entries): New variable.
668         (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
669         ("no-merge-exidx-entries"): New option.
670         * ld.texinfo (merge-exidx-entries): Document this option.
672 2010-04-14  Tristan Gingold  <gingold@adacore.com>
674         * emulparams/alphavms.sh: New file.
675         * emultempl/vms.em: New file.
676         * scripttempl/alphavms.sc: New file.
677         * configure.tgt (alpha*-*-*vms*): Added.
678         * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
679         (ealphavms.c): New target.
680         * Makefile.in: Regenerate.
682 2010-04-09  Nick Clifton  <nickc@redhat.com>
684         * ldlang.c (wild_sort): Remove unused variable section_name.
686 2010-04-07  Alan Modra  <amodra@gmail.com>
688         * configure: Regenerate.
690 2010-04-06  H.J. Lu  <hongjiu.lu@intel.com>
692         PR ld/11434
693         * ld/testsuite/ld-x86-64/unique1.d: New.
694         * ld/testsuite/ld-x86-64/unique1.s: Likewise.
696         * ld-x86-64/x86-64.exp: Run unique1.
698 2010-04-05  Kai Tietz  <kai.tietz@onevision.com>
700         * emultempl/pep.em (U): Macro modified.
701         (U_SIZE): New helper macro.
702         (GET_INIT_SYMBOL_NAME): Likewise.
703         (enum options): Add OPTION_NO_LEADING_UNDERSCORE
704         and OPTION_LEADING_UNDERSCORE enumerator-values.
705         (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
706         option.
707         (definfo): Add new member is_c_symbol.
708         (D): Add to macro underscore mode parameter.
709         (init): Add definition for is_c_symbol.
710         (gld_${EMULATION_NAME}_list_options): Display new options.
711         (set_pep_name): Adjust underscoring dependent fixed
712         symbol handling.
713         (gld_${EMULATION_NAME}_set_symbols): Likewise.
714         (saw_option): Likewise.
715         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
716         (set_entry_point): Initial initial_symbol_char dependent to
717         target's default and new option flag pep_leading_underscore.
718         * emultempl/pe.em (U): Macro modified.
719         (U_SIZE): New helper macro.
720         (GET_INIT_SYMBOL_NAME): Likewise.
721         (OPTION_LEADING_UNDERSCORE): Add new option define.
722         (OPTION_NO_LEADING_UNDERSCORE): Likewise.
723         (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
724         option.
725         (definfo): Add new member is_c_symbol.
726         (D): Add to macro underscore mode parameter.
727         (init): Add definition for is_c_symbol.
728         (gld_${EMULATION_NAME}_list_options): Display new options.
729         (set_pep_name): Adjust underscoring dependent fixed
730         symbol handling.
731         (gld_${EMULATION_NAME}_set_symbols): Likewise.
732         (saw_option): Likewise.
733         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
734         (set_entry_point): Initial initial_symbol_char dependent to
735         target's default and new option flag pep_leading_underscore.
736         * pe-dll.c (pe_leading_underscore): New flag variable.
737         (pe_detail_list): Remove const to allow modify of
738         member underscore.
739         (pe_dll_id_target): Initialize pe_details' underscore variable
740         dependent to target's default and flag pe_leading_underscore.
741         * pe-dll.h (pe_leading_underscore): Add extern declaration of
742         option flag.
743         * pep-dll.c (pe_leading_underscore): Add alias define for
744         pep_leading_underscore.
745         * pep-dll.h (pep_leading_underscore) Add extern declaration of
746         option flag.
747         * ld.texinfo: Add documentation for --(no-)leading-underscore
748         option.
750 2010-03-26  Alan Modra  <amodra@gmail.com>
752         PR ld/11426
753         * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
754         (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
756 2010-03-25  Joseph Myers  <joseph@codesourcery.com>
758         * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
759         eelf32_tic6x_le.o.
760         (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
761         * NEWS: Add news entry for TI C6X support.
762         * configure.tgt (tic6x-*-*): New.
763         * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
765 2010-03-23  Joseph Myers  <joseph@codesourcery.com>
767         * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
768         BSS_NAME): Define if not already defined.  Use in place of some
769         hardcoded section names.
771 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
773         * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
775 2010-03-18  Aymeric Vincent  <vincent@labri.fr>
777         PR ld/11384
778         * emultempl/sh64elf.em: Add missing EOF.
780 2010-03-18  Doug Semler  <dougsemler@gmail.com>
782         * pe-dll.c (make_one): Make text section readonly.
783         (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
784         the jump stub on X86 as /SAFESEH compatible for
785         native toolchains.
787 2010-03-17  Alan Modra  <amodra@gmail.com>
789         * ldlang.c (lang_size_sections_1): Remove "s" param.  Set "s" from
790         *prev instead.  Update all callers.
792 2010-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
794         * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
795         region and phdrs as their placement section.
797 2010-03-15  Alan Modra  <amodra@gmail.com>
799         * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
800         (ppc_before_allocation): Call sort_toc_sections.
801         (no_toc_sort, OPTION_NO_TOC_SORT): New.
802         (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
803          PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
805 2010-03-14  Alan Modra  <amodra@gmail.com>
807         PR ld/11378
808         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
809         ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
811 2010-03-11  George Gensure  <werkt0@gmail.com>
813         PR ld/11367
814         * ldcref.c (handle_asneeded_cref): Correct copying of refs.
816 2010-03-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
818         * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
819         eelf_i386_sol2.o.
820         (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
821         (eelf32_sparc_sol2.c): New rule.
822         (eelf64_sparc_sol2.c): Likewise.
823         (eelf_x86_64_sol2.c): Likewise.
824         (eelf_i386_sol2.c): Likewise.
825         * Makefile.in: Regenerate.
826         * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
827         elf_i386_sol2.
828         Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
829         (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
830         Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
831         (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
832         Add target_extra_emuls.
833         (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
834         Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
835         (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
836         Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
837         * emulparams/elf32_sparc_sol2.sh: New file.
838         * emulparams/elf64_sparc_sol2.sh: New file.
839         * emulparams/elf_i386_sol2.sh: New file.
840         * emulparams/elf_x86_64_sol2.sh: New file.
841         * emultempl/solaris2.em: New file.
843 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
845         PR ld/11330
846         * ld.texinfo: Replace explicitely with explicitly.
848 2010-02-27  Jie Zhang  <jie@codesourcery.com>
850         * scripttempl/armbpabi.sc: Don't combine .init_array.* or
851         .fini_array.* when do relocatable linking.
852         * scripttempl/elf.sc: Likewise.
853         * scripttempl/elf32sh-symbian.sc: Likewise.
854         * scripttempl/elf64hppa.sc: Likewise.
855         * scripttempl/elfxtensa.sc: Likewise.
857 2010-02-26  Alan Modra  <amodra@gmail.com>
859         * scripttempl/elf.sc (.fini_array): Place input .fini_array after
860         .fini_array.*.
861         * scripttempl/armbpabi.sc: Likewise.
862         * scripttempl/elf32sh-symbian.sc: Likewise.
863         * scripttempl/elf64hppa.sc: Likewise.
864         * scripttempl/elfxtensa.sc: Likewise.
866 2010-02-25  Alan Modra  <amodra@gmail.com>
868         PR ld/11304
869         * ldlang.c (init_os): Remove isec param.  Don't check for
870         bfd_section already set or call bfd_init_private_section_data
871         here.
872         (exp_init_os): Update init_os call.
873         (lang_add_section): Tidy.  Really don't set SEC_LINK_ONCE
874         flags.  Call bfd_init_private_section_data here.
875         (map_input_to_output_sections): Tidy.  Update init_os calls.
876         Use os->sectype to select sec flags for lang_data_statement.
878 2010-02-23  Alan Modra  <amodra@gmail.com>
880         PR ld/11304
881         * ldlang.c: Revert last patch.
883 2010-02-23  Nick Clifton  <nickc@redhat.com>
885         * po/bg.po: Updated Bulgarian translation.
887 2010-02-22  Alan Modra  <amodra@gmail.com>
889         PR ld/11304
890         * ldlang.c (exp_init_os): Delete forward declaration.
891         (init_os): Don't check for bfd_section already created and don't
892         init addr_tree and load_base expressions here.
893         (map_input_to_output_sections): Only map input to output sections
894         and set constraints here, and as an exception, create output
895         sections which have their address set.  Move all the other code to..
896         (create_other_output_sections): ..here.  New function.  Handle init
897         of addr_tree and load_base here too.
898         (lang_process): Call create_other_output_sections.
900 2010-02-19  Alan Modra  <amodra@gmail.com>
902         * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
903         * Makefile.in: Regenerate.
905 2010-02-19  Alan Modra  <amodra@gmail.com>
907         * ldlang.c (unique_section_p): Add os param.  Allow group
908         sections to match /DISCARD/.  Update all callers.
909         * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
910         (LDEMUL_BEFORE_ALLOCATION): Define.
912 2010-02-15  Nick Clifton  <nickc@redhat.com>
914         * po/vi.po: Updated Vietnamese translation.
916 2010-02-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
918         * Makefile.am (CFILES): Add ldlex-wrapper.c.
919         (OFILES): Replace ldlex.c with ldlex-wrapper.c.
920         (ldlex.o): Replace with...
921         (ldlex-wrapper.o): ...this new rule.
922         (EXTRA_ld_new_SOURCES): Add ldlex.l.
923         (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
924         * Makefile.in: Regenerate.
925         * ldlex.l (sysdep.h): Don't include here.
926         * ldlex-wrapper.c: New file.
928 2010-02-09  Alan Modra  <amodra@gmail.com>
930         * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
931         function parameters.
933 2010-02-05  Nick Clifton  <nickc@redhat.com>
935         * configure.in (ALL_LIBGUAS): Add bg.
936         * configure: Regenerate.
937         * po/bg.po: New Bulgarian translation.
939 2010-02-05  Ryan Mansfield  <rmansfield@qnx.com>
941         * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
942         --target1-abs and --target1-rel options.
944 2010-02-03  Nick Clifton  <nickc@redhat.com>
946         * emultempl/alphaelf.em: Update value expected from elf_object_id.
947         * emultempl/hppaelf.em: Likewise.
948         * emultempl/mipself.em: Likewise.
949         * emultempl/ppc32elf.em: Likewise.
950         * emultempl/ppc64elf.em: Likewise.
952 2010-02-03  Alan Modra  <amodra@gmail.com>
954         * emultempl/ppc64elf.em (build_toc_list): Report errors from
955         ppc64_elf_next_toc_section.
956         (after_allocation): Update for changed function names and params.
957         Run second pass of multitoc partitioning.
959 2010-01-21  Jon Grant  <jg@jguk.org>
960             Nick Clifton  <nickc@redhat.com>
962         PR 4437
963         * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
964         a missing file or library.  Instead mark the entry as missing and
965         set the global flag to indicate that missing files were
966         encountered.
967         * ldlang.c (missing_files): New exported variable.
968         (load_symbols): Skip loading if the file is missing.
969         (open_input_bfds): Terminate link if any input files were
970         missing.
971         * ldlang.h (struct lang_input_statement_struct): Add missing_file
972         field.
973         Add export of missing_file variable.
975 2010-01-13  DJ Delorie  <dj@redhat.com>
977         * emultempl/elf32.em (_place_orphan): If an input section doesn't
978         match an existing output section, but an unused output section
979         statement does match, use it.
980         * emultempl/pe.em (_place_orphan): Likewise.
981         * emultempl/pep.em (_place_orphan): Likewise.
983 2010-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
985         * configure: Regenerate.
986         * Makefile.in: Regenerate.
988 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
990         * ldver.c (ldversion): Change to "Copyright 2010".
992 2010-01-08  Alan Modra  <amodra@gmail.com>
994         PR 11107
995         * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
997 For older changes see ChangeLog-2009
999 Local Variables:
1000 mode: change-log
1001 left-margin: 8
1002 fill-column: 74
1003 version-control: never
1004 End: