1 2010-10-28 Alan Modra <amodra@gmail.com>
3 * ldlang.h (ldlang_add_undef): Add cmdline param.
4 * ldlang.c (undef_from_cmdline): New var.
5 (ldlang_add_undef): Add cmdline param. Set undef_from_cmdline.
6 (lang_end): Really require -e or -u from command line on
7 relocatable --gc-sections.
8 * ldemul.c (after_parse_default): Adjust ldlang_add_undef call.
9 * ldgram.y (extern_name_list_body): Likewise.
10 * lexsup.c (parse_args): Likewise.
11 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
13 2010-10-25 Alan Modra <amodra@gmail.com>
15 * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
18 2010-10-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20 * emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to
22 * emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to
25 2010-10-22 Alan Modra <amodra@gmail.com>
27 * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
28 output when section has no contents.
29 (build_link_order <lang_reloc_statement_enum>): Likewise.
31 2010-10-21 Joseph Myers <joseph@codesourcery.com>
33 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use
34 .c6xabi.attributes, not __TI_build_attributes.
36 2010-10-20 Dave Korn <dave.korn.cygwin@gmail.com>
38 * plugin.c (get_symbols): Check symbol type correctly.
40 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
42 * configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
43 * configure: Regenerate.
44 * config.in: Likewise.
45 * plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
46 trival LoadLibrary-based replacement for Windows systems.
47 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
48 replacement based on GetProcAddress.
49 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
50 * sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
51 anymore, use its own guard.
53 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
55 * plugin.c (add_input_file): Take copy of input string.
56 (add_input_library): Likewise.
57 (set_extra_library_path): Likewise.
59 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
61 Apply LD plugin patch series (part 6/6).
62 * ldlang.c (load_symbols): Handle bfd subsitution when calling the
63 add_archive_element callback.
64 * ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive
65 member to the plugins and if claimed set "subsbfd" output parameter to
66 point to the dummy IR-only BFD.
68 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
70 Apply LD plugin patch series (part 5/6).
71 * plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd,
72 find the elf symbol data and set the visibility in the st_other field.
74 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
76 Apply LD plugin patch series (part 4/6).
77 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of
78 plugin_call_all_symbols_read to before setting of gc_sym_list, and
79 open any new input files that may have been added during it.
80 * ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to
81 plugin_multiple_definition and let it have first say over what to do
82 with the clashing definitions.
83 * plugin.c (no_more_claiming): New boolean variable.
84 (plugin_cached_allow_multiple_defs): Likewise.
85 (add_input_file): Implement.
86 (add_input_library): Likewise.
87 (set_extra_library_path): Likewise.
88 (plugin_call_claim_file): Don't do anything when no_more_claiming set.
89 (plugin_call_all_symbols_read): Set it. Disable link info
90 "allow_multiple_definition" flag, but cache its value.
91 (plugin_multiple_definition): New function.
92 * plugin.h (plugin_multiple_definition): Add prototype.
93 * testplug.c (addfile_enum_t): New enumerated typedef.
94 (add_file_t): New struct typedef.
95 (addfiles_list): New variable.
96 (addfiles_tail_chain_ptr): Likewise.
97 (record_add_file): New function.
98 (parse_option): Parse "add:", "lib:" and "dir:" options and call it.
99 (onall_symbols_read): Iterate the list of new files, libs and dirs,
102 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
104 Apply LD plugin patch series (part 3/6).
105 * ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice.
106 * plugin.c (non_ironly_hash): Add new bfd hash table.
107 (plugin_load_plugins): Exit early if no plugins to load. If plugins
108 do load successfully, set notice_all flag in link info.
109 (get_symbols): Implement.
110 (plugin_load_plugins): Exit early if no plugins to load, else after
111 loading plugins successfully enable notice_all mode.
112 (init_non_ironly_hash): Lazily init non_ironly_hash table.
113 (plugin_notice): Record symbols referenced from non-IR files in the
114 non_ironly_hash. Suppress tracing, cref generation and nocrossrefs
115 tracking for symbols from dummy IR bfds.
116 * plugin.h: Fix formatting.
117 (plugin_notice): Add prototype.
118 * testplug.c (dumpresolutions): New global var.
119 (parse_options): Accept "dumpresolutions".
120 (onall_symbols_read): Get syms and dump resolutions if it was given.
122 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
124 Apply LD plugin patch series (part 2/6).
125 * ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early
126 during compat checks if they pass, instead offer any successfully
127 opened and accepted file to the plugin claim file hooks chain. Create
128 a dummy bfd to accept symbols added by the plugin, if the plugin
130 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols
131 read hook chain before ldemul_after_open.
132 * ldlang.h (struct lang_input_statement_struct): Add new single-bit
134 * plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix.
135 (IRONLY_SUFFIX_LEN): Length of the above string.
136 (plugin_get_ir_dummy_bfd): New function to create the dummy bfd used
137 to store symbols for ir-only files.
138 (is_ir_dummy_bfd): New function to check if a bfd is ir-only.
139 (asymbol_from_plugin_symbol): New function converts symbol formats.
140 (add_symbols): Call it to convert plugin syms to bfd syms and add
141 them to the dummy bfd.
142 * plugin.h: Add missing include guards.
143 (plugin_get_ir_dummy_bfd): Add prototype.
144 (is_ir_dummy_bfd): Likewise.
145 * testplug.c (TV_MESSAGE): New helper macro.
146 (struct claim_file): New struct.
147 (claim_file_t): New typedef.
148 (tag_names[]): Make static and const.
149 (claimfiles_list): New variable.
150 (claimfiles_tail_chain_ptr): Likewise.
151 (last_claimfile): Likewise.
152 (record_claim_file): Record a file to claim on a singly-linked list.
153 (parse_symdefstr): Parse an ASCII representation of a symbol from a
154 plugin option into the fields of a struct ld_plugin_symbol.
155 (record_claimed_file_symbol): Use it to parse plugin option for
157 (parse_option): Parse claim file and add symbol options.
158 (dump_tv_tag): Use TV_MESSAGE.
160 (onclaim_file): Make static. Use TV_MESSAGE. Scan list of files to
161 claim and claim this file if required, adding any symbols specified.
162 (onall_symbols_read): Make static and use TV_MESSAGE.
163 (oncleanup): Likewise.
165 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
167 Apply LD plugin patch series (part 1/6).
168 * configure.in: Add AC_CHECKs for file io and dlfcn headers and
169 functions and AC_SEARCH for -ldl.
170 (enable_plugins): New shell variable set if above tests find dlopen
172 (ENABLE_PLUGINS): Add related automake conditional.
173 * configure: Regenerate.
174 * config.in: Likewise.
175 * Makefile.am (PLUGIN_C): Declare plugin C source file, conditional
176 on ENABLE_PLUGINS being defined.
177 (PLUGIN_H): Likewise for header file.
178 (PLUGIN_OBJECT): Likewise for object file.
179 (PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support.
180 (AM_CPPFLAGS): Use PLUGIN_CFLAGS.
181 (CFILES): Use PLUGIN_C.
182 (HFILES): Use PLUGIN_H.
183 (OFILES): Use PLUGIN_OBJECT.
184 (ld_new_SOURCES): Use PLUGIN_C.
185 (noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin.
186 (libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition
188 (libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise.
189 (libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise.
190 * Makefile.in: Regenerate.
191 * sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or
192 sys/file.h where available. Include dlfcn.h when ENABLE_PLUGINS.
193 (O_RDONLY): Supply default definition likewise to bfd's sysdep.h
194 (O_WRONLY): Likewise.
196 (O_ACCMODE): Likewise.
197 (O_BINARY): Likewise.
198 (SEEK_SET): Likewise.
199 (SEEK_CUR): Likewise.
200 (SEEK_END): Likewise.
201 * ldmisc.c (vfinfo): Make non-static. Add %p format char.
202 * ldmisc.h (vfinfo): Declare extern prototype.
203 * lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for
204 OPTION_PLUGIN and OPTION_PLUGIN_OPT.
205 (ld_options[])[ENABLE_PLUGINS]: Add option data for the above two.
206 (parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once
207 option parsing is complete.
208 * ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just
210 * plugin.c: New source file.
211 * plugin.h: Likewise new header.
212 * testplug.c: New source file.
214 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
216 * emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed
217 basever_syms to global_syms.
218 Emit global_syms into .dynamic section for all executables and
220 (elf_solaris2_after_allocation): New function.
221 (LDEMUL_AFTER_ALLOCATION): Use it.
222 * emulparams/solaris2.sh: New file.
223 * emulparams/elf32_sparc_sol2.sh: Use it.
224 * emulparams/elf64_sparc_sol2.sh: Likewise.
225 * emulparams/elf_i386_sol2.sh: Likewise.
226 * emulparams/elf_x86_64_sol2.sh: Likewise.
227 * Makefile.am (eelf32_sparc_sol2.c): Depend on
228 $(srcdir)/emulparams/solaris2.sh.
229 (eelf64_sparc_sol2.c): Likewise.
230 (eelf_x86_64_sol2.c): Likewise.
231 (eelf_i386_sol2.c): Likewise.
232 * Makefile.in: Regenerate.
234 2010-10-06 Nick Clifton <nickc@redhat.com>
236 * ld.texinfo: Update description of computation of VMA and LMA
237 addresses for output sections.
239 2010-10-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
241 * Makefile.am (ALL_64_EMULATIONS): Fix typo in last commit.
242 * Makefile.in: Regenerate.
244 * Makefile.am (ALL_EMULATIONS): Rewrite in terms of ...
245 (ALL_EMULATION_SOURCES): ... this new variable.
246 (ALL_64_EMULATIONS): Rewrite in terms of ...
247 (ALL_64_EMULATION_SOURCES): ... this new variable.
248 (EXTRA_ld_new_SOURCES): Rewrite in terms of the _SOURCES
250 (eelf32microblaze.c): Fix indentation.
251 * Makefile.in: Regenerate.
253 2010-10-04 Bernd Schmidt <bernds@codesourcery.com>
255 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use
256 _bfd_elf_single_rel_hdr.
258 2010-10-01 Alan Modra <amodra@gmail.com>
261 * ldexp.c (fold_name): Treat absolute symbols as plain numbers.
262 * ld.texinfo (Expression Section): Don't say absolute symbols
265 2010-09-29 Alan Modra <amodra@gmail.com>
267 * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
268 section for orphans handled here.
270 2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
272 * configure: Regenerate.
274 2010-09-23 Dave Korn <dave.korn.cygwin@gmail.com>
276 * scripttempl/armcoff.sc: Revert 2010-09-22 change.
278 2010-09-23 Alan Modra <amodra@gmail.com>
280 * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
281 to output section on a final link.
283 2010-09-22 Kai Tietz <kai.tietz@onevision.com>
285 * ldlang.c (lang_add_section): Allow for debugging
286 section to be marked as noload but to keep content.
287 (IGNORE_SECTION): Likewise.
288 (lang_check_section_addresses): Likewise.
289 * ldwrite.c (build_link_order): Likewise.
291 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
293 * emultempl/pep.em: Likewise.
294 * scripttempl/armcoff.sc: Separate idata
295 and add __IAT_start__ and __IAT_end__ labels.
296 * scripttempl/pe.sc: Likewise.
297 * scripttempl/pep.sc: Likewise.
299 2010-09-20 David S. Miller <davem@davemloft.net>
301 * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
303 2010-09-16 Alan Modra <amodra@gmail.com>
305 * ld.texinfo (NOLOAD): Do not erroneously state that contents will
306 appear in output file.
307 * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
308 unless SEC_COFF_SHARED_LIBRARY.
309 (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
311 (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
312 to update dot in region. Ditto when setting SEC_ALLOC if dot
313 advanced due to assignment.
314 * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
316 2010-09-15 Kai Tietz <kai.tietz@onevision.com>
318 * scripttempl/pep.sc: Add .xdata segment and
319 put into .pdata all segments beginning with .pdata.
321 2010-09-10 Alan Modra <amodra@gmail.com>
324 * ldlang.h (lang_for_each_statement_worker): Declare.
325 * ldlang.c (lang_for_each_statement_worker): Make global. Don't
326 recurse into children of output_section_statement with constraint
328 (print_assignment): Handle NULL output_section->bfd_section.
329 (lang_size_sections_1): Ignore output section statement address
330 when constraint is -1.
331 * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
333 2010-09-09 Tristan Gingold <gingold@adacore.com>
335 * NEWS: Add a entry for alpha-vms.
337 2010-09-07 Andrew Burgess <aburgess@broadcom.com>
339 * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
340 newly cloned section.
342 2010-09-02 Richard Henderson <rth@redhat.com>
344 * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too.
346 2010-08-31 Nick Clifton <nickc@redhat.com>
348 * ldlex.l (WILDCHAR): Add the caret and exclamation point
349 characters, so that they can be used inside globs.
351 2010-08-31 Nick Clifton <nickc@redhat.com>
353 * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
354 a region's attributes.
356 2010-08-31 Alan Modra <amodra@gmail.com>
358 * scripttempl/mmo.sc: Move assignment to "Main" inside .text
359 output section statement.
361 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
364 * emultempl/elf32.em (_before_allocation): Check audit entry
367 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
370 * emultempl/elf32.em (_after_open): Find one .eh_frame section
373 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
376 * emultempl/elf32.em (_after_open): Find an ELF input for
377 --build-id and --eh-frame-hdr.
379 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
381 * Makefile.am (eshlelf_fd.c): Correct the name of the tool
383 * Makefile.in: Regenerate.
385 2010-08-20 Nick Clifton <nickc@redhat.com>
387 * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
390 2010-08-19 Alan Modra <amodra@gmail.com>
392 * NEWS: Mention change in linker script expression evaluation.
394 2010-08-19 Alan Modra <amodra@gmail.com>
396 * ld.texinfo (Expression Section): Detail expression evaluation.
397 (Builtin Functions <ADDR>): Correct.
398 (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
400 (Builtin Functions <SEGMENT_START>): Typo fix.
401 * ldexp.c (new_number): New function.
402 (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
403 (fold_unary <'~', '!', '-'>): Don't make_abs.
404 (fold_binary): Simplify result section logic. Return NULL section
406 (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
408 (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
409 (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
410 (fold_name <NAME>): No need to handle absolute symbols differently
412 (fold_name <ORIGIN>): Don't return valid result when
413 lang_first_phase_enum. Return new_rel_from_abs, not new_abs.
414 (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
415 (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning
416 a plain number to dot, assume the value is relative to expld.section.
417 Make terms not in an output section, absolute.
418 * ldlang.c (print_assignment): Fix style nit.
419 (lang_size_sections_1): Cope with NULL expld.result.section.
420 (lang_do_assignments_1): Likewise.
422 2010-08-12 Alan Modra <amodra@gmail.com>
424 * ldexp.c (new_rel): Remove "str". Update all call sites.
425 (exp_fold_tree_1): When assigning to dot, calculate nextdot
426 using expld.result.section rather than expld.section.
428 2010-08-06 Alan Modra <amodra@gmail.com>
431 * ldlang.c (lang_add_vers_depend): Don't leave version_needed
434 2010-07-28 Alan Modra <amodra@gmail.com>
436 * ldexp.c (exp_print_tree): Print function-like binary nodes as
437 functions rather than in-fix operators. Use fputs and fputc
440 2010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
441 Ina Pandit <ina.pandit@kpitcummins.com>
443 * configure.tgt: Match all v850 targets.
445 2010-07-20 Mike Frysinger <vapier@gentoo.org>
447 * ld.texinfo (VERSION): Remove "int" from example script and add ";".
448 Declare the default language as C.
450 2010-07-17 Alan Modra <amodra@gmail.com>
452 * ldlang.c (lang_check_section_addresses): Catch overlap for
453 sections that wrap around the address space.
455 2010-06-29 Nick Clifton <nickc@redhat.com>
457 * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
458 with the .gcc_except_table. prefix.
460 2010-06-29 Alan Modra <amodra@gmail.com>
462 * emulparams/maxqcoff.sh: Delete file.
463 * scripttempl/maxqcoff.sc: Delete file.
464 * Makefile.am: Remove references to maxq.
465 * configure.tgt: Likewise.
466 * Makefile.in: Regenerate.
467 * configure: Regenerate.
468 * po/POTFILES.in: Regenerate.
470 2010-06-27 Alan Modra <amodra@gmail.com>
472 * pe-dll.c (fill_edata): Avoid set but unused warning.
473 (pe_walk_relocs_of_symbol): Delete set but unused variables.
474 (generate_reloc, pe_implied_import_dll): Likewise.
475 * emultempl/aix.em (open_dynamic_archive): Likewise.
476 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
477 (xtensa_layout_wild): Likewise.
478 (xtensa_colocate_output_literals_callback): Likewise.
480 2010-06-25 Alan Modra <amodra@gmail.com>
482 * emultempl/ppc64elf.em (prelim_size_sections): New function.
483 (ppc_before_allocation): Use it. Size sections before toc edit too.
485 2010-06-25 Alan Modra <amodra@gmail.com>
487 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
489 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
491 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
492 auto-import and merge-rdata defaults same for i[3-7]86 and
495 2010-06-15 Joseph Myers <joseph@codesourcery.com>
497 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
499 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
502 * pe-dll.c (process_def_file_and_drectve): Reorder check for
503 forwarded export name after check for ordinary export.
505 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
507 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
509 2010-06-08 Nick Clifton <nickc@redhat.com>
511 * fdl.texi: Replace with v1.3 text.
512 * ld.texinfo: Replace abbreviated 20th century year numbers with
514 * ldint.texinfo: Likewise.
515 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
516 include of the fdl.texi file.
518 2010-06-01 Tristan Gingold <gingold@adacore.com>
520 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
521 readonly output-section. Handle LIB$INITIALIZE and sections
523 * emultempl/vms.em (vms_place_orphan): Add comments.
525 2010-05-28 Nick Clifton <nickc@redhat.com>
527 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
528 * Makefile.in: Regenerate.
530 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
533 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
534 multiple of maximum page size.
536 2010-05-25 Nick Clifton <nickc@redhat.com>
538 * Makefile.am: Fix typo.
539 * Makefile.in: Regenerate.
541 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
542 Joseph Myers <joseph@codesourcery.com>
543 Andrew Stubbs <ams@codesourcery.com>
545 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
546 (eshelf_fd.c, eshlelf_fd.c): New rules.
547 * Makefile.in: Regenerate.
548 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
550 * emulparams/shelf_fd.sh: New file.
551 * emulparams/shlelf_fd.sh: New file.
552 * emulparams/shlelf_linux.sh: Update comment.
554 2010-05-25 Jay Krell <jay.krell@cornell.edu>
557 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
558 * Makefile.in: Regenerate.
560 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
562 * deffilep.y (opt_name): Allow leading dot.
563 (dot_name): Likewise.
564 (anylang_id): Likewise.
565 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
567 (gld${EMULATION_NAME}_handle_option): Warn about v1.
568 (pep_find_data_imports): Remove superflous warnings about
570 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
571 and active pseudo-relocation-v2 rdata into data section.
572 * emultempl/pe.em (default_merge_rdata): New shell variable.
573 (MERGE_RDATA_V2): New macro.
574 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
577 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
579 * emultempl/pe.em (is_underscoring): New helper function.
580 (gld_${EMULATION_NAME}_before_parse): Replace code
581 for pe(p)_leading_underscore detection by is_underscoring.
583 (GET_INIT_SYMBOL_NAME): Likewise.
587 (gld_${EMULATION_NAME}_set_symbols):
588 * emultempl/pep.em: Likewise.
589 * pe-dll.c (pe_detail_list): Set default
590 underscoring for x64 target.
591 (pe_dll_id_target): Add initialization of
592 pe(p)_leading_underscore.
594 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
596 * pe-dll.c: Removed trailing whitespaces.
598 2010-05-14 Alan Modra <amodra@gmail.com>
601 * ldexp.c (exp_fold_tree_1): If assignment source expression is
602 invalid, make the destination symbol undefined.
604 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
606 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
607 Initialize pe(p)_leading_underscore variable.
608 (set_pe_name): Likewise.
609 * emultempl/pep.em: Likewise.
610 Additional change default to non-underscore for
611 pep_leading_underscore equal to -1.
613 2010-05-07 Tristan Gingold <gingold@adacore.com>
615 * Makefile.in: Regenerate with automake 1.11.1.
618 2010-05-05 Nick Clifton <nickc@redhat.com>
620 * po/es.po: Updated Spanish translation.
622 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
624 * pe-dll.c (_nm_-symbols): Use always underscored variant
626 (__imp_-symbols): Likewise.
627 (___imp_-symbols): Likewise.
628 * NEWS: Mention ABI change for x64 PE-COFF.
630 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
632 * Makefile.am (install-exec-local): Properly install ld as
633 default cross linker.
634 * Makefile.in: Regenerated.
636 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
637 Nick Clifton <nickc@redhat.com>
639 * configure.in (install_as_default): Define and set to true
640 unless --enable-gold=both/gold has been specified.
641 * configure: Regenerate.
643 * Makefile.am (transform): Use ld.bfd as the default name of
645 (install-exec-local): Also install the executable as a binary
646 named 'ld' if install_as_default is true.
647 * Makefile.in: Regenerate.
649 2010-04-22 Nick Clifton <nickc@redhat.com>
651 * po/ld.pot: Updated by the Translation project.
652 * po/vi.po: Updated Vietnamese translation.
653 * po/bg.po: Updated Bulgarian translation.
655 2010-04-15 Andrew Haley <aph@redhat.com>
657 * emultempl/armelf.em (merge_exidx_entries): New variable.
658 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
659 ("no-merge-exidx-entries"): New option.
660 * ld.texinfo (merge-exidx-entries): Document this option.
662 2010-04-14 Tristan Gingold <gingold@adacore.com>
664 * emulparams/alphavms.sh: New file.
665 * emultempl/vms.em: New file.
666 * scripttempl/alphavms.sc: New file.
667 * configure.tgt (alpha*-*-*vms*): Added.
668 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
669 (ealphavms.c): New target.
670 * Makefile.in: Regenerate.
672 2010-04-09 Nick Clifton <nickc@redhat.com>
674 * ldlang.c (wild_sort): Remove unused variable section_name.
676 2010-04-07 Alan Modra <amodra@gmail.com>
678 * configure: Regenerate.
680 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
683 * ld/testsuite/ld-x86-64/unique1.d: New.
684 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
686 * ld-x86-64/x86-64.exp: Run unique1.
688 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
690 * emultempl/pep.em (U): Macro modified.
691 (U_SIZE): New helper macro.
692 (GET_INIT_SYMBOL_NAME): Likewise.
693 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
694 and OPTION_LEADING_UNDERSCORE enumerator-values.
695 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
697 (definfo): Add new member is_c_symbol.
698 (D): Add to macro underscore mode parameter.
699 (init): Add definition for is_c_symbol.
700 (gld_${EMULATION_NAME}_list_options): Display new options.
701 (set_pep_name): Adjust underscoring dependent fixed
703 (gld_${EMULATION_NAME}_set_symbols): Likewise.
704 (saw_option): Likewise.
705 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
706 (set_entry_point): Initial initial_symbol_char dependent to
707 target's default and new option flag pep_leading_underscore.
708 * emultempl/pe.em (U): Macro modified.
709 (U_SIZE): New helper macro.
710 (GET_INIT_SYMBOL_NAME): Likewise.
711 (OPTION_LEADING_UNDERSCORE): Add new option define.
712 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
713 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
715 (definfo): Add new member is_c_symbol.
716 (D): Add to macro underscore mode parameter.
717 (init): Add definition for is_c_symbol.
718 (gld_${EMULATION_NAME}_list_options): Display new options.
719 (set_pep_name): Adjust underscoring dependent fixed
721 (gld_${EMULATION_NAME}_set_symbols): Likewise.
722 (saw_option): Likewise.
723 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
724 (set_entry_point): Initial initial_symbol_char dependent to
725 target's default and new option flag pep_leading_underscore.
726 * pe-dll.c (pe_leading_underscore): New flag variable.
727 (pe_detail_list): Remove const to allow modify of
729 (pe_dll_id_target): Initialize pe_details' underscore variable
730 dependent to target's default and flag pe_leading_underscore.
731 * pe-dll.h (pe_leading_underscore): Add extern declaration of
733 * pep-dll.c (pe_leading_underscore): Add alias define for
734 pep_leading_underscore.
735 * pep-dll.h (pep_leading_underscore) Add extern declaration of
737 * ld.texinfo: Add documentation for --(no-)leading-underscore
740 2010-03-26 Alan Modra <amodra@gmail.com>
743 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
744 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
746 2010-03-25 Joseph Myers <joseph@codesourcery.com>
748 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
750 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
751 * NEWS: Add news entry for TI C6X support.
752 * configure.tgt (tic6x-*-*): New.
753 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
755 2010-03-23 Joseph Myers <joseph@codesourcery.com>
757 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
758 BSS_NAME): Define if not already defined. Use in place of some
759 hardcoded section names.
761 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
763 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
765 2010-03-18 Aymeric Vincent <vincent@labri.fr>
768 * emultempl/sh64elf.em: Add missing EOF.
770 2010-03-18 Doug Semler <dougsemler@gmail.com>
772 * pe-dll.c (make_one): Make text section readonly.
773 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
774 the jump stub on X86 as /SAFESEH compatible for
777 2010-03-17 Alan Modra <amodra@gmail.com>
779 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
780 *prev instead. Update all callers.
782 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
784 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
785 region and phdrs as their placement section.
787 2010-03-15 Alan Modra <amodra@gmail.com>
789 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
790 (ppc_before_allocation): Call sort_toc_sections.
791 (no_toc_sort, OPTION_NO_TOC_SORT): New.
792 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
793 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
795 2010-03-14 Alan Modra <amodra@gmail.com>
798 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
799 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
801 2010-03-11 George Gensure <werkt0@gmail.com>
804 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
806 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
808 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
810 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
811 (eelf32_sparc_sol2.c): New rule.
812 (eelf64_sparc_sol2.c): Likewise.
813 (eelf_x86_64_sol2.c): Likewise.
814 (eelf_i386_sol2.c): Likewise.
815 * Makefile.in: Regenerate.
816 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
818 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
819 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
820 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
821 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
822 Add target_extra_emuls.
823 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
824 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
825 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
826 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
827 * emulparams/elf32_sparc_sol2.sh: New file.
828 * emulparams/elf64_sparc_sol2.sh: New file.
829 * emulparams/elf_i386_sol2.sh: New file.
830 * emulparams/elf_x86_64_sol2.sh: New file.
831 * emultempl/solaris2.em: New file.
833 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
836 * ld.texinfo: Replace explicitely with explicitly.
838 2010-02-27 Jie Zhang <jie@codesourcery.com>
840 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
841 .fini_array.* when do relocatable linking.
842 * scripttempl/elf.sc: Likewise.
843 * scripttempl/elf32sh-symbian.sc: Likewise.
844 * scripttempl/elf64hppa.sc: Likewise.
845 * scripttempl/elfxtensa.sc: Likewise.
847 2010-02-26 Alan Modra <amodra@gmail.com>
849 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
851 * scripttempl/armbpabi.sc: Likewise.
852 * scripttempl/elf32sh-symbian.sc: Likewise.
853 * scripttempl/elf64hppa.sc: Likewise.
854 * scripttempl/elfxtensa.sc: Likewise.
856 2010-02-25 Alan Modra <amodra@gmail.com>
859 * ldlang.c (init_os): Remove isec param. Don't check for
860 bfd_section already set or call bfd_init_private_section_data
862 (exp_init_os): Update init_os call.
863 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
864 flags. Call bfd_init_private_section_data here.
865 (map_input_to_output_sections): Tidy. Update init_os calls.
866 Use os->sectype to select sec flags for lang_data_statement.
868 2010-02-23 Alan Modra <amodra@gmail.com>
871 * ldlang.c: Revert last patch.
873 2010-02-23 Nick Clifton <nickc@redhat.com>
875 * po/bg.po: Updated Bulgarian translation.
877 2010-02-22 Alan Modra <amodra@gmail.com>
880 * ldlang.c (exp_init_os): Delete forward declaration.
881 (init_os): Don't check for bfd_section already created and don't
882 init addr_tree and load_base expressions here.
883 (map_input_to_output_sections): Only map input to output sections
884 and set constraints here, and as an exception, create output
885 sections which have their address set. Move all the other code to..
886 (create_other_output_sections): ..here. New function. Handle init
887 of addr_tree and load_base here too.
888 (lang_process): Call create_other_output_sections.
890 2010-02-19 Alan Modra <amodra@gmail.com>
892 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
893 * Makefile.in: Regenerate.
895 2010-02-19 Alan Modra <amodra@gmail.com>
897 * ldlang.c (unique_section_p): Add os param. Allow group
898 sections to match /DISCARD/. Update all callers.
899 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
900 (LDEMUL_BEFORE_ALLOCATION): Define.
902 2010-02-15 Nick Clifton <nickc@redhat.com>
904 * po/vi.po: Updated Vietnamese translation.
906 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
908 * Makefile.am (CFILES): Add ldlex-wrapper.c.
909 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
910 (ldlex.o): Replace with...
911 (ldlex-wrapper.o): ...this new rule.
912 (EXTRA_ld_new_SOURCES): Add ldlex.l.
913 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
914 * Makefile.in: Regenerate.
915 * ldlex.l (sysdep.h): Don't include here.
916 * ldlex-wrapper.c: New file.
918 2010-02-09 Alan Modra <amodra@gmail.com>
920 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
923 2010-02-05 Nick Clifton <nickc@redhat.com>
925 * configure.in (ALL_LIBGUAS): Add bg.
926 * configure: Regenerate.
927 * po/bg.po: New Bulgarian translation.
929 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
931 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
932 --target1-abs and --target1-rel options.
934 2010-02-03 Nick Clifton <nickc@redhat.com>
936 * emultempl/alphaelf.em: Update value expected from elf_object_id.
937 * emultempl/hppaelf.em: Likewise.
938 * emultempl/mipself.em: Likewise.
939 * emultempl/ppc32elf.em: Likewise.
940 * emultempl/ppc64elf.em: Likewise.
942 2010-02-03 Alan Modra <amodra@gmail.com>
944 * emultempl/ppc64elf.em (build_toc_list): Report errors from
945 ppc64_elf_next_toc_section.
946 (after_allocation): Update for changed function names and params.
947 Run second pass of multitoc partitioning.
949 2010-01-21 Jon Grant <jg@jguk.org>
950 Nick Clifton <nickc@redhat.com>
953 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
954 a missing file or library. Instead mark the entry as missing and
955 set the global flag to indicate that missing files were
957 * ldlang.c (missing_files): New exported variable.
958 (load_symbols): Skip loading if the file is missing.
959 (open_input_bfds): Terminate link if any input files were
961 * ldlang.h (struct lang_input_statement_struct): Add missing_file
963 Add export of missing_file variable.
965 2010-01-13 DJ Delorie <dj@redhat.com>
967 * emultempl/elf32.em (_place_orphan): If an input section doesn't
968 match an existing output section, but an unused output section
969 statement does match, use it.
970 * emultempl/pe.em (_place_orphan): Likewise.
971 * emultempl/pep.em (_place_orphan): Likewise.
973 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
975 * configure: Regenerate.
976 * Makefile.in: Regenerate.
978 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
980 * ldver.c (ldversion): Change to "Copyright 2010".
982 2010-01-08 Alan Modra <amodra@gmail.com>
985 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
987 For older changes see ChangeLog-2009
993 version-control: never