1 2010-11-05 Pierre MullerĀ <muller@ics.u-strasbg.fr>
3 * emultempl/spuelf.em (new_tmp_file): Fix wrong first parameter.
5 2010-11-05 Tristan Gingold <gingold@adacore.com>
7 * po/ld.pot: Regenerate
8 * po/POTFILES.in: Regenerate
10 2010-11-05 Tristan Gingold <gingold@adacore.com>
12 * NEWS: Add marker for 2.21.
14 2010-11-05 Dave Korn <dave.korn.cygwin@gmail.com>
16 * plugin.h (plugin_active_plugins_p): New prototype.
17 (is_ir_dummy_bfd): Delete prototype.
18 * plugin.c: Fix formatting issues.
19 (is_ir_dummy_bfd): Make static.
20 (plugin_active_plugins_p): New function.
21 * ldfile.c (ldfile_try_open_bfd): Use it to save work if no plugins
22 are loaded. Always close file descriptor after claim handler returns.
23 * ldmain.c (add_archive_element): Likewise.
25 2010-11-05 Alan Modra <amodra@gmail.com>
27 * ldlang.c (lang_add_section): Distinguish ELF treatment of NOLOAD.
28 (map_input_to_output_sections): Likewise.
29 (lang_size_sections_1): Likewise.
30 (IGNORE_SECTION): Don't test SEC_NEVER_LOAD.
31 (lang_check_section_addresses): Likewise.
33 2010-11-04 Kai Tietz <kai.tietz@onevision.com>
35 * scripttempl/pe.sc (.debug_types): New.
36 * scripttempl/pep.sc: Likewise.
38 2010-11-04 Alan Modra <amodra@gmail.com>
40 * plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd.
42 2010-11-03 Nick Clifton <nickc@redhat.com>
45 * ldlang.c (ldlang_def_chain_list): New variable. Contains a list
46 of symbols defined via the --defsym command line option and
47 currently waiting assignment.
48 (insert_defined): Add a defined symbol to the symbol table.
49 (ldlang_add_def): Add a entry to the ldlang_def_chain_list.
50 (lang_place_defineds): Walk ldlang_def_chain_list defining the
52 (lang_process): Call lang_place_defineds.
53 (lang_add_assignment): If the assignment has come from a --defsym
54 command line option then call lang_add_def.
56 2010-11-03 Alan Modra <amodra@gmail.com>
58 * Makefile.am (eelf64hppa.c): Correct dependencies.
59 * Makefile.in: Regenerate.
61 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
63 * scripttempl/armbpabi.sc: Include compressed DWARF debug
65 * scripttempl/avr.sc: Likewise.
66 * scripttempl/elf32cr16.sc: Likewise.
67 * scripttempl/elf32crx.sc: Likewise.
68 * scripttempl/elf32msp430.sc: Likewise.
69 * scripttempl/elf32msp430_3.sc: Likewise.
70 * scripttempl/elf32sh-symbian.sc: Likewise.
71 * scripttempl/elf64hppa.sc: Likewise.
72 * scripttempl/elf_chaos.sc: Likewise.
73 * scripttempl/elfd10v.sc: Likewise.
74 * scripttempl/elfd30v.sc: Likewise.
75 * scripttempl/elfi370.sc: Likewise.
76 * scripttempl/elfm68hc11.sc: Likewise.
77 * scripttempl/elfm68hc12.sc: Likewise.
78 * scripttempl/elfxtensa.sc: Likewise.
79 * scripttempl/ip2k.sc: Likewise.
80 * scripttempl/iq2000.sc: Likewise.
81 * scripttempl/mep.sc: Likewise.
82 * scripttempl/mmo.sc: Likewise.
83 * scripttempl/v850.sc: Likewise.
84 * scripttempl/xstormy16.sc: Likewise.
86 2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
88 * ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after
90 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
92 * scripttempl/elf.sc: Include compressed DWARF debug sections.
94 2010-10-28 Alan Modra <amodra@gmail.com>
96 * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.
98 2010-10-28 Matthias Klose <doko@ubuntu.com>
100 * ld.texinfo: Add directory section for info document.
101 * ldint.texinfo: Likewise.
103 2010-10-28 Alan Modra <amodra@gmail.com>
105 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For
106 --no-undefined-version, don't report dot sym versions added by ld.
108 2010-10-28 Alan Modra <amodra@gmail.com>
110 * ldlang.h (ldlang_add_undef): Add cmdline param.
111 * ldlang.c (undef_from_cmdline): New var.
112 (ldlang_add_undef): Add cmdline param. Set undef_from_cmdline.
113 (lang_end): Really require -e or -u from command line on
114 relocatable --gc-sections.
115 * ldemul.c (after_parse_default): Adjust ldlang_add_undef call.
116 * ldgram.y (extern_name_list_body): Likewise.
117 * lexsup.c (parse_args): Likewise.
118 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
120 2010-10-25 Alan Modra <amodra@gmail.com>
122 * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
125 2010-10-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
127 * emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to
129 * emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to
132 2010-10-22 Alan Modra <amodra@gmail.com>
134 * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
135 output when section has no contents.
136 (build_link_order <lang_reloc_statement_enum>): Likewise.
138 2010-10-21 Joseph Myers <joseph@codesourcery.com>
140 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use
141 .c6xabi.attributes, not __TI_build_attributes.
143 2010-10-20 Dave Korn <dave.korn.cygwin@gmail.com>
145 * plugin.c (get_symbols): Check symbol type correctly.
147 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
149 * configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
150 * configure: Regenerate.
151 * config.in: Likewise.
152 * plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
153 trival LoadLibrary-based replacement for Windows systems.
154 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
155 replacement based on GetProcAddress.
156 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
157 * sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
158 anymore, use its own guard.
160 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
162 * plugin.c (add_input_file): Take copy of input string.
163 (add_input_library): Likewise.
164 (set_extra_library_path): Likewise.
166 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
168 Apply LD plugin patch series (part 6/6).
169 * ldlang.c (load_symbols): Handle bfd subsitution when calling the
170 add_archive_element callback.
171 * ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive
172 member to the plugins and if claimed set "subsbfd" output parameter to
173 point to the dummy IR-only BFD.
175 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
177 Apply LD plugin patch series (part 5/6).
178 * plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd,
179 find the elf symbol data and set the visibility in the st_other field.
181 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
183 Apply LD plugin patch series (part 4/6).
184 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of
185 plugin_call_all_symbols_read to before setting of gc_sym_list, and
186 open any new input files that may have been added during it.
187 * ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to
188 plugin_multiple_definition and let it have first say over what to do
189 with the clashing definitions.
190 * plugin.c (no_more_claiming): New boolean variable.
191 (plugin_cached_allow_multiple_defs): Likewise.
192 (add_input_file): Implement.
193 (add_input_library): Likewise.
194 (set_extra_library_path): Likewise.
195 (plugin_call_claim_file): Don't do anything when no_more_claiming set.
196 (plugin_call_all_symbols_read): Set it. Disable link info
197 "allow_multiple_definition" flag, but cache its value.
198 (plugin_multiple_definition): New function.
199 * plugin.h (plugin_multiple_definition): Add prototype.
200 * testplug.c (addfile_enum_t): New enumerated typedef.
201 (add_file_t): New struct typedef.
202 (addfiles_list): New variable.
203 (addfiles_tail_chain_ptr): Likewise.
204 (record_add_file): New function.
205 (parse_option): Parse "add:", "lib:" and "dir:" options and call it.
206 (onall_symbols_read): Iterate the list of new files, libs and dirs,
209 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
211 Apply LD plugin patch series (part 3/6).
212 * ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice.
213 * plugin.c (non_ironly_hash): Add new bfd hash table.
214 (plugin_load_plugins): Exit early if no plugins to load. If plugins
215 do load successfully, set notice_all flag in link info.
216 (get_symbols): Implement.
217 (plugin_load_plugins): Exit early if no plugins to load, else after
218 loading plugins successfully enable notice_all mode.
219 (init_non_ironly_hash): Lazily init non_ironly_hash table.
220 (plugin_notice): Record symbols referenced from non-IR files in the
221 non_ironly_hash. Suppress tracing, cref generation and nocrossrefs
222 tracking for symbols from dummy IR bfds.
223 * plugin.h: Fix formatting.
224 (plugin_notice): Add prototype.
225 * testplug.c (dumpresolutions): New global var.
226 (parse_options): Accept "dumpresolutions".
227 (onall_symbols_read): Get syms and dump resolutions if it was given.
229 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
231 Apply LD plugin patch series (part 2/6).
232 * ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early
233 during compat checks if they pass, instead offer any successfully
234 opened and accepted file to the plugin claim file hooks chain. Create
235 a dummy bfd to accept symbols added by the plugin, if the plugin
237 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols
238 read hook chain before ldemul_after_open.
239 * ldlang.h (struct lang_input_statement_struct): Add new single-bit
241 * plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix.
242 (IRONLY_SUFFIX_LEN): Length of the above string.
243 (plugin_get_ir_dummy_bfd): New function to create the dummy bfd used
244 to store symbols for ir-only files.
245 (is_ir_dummy_bfd): New function to check if a bfd is ir-only.
246 (asymbol_from_plugin_symbol): New function converts symbol formats.
247 (add_symbols): Call it to convert plugin syms to bfd syms and add
248 them to the dummy bfd.
249 * plugin.h: Add missing include guards.
250 (plugin_get_ir_dummy_bfd): Add prototype.
251 (is_ir_dummy_bfd): Likewise.
252 * testplug.c (TV_MESSAGE): New helper macro.
253 (struct claim_file): New struct.
254 (claim_file_t): New typedef.
255 (tag_names[]): Make static and const.
256 (claimfiles_list): New variable.
257 (claimfiles_tail_chain_ptr): Likewise.
258 (last_claimfile): Likewise.
259 (record_claim_file): Record a file to claim on a singly-linked list.
260 (parse_symdefstr): Parse an ASCII representation of a symbol from a
261 plugin option into the fields of a struct ld_plugin_symbol.
262 (record_claimed_file_symbol): Use it to parse plugin option for
264 (parse_option): Parse claim file and add symbol options.
265 (dump_tv_tag): Use TV_MESSAGE.
267 (onclaim_file): Make static. Use TV_MESSAGE. Scan list of files to
268 claim and claim this file if required, adding any symbols specified.
269 (onall_symbols_read): Make static and use TV_MESSAGE.
270 (oncleanup): Likewise.
272 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
274 Apply LD plugin patch series (part 1/6).
275 * configure.in: Add AC_CHECKs for file io and dlfcn headers and
276 functions and AC_SEARCH for -ldl.
277 (enable_plugins): New shell variable set if above tests find dlopen
279 (ENABLE_PLUGINS): Add related automake conditional.
280 * configure: Regenerate.
281 * config.in: Likewise.
282 * Makefile.am (PLUGIN_C): Declare plugin C source file, conditional
283 on ENABLE_PLUGINS being defined.
284 (PLUGIN_H): Likewise for header file.
285 (PLUGIN_OBJECT): Likewise for object file.
286 (PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support.
287 (AM_CPPFLAGS): Use PLUGIN_CFLAGS.
288 (CFILES): Use PLUGIN_C.
289 (HFILES): Use PLUGIN_H.
290 (OFILES): Use PLUGIN_OBJECT.
291 (ld_new_SOURCES): Use PLUGIN_C.
292 (noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin.
293 (libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition
295 (libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise.
296 (libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise.
297 * Makefile.in: Regenerate.
298 * sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or
299 sys/file.h where available. Include dlfcn.h when ENABLE_PLUGINS.
300 (O_RDONLY): Supply default definition likewise to bfd's sysdep.h
301 (O_WRONLY): Likewise.
303 (O_ACCMODE): Likewise.
304 (O_BINARY): Likewise.
305 (SEEK_SET): Likewise.
306 (SEEK_CUR): Likewise.
307 (SEEK_END): Likewise.
308 * ldmisc.c (vfinfo): Make non-static. Add %p format char.
309 * ldmisc.h (vfinfo): Declare extern prototype.
310 * lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for
311 OPTION_PLUGIN and OPTION_PLUGIN_OPT.
312 (ld_options[])[ENABLE_PLUGINS]: Add option data for the above two.
313 (parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once
314 option parsing is complete.
315 * ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just
317 * plugin.c: New source file.
318 * plugin.h: Likewise new header.
319 * testplug.c: New source file.
321 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
323 * emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed
324 basever_syms to global_syms.
325 Emit global_syms into .dynamic section for all executables and
327 (elf_solaris2_after_allocation): New function.
328 (LDEMUL_AFTER_ALLOCATION): Use it.
329 * emulparams/solaris2.sh: New file.
330 * emulparams/elf32_sparc_sol2.sh: Use it.
331 * emulparams/elf64_sparc_sol2.sh: Likewise.
332 * emulparams/elf_i386_sol2.sh: Likewise.
333 * emulparams/elf_x86_64_sol2.sh: Likewise.
334 * Makefile.am (eelf32_sparc_sol2.c): Depend on
335 $(srcdir)/emulparams/solaris2.sh.
336 (eelf64_sparc_sol2.c): Likewise.
337 (eelf_x86_64_sol2.c): Likewise.
338 (eelf_i386_sol2.c): Likewise.
339 * Makefile.in: Regenerate.
341 2010-10-06 Nick Clifton <nickc@redhat.com>
343 * ld.texinfo: Update description of computation of VMA and LMA
344 addresses for output sections.
346 2010-10-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
348 * Makefile.am (ALL_64_EMULATIONS): Fix typo in last commit.
349 * Makefile.in: Regenerate.
351 * Makefile.am (ALL_EMULATIONS): Rewrite in terms of ...
352 (ALL_EMULATION_SOURCES): ... this new variable.
353 (ALL_64_EMULATIONS): Rewrite in terms of ...
354 (ALL_64_EMULATION_SOURCES): ... this new variable.
355 (EXTRA_ld_new_SOURCES): Rewrite in terms of the _SOURCES
357 (eelf32microblaze.c): Fix indentation.
358 * Makefile.in: Regenerate.
360 2010-10-04 Bernd Schmidt <bernds@codesourcery.com>
362 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use
363 _bfd_elf_single_rel_hdr.
365 2010-10-01 Alan Modra <amodra@gmail.com>
368 * ldexp.c (fold_name): Treat absolute symbols as plain numbers.
369 * ld.texinfo (Expression Section): Don't say absolute symbols
372 2010-09-29 Alan Modra <amodra@gmail.com>
374 * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
375 section for orphans handled here.
377 2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
379 * configure: Regenerate.
381 2010-09-23 Dave Korn <dave.korn.cygwin@gmail.com>
383 * scripttempl/armcoff.sc: Revert 2010-09-22 change.
385 2010-09-23 Alan Modra <amodra@gmail.com>
387 * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
388 to output section on a final link.
390 2010-09-22 Kai Tietz <kai.tietz@onevision.com>
392 * ldlang.c (lang_add_section): Allow for debugging
393 section to be marked as noload but to keep content.
394 (IGNORE_SECTION): Likewise.
395 (lang_check_section_addresses): Likewise.
396 * ldwrite.c (build_link_order): Likewise.
398 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
400 * emultempl/pep.em: Likewise.
401 * scripttempl/armcoff.sc: Separate idata
402 and add __IAT_start__ and __IAT_end__ labels.
403 * scripttempl/pe.sc: Likewise.
404 * scripttempl/pep.sc: Likewise.
406 2010-09-20 David S. Miller <davem@davemloft.net>
408 * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
410 2010-09-16 Alan Modra <amodra@gmail.com>
412 * ld.texinfo (NOLOAD): Do not erroneously state that contents will
413 appear in output file.
414 * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
415 unless SEC_COFF_SHARED_LIBRARY.
416 (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
418 (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
419 to update dot in region. Ditto when setting SEC_ALLOC if dot
420 advanced due to assignment.
421 * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
423 2010-09-15 Kai Tietz <kai.tietz@onevision.com>
425 * scripttempl/pep.sc: Add .xdata segment and
426 put into .pdata all segments beginning with .pdata.
428 2010-09-10 Alan Modra <amodra@gmail.com>
431 * ldlang.h (lang_for_each_statement_worker): Declare.
432 * ldlang.c (lang_for_each_statement_worker): Make global. Don't
433 recurse into children of output_section_statement with constraint
435 (print_assignment): Handle NULL output_section->bfd_section.
436 (lang_size_sections_1): Ignore output section statement address
437 when constraint is -1.
438 * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
440 2010-09-09 Tristan Gingold <gingold@adacore.com>
442 * NEWS: Add a entry for alpha-vms.
444 2010-09-07 Andrew Burgess <aburgess@broadcom.com>
446 * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
447 newly cloned section.
449 2010-09-02 Richard Henderson <rth@redhat.com>
451 * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too.
453 2010-08-31 Nick Clifton <nickc@redhat.com>
455 * ldlex.l (WILDCHAR): Add the caret and exclamation point
456 characters, so that they can be used inside globs.
458 2010-08-31 Nick Clifton <nickc@redhat.com>
460 * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
461 a region's attributes.
463 2010-08-31 Alan Modra <amodra@gmail.com>
465 * scripttempl/mmo.sc: Move assignment to "Main" inside .text
466 output section statement.
468 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
471 * emultempl/elf32.em (_before_allocation): Check audit entry
474 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
477 * emultempl/elf32.em (_after_open): Find one .eh_frame section
480 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
483 * emultempl/elf32.em (_after_open): Find an ELF input for
484 --build-id and --eh-frame-hdr.
486 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
488 * Makefile.am (eshlelf_fd.c): Correct the name of the tool
490 * Makefile.in: Regenerate.
492 2010-08-20 Nick Clifton <nickc@redhat.com>
494 * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
497 2010-08-19 Alan Modra <amodra@gmail.com>
499 * NEWS: Mention change in linker script expression evaluation.
501 2010-08-19 Alan Modra <amodra@gmail.com>
503 * ld.texinfo (Expression Section): Detail expression evaluation.
504 (Builtin Functions <ADDR>): Correct.
505 (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
507 (Builtin Functions <SEGMENT_START>): Typo fix.
508 * ldexp.c (new_number): New function.
509 (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
510 (fold_unary <'~', '!', '-'>): Don't make_abs.
511 (fold_binary): Simplify result section logic. Return NULL section
513 (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
515 (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
516 (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
517 (fold_name <NAME>): No need to handle absolute symbols differently
519 (fold_name <ORIGIN>): Don't return valid result when
520 lang_first_phase_enum. Return new_rel_from_abs, not new_abs.
521 (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
522 (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning
523 a plain number to dot, assume the value is relative to expld.section.
524 Make terms not in an output section, absolute.
525 * ldlang.c (print_assignment): Fix style nit.
526 (lang_size_sections_1): Cope with NULL expld.result.section.
527 (lang_do_assignments_1): Likewise.
529 2010-08-12 Alan Modra <amodra@gmail.com>
531 * ldexp.c (new_rel): Remove "str". Update all call sites.
532 (exp_fold_tree_1): When assigning to dot, calculate nextdot
533 using expld.result.section rather than expld.section.
535 2010-08-06 Alan Modra <amodra@gmail.com>
538 * ldlang.c (lang_add_vers_depend): Don't leave version_needed
541 2010-07-28 Alan Modra <amodra@gmail.com>
543 * ldexp.c (exp_print_tree): Print function-like binary nodes as
544 functions rather than in-fix operators. Use fputs and fputc
547 2010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
548 Ina Pandit <ina.pandit@kpitcummins.com>
550 * configure.tgt: Match all v850 targets.
552 2010-07-20 Mike Frysinger <vapier@gentoo.org>
554 * ld.texinfo (VERSION): Remove "int" from example script and add ";".
555 Declare the default language as C.
557 2010-07-17 Alan Modra <amodra@gmail.com>
559 * ldlang.c (lang_check_section_addresses): Catch overlap for
560 sections that wrap around the address space.
562 2010-06-29 Nick Clifton <nickc@redhat.com>
564 * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
565 with the .gcc_except_table. prefix.
567 2010-06-29 Alan Modra <amodra@gmail.com>
569 * emulparams/maxqcoff.sh: Delete file.
570 * scripttempl/maxqcoff.sc: Delete file.
571 * Makefile.am: Remove references to maxq.
572 * configure.tgt: Likewise.
573 * Makefile.in: Regenerate.
574 * configure: Regenerate.
575 * po/POTFILES.in: Regenerate.
577 2010-06-27 Alan Modra <amodra@gmail.com>
579 * pe-dll.c (fill_edata): Avoid set but unused warning.
580 (pe_walk_relocs_of_symbol): Delete set but unused variables.
581 (generate_reloc, pe_implied_import_dll): Likewise.
582 * emultempl/aix.em (open_dynamic_archive): Likewise.
583 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
584 (xtensa_layout_wild): Likewise.
585 (xtensa_colocate_output_literals_callback): Likewise.
587 2010-06-25 Alan Modra <amodra@gmail.com>
589 * emultempl/ppc64elf.em (prelim_size_sections): New function.
590 (ppc_before_allocation): Use it. Size sections before toc edit too.
592 2010-06-25 Alan Modra <amodra@gmail.com>
594 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
596 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
598 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
599 auto-import and merge-rdata defaults same for i[3-7]86 and
602 2010-06-15 Joseph Myers <joseph@codesourcery.com>
604 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
606 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
609 * pe-dll.c (process_def_file_and_drectve): Reorder check for
610 forwarded export name after check for ordinary export.
612 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
614 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
616 2010-06-08 Nick Clifton <nickc@redhat.com>
618 * fdl.texi: Replace with v1.3 text.
619 * ld.texinfo: Replace abbreviated 20th century year numbers with
621 * ldint.texinfo: Likewise.
622 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
623 include of the fdl.texi file.
625 2010-06-01 Tristan Gingold <gingold@adacore.com>
627 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
628 readonly output-section. Handle LIB$INITIALIZE and sections
630 * emultempl/vms.em (vms_place_orphan): Add comments.
632 2010-05-28 Nick Clifton <nickc@redhat.com>
634 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
635 * Makefile.in: Regenerate.
637 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
640 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
641 multiple of maximum page size.
643 2010-05-25 Nick Clifton <nickc@redhat.com>
645 * Makefile.am: Fix typo.
646 * Makefile.in: Regenerate.
648 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
649 Joseph Myers <joseph@codesourcery.com>
650 Andrew Stubbs <ams@codesourcery.com>
652 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
653 (eshelf_fd.c, eshlelf_fd.c): New rules.
654 * Makefile.in: Regenerate.
655 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
657 * emulparams/shelf_fd.sh: New file.
658 * emulparams/shlelf_fd.sh: New file.
659 * emulparams/shlelf_linux.sh: Update comment.
661 2010-05-25 Jay Krell <jay.krell@cornell.edu>
664 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
665 * Makefile.in: Regenerate.
667 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
669 * deffilep.y (opt_name): Allow leading dot.
670 (dot_name): Likewise.
671 (anylang_id): Likewise.
672 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
674 (gld${EMULATION_NAME}_handle_option): Warn about v1.
675 (pep_find_data_imports): Remove superflous warnings about
677 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
678 and active pseudo-relocation-v2 rdata into data section.
679 * emultempl/pe.em (default_merge_rdata): New shell variable.
680 (MERGE_RDATA_V2): New macro.
681 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
684 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
686 * emultempl/pe.em (is_underscoring): New helper function.
687 (gld_${EMULATION_NAME}_before_parse): Replace code
688 for pe(p)_leading_underscore detection by is_underscoring.
690 (GET_INIT_SYMBOL_NAME): Likewise.
694 (gld_${EMULATION_NAME}_set_symbols):
695 * emultempl/pep.em: Likewise.
696 * pe-dll.c (pe_detail_list): Set default
697 underscoring for x64 target.
698 (pe_dll_id_target): Add initialization of
699 pe(p)_leading_underscore.
701 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
703 * pe-dll.c: Removed trailing whitespaces.
705 2010-05-14 Alan Modra <amodra@gmail.com>
708 * ldexp.c (exp_fold_tree_1): If assignment source expression is
709 invalid, make the destination symbol undefined.
711 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
713 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
714 Initialize pe(p)_leading_underscore variable.
715 (set_pe_name): Likewise.
716 * emultempl/pep.em: Likewise.
717 Additional change default to non-underscore for
718 pep_leading_underscore equal to -1.
720 2010-05-07 Tristan Gingold <gingold@adacore.com>
722 * Makefile.in: Regenerate with automake 1.11.1.
725 2010-05-05 Nick Clifton <nickc@redhat.com>
727 * po/es.po: Updated Spanish translation.
729 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
731 * pe-dll.c (_nm_-symbols): Use always underscored variant
733 (__imp_-symbols): Likewise.
734 (___imp_-symbols): Likewise.
735 * NEWS: Mention ABI change for x64 PE-COFF.
737 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
739 * Makefile.am (install-exec-local): Properly install ld as
740 default cross linker.
741 * Makefile.in: Regenerated.
743 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
744 Nick Clifton <nickc@redhat.com>
746 * configure.in (install_as_default): Define and set to true
747 unless --enable-gold=both/gold has been specified.
748 * configure: Regenerate.
750 * Makefile.am (transform): Use ld.bfd as the default name of
752 (install-exec-local): Also install the executable as a binary
753 named 'ld' if install_as_default is true.
754 * Makefile.in: Regenerate.
756 2010-04-22 Nick Clifton <nickc@redhat.com>
758 * po/ld.pot: Updated by the Translation project.
759 * po/vi.po: Updated Vietnamese translation.
760 * po/bg.po: Updated Bulgarian translation.
762 2010-04-15 Andrew Haley <aph@redhat.com>
764 * emultempl/armelf.em (merge_exidx_entries): New variable.
765 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
766 ("no-merge-exidx-entries"): New option.
767 * ld.texinfo (merge-exidx-entries): Document this option.
769 2010-04-14 Tristan Gingold <gingold@adacore.com>
771 * emulparams/alphavms.sh: New file.
772 * emultempl/vms.em: New file.
773 * scripttempl/alphavms.sc: New file.
774 * configure.tgt (alpha*-*-*vms*): Added.
775 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
776 (ealphavms.c): New target.
777 * Makefile.in: Regenerate.
779 2010-04-09 Nick Clifton <nickc@redhat.com>
781 * ldlang.c (wild_sort): Remove unused variable section_name.
783 2010-04-07 Alan Modra <amodra@gmail.com>
785 * configure: Regenerate.
787 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
790 * ld/testsuite/ld-x86-64/unique1.d: New.
791 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
793 * ld-x86-64/x86-64.exp: Run unique1.
795 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
797 * emultempl/pep.em (U): Macro modified.
798 (U_SIZE): New helper macro.
799 (GET_INIT_SYMBOL_NAME): Likewise.
800 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
801 and OPTION_LEADING_UNDERSCORE enumerator-values.
802 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
804 (definfo): Add new member is_c_symbol.
805 (D): Add to macro underscore mode parameter.
806 (init): Add definition for is_c_symbol.
807 (gld_${EMULATION_NAME}_list_options): Display new options.
808 (set_pep_name): Adjust underscoring dependent fixed
810 (gld_${EMULATION_NAME}_set_symbols): Likewise.
811 (saw_option): Likewise.
812 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
813 (set_entry_point): Initial initial_symbol_char dependent to
814 target's default and new option flag pep_leading_underscore.
815 * emultempl/pe.em (U): Macro modified.
816 (U_SIZE): New helper macro.
817 (GET_INIT_SYMBOL_NAME): Likewise.
818 (OPTION_LEADING_UNDERSCORE): Add new option define.
819 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
820 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
822 (definfo): Add new member is_c_symbol.
823 (D): Add to macro underscore mode parameter.
824 (init): Add definition for is_c_symbol.
825 (gld_${EMULATION_NAME}_list_options): Display new options.
826 (set_pep_name): Adjust underscoring dependent fixed
828 (gld_${EMULATION_NAME}_set_symbols): Likewise.
829 (saw_option): Likewise.
830 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
831 (set_entry_point): Initial initial_symbol_char dependent to
832 target's default and new option flag pep_leading_underscore.
833 * pe-dll.c (pe_leading_underscore): New flag variable.
834 (pe_detail_list): Remove const to allow modify of
836 (pe_dll_id_target): Initialize pe_details' underscore variable
837 dependent to target's default and flag pe_leading_underscore.
838 * pe-dll.h (pe_leading_underscore): Add extern declaration of
840 * pep-dll.c (pe_leading_underscore): Add alias define for
841 pep_leading_underscore.
842 * pep-dll.h (pep_leading_underscore) Add extern declaration of
844 * ld.texinfo: Add documentation for --(no-)leading-underscore
847 2010-03-26 Alan Modra <amodra@gmail.com>
850 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
851 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
853 2010-03-25 Joseph Myers <joseph@codesourcery.com>
855 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
857 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
858 * NEWS: Add news entry for TI C6X support.
859 * configure.tgt (tic6x-*-*): New.
860 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
862 2010-03-23 Joseph Myers <joseph@codesourcery.com>
864 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
865 BSS_NAME): Define if not already defined. Use in place of some
866 hardcoded section names.
868 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
870 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
872 2010-03-18 Aymeric Vincent <vincent@labri.fr>
875 * emultempl/sh64elf.em: Add missing EOF.
877 2010-03-18 Doug Semler <dougsemler@gmail.com>
879 * pe-dll.c (make_one): Make text section readonly.
880 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
881 the jump stub on X86 as /SAFESEH compatible for
884 2010-03-17 Alan Modra <amodra@gmail.com>
886 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
887 *prev instead. Update all callers.
889 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
891 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
892 region and phdrs as their placement section.
894 2010-03-15 Alan Modra <amodra@gmail.com>
896 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
897 (ppc_before_allocation): Call sort_toc_sections.
898 (no_toc_sort, OPTION_NO_TOC_SORT): New.
899 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
900 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
902 2010-03-14 Alan Modra <amodra@gmail.com>
905 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
906 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
908 2010-03-11 George Gensure <werkt0@gmail.com>
911 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
913 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
915 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
917 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
918 (eelf32_sparc_sol2.c): New rule.
919 (eelf64_sparc_sol2.c): Likewise.
920 (eelf_x86_64_sol2.c): Likewise.
921 (eelf_i386_sol2.c): Likewise.
922 * Makefile.in: Regenerate.
923 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
925 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
926 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
927 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
928 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
929 Add target_extra_emuls.
930 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
931 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
932 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
933 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
934 * emulparams/elf32_sparc_sol2.sh: New file.
935 * emulparams/elf64_sparc_sol2.sh: New file.
936 * emulparams/elf_i386_sol2.sh: New file.
937 * emulparams/elf_x86_64_sol2.sh: New file.
938 * emultempl/solaris2.em: New file.
940 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
943 * ld.texinfo: Replace explicitely with explicitly.
945 2010-02-27 Jie Zhang <jie@codesourcery.com>
947 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
948 .fini_array.* when do relocatable linking.
949 * scripttempl/elf.sc: Likewise.
950 * scripttempl/elf32sh-symbian.sc: Likewise.
951 * scripttempl/elf64hppa.sc: Likewise.
952 * scripttempl/elfxtensa.sc: Likewise.
954 2010-02-26 Alan Modra <amodra@gmail.com>
956 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
958 * scripttempl/armbpabi.sc: Likewise.
959 * scripttempl/elf32sh-symbian.sc: Likewise.
960 * scripttempl/elf64hppa.sc: Likewise.
961 * scripttempl/elfxtensa.sc: Likewise.
963 2010-02-25 Alan Modra <amodra@gmail.com>
966 * ldlang.c (init_os): Remove isec param. Don't check for
967 bfd_section already set or call bfd_init_private_section_data
969 (exp_init_os): Update init_os call.
970 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
971 flags. Call bfd_init_private_section_data here.
972 (map_input_to_output_sections): Tidy. Update init_os calls.
973 Use os->sectype to select sec flags for lang_data_statement.
975 2010-02-23 Alan Modra <amodra@gmail.com>
978 * ldlang.c: Revert last patch.
980 2010-02-23 Nick Clifton <nickc@redhat.com>
982 * po/bg.po: Updated Bulgarian translation.
984 2010-02-22 Alan Modra <amodra@gmail.com>
987 * ldlang.c (exp_init_os): Delete forward declaration.
988 (init_os): Don't check for bfd_section already created and don't
989 init addr_tree and load_base expressions here.
990 (map_input_to_output_sections): Only map input to output sections
991 and set constraints here, and as an exception, create output
992 sections which have their address set. Move all the other code to..
993 (create_other_output_sections): ..here. New function. Handle init
994 of addr_tree and load_base here too.
995 (lang_process): Call create_other_output_sections.
997 2010-02-19 Alan Modra <amodra@gmail.com>
999 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
1000 * Makefile.in: Regenerate.
1002 2010-02-19 Alan Modra <amodra@gmail.com>
1004 * ldlang.c (unique_section_p): Add os param. Allow group
1005 sections to match /DISCARD/. Update all callers.
1006 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
1007 (LDEMUL_BEFORE_ALLOCATION): Define.
1009 2010-02-15 Nick Clifton <nickc@redhat.com>
1011 * po/vi.po: Updated Vietnamese translation.
1013 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
1015 * Makefile.am (CFILES): Add ldlex-wrapper.c.
1016 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
1017 (ldlex.o): Replace with...
1018 (ldlex-wrapper.o): ...this new rule.
1019 (EXTRA_ld_new_SOURCES): Add ldlex.l.
1020 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
1021 * Makefile.in: Regenerate.
1022 * ldlex.l (sysdep.h): Don't include here.
1023 * ldlex-wrapper.c: New file.
1025 2010-02-09 Alan Modra <amodra@gmail.com>
1027 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
1028 function parameters.
1030 2010-02-05 Nick Clifton <nickc@redhat.com>
1032 * configure.in (ALL_LIBGUAS): Add bg.
1033 * configure: Regenerate.
1034 * po/bg.po: New Bulgarian translation.
1036 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
1038 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
1039 --target1-abs and --target1-rel options.
1041 2010-02-03 Nick Clifton <nickc@redhat.com>
1043 * emultempl/alphaelf.em: Update value expected from elf_object_id.
1044 * emultempl/hppaelf.em: Likewise.
1045 * emultempl/mipself.em: Likewise.
1046 * emultempl/ppc32elf.em: Likewise.
1047 * emultempl/ppc64elf.em: Likewise.
1049 2010-02-03 Alan Modra <amodra@gmail.com>
1051 * emultempl/ppc64elf.em (build_toc_list): Report errors from
1052 ppc64_elf_next_toc_section.
1053 (after_allocation): Update for changed function names and params.
1054 Run second pass of multitoc partitioning.
1056 2010-01-21 Jon Grant <jg@jguk.org>
1057 Nick Clifton <nickc@redhat.com>
1060 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
1061 a missing file or library. Instead mark the entry as missing and
1062 set the global flag to indicate that missing files were
1064 * ldlang.c (missing_files): New exported variable.
1065 (load_symbols): Skip loading if the file is missing.
1066 (open_input_bfds): Terminate link if any input files were
1068 * ldlang.h (struct lang_input_statement_struct): Add missing_file
1070 Add export of missing_file variable.
1072 2010-01-13 DJ Delorie <dj@redhat.com>
1074 * emultempl/elf32.em (_place_orphan): If an input section doesn't
1075 match an existing output section, but an unused output section
1076 statement does match, use it.
1077 * emultempl/pe.em (_place_orphan): Likewise.
1078 * emultempl/pep.em (_place_orphan): Likewise.
1080 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1082 * configure: Regenerate.
1083 * Makefile.in: Regenerate.
1085 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
1087 * ldver.c (ldversion): Change to "Copyright 2010".
1089 2010-01-08 Alan Modra <amodra@gmail.com>
1092 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
1094 For older changes see ChangeLog-2009
1100 version-control: never