1 2010-11-04 Kai Tietz <kai.tietz@onevision.com>
3 * scripttempl/pe.sc (.debug_types): New.
4 * scripttempl/pep.sc: Likewise.
6 2010-11-04 Alan Modra <amodra@gmail.com>
8 * plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd.
10 2010-11-03 Nick Clifton <nickc@redhat.com>
13 * ldlang.c (ldlang_def_chain_list): New variable. Contains a list
14 of symbols defined via the --defsym command line option and
15 currently waiting assignment.
16 (insert_defined): Add a defined symbol to the symbol table.
17 (ldlang_add_def): Add a entry to the ldlang_def_chain_list.
18 (lang_place_defineds): Walk ldlang_def_chain_list defining the
20 (lang_process): Call lang_place_defineds.
21 (lang_add_assignment): If the assignment has come from a --defsym
22 command line option then call lang_add_def.
24 2010-11-03 Alan Modra <amodra@gmail.com>
26 * Makefile.am (eelf64hppa.c): Correct dependencies.
27 * Makefile.in: Regenerate.
29 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
31 * scripttempl/armbpabi.sc: Include compressed DWARF debug
33 * scripttempl/avr.sc: Likewise.
34 * scripttempl/elf32cr16.sc: Likewise.
35 * scripttempl/elf32crx.sc: Likewise.
36 * scripttempl/elf32msp430.sc: Likewise.
37 * scripttempl/elf32msp430_3.sc: Likewise.
38 * scripttempl/elf32sh-symbian.sc: Likewise.
39 * scripttempl/elf64hppa.sc: Likewise.
40 * scripttempl/elf_chaos.sc: Likewise.
41 * scripttempl/elfd10v.sc: Likewise.
42 * scripttempl/elfd30v.sc: Likewise.
43 * scripttempl/elfi370.sc: Likewise.
44 * scripttempl/elfm68hc11.sc: Likewise.
45 * scripttempl/elfm68hc12.sc: Likewise.
46 * scripttempl/elfxtensa.sc: Likewise.
47 * scripttempl/ip2k.sc: Likewise.
48 * scripttempl/iq2000.sc: Likewise.
49 * scripttempl/mep.sc: Likewise.
50 * scripttempl/mmo.sc: Likewise.
51 * scripttempl/v850.sc: Likewise.
52 * scripttempl/xstormy16.sc: Likewise.
54 2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
56 * ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after
58 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
60 * scripttempl/elf.sc: Include compressed DWARF debug sections.
62 2010-10-28 Alan Modra <amodra@gmail.com>
64 * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.
66 2010-10-28 Matthias Klose <doko@ubuntu.com>
68 * ld.texinfo: Add directory section for info document.
69 * ldint.texinfo: Likewise.
71 2010-10-28 Alan Modra <amodra@gmail.com>
73 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For
74 --no-undefined-version, don't report dot sym versions added by ld.
76 2010-10-28 Alan Modra <amodra@gmail.com>
78 * ldlang.h (ldlang_add_undef): Add cmdline param.
79 * ldlang.c (undef_from_cmdline): New var.
80 (ldlang_add_undef): Add cmdline param. Set undef_from_cmdline.
81 (lang_end): Really require -e or -u from command line on
82 relocatable --gc-sections.
83 * ldemul.c (after_parse_default): Adjust ldlang_add_undef call.
84 * ldgram.y (extern_name_list_body): Likewise.
85 * lexsup.c (parse_args): Likewise.
86 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
88 2010-10-25 Alan Modra <amodra@gmail.com>
90 * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
93 2010-10-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
95 * emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to
97 * emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to
100 2010-10-22 Alan Modra <amodra@gmail.com>
102 * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
103 output when section has no contents.
104 (build_link_order <lang_reloc_statement_enum>): Likewise.
106 2010-10-21 Joseph Myers <joseph@codesourcery.com>
108 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use
109 .c6xabi.attributes, not __TI_build_attributes.
111 2010-10-20 Dave Korn <dave.korn.cygwin@gmail.com>
113 * plugin.c (get_symbols): Check symbol type correctly.
115 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
117 * configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
118 * configure: Regenerate.
119 * config.in: Likewise.
120 * plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
121 trival LoadLibrary-based replacement for Windows systems.
122 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
123 replacement based on GetProcAddress.
124 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
125 * sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
126 anymore, use its own guard.
128 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
130 * plugin.c (add_input_file): Take copy of input string.
131 (add_input_library): Likewise.
132 (set_extra_library_path): Likewise.
134 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
136 Apply LD plugin patch series (part 6/6).
137 * ldlang.c (load_symbols): Handle bfd subsitution when calling the
138 add_archive_element callback.
139 * ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive
140 member to the plugins and if claimed set "subsbfd" output parameter to
141 point to the dummy IR-only BFD.
143 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
145 Apply LD plugin patch series (part 5/6).
146 * plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd,
147 find the elf symbol data and set the visibility in the st_other field.
149 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
151 Apply LD plugin patch series (part 4/6).
152 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of
153 plugin_call_all_symbols_read to before setting of gc_sym_list, and
154 open any new input files that may have been added during it.
155 * ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to
156 plugin_multiple_definition and let it have first say over what to do
157 with the clashing definitions.
158 * plugin.c (no_more_claiming): New boolean variable.
159 (plugin_cached_allow_multiple_defs): Likewise.
160 (add_input_file): Implement.
161 (add_input_library): Likewise.
162 (set_extra_library_path): Likewise.
163 (plugin_call_claim_file): Don't do anything when no_more_claiming set.
164 (plugin_call_all_symbols_read): Set it. Disable link info
165 "allow_multiple_definition" flag, but cache its value.
166 (plugin_multiple_definition): New function.
167 * plugin.h (plugin_multiple_definition): Add prototype.
168 * testplug.c (addfile_enum_t): New enumerated typedef.
169 (add_file_t): New struct typedef.
170 (addfiles_list): New variable.
171 (addfiles_tail_chain_ptr): Likewise.
172 (record_add_file): New function.
173 (parse_option): Parse "add:", "lib:" and "dir:" options and call it.
174 (onall_symbols_read): Iterate the list of new files, libs and dirs,
177 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
179 Apply LD plugin patch series (part 3/6).
180 * ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice.
181 * plugin.c (non_ironly_hash): Add new bfd hash table.
182 (plugin_load_plugins): Exit early if no plugins to load. If plugins
183 do load successfully, set notice_all flag in link info.
184 (get_symbols): Implement.
185 (plugin_load_plugins): Exit early if no plugins to load, else after
186 loading plugins successfully enable notice_all mode.
187 (init_non_ironly_hash): Lazily init non_ironly_hash table.
188 (plugin_notice): Record symbols referenced from non-IR files in the
189 non_ironly_hash. Suppress tracing, cref generation and nocrossrefs
190 tracking for symbols from dummy IR bfds.
191 * plugin.h: Fix formatting.
192 (plugin_notice): Add prototype.
193 * testplug.c (dumpresolutions): New global var.
194 (parse_options): Accept "dumpresolutions".
195 (onall_symbols_read): Get syms and dump resolutions if it was given.
197 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
199 Apply LD plugin patch series (part 2/6).
200 * ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early
201 during compat checks if they pass, instead offer any successfully
202 opened and accepted file to the plugin claim file hooks chain. Create
203 a dummy bfd to accept symbols added by the plugin, if the plugin
205 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols
206 read hook chain before ldemul_after_open.
207 * ldlang.h (struct lang_input_statement_struct): Add new single-bit
209 * plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix.
210 (IRONLY_SUFFIX_LEN): Length of the above string.
211 (plugin_get_ir_dummy_bfd): New function to create the dummy bfd used
212 to store symbols for ir-only files.
213 (is_ir_dummy_bfd): New function to check if a bfd is ir-only.
214 (asymbol_from_plugin_symbol): New function converts symbol formats.
215 (add_symbols): Call it to convert plugin syms to bfd syms and add
216 them to the dummy bfd.
217 * plugin.h: Add missing include guards.
218 (plugin_get_ir_dummy_bfd): Add prototype.
219 (is_ir_dummy_bfd): Likewise.
220 * testplug.c (TV_MESSAGE): New helper macro.
221 (struct claim_file): New struct.
222 (claim_file_t): New typedef.
223 (tag_names[]): Make static and const.
224 (claimfiles_list): New variable.
225 (claimfiles_tail_chain_ptr): Likewise.
226 (last_claimfile): Likewise.
227 (record_claim_file): Record a file to claim on a singly-linked list.
228 (parse_symdefstr): Parse an ASCII representation of a symbol from a
229 plugin option into the fields of a struct ld_plugin_symbol.
230 (record_claimed_file_symbol): Use it to parse plugin option for
232 (parse_option): Parse claim file and add symbol options.
233 (dump_tv_tag): Use TV_MESSAGE.
235 (onclaim_file): Make static. Use TV_MESSAGE. Scan list of files to
236 claim and claim this file if required, adding any symbols specified.
237 (onall_symbols_read): Make static and use TV_MESSAGE.
238 (oncleanup): Likewise.
240 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
242 Apply LD plugin patch series (part 1/6).
243 * configure.in: Add AC_CHECKs for file io and dlfcn headers and
244 functions and AC_SEARCH for -ldl.
245 (enable_plugins): New shell variable set if above tests find dlopen
247 (ENABLE_PLUGINS): Add related automake conditional.
248 * configure: Regenerate.
249 * config.in: Likewise.
250 * Makefile.am (PLUGIN_C): Declare plugin C source file, conditional
251 on ENABLE_PLUGINS being defined.
252 (PLUGIN_H): Likewise for header file.
253 (PLUGIN_OBJECT): Likewise for object file.
254 (PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support.
255 (AM_CPPFLAGS): Use PLUGIN_CFLAGS.
256 (CFILES): Use PLUGIN_C.
257 (HFILES): Use PLUGIN_H.
258 (OFILES): Use PLUGIN_OBJECT.
259 (ld_new_SOURCES): Use PLUGIN_C.
260 (noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin.
261 (libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition
263 (libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise.
264 (libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise.
265 * Makefile.in: Regenerate.
266 * sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or
267 sys/file.h where available. Include dlfcn.h when ENABLE_PLUGINS.
268 (O_RDONLY): Supply default definition likewise to bfd's sysdep.h
269 (O_WRONLY): Likewise.
271 (O_ACCMODE): Likewise.
272 (O_BINARY): Likewise.
273 (SEEK_SET): Likewise.
274 (SEEK_CUR): Likewise.
275 (SEEK_END): Likewise.
276 * ldmisc.c (vfinfo): Make non-static. Add %p format char.
277 * ldmisc.h (vfinfo): Declare extern prototype.
278 * lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for
279 OPTION_PLUGIN and OPTION_PLUGIN_OPT.
280 (ld_options[])[ENABLE_PLUGINS]: Add option data for the above two.
281 (parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once
282 option parsing is complete.
283 * ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just
285 * plugin.c: New source file.
286 * plugin.h: Likewise new header.
287 * testplug.c: New source file.
289 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
291 * emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed
292 basever_syms to global_syms.
293 Emit global_syms into .dynamic section for all executables and
295 (elf_solaris2_after_allocation): New function.
296 (LDEMUL_AFTER_ALLOCATION): Use it.
297 * emulparams/solaris2.sh: New file.
298 * emulparams/elf32_sparc_sol2.sh: Use it.
299 * emulparams/elf64_sparc_sol2.sh: Likewise.
300 * emulparams/elf_i386_sol2.sh: Likewise.
301 * emulparams/elf_x86_64_sol2.sh: Likewise.
302 * Makefile.am (eelf32_sparc_sol2.c): Depend on
303 $(srcdir)/emulparams/solaris2.sh.
304 (eelf64_sparc_sol2.c): Likewise.
305 (eelf_x86_64_sol2.c): Likewise.
306 (eelf_i386_sol2.c): Likewise.
307 * Makefile.in: Regenerate.
309 2010-10-06 Nick Clifton <nickc@redhat.com>
311 * ld.texinfo: Update description of computation of VMA and LMA
312 addresses for output sections.
314 2010-10-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
316 * Makefile.am (ALL_64_EMULATIONS): Fix typo in last commit.
317 * Makefile.in: Regenerate.
319 * Makefile.am (ALL_EMULATIONS): Rewrite in terms of ...
320 (ALL_EMULATION_SOURCES): ... this new variable.
321 (ALL_64_EMULATIONS): Rewrite in terms of ...
322 (ALL_64_EMULATION_SOURCES): ... this new variable.
323 (EXTRA_ld_new_SOURCES): Rewrite in terms of the _SOURCES
325 (eelf32microblaze.c): Fix indentation.
326 * Makefile.in: Regenerate.
328 2010-10-04 Bernd Schmidt <bernds@codesourcery.com>
330 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use
331 _bfd_elf_single_rel_hdr.
333 2010-10-01 Alan Modra <amodra@gmail.com>
336 * ldexp.c (fold_name): Treat absolute symbols as plain numbers.
337 * ld.texinfo (Expression Section): Don't say absolute symbols
340 2010-09-29 Alan Modra <amodra@gmail.com>
342 * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
343 section for orphans handled here.
345 2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
347 * configure: Regenerate.
349 2010-09-23 Dave Korn <dave.korn.cygwin@gmail.com>
351 * scripttempl/armcoff.sc: Revert 2010-09-22 change.
353 2010-09-23 Alan Modra <amodra@gmail.com>
355 * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
356 to output section on a final link.
358 2010-09-22 Kai Tietz <kai.tietz@onevision.com>
360 * ldlang.c (lang_add_section): Allow for debugging
361 section to be marked as noload but to keep content.
362 (IGNORE_SECTION): Likewise.
363 (lang_check_section_addresses): Likewise.
364 * ldwrite.c (build_link_order): Likewise.
366 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
368 * emultempl/pep.em: Likewise.
369 * scripttempl/armcoff.sc: Separate idata
370 and add __IAT_start__ and __IAT_end__ labels.
371 * scripttempl/pe.sc: Likewise.
372 * scripttempl/pep.sc: Likewise.
374 2010-09-20 David S. Miller <davem@davemloft.net>
376 * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
378 2010-09-16 Alan Modra <amodra@gmail.com>
380 * ld.texinfo (NOLOAD): Do not erroneously state that contents will
381 appear in output file.
382 * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
383 unless SEC_COFF_SHARED_LIBRARY.
384 (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
386 (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
387 to update dot in region. Ditto when setting SEC_ALLOC if dot
388 advanced due to assignment.
389 * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
391 2010-09-15 Kai Tietz <kai.tietz@onevision.com>
393 * scripttempl/pep.sc: Add .xdata segment and
394 put into .pdata all segments beginning with .pdata.
396 2010-09-10 Alan Modra <amodra@gmail.com>
399 * ldlang.h (lang_for_each_statement_worker): Declare.
400 * ldlang.c (lang_for_each_statement_worker): Make global. Don't
401 recurse into children of output_section_statement with constraint
403 (print_assignment): Handle NULL output_section->bfd_section.
404 (lang_size_sections_1): Ignore output section statement address
405 when constraint is -1.
406 * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
408 2010-09-09 Tristan Gingold <gingold@adacore.com>
410 * NEWS: Add a entry for alpha-vms.
412 2010-09-07 Andrew Burgess <aburgess@broadcom.com>
414 * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
415 newly cloned section.
417 2010-09-02 Richard Henderson <rth@redhat.com>
419 * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too.
421 2010-08-31 Nick Clifton <nickc@redhat.com>
423 * ldlex.l (WILDCHAR): Add the caret and exclamation point
424 characters, so that they can be used inside globs.
426 2010-08-31 Nick Clifton <nickc@redhat.com>
428 * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
429 a region's attributes.
431 2010-08-31 Alan Modra <amodra@gmail.com>
433 * scripttempl/mmo.sc: Move assignment to "Main" inside .text
434 output section statement.
436 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
439 * emultempl/elf32.em (_before_allocation): Check audit entry
442 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
445 * emultempl/elf32.em (_after_open): Find one .eh_frame section
448 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
451 * emultempl/elf32.em (_after_open): Find an ELF input for
452 --build-id and --eh-frame-hdr.
454 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
456 * Makefile.am (eshlelf_fd.c): Correct the name of the tool
458 * Makefile.in: Regenerate.
460 2010-08-20 Nick Clifton <nickc@redhat.com>
462 * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
465 2010-08-19 Alan Modra <amodra@gmail.com>
467 * NEWS: Mention change in linker script expression evaluation.
469 2010-08-19 Alan Modra <amodra@gmail.com>
471 * ld.texinfo (Expression Section): Detail expression evaluation.
472 (Builtin Functions <ADDR>): Correct.
473 (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
475 (Builtin Functions <SEGMENT_START>): Typo fix.
476 * ldexp.c (new_number): New function.
477 (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
478 (fold_unary <'~', '!', '-'>): Don't make_abs.
479 (fold_binary): Simplify result section logic. Return NULL section
481 (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
483 (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
484 (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
485 (fold_name <NAME>): No need to handle absolute symbols differently
487 (fold_name <ORIGIN>): Don't return valid result when
488 lang_first_phase_enum. Return new_rel_from_abs, not new_abs.
489 (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
490 (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning
491 a plain number to dot, assume the value is relative to expld.section.
492 Make terms not in an output section, absolute.
493 * ldlang.c (print_assignment): Fix style nit.
494 (lang_size_sections_1): Cope with NULL expld.result.section.
495 (lang_do_assignments_1): Likewise.
497 2010-08-12 Alan Modra <amodra@gmail.com>
499 * ldexp.c (new_rel): Remove "str". Update all call sites.
500 (exp_fold_tree_1): When assigning to dot, calculate nextdot
501 using expld.result.section rather than expld.section.
503 2010-08-06 Alan Modra <amodra@gmail.com>
506 * ldlang.c (lang_add_vers_depend): Don't leave version_needed
509 2010-07-28 Alan Modra <amodra@gmail.com>
511 * ldexp.c (exp_print_tree): Print function-like binary nodes as
512 functions rather than in-fix operators. Use fputs and fputc
515 2010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
516 Ina Pandit <ina.pandit@kpitcummins.com>
518 * configure.tgt: Match all v850 targets.
520 2010-07-20 Mike Frysinger <vapier@gentoo.org>
522 * ld.texinfo (VERSION): Remove "int" from example script and add ";".
523 Declare the default language as C.
525 2010-07-17 Alan Modra <amodra@gmail.com>
527 * ldlang.c (lang_check_section_addresses): Catch overlap for
528 sections that wrap around the address space.
530 2010-06-29 Nick Clifton <nickc@redhat.com>
532 * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
533 with the .gcc_except_table. prefix.
535 2010-06-29 Alan Modra <amodra@gmail.com>
537 * emulparams/maxqcoff.sh: Delete file.
538 * scripttempl/maxqcoff.sc: Delete file.
539 * Makefile.am: Remove references to maxq.
540 * configure.tgt: Likewise.
541 * Makefile.in: Regenerate.
542 * configure: Regenerate.
543 * po/POTFILES.in: Regenerate.
545 2010-06-27 Alan Modra <amodra@gmail.com>
547 * pe-dll.c (fill_edata): Avoid set but unused warning.
548 (pe_walk_relocs_of_symbol): Delete set but unused variables.
549 (generate_reloc, pe_implied_import_dll): Likewise.
550 * emultempl/aix.em (open_dynamic_archive): Likewise.
551 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
552 (xtensa_layout_wild): Likewise.
553 (xtensa_colocate_output_literals_callback): Likewise.
555 2010-06-25 Alan Modra <amodra@gmail.com>
557 * emultempl/ppc64elf.em (prelim_size_sections): New function.
558 (ppc_before_allocation): Use it. Size sections before toc edit too.
560 2010-06-25 Alan Modra <amodra@gmail.com>
562 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
564 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
566 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
567 auto-import and merge-rdata defaults same for i[3-7]86 and
570 2010-06-15 Joseph Myers <joseph@codesourcery.com>
572 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
574 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
577 * pe-dll.c (process_def_file_and_drectve): Reorder check for
578 forwarded export name after check for ordinary export.
580 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
582 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
584 2010-06-08 Nick Clifton <nickc@redhat.com>
586 * fdl.texi: Replace with v1.3 text.
587 * ld.texinfo: Replace abbreviated 20th century year numbers with
589 * ldint.texinfo: Likewise.
590 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
591 include of the fdl.texi file.
593 2010-06-01 Tristan Gingold <gingold@adacore.com>
595 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
596 readonly output-section. Handle LIB$INITIALIZE and sections
598 * emultempl/vms.em (vms_place_orphan): Add comments.
600 2010-05-28 Nick Clifton <nickc@redhat.com>
602 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
603 * Makefile.in: Regenerate.
605 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
608 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
609 multiple of maximum page size.
611 2010-05-25 Nick Clifton <nickc@redhat.com>
613 * Makefile.am: Fix typo.
614 * Makefile.in: Regenerate.
616 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
617 Joseph Myers <joseph@codesourcery.com>
618 Andrew Stubbs <ams@codesourcery.com>
620 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
621 (eshelf_fd.c, eshlelf_fd.c): New rules.
622 * Makefile.in: Regenerate.
623 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
625 * emulparams/shelf_fd.sh: New file.
626 * emulparams/shlelf_fd.sh: New file.
627 * emulparams/shlelf_linux.sh: Update comment.
629 2010-05-25 Jay Krell <jay.krell@cornell.edu>
632 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
633 * Makefile.in: Regenerate.
635 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
637 * deffilep.y (opt_name): Allow leading dot.
638 (dot_name): Likewise.
639 (anylang_id): Likewise.
640 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
642 (gld${EMULATION_NAME}_handle_option): Warn about v1.
643 (pep_find_data_imports): Remove superflous warnings about
645 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
646 and active pseudo-relocation-v2 rdata into data section.
647 * emultempl/pe.em (default_merge_rdata): New shell variable.
648 (MERGE_RDATA_V2): New macro.
649 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
652 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
654 * emultempl/pe.em (is_underscoring): New helper function.
655 (gld_${EMULATION_NAME}_before_parse): Replace code
656 for pe(p)_leading_underscore detection by is_underscoring.
658 (GET_INIT_SYMBOL_NAME): Likewise.
662 (gld_${EMULATION_NAME}_set_symbols):
663 * emultempl/pep.em: Likewise.
664 * pe-dll.c (pe_detail_list): Set default
665 underscoring for x64 target.
666 (pe_dll_id_target): Add initialization of
667 pe(p)_leading_underscore.
669 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
671 * pe-dll.c: Removed trailing whitespaces.
673 2010-05-14 Alan Modra <amodra@gmail.com>
676 * ldexp.c (exp_fold_tree_1): If assignment source expression is
677 invalid, make the destination symbol undefined.
679 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
681 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
682 Initialize pe(p)_leading_underscore variable.
683 (set_pe_name): Likewise.
684 * emultempl/pep.em: Likewise.
685 Additional change default to non-underscore for
686 pep_leading_underscore equal to -1.
688 2010-05-07 Tristan Gingold <gingold@adacore.com>
690 * Makefile.in: Regenerate with automake 1.11.1.
693 2010-05-05 Nick Clifton <nickc@redhat.com>
695 * po/es.po: Updated Spanish translation.
697 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
699 * pe-dll.c (_nm_-symbols): Use always underscored variant
701 (__imp_-symbols): Likewise.
702 (___imp_-symbols): Likewise.
703 * NEWS: Mention ABI change for x64 PE-COFF.
705 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
707 * Makefile.am (install-exec-local): Properly install ld as
708 default cross linker.
709 * Makefile.in: Regenerated.
711 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
712 Nick Clifton <nickc@redhat.com>
714 * configure.in (install_as_default): Define and set to true
715 unless --enable-gold=both/gold has been specified.
716 * configure: Regenerate.
718 * Makefile.am (transform): Use ld.bfd as the default name of
720 (install-exec-local): Also install the executable as a binary
721 named 'ld' if install_as_default is true.
722 * Makefile.in: Regenerate.
724 2010-04-22 Nick Clifton <nickc@redhat.com>
726 * po/ld.pot: Updated by the Translation project.
727 * po/vi.po: Updated Vietnamese translation.
728 * po/bg.po: Updated Bulgarian translation.
730 2010-04-15 Andrew Haley <aph@redhat.com>
732 * emultempl/armelf.em (merge_exidx_entries): New variable.
733 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
734 ("no-merge-exidx-entries"): New option.
735 * ld.texinfo (merge-exidx-entries): Document this option.
737 2010-04-14 Tristan Gingold <gingold@adacore.com>
739 * emulparams/alphavms.sh: New file.
740 * emultempl/vms.em: New file.
741 * scripttempl/alphavms.sc: New file.
742 * configure.tgt (alpha*-*-*vms*): Added.
743 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
744 (ealphavms.c): New target.
745 * Makefile.in: Regenerate.
747 2010-04-09 Nick Clifton <nickc@redhat.com>
749 * ldlang.c (wild_sort): Remove unused variable section_name.
751 2010-04-07 Alan Modra <amodra@gmail.com>
753 * configure: Regenerate.
755 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
758 * ld/testsuite/ld-x86-64/unique1.d: New.
759 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
761 * ld-x86-64/x86-64.exp: Run unique1.
763 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
765 * emultempl/pep.em (U): Macro modified.
766 (U_SIZE): New helper macro.
767 (GET_INIT_SYMBOL_NAME): Likewise.
768 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
769 and OPTION_LEADING_UNDERSCORE enumerator-values.
770 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
772 (definfo): Add new member is_c_symbol.
773 (D): Add to macro underscore mode parameter.
774 (init): Add definition for is_c_symbol.
775 (gld_${EMULATION_NAME}_list_options): Display new options.
776 (set_pep_name): Adjust underscoring dependent fixed
778 (gld_${EMULATION_NAME}_set_symbols): Likewise.
779 (saw_option): Likewise.
780 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
781 (set_entry_point): Initial initial_symbol_char dependent to
782 target's default and new option flag pep_leading_underscore.
783 * emultempl/pe.em (U): Macro modified.
784 (U_SIZE): New helper macro.
785 (GET_INIT_SYMBOL_NAME): Likewise.
786 (OPTION_LEADING_UNDERSCORE): Add new option define.
787 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
788 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
790 (definfo): Add new member is_c_symbol.
791 (D): Add to macro underscore mode parameter.
792 (init): Add definition for is_c_symbol.
793 (gld_${EMULATION_NAME}_list_options): Display new options.
794 (set_pep_name): Adjust underscoring dependent fixed
796 (gld_${EMULATION_NAME}_set_symbols): Likewise.
797 (saw_option): Likewise.
798 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
799 (set_entry_point): Initial initial_symbol_char dependent to
800 target's default and new option flag pep_leading_underscore.
801 * pe-dll.c (pe_leading_underscore): New flag variable.
802 (pe_detail_list): Remove const to allow modify of
804 (pe_dll_id_target): Initialize pe_details' underscore variable
805 dependent to target's default and flag pe_leading_underscore.
806 * pe-dll.h (pe_leading_underscore): Add extern declaration of
808 * pep-dll.c (pe_leading_underscore): Add alias define for
809 pep_leading_underscore.
810 * pep-dll.h (pep_leading_underscore) Add extern declaration of
812 * ld.texinfo: Add documentation for --(no-)leading-underscore
815 2010-03-26 Alan Modra <amodra@gmail.com>
818 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
819 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
821 2010-03-25 Joseph Myers <joseph@codesourcery.com>
823 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
825 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
826 * NEWS: Add news entry for TI C6X support.
827 * configure.tgt (tic6x-*-*): New.
828 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
830 2010-03-23 Joseph Myers <joseph@codesourcery.com>
832 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
833 BSS_NAME): Define if not already defined. Use in place of some
834 hardcoded section names.
836 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
838 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
840 2010-03-18 Aymeric Vincent <vincent@labri.fr>
843 * emultempl/sh64elf.em: Add missing EOF.
845 2010-03-18 Doug Semler <dougsemler@gmail.com>
847 * pe-dll.c (make_one): Make text section readonly.
848 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
849 the jump stub on X86 as /SAFESEH compatible for
852 2010-03-17 Alan Modra <amodra@gmail.com>
854 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
855 *prev instead. Update all callers.
857 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
859 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
860 region and phdrs as their placement section.
862 2010-03-15 Alan Modra <amodra@gmail.com>
864 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
865 (ppc_before_allocation): Call sort_toc_sections.
866 (no_toc_sort, OPTION_NO_TOC_SORT): New.
867 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
868 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
870 2010-03-14 Alan Modra <amodra@gmail.com>
873 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
874 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
876 2010-03-11 George Gensure <werkt0@gmail.com>
879 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
881 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
883 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
885 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
886 (eelf32_sparc_sol2.c): New rule.
887 (eelf64_sparc_sol2.c): Likewise.
888 (eelf_x86_64_sol2.c): Likewise.
889 (eelf_i386_sol2.c): Likewise.
890 * Makefile.in: Regenerate.
891 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
893 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
894 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
895 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
896 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
897 Add target_extra_emuls.
898 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
899 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
900 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
901 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
902 * emulparams/elf32_sparc_sol2.sh: New file.
903 * emulparams/elf64_sparc_sol2.sh: New file.
904 * emulparams/elf_i386_sol2.sh: New file.
905 * emulparams/elf_x86_64_sol2.sh: New file.
906 * emultempl/solaris2.em: New file.
908 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
911 * ld.texinfo: Replace explicitely with explicitly.
913 2010-02-27 Jie Zhang <jie@codesourcery.com>
915 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
916 .fini_array.* when do relocatable linking.
917 * scripttempl/elf.sc: Likewise.
918 * scripttempl/elf32sh-symbian.sc: Likewise.
919 * scripttempl/elf64hppa.sc: Likewise.
920 * scripttempl/elfxtensa.sc: Likewise.
922 2010-02-26 Alan Modra <amodra@gmail.com>
924 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
926 * scripttempl/armbpabi.sc: Likewise.
927 * scripttempl/elf32sh-symbian.sc: Likewise.
928 * scripttempl/elf64hppa.sc: Likewise.
929 * scripttempl/elfxtensa.sc: Likewise.
931 2010-02-25 Alan Modra <amodra@gmail.com>
934 * ldlang.c (init_os): Remove isec param. Don't check for
935 bfd_section already set or call bfd_init_private_section_data
937 (exp_init_os): Update init_os call.
938 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
939 flags. Call bfd_init_private_section_data here.
940 (map_input_to_output_sections): Tidy. Update init_os calls.
941 Use os->sectype to select sec flags for lang_data_statement.
943 2010-02-23 Alan Modra <amodra@gmail.com>
946 * ldlang.c: Revert last patch.
948 2010-02-23 Nick Clifton <nickc@redhat.com>
950 * po/bg.po: Updated Bulgarian translation.
952 2010-02-22 Alan Modra <amodra@gmail.com>
955 * ldlang.c (exp_init_os): Delete forward declaration.
956 (init_os): Don't check for bfd_section already created and don't
957 init addr_tree and load_base expressions here.
958 (map_input_to_output_sections): Only map input to output sections
959 and set constraints here, and as an exception, create output
960 sections which have their address set. Move all the other code to..
961 (create_other_output_sections): ..here. New function. Handle init
962 of addr_tree and load_base here too.
963 (lang_process): Call create_other_output_sections.
965 2010-02-19 Alan Modra <amodra@gmail.com>
967 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
968 * Makefile.in: Regenerate.
970 2010-02-19 Alan Modra <amodra@gmail.com>
972 * ldlang.c (unique_section_p): Add os param. Allow group
973 sections to match /DISCARD/. Update all callers.
974 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
975 (LDEMUL_BEFORE_ALLOCATION): Define.
977 2010-02-15 Nick Clifton <nickc@redhat.com>
979 * po/vi.po: Updated Vietnamese translation.
981 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
983 * Makefile.am (CFILES): Add ldlex-wrapper.c.
984 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
985 (ldlex.o): Replace with...
986 (ldlex-wrapper.o): ...this new rule.
987 (EXTRA_ld_new_SOURCES): Add ldlex.l.
988 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
989 * Makefile.in: Regenerate.
990 * ldlex.l (sysdep.h): Don't include here.
991 * ldlex-wrapper.c: New file.
993 2010-02-09 Alan Modra <amodra@gmail.com>
995 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
998 2010-02-05 Nick Clifton <nickc@redhat.com>
1000 * configure.in (ALL_LIBGUAS): Add bg.
1001 * configure: Regenerate.
1002 * po/bg.po: New Bulgarian translation.
1004 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
1006 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
1007 --target1-abs and --target1-rel options.
1009 2010-02-03 Nick Clifton <nickc@redhat.com>
1011 * emultempl/alphaelf.em: Update value expected from elf_object_id.
1012 * emultempl/hppaelf.em: Likewise.
1013 * emultempl/mipself.em: Likewise.
1014 * emultempl/ppc32elf.em: Likewise.
1015 * emultempl/ppc64elf.em: Likewise.
1017 2010-02-03 Alan Modra <amodra@gmail.com>
1019 * emultempl/ppc64elf.em (build_toc_list): Report errors from
1020 ppc64_elf_next_toc_section.
1021 (after_allocation): Update for changed function names and params.
1022 Run second pass of multitoc partitioning.
1024 2010-01-21 Jon Grant <jg@jguk.org>
1025 Nick Clifton <nickc@redhat.com>
1028 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
1029 a missing file or library. Instead mark the entry as missing and
1030 set the global flag to indicate that missing files were
1032 * ldlang.c (missing_files): New exported variable.
1033 (load_symbols): Skip loading if the file is missing.
1034 (open_input_bfds): Terminate link if any input files were
1036 * ldlang.h (struct lang_input_statement_struct): Add missing_file
1038 Add export of missing_file variable.
1040 2010-01-13 DJ Delorie <dj@redhat.com>
1042 * emultempl/elf32.em (_place_orphan): If an input section doesn't
1043 match an existing output section, but an unused output section
1044 statement does match, use it.
1045 * emultempl/pe.em (_place_orphan): Likewise.
1046 * emultempl/pep.em (_place_orphan): Likewise.
1048 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1050 * configure: Regenerate.
1051 * Makefile.in: Regenerate.
1053 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
1055 * ldver.c (ldversion): Change to "Copyright 2010".
1057 2010-01-08 Alan Modra <amodra@gmail.com>
1060 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
1062 For older changes see ChangeLog-2009
1068 version-control: never