1 2010-10-22 Alan Modra <amodra@gmail.com>
3 * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
4 output when section has no contents.
5 (build_link_order <lang_reloc_statement_enum>): Likewise.
7 2010-10-21 Joseph Myers <joseph@codesourcery.com>
9 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use
10 .c6xabi.attributes, not __TI_build_attributes.
12 2010-10-20 Dave Korn <dave.korn.cygwin@gmail.com>
14 * plugin.c (get_symbols): Check symbol type correctly.
16 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
18 * configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
19 * configure: Regenerate.
20 * config.in: Likewise.
21 * plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
22 trival LoadLibrary-based replacement for Windows systems.
23 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
24 replacement based on GetProcAddress.
25 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
26 * sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
27 anymore, use its own guard.
29 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
31 * plugin.c (add_input_file): Take copy of input string.
32 (add_input_library): Likewise.
33 (set_extra_library_path): Likewise.
35 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
37 Apply LD plugin patch series (part 6/6).
38 * ldlang.c (load_symbols): Handle bfd subsitution when calling the
39 add_archive_element callback.
40 * ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive
41 member to the plugins and if claimed set "subsbfd" output parameter to
42 point to the dummy IR-only BFD.
44 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
46 Apply LD plugin patch series (part 5/6).
47 * plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd,
48 find the elf symbol data and set the visibility in the st_other field.
50 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
52 Apply LD plugin patch series (part 4/6).
53 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of
54 plugin_call_all_symbols_read to before setting of gc_sym_list, and
55 open any new input files that may have been added during it.
56 * ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to
57 plugin_multiple_definition and let it have first say over what to do
58 with the clashing definitions.
59 * plugin.c (no_more_claiming): New boolean variable.
60 (plugin_cached_allow_multiple_defs): Likewise.
61 (add_input_file): Implement.
62 (add_input_library): Likewise.
63 (set_extra_library_path): Likewise.
64 (plugin_call_claim_file): Don't do anything when no_more_claiming set.
65 (plugin_call_all_symbols_read): Set it. Disable link info
66 "allow_multiple_definition" flag, but cache its value.
67 (plugin_multiple_definition): New function.
68 * plugin.h (plugin_multiple_definition): Add prototype.
69 * testplug.c (addfile_enum_t): New enumerated typedef.
70 (add_file_t): New struct typedef.
71 (addfiles_list): New variable.
72 (addfiles_tail_chain_ptr): Likewise.
73 (record_add_file): New function.
74 (parse_option): Parse "add:", "lib:" and "dir:" options and call it.
75 (onall_symbols_read): Iterate the list of new files, libs and dirs,
78 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
80 Apply LD plugin patch series (part 3/6).
81 * ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice.
82 * plugin.c (non_ironly_hash): Add new bfd hash table.
83 (plugin_load_plugins): Exit early if no plugins to load. If plugins
84 do load successfully, set notice_all flag in link info.
85 (get_symbols): Implement.
86 (plugin_load_plugins): Exit early if no plugins to load, else after
87 loading plugins successfully enable notice_all mode.
88 (init_non_ironly_hash): Lazily init non_ironly_hash table.
89 (plugin_notice): Record symbols referenced from non-IR files in the
90 non_ironly_hash. Suppress tracing, cref generation and nocrossrefs
91 tracking for symbols from dummy IR bfds.
92 * plugin.h: Fix formatting.
93 (plugin_notice): Add prototype.
94 * testplug.c (dumpresolutions): New global var.
95 (parse_options): Accept "dumpresolutions".
96 (onall_symbols_read): Get syms and dump resolutions if it was given.
98 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
100 Apply LD plugin patch series (part 2/6).
101 * ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early
102 during compat checks if they pass, instead offer any successfully
103 opened and accepted file to the plugin claim file hooks chain. Create
104 a dummy bfd to accept symbols added by the plugin, if the plugin
106 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols
107 read hook chain before ldemul_after_open.
108 * ldlang.h (struct lang_input_statement_struct): Add new single-bit
110 * plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix.
111 (IRONLY_SUFFIX_LEN): Length of the above string.
112 (plugin_get_ir_dummy_bfd): New function to create the dummy bfd used
113 to store symbols for ir-only files.
114 (is_ir_dummy_bfd): New function to check if a bfd is ir-only.
115 (asymbol_from_plugin_symbol): New function converts symbol formats.
116 (add_symbols): Call it to convert plugin syms to bfd syms and add
117 them to the dummy bfd.
118 * plugin.h: Add missing include guards.
119 (plugin_get_ir_dummy_bfd): Add prototype.
120 (is_ir_dummy_bfd): Likewise.
121 * testplug.c (TV_MESSAGE): New helper macro.
122 (struct claim_file): New struct.
123 (claim_file_t): New typedef.
124 (tag_names[]): Make static and const.
125 (claimfiles_list): New variable.
126 (claimfiles_tail_chain_ptr): Likewise.
127 (last_claimfile): Likewise.
128 (record_claim_file): Record a file to claim on a singly-linked list.
129 (parse_symdefstr): Parse an ASCII representation of a symbol from a
130 plugin option into the fields of a struct ld_plugin_symbol.
131 (record_claimed_file_symbol): Use it to parse plugin option for
133 (parse_option): Parse claim file and add symbol options.
134 (dump_tv_tag): Use TV_MESSAGE.
136 (onclaim_file): Make static. Use TV_MESSAGE. Scan list of files to
137 claim and claim this file if required, adding any symbols specified.
138 (onall_symbols_read): Make static and use TV_MESSAGE.
139 (oncleanup): Likewise.
141 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
143 Apply LD plugin patch series (part 1/6).
144 * configure.in: Add AC_CHECKs for file io and dlfcn headers and
145 functions and AC_SEARCH for -ldl.
146 (enable_plugins): New shell variable set if above tests find dlopen
148 (ENABLE_PLUGINS): Add related automake conditional.
149 * configure: Regenerate.
150 * config.in: Likewise.
151 * Makefile.am (PLUGIN_C): Declare plugin C source file, conditional
152 on ENABLE_PLUGINS being defined.
153 (PLUGIN_H): Likewise for header file.
154 (PLUGIN_OBJECT): Likewise for object file.
155 (PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support.
156 (AM_CPPFLAGS): Use PLUGIN_CFLAGS.
157 (CFILES): Use PLUGIN_C.
158 (HFILES): Use PLUGIN_H.
159 (OFILES): Use PLUGIN_OBJECT.
160 (ld_new_SOURCES): Use PLUGIN_C.
161 (noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin.
162 (libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition
164 (libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise.
165 (libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise.
166 * Makefile.in: Regenerate.
167 * sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or
168 sys/file.h where available. Include dlfcn.h when ENABLE_PLUGINS.
169 (O_RDONLY): Supply default definition likewise to bfd's sysdep.h
170 (O_WRONLY): Likewise.
172 (O_ACCMODE): Likewise.
173 (O_BINARY): Likewise.
174 (SEEK_SET): Likewise.
175 (SEEK_CUR): Likewise.
176 (SEEK_END): Likewise.
177 * ldmisc.c (vfinfo): Make non-static. Add %p format char.
178 * ldmisc.h (vfinfo): Declare extern prototype.
179 * lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for
180 OPTION_PLUGIN and OPTION_PLUGIN_OPT.
181 (ld_options[])[ENABLE_PLUGINS]: Add option data for the above two.
182 (parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once
183 option parsing is complete.
184 * ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just
186 * plugin.c: New source file.
187 * plugin.h: Likewise new header.
188 * testplug.c: New source file.
190 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
192 * emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed
193 basever_syms to global_syms.
194 Emit global_syms into .dynamic section for all executables and
196 (elf_solaris2_after_allocation): New function.
197 (LDEMUL_AFTER_ALLOCATION): Use it.
198 * emulparams/solaris2.sh: New file.
199 * emulparams/elf32_sparc_sol2.sh: Use it.
200 * emulparams/elf64_sparc_sol2.sh: Likewise.
201 * emulparams/elf_i386_sol2.sh: Likewise.
202 * emulparams/elf_x86_64_sol2.sh: Likewise.
203 * Makefile.am (eelf32_sparc_sol2.c): Depend on
204 $(srcdir)/emulparams/solaris2.sh.
205 (eelf64_sparc_sol2.c): Likewise.
206 (eelf_x86_64_sol2.c): Likewise.
207 (eelf_i386_sol2.c): Likewise.
208 * Makefile.in: Regenerate.
210 2010-10-06 Nick Clifton <nickc@redhat.com>
212 * ld.texinfo: Update description of computation of VMA and LMA
213 addresses for output sections.
215 2010-10-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
217 * Makefile.am (ALL_64_EMULATIONS): Fix typo in last commit.
218 * Makefile.in: Regenerate.
220 * Makefile.am (ALL_EMULATIONS): Rewrite in terms of ...
221 (ALL_EMULATION_SOURCES): ... this new variable.
222 (ALL_64_EMULATIONS): Rewrite in terms of ...
223 (ALL_64_EMULATION_SOURCES): ... this new variable.
224 (EXTRA_ld_new_SOURCES): Rewrite in terms of the _SOURCES
226 (eelf32microblaze.c): Fix indentation.
227 * Makefile.in: Regenerate.
229 2010-10-04 Bernd Schmidt <bernds@codesourcery.com>
231 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use
232 _bfd_elf_single_rel_hdr.
234 2010-10-01 Alan Modra <amodra@gmail.com>
237 * ldexp.c (fold_name): Treat absolute symbols as plain numbers.
238 * ld.texinfo (Expression Section): Don't say absolute symbols
241 2010-09-29 Alan Modra <amodra@gmail.com>
243 * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
244 section for orphans handled here.
246 2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
248 * configure: Regenerate.
250 2010-09-23 Dave Korn <dave.korn.cygwin@gmail.com>
252 * scripttempl/armcoff.sc: Revert 2010-09-22 change.
254 2010-09-23 Alan Modra <amodra@gmail.com>
256 * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
257 to output section on a final link.
259 2010-09-22 Kai Tietz <kai.tietz@onevision.com>
261 * ldlang.c (lang_add_section): Allow for debugging
262 section to be marked as noload but to keep content.
263 (IGNORE_SECTION): Likewise.
264 (lang_check_section_addresses): Likewise.
265 * ldwrite.c (build_link_order): Likewise.
267 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
269 * emultempl/pep.em: Likewise.
270 * scripttempl/armcoff.sc: Separate idata
271 and add __IAT_start__ and __IAT_end__ labels.
272 * scripttempl/pe.sc: Likewise.
273 * scripttempl/pep.sc: Likewise.
275 2010-09-20 David S. Miller <davem@davemloft.net>
277 * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
279 2010-09-16 Alan Modra <amodra@gmail.com>
281 * ld.texinfo (NOLOAD): Do not erroneously state that contents will
282 appear in output file.
283 * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
284 unless SEC_COFF_SHARED_LIBRARY.
285 (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
287 (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
288 to update dot in region. Ditto when setting SEC_ALLOC if dot
289 advanced due to assignment.
290 * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
292 2010-09-15 Kai Tietz <kai.tietz@onevision.com>
294 * scripttempl/pep.sc: Add .xdata segment and
295 put into .pdata all segments beginning with .pdata.
297 2010-09-10 Alan Modra <amodra@gmail.com>
300 * ldlang.h (lang_for_each_statement_worker): Declare.
301 * ldlang.c (lang_for_each_statement_worker): Make global. Don't
302 recurse into children of output_section_statement with constraint
304 (print_assignment): Handle NULL output_section->bfd_section.
305 (lang_size_sections_1): Ignore output section statement address
306 when constraint is -1.
307 * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
309 2010-09-09 Tristan Gingold <gingold@adacore.com>
311 * NEWS: Add a entry for alpha-vms.
313 2010-09-07 Andrew Burgess <aburgess@broadcom.com>
315 * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
316 newly cloned section.
318 2010-09-02 Richard Henderson <rth@redhat.com>
320 * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too.
322 2010-08-31 Nick Clifton <nickc@redhat.com>
324 * ldlex.l (WILDCHAR): Add the caret and exclamation point
325 characters, so that they can be used inside globs.
327 2010-08-31 Nick Clifton <nickc@redhat.com>
329 * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
330 a region's attributes.
332 2010-08-31 Alan Modra <amodra@gmail.com>
334 * scripttempl/mmo.sc: Move assignment to "Main" inside .text
335 output section statement.
337 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
340 * emultempl/elf32.em (_before_allocation): Check audit entry
343 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
346 * emultempl/elf32.em (_after_open): Find one .eh_frame section
349 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
352 * emultempl/elf32.em (_after_open): Find an ELF input for
353 --build-id and --eh-frame-hdr.
355 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
357 * Makefile.am (eshlelf_fd.c): Correct the name of the tool
359 * Makefile.in: Regenerate.
361 2010-08-20 Nick Clifton <nickc@redhat.com>
363 * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
366 2010-08-19 Alan Modra <amodra@gmail.com>
368 * NEWS: Mention change in linker script expression evaluation.
370 2010-08-19 Alan Modra <amodra@gmail.com>
372 * ld.texinfo (Expression Section): Detail expression evaluation.
373 (Builtin Functions <ADDR>): Correct.
374 (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
376 (Builtin Functions <SEGMENT_START>): Typo fix.
377 * ldexp.c (new_number): New function.
378 (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
379 (fold_unary <'~', '!', '-'>): Don't make_abs.
380 (fold_binary): Simplify result section logic. Return NULL section
382 (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
384 (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
385 (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
386 (fold_name <NAME>): No need to handle absolute symbols differently
388 (fold_name <ORIGIN>): Don't return valid result when
389 lang_first_phase_enum. Return new_rel_from_abs, not new_abs.
390 (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
391 (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning
392 a plain number to dot, assume the value is relative to expld.section.
393 Make terms not in an output section, absolute.
394 * ldlang.c (print_assignment): Fix style nit.
395 (lang_size_sections_1): Cope with NULL expld.result.section.
396 (lang_do_assignments_1): Likewise.
398 2010-08-12 Alan Modra <amodra@gmail.com>
400 * ldexp.c (new_rel): Remove "str". Update all call sites.
401 (exp_fold_tree_1): When assigning to dot, calculate nextdot
402 using expld.result.section rather than expld.section.
404 2010-08-06 Alan Modra <amodra@gmail.com>
407 * ldlang.c (lang_add_vers_depend): Don't leave version_needed
410 2010-07-28 Alan Modra <amodra@gmail.com>
412 * ldexp.c (exp_print_tree): Print function-like binary nodes as
413 functions rather than in-fix operators. Use fputs and fputc
416 2010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
417 Ina Pandit <ina.pandit@kpitcummins.com>
419 * configure.tgt: Match all v850 targets.
421 2010-07-20 Mike Frysinger <vapier@gentoo.org>
423 * ld.texinfo (VERSION): Remove "int" from example script and add ";".
424 Declare the default language as C.
426 2010-07-17 Alan Modra <amodra@gmail.com>
428 * ldlang.c (lang_check_section_addresses): Catch overlap for
429 sections that wrap around the address space.
431 2010-06-29 Nick Clifton <nickc@redhat.com>
433 * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
434 with the .gcc_except_table. prefix.
436 2010-06-29 Alan Modra <amodra@gmail.com>
438 * emulparams/maxqcoff.sh: Delete file.
439 * scripttempl/maxqcoff.sc: Delete file.
440 * Makefile.am: Remove references to maxq.
441 * configure.tgt: Likewise.
442 * Makefile.in: Regenerate.
443 * configure: Regenerate.
444 * po/POTFILES.in: Regenerate.
446 2010-06-27 Alan Modra <amodra@gmail.com>
448 * pe-dll.c (fill_edata): Avoid set but unused warning.
449 (pe_walk_relocs_of_symbol): Delete set but unused variables.
450 (generate_reloc, pe_implied_import_dll): Likewise.
451 * emultempl/aix.em (open_dynamic_archive): Likewise.
452 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
453 (xtensa_layout_wild): Likewise.
454 (xtensa_colocate_output_literals_callback): Likewise.
456 2010-06-25 Alan Modra <amodra@gmail.com>
458 * emultempl/ppc64elf.em (prelim_size_sections): New function.
459 (ppc_before_allocation): Use it. Size sections before toc edit too.
461 2010-06-25 Alan Modra <amodra@gmail.com>
463 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
465 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
467 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
468 auto-import and merge-rdata defaults same for i[3-7]86 and
471 2010-06-15 Joseph Myers <joseph@codesourcery.com>
473 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
475 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
478 * pe-dll.c (process_def_file_and_drectve): Reorder check for
479 forwarded export name after check for ordinary export.
481 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
483 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
485 2010-06-08 Nick Clifton <nickc@redhat.com>
487 * fdl.texi: Replace with v1.3 text.
488 * ld.texinfo: Replace abbreviated 20th century year numbers with
490 * ldint.texinfo: Likewise.
491 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
492 include of the fdl.texi file.
494 2010-06-01 Tristan Gingold <gingold@adacore.com>
496 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
497 readonly output-section. Handle LIB$INITIALIZE and sections
499 * emultempl/vms.em (vms_place_orphan): Add comments.
501 2010-05-28 Nick Clifton <nickc@redhat.com>
503 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
504 * Makefile.in: Regenerate.
506 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
509 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
510 multiple of maximum page size.
512 2010-05-25 Nick Clifton <nickc@redhat.com>
514 * Makefile.am: Fix typo.
515 * Makefile.in: Regenerate.
517 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
518 Joseph Myers <joseph@codesourcery.com>
519 Andrew Stubbs <ams@codesourcery.com>
521 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
522 (eshelf_fd.c, eshlelf_fd.c): New rules.
523 * Makefile.in: Regenerate.
524 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
526 * emulparams/shelf_fd.sh: New file.
527 * emulparams/shlelf_fd.sh: New file.
528 * emulparams/shlelf_linux.sh: Update comment.
530 2010-05-25 Jay Krell <jay.krell@cornell.edu>
533 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
534 * Makefile.in: Regenerate.
536 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
538 * deffilep.y (opt_name): Allow leading dot.
539 (dot_name): Likewise.
540 (anylang_id): Likewise.
541 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
543 (gld${EMULATION_NAME}_handle_option): Warn about v1.
544 (pep_find_data_imports): Remove superflous warnings about
546 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
547 and active pseudo-relocation-v2 rdata into data section.
548 * emultempl/pe.em (default_merge_rdata): New shell variable.
549 (MERGE_RDATA_V2): New macro.
550 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
553 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
555 * emultempl/pe.em (is_underscoring): New helper function.
556 (gld_${EMULATION_NAME}_before_parse): Replace code
557 for pe(p)_leading_underscore detection by is_underscoring.
559 (GET_INIT_SYMBOL_NAME): Likewise.
563 (gld_${EMULATION_NAME}_set_symbols):
564 * emultempl/pep.em: Likewise.
565 * pe-dll.c (pe_detail_list): Set default
566 underscoring for x64 target.
567 (pe_dll_id_target): Add initialization of
568 pe(p)_leading_underscore.
570 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
572 * pe-dll.c: Removed trailing whitespaces.
574 2010-05-14 Alan Modra <amodra@gmail.com>
577 * ldexp.c (exp_fold_tree_1): If assignment source expression is
578 invalid, make the destination symbol undefined.
580 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
582 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
583 Initialize pe(p)_leading_underscore variable.
584 (set_pe_name): Likewise.
585 * emultempl/pep.em: Likewise.
586 Additional change default to non-underscore for
587 pep_leading_underscore equal to -1.
589 2010-05-07 Tristan Gingold <gingold@adacore.com>
591 * Makefile.in: Regenerate with automake 1.11.1.
594 2010-05-05 Nick Clifton <nickc@redhat.com>
596 * po/es.po: Updated Spanish translation.
598 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
600 * pe-dll.c (_nm_-symbols): Use always underscored variant
602 (__imp_-symbols): Likewise.
603 (___imp_-symbols): Likewise.
604 * NEWS: Mention ABI change for x64 PE-COFF.
606 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
608 * Makefile.am (install-exec-local): Properly install ld as
609 default cross linker.
610 * Makefile.in: Regenerated.
612 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
613 Nick Clifton <nickc@redhat.com>
615 * configure.in (install_as_default): Define and set to true
616 unless --enable-gold=both/gold has been specified.
617 * configure: Regenerate.
619 * Makefile.am (transform): Use ld.bfd as the default name of
621 (install-exec-local): Also install the executable as a binary
622 named 'ld' if install_as_default is true.
623 * Makefile.in: Regenerate.
625 2010-04-22 Nick Clifton <nickc@redhat.com>
627 * po/ld.pot: Updated by the Translation project.
628 * po/vi.po: Updated Vietnamese translation.
629 * po/bg.po: Updated Bulgarian translation.
631 2010-04-15 Andrew Haley <aph@redhat.com>
633 * emultempl/armelf.em (merge_exidx_entries): New variable.
634 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
635 ("no-merge-exidx-entries"): New option.
636 * ld.texinfo (merge-exidx-entries): Document this option.
638 2010-04-14 Tristan Gingold <gingold@adacore.com>
640 * emulparams/alphavms.sh: New file.
641 * emultempl/vms.em: New file.
642 * scripttempl/alphavms.sc: New file.
643 * configure.tgt (alpha*-*-*vms*): Added.
644 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
645 (ealphavms.c): New target.
646 * Makefile.in: Regenerate.
648 2010-04-09 Nick Clifton <nickc@redhat.com>
650 * ldlang.c (wild_sort): Remove unused variable section_name.
652 2010-04-07 Alan Modra <amodra@gmail.com>
654 * configure: Regenerate.
656 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
659 * ld/testsuite/ld-x86-64/unique1.d: New.
660 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
662 * ld-x86-64/x86-64.exp: Run unique1.
664 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
666 * emultempl/pep.em (U): Macro modified.
667 (U_SIZE): New helper macro.
668 (GET_INIT_SYMBOL_NAME): Likewise.
669 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
670 and OPTION_LEADING_UNDERSCORE enumerator-values.
671 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
673 (definfo): Add new member is_c_symbol.
674 (D): Add to macro underscore mode parameter.
675 (init): Add definition for is_c_symbol.
676 (gld_${EMULATION_NAME}_list_options): Display new options.
677 (set_pep_name): Adjust underscoring dependent fixed
679 (gld_${EMULATION_NAME}_set_symbols): Likewise.
680 (saw_option): Likewise.
681 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
682 (set_entry_point): Initial initial_symbol_char dependent to
683 target's default and new option flag pep_leading_underscore.
684 * emultempl/pe.em (U): Macro modified.
685 (U_SIZE): New helper macro.
686 (GET_INIT_SYMBOL_NAME): Likewise.
687 (OPTION_LEADING_UNDERSCORE): Add new option define.
688 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
689 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
691 (definfo): Add new member is_c_symbol.
692 (D): Add to macro underscore mode parameter.
693 (init): Add definition for is_c_symbol.
694 (gld_${EMULATION_NAME}_list_options): Display new options.
695 (set_pep_name): Adjust underscoring dependent fixed
697 (gld_${EMULATION_NAME}_set_symbols): Likewise.
698 (saw_option): Likewise.
699 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
700 (set_entry_point): Initial initial_symbol_char dependent to
701 target's default and new option flag pep_leading_underscore.
702 * pe-dll.c (pe_leading_underscore): New flag variable.
703 (pe_detail_list): Remove const to allow modify of
705 (pe_dll_id_target): Initialize pe_details' underscore variable
706 dependent to target's default and flag pe_leading_underscore.
707 * pe-dll.h (pe_leading_underscore): Add extern declaration of
709 * pep-dll.c (pe_leading_underscore): Add alias define for
710 pep_leading_underscore.
711 * pep-dll.h (pep_leading_underscore) Add extern declaration of
713 * ld.texinfo: Add documentation for --(no-)leading-underscore
716 2010-03-26 Alan Modra <amodra@gmail.com>
719 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
720 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
722 2010-03-25 Joseph Myers <joseph@codesourcery.com>
724 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
726 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
727 * NEWS: Add news entry for TI C6X support.
728 * configure.tgt (tic6x-*-*): New.
729 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
731 2010-03-23 Joseph Myers <joseph@codesourcery.com>
733 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
734 BSS_NAME): Define if not already defined. Use in place of some
735 hardcoded section names.
737 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
739 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
741 2010-03-18 Aymeric Vincent <vincent@labri.fr>
744 * emultempl/sh64elf.em: Add missing EOF.
746 2010-03-18 Doug Semler <dougsemler@gmail.com>
748 * pe-dll.c (make_one): Make text section readonly.
749 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
750 the jump stub on X86 as /SAFESEH compatible for
753 2010-03-17 Alan Modra <amodra@gmail.com>
755 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
756 *prev instead. Update all callers.
758 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
760 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
761 region and phdrs as their placement section.
763 2010-03-15 Alan Modra <amodra@gmail.com>
765 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
766 (ppc_before_allocation): Call sort_toc_sections.
767 (no_toc_sort, OPTION_NO_TOC_SORT): New.
768 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
769 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
771 2010-03-14 Alan Modra <amodra@gmail.com>
774 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
775 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
777 2010-03-11 George Gensure <werkt0@gmail.com>
780 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
782 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
784 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
786 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
787 (eelf32_sparc_sol2.c): New rule.
788 (eelf64_sparc_sol2.c): Likewise.
789 (eelf_x86_64_sol2.c): Likewise.
790 (eelf_i386_sol2.c): Likewise.
791 * Makefile.in: Regenerate.
792 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
794 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
795 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
796 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
797 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
798 Add target_extra_emuls.
799 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
800 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
801 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
802 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
803 * emulparams/elf32_sparc_sol2.sh: New file.
804 * emulparams/elf64_sparc_sol2.sh: New file.
805 * emulparams/elf_i386_sol2.sh: New file.
806 * emulparams/elf_x86_64_sol2.sh: New file.
807 * emultempl/solaris2.em: New file.
809 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
812 * ld.texinfo: Replace explicitely with explicitly.
814 2010-02-27 Jie Zhang <jie@codesourcery.com>
816 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
817 .fini_array.* when do relocatable linking.
818 * scripttempl/elf.sc: Likewise.
819 * scripttempl/elf32sh-symbian.sc: Likewise.
820 * scripttempl/elf64hppa.sc: Likewise.
821 * scripttempl/elfxtensa.sc: Likewise.
823 2010-02-26 Alan Modra <amodra@gmail.com>
825 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
827 * scripttempl/armbpabi.sc: Likewise.
828 * scripttempl/elf32sh-symbian.sc: Likewise.
829 * scripttempl/elf64hppa.sc: Likewise.
830 * scripttempl/elfxtensa.sc: Likewise.
832 2010-02-25 Alan Modra <amodra@gmail.com>
835 * ldlang.c (init_os): Remove isec param. Don't check for
836 bfd_section already set or call bfd_init_private_section_data
838 (exp_init_os): Update init_os call.
839 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
840 flags. Call bfd_init_private_section_data here.
841 (map_input_to_output_sections): Tidy. Update init_os calls.
842 Use os->sectype to select sec flags for lang_data_statement.
844 2010-02-23 Alan Modra <amodra@gmail.com>
847 * ldlang.c: Revert last patch.
849 2010-02-23 Nick Clifton <nickc@redhat.com>
851 * po/bg.po: Updated Bulgarian translation.
853 2010-02-22 Alan Modra <amodra@gmail.com>
856 * ldlang.c (exp_init_os): Delete forward declaration.
857 (init_os): Don't check for bfd_section already created and don't
858 init addr_tree and load_base expressions here.
859 (map_input_to_output_sections): Only map input to output sections
860 and set constraints here, and as an exception, create output
861 sections which have their address set. Move all the other code to..
862 (create_other_output_sections): ..here. New function. Handle init
863 of addr_tree and load_base here too.
864 (lang_process): Call create_other_output_sections.
866 2010-02-19 Alan Modra <amodra@gmail.com>
868 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
869 * Makefile.in: Regenerate.
871 2010-02-19 Alan Modra <amodra@gmail.com>
873 * ldlang.c (unique_section_p): Add os param. Allow group
874 sections to match /DISCARD/. Update all callers.
875 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
876 (LDEMUL_BEFORE_ALLOCATION): Define.
878 2010-02-15 Nick Clifton <nickc@redhat.com>
880 * po/vi.po: Updated Vietnamese translation.
882 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
884 * Makefile.am (CFILES): Add ldlex-wrapper.c.
885 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
886 (ldlex.o): Replace with...
887 (ldlex-wrapper.o): ...this new rule.
888 (EXTRA_ld_new_SOURCES): Add ldlex.l.
889 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
890 * Makefile.in: Regenerate.
891 * ldlex.l (sysdep.h): Don't include here.
892 * ldlex-wrapper.c: New file.
894 2010-02-09 Alan Modra <amodra@gmail.com>
896 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
899 2010-02-05 Nick Clifton <nickc@redhat.com>
901 * configure.in (ALL_LIBGUAS): Add bg.
902 * configure: Regenerate.
903 * po/bg.po: New Bulgarian translation.
905 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
907 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
908 --target1-abs and --target1-rel options.
910 2010-02-03 Nick Clifton <nickc@redhat.com>
912 * emultempl/alphaelf.em: Update value expected from elf_object_id.
913 * emultempl/hppaelf.em: Likewise.
914 * emultempl/mipself.em: Likewise.
915 * emultempl/ppc32elf.em: Likewise.
916 * emultempl/ppc64elf.em: Likewise.
918 2010-02-03 Alan Modra <amodra@gmail.com>
920 * emultempl/ppc64elf.em (build_toc_list): Report errors from
921 ppc64_elf_next_toc_section.
922 (after_allocation): Update for changed function names and params.
923 Run second pass of multitoc partitioning.
925 2010-01-21 Jon Grant <jg@jguk.org>
926 Nick Clifton <nickc@redhat.com>
929 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
930 a missing file or library. Instead mark the entry as missing and
931 set the global flag to indicate that missing files were
933 * ldlang.c (missing_files): New exported variable.
934 (load_symbols): Skip loading if the file is missing.
935 (open_input_bfds): Terminate link if any input files were
937 * ldlang.h (struct lang_input_statement_struct): Add missing_file
939 Add export of missing_file variable.
941 2010-01-13 DJ Delorie <dj@redhat.com>
943 * emultempl/elf32.em (_place_orphan): If an input section doesn't
944 match an existing output section, but an unused output section
945 statement does match, use it.
946 * emultempl/pe.em (_place_orphan): Likewise.
947 * emultempl/pep.em (_place_orphan): Likewise.
949 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
951 * configure: Regenerate.
952 * Makefile.in: Regenerate.
954 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
956 * ldver.c (ldversion): Change to "Copyright 2010".
958 2010-01-08 Alan Modra <amodra@gmail.com>
961 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
963 For older changes see ChangeLog-2009
969 version-control: never