1 2010-12-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
4 * plugin.c (message): Use putchar for the trailing `\n'.
6 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
7 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
10 * ldmain.c (main): Don't call plugin_call_cleanup.
12 * plugin.c (plugin_call_cleanup): Make it static.
13 (message): Don't call plugin_call_cleanup.
14 (plugin_load_plugins): Call xatexit with plugin_call_cleanup.
16 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
19 * plugin.c (message): Call plugin_call_cleanup on fatal
22 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
24 * plugin.c (message): Add a space after `:' in error message.
26 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
28 * plugin.c (asymbol_from_plugin_symbol): Add the trailing `\n'
30 (get_symbols): Likewise.
31 (plugin_notice): Likewise.
32 (plugin_multiple_definition): Likewise.
34 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
37 * plugin.c (message): Add the trailing `\n'.
39 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
41 * ldfile.c (ldfile_open_file_search): Check maybe_archive instead
43 * emultempl/aix.em: Likewise.
44 * emultempl/elf32.em: Likewise.
45 * emultempl/linux.em: Likewise.
46 * emultempl/pe.em: Likewise.
47 * emultempl/pep.em: Likewise.
48 * emultempl/sunos.em: Likewise.
49 * emultempl/vms.em: Likewise.
51 * ldlang.c (new_afile): Set maybe_archive instead of is_archive..
53 * ldlang.h (lang_input_statement_struct): Replace is_archive
56 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
59 * plugin.c (asymbol_from_plugin_symbol): Properly convert LTO
60 plugin visibility to ELF visibility.
61 (is_visible_from_outside): Re-indent.
63 2010-12-04 Alan Modra <amodra@gmail.com>
65 * ldlang.c (lang_size_sections_1): Align lma using same alignment
68 2010-12-03 H.J. Lu <hongjiu.lu@intel.com>
70 * lexsup.c (ld_options): Fix a typo in comments.
72 2010-12-01 H.J. Lu <hongjiu.lu@intel.com>
74 * plugin.h: Re-indent.
76 2010-11-30 Joel Sherrill <joel.sherrill@oarcorp.com>
78 * configure.tgt: Add sparc64-rtems.
80 2010-11-26 Alan Modra <amodra@gmail.com>
84 2010-11-25 Alan Modra <amodra@gmail.com>
90 * po/zh_CN.po: Update.
92 2010-11-25 Jan Hubicka <hubicka@ucw.cz>
94 * scripttempl/elf.sc: Group .text.exit, text.startup and .text.hot
97 2010-11-23 Matthias Klose <doko@ubuntu.com>
99 * configure.ac: For --enable-gold, handle value `default' instead of
100 `both*'. Always install ld as ld.gold, install as ld if gold is
102 * configure: Regenerate.
104 2010-11-21 H.J. Lu <hongjiu.lu@intel.com>
106 * ldfile.c: Re-indent plugin code.
107 * ldlang.c: Likewise.
108 * ldmain.c: Likewise.
109 * plugin.c: Likewise.
111 2010-11-20 H.J. Lu <hongjiu.lu@intel.com>
114 * plugin.c (asymbol_from_plugin_symbol): Set alignment of
115 common symbol to 1 for For ELF targets.
117 2010-11-20 H.J. Lu <hongjiu.lu@intel.com>
120 * lexsup.c (parse_args): Properly report loading plugin error.
122 2010-11-19 Dave Korn <dave.korn.cygwin@gmail.com>
124 * plugin.c (is_visible_from_outside): New function.
125 (get_symbols): Use it.
127 2010-11-16 Jie Zhang <jie.zhang@analog.com>
129 * Makefile.am (eelf32bfinfd.c, eelf32bfin.c): Depend on bfin.em.
130 * Makefile.in: Regenerated.
131 * emulparams/bfin.sh (EXTRA_EM_FILE): Set.
132 * emulparams/elf32bfinfd.sh (EXTRA_EM_FILE): Likewise.
133 * emultempl/bfin.em: New.
135 2010-11-16 Yasuaki Taniguchi <taniguchi.yasua@jp.fujitsu.com>
137 * emultempl/pe.em (_list_options): Correct typo.
138 * emultempl/pep.em (_list_options): Likewise.
140 2010-11-08 Thomas Schwinge <thomas@schwinge.name>
142 * configure.host: Add stanza for *-*-gnu*.
144 2010-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
146 * emultempl/spuelf.em (new_tmp_file): Fix wrong first parameter.
148 2010-11-05 Tristan Gingold <gingold@adacore.com>
150 * po/ld.pot: Regenerate
151 * po/POTFILES.in: Regenerate
153 2010-11-05 Tristan Gingold <gingold@adacore.com>
155 * NEWS: Add marker for 2.21.
157 2010-11-05 Dave Korn <dave.korn.cygwin@gmail.com>
159 * plugin.h (plugin_active_plugins_p): New prototype.
160 (is_ir_dummy_bfd): Delete prototype.
161 * plugin.c: Fix formatting issues.
162 (is_ir_dummy_bfd): Make static.
163 (plugin_active_plugins_p): New function.
164 * ldfile.c (ldfile_try_open_bfd): Use it to save work if no plugins
165 are loaded. Always close file descriptor after claim handler returns.
166 * ldmain.c (add_archive_element): Likewise.
168 2010-11-05 Alan Modra <amodra@gmail.com>
170 * ldlang.c (lang_add_section): Distinguish ELF treatment of NOLOAD.
171 (map_input_to_output_sections): Likewise.
172 (lang_size_sections_1): Likewise.
173 (IGNORE_SECTION): Don't test SEC_NEVER_LOAD.
174 (lang_check_section_addresses): Likewise.
176 2010-11-04 Kai Tietz <kai.tietz@onevision.com>
178 * scripttempl/pe.sc (.debug_types): New.
179 * scripttempl/pep.sc: Likewise.
181 2010-11-04 Alan Modra <amodra@gmail.com>
183 * plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd.
185 2010-11-03 Nick Clifton <nickc@redhat.com>
188 * ldlang.c (ldlang_def_chain_list): New variable. Contains a list
189 of symbols defined via the --defsym command line option and
190 currently waiting assignment.
191 (insert_defined): Add a defined symbol to the symbol table.
192 (ldlang_add_def): Add a entry to the ldlang_def_chain_list.
193 (lang_place_defineds): Walk ldlang_def_chain_list defining the
195 (lang_process): Call lang_place_defineds.
196 (lang_add_assignment): If the assignment has come from a --defsym
197 command line option then call lang_add_def.
199 2010-11-03 Alan Modra <amodra@gmail.com>
201 * Makefile.am (eelf64hppa.c): Correct dependencies.
202 * Makefile.in: Regenerate.
204 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
206 * scripttempl/armbpabi.sc: Include compressed DWARF debug
208 * scripttempl/avr.sc: Likewise.
209 * scripttempl/elf32cr16.sc: Likewise.
210 * scripttempl/elf32crx.sc: Likewise.
211 * scripttempl/elf32msp430.sc: Likewise.
212 * scripttempl/elf32msp430_3.sc: Likewise.
213 * scripttempl/elf32sh-symbian.sc: Likewise.
214 * scripttempl/elf64hppa.sc: Likewise.
215 * scripttempl/elf_chaos.sc: Likewise.
216 * scripttempl/elfd10v.sc: Likewise.
217 * scripttempl/elfd30v.sc: Likewise.
218 * scripttempl/elfi370.sc: Likewise.
219 * scripttempl/elfm68hc11.sc: Likewise.
220 * scripttempl/elfm68hc12.sc: Likewise.
221 * scripttempl/elfxtensa.sc: Likewise.
222 * scripttempl/ip2k.sc: Likewise.
223 * scripttempl/iq2000.sc: Likewise.
224 * scripttempl/mep.sc: Likewise.
225 * scripttempl/mmo.sc: Likewise.
226 * scripttempl/v850.sc: Likewise.
227 * scripttempl/xstormy16.sc: Likewise.
229 2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
231 * ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after
233 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
235 * scripttempl/elf.sc: Include compressed DWARF debug sections.
237 2010-10-28 Alan Modra <amodra@gmail.com>
239 * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.
241 2010-10-28 Matthias Klose <doko@ubuntu.com>
243 * ld.texinfo: Add directory section for info document.
244 * ldint.texinfo: Likewise.
246 2010-10-28 Alan Modra <amodra@gmail.com>
248 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For
249 --no-undefined-version, don't report dot sym versions added by ld.
251 2010-10-28 Alan Modra <amodra@gmail.com>
253 * ldlang.h (ldlang_add_undef): Add cmdline param.
254 * ldlang.c (undef_from_cmdline): New var.
255 (ldlang_add_undef): Add cmdline param. Set undef_from_cmdline.
256 (lang_end): Really require -e or -u from command line on
257 relocatable --gc-sections.
258 * ldemul.c (after_parse_default): Adjust ldlang_add_undef call.
259 * ldgram.y (extern_name_list_body): Likewise.
260 * lexsup.c (parse_args): Likewise.
261 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
263 2010-10-25 Alan Modra <amodra@gmail.com>
265 * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
268 2010-10-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
270 * emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to
272 * emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to
275 2010-10-22 Alan Modra <amodra@gmail.com>
277 * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
278 output when section has no contents.
279 (build_link_order <lang_reloc_statement_enum>): Likewise.
281 2010-10-21 Joseph Myers <joseph@codesourcery.com>
283 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use
284 .c6xabi.attributes, not __TI_build_attributes.
286 2010-10-20 Dave Korn <dave.korn.cygwin@gmail.com>
288 * plugin.c (get_symbols): Check symbol type correctly.
290 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
292 * configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
293 * configure: Regenerate.
294 * config.in: Likewise.
295 * plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
296 trival LoadLibrary-based replacement for Windows systems.
297 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
298 replacement based on GetProcAddress.
299 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
300 * sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
301 anymore, use its own guard.
303 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
305 * plugin.c (add_input_file): Take copy of input string.
306 (add_input_library): Likewise.
307 (set_extra_library_path): Likewise.
309 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
311 Apply LD plugin patch series (part 6/6).
312 * ldlang.c (load_symbols): Handle bfd subsitution when calling the
313 add_archive_element callback.
314 * ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive
315 member to the plugins and if claimed set "subsbfd" output parameter to
316 point to the dummy IR-only BFD.
318 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
320 Apply LD plugin patch series (part 5/6).
321 * plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd,
322 find the elf symbol data and set the visibility in the st_other field.
324 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
326 Apply LD plugin patch series (part 4/6).
327 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of
328 plugin_call_all_symbols_read to before setting of gc_sym_list, and
329 open any new input files that may have been added during it.
330 * ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to
331 plugin_multiple_definition and let it have first say over what to do
332 with the clashing definitions.
333 * plugin.c (no_more_claiming): New boolean variable.
334 (plugin_cached_allow_multiple_defs): Likewise.
335 (add_input_file): Implement.
336 (add_input_library): Likewise.
337 (set_extra_library_path): Likewise.
338 (plugin_call_claim_file): Don't do anything when no_more_claiming set.
339 (plugin_call_all_symbols_read): Set it. Disable link info
340 "allow_multiple_definition" flag, but cache its value.
341 (plugin_multiple_definition): New function.
342 * plugin.h (plugin_multiple_definition): Add prototype.
343 * testplug.c (addfile_enum_t): New enumerated typedef.
344 (add_file_t): New struct typedef.
345 (addfiles_list): New variable.
346 (addfiles_tail_chain_ptr): Likewise.
347 (record_add_file): New function.
348 (parse_option): Parse "add:", "lib:" and "dir:" options and call it.
349 (onall_symbols_read): Iterate the list of new files, libs and dirs,
352 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
354 Apply LD plugin patch series (part 3/6).
355 * ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice.
356 * plugin.c (non_ironly_hash): Add new bfd hash table.
357 (plugin_load_plugins): Exit early if no plugins to load. If plugins
358 do load successfully, set notice_all flag in link info.
359 (get_symbols): Implement.
360 (plugin_load_plugins): Exit early if no plugins to load, else after
361 loading plugins successfully enable notice_all mode.
362 (init_non_ironly_hash): Lazily init non_ironly_hash table.
363 (plugin_notice): Record symbols referenced from non-IR files in the
364 non_ironly_hash. Suppress tracing, cref generation and nocrossrefs
365 tracking for symbols from dummy IR bfds.
366 * plugin.h: Fix formatting.
367 (plugin_notice): Add prototype.
368 * testplug.c (dumpresolutions): New global var.
369 (parse_options): Accept "dumpresolutions".
370 (onall_symbols_read): Get syms and dump resolutions if it was given.
372 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
374 Apply LD plugin patch series (part 2/6).
375 * ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early
376 during compat checks if they pass, instead offer any successfully
377 opened and accepted file to the plugin claim file hooks chain. Create
378 a dummy bfd to accept symbols added by the plugin, if the plugin
380 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols
381 read hook chain before ldemul_after_open.
382 * ldlang.h (struct lang_input_statement_struct): Add new single-bit
384 * plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix.
385 (IRONLY_SUFFIX_LEN): Length of the above string.
386 (plugin_get_ir_dummy_bfd): New function to create the dummy bfd used
387 to store symbols for ir-only files.
388 (is_ir_dummy_bfd): New function to check if a bfd is ir-only.
389 (asymbol_from_plugin_symbol): New function converts symbol formats.
390 (add_symbols): Call it to convert plugin syms to bfd syms and add
391 them to the dummy bfd.
392 * plugin.h: Add missing include guards.
393 (plugin_get_ir_dummy_bfd): Add prototype.
394 (is_ir_dummy_bfd): Likewise.
395 * testplug.c (TV_MESSAGE): New helper macro.
396 (struct claim_file): New struct.
397 (claim_file_t): New typedef.
398 (tag_names[]): Make static and const.
399 (claimfiles_list): New variable.
400 (claimfiles_tail_chain_ptr): Likewise.
401 (last_claimfile): Likewise.
402 (record_claim_file): Record a file to claim on a singly-linked list.
403 (parse_symdefstr): Parse an ASCII representation of a symbol from a
404 plugin option into the fields of a struct ld_plugin_symbol.
405 (record_claimed_file_symbol): Use it to parse plugin option for
407 (parse_option): Parse claim file and add symbol options.
408 (dump_tv_tag): Use TV_MESSAGE.
410 (onclaim_file): Make static. Use TV_MESSAGE. Scan list of files to
411 claim and claim this file if required, adding any symbols specified.
412 (onall_symbols_read): Make static and use TV_MESSAGE.
413 (oncleanup): Likewise.
415 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
417 Apply LD plugin patch series (part 1/6).
418 * configure.in: Add AC_CHECKs for file io and dlfcn headers and
419 functions and AC_SEARCH for -ldl.
420 (enable_plugins): New shell variable set if above tests find dlopen
422 (ENABLE_PLUGINS): Add related automake conditional.
423 * configure: Regenerate.
424 * config.in: Likewise.
425 * Makefile.am (PLUGIN_C): Declare plugin C source file, conditional
426 on ENABLE_PLUGINS being defined.
427 (PLUGIN_H): Likewise for header file.
428 (PLUGIN_OBJECT): Likewise for object file.
429 (PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support.
430 (AM_CPPFLAGS): Use PLUGIN_CFLAGS.
431 (CFILES): Use PLUGIN_C.
432 (HFILES): Use PLUGIN_H.
433 (OFILES): Use PLUGIN_OBJECT.
434 (ld_new_SOURCES): Use PLUGIN_C.
435 (noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin.
436 (libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition
438 (libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise.
439 (libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise.
440 * Makefile.in: Regenerate.
441 * sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or
442 sys/file.h where available. Include dlfcn.h when ENABLE_PLUGINS.
443 (O_RDONLY): Supply default definition likewise to bfd's sysdep.h
444 (O_WRONLY): Likewise.
446 (O_ACCMODE): Likewise.
447 (O_BINARY): Likewise.
448 (SEEK_SET): Likewise.
449 (SEEK_CUR): Likewise.
450 (SEEK_END): Likewise.
451 * ldmisc.c (vfinfo): Make non-static. Add %p format char.
452 * ldmisc.h (vfinfo): Declare extern prototype.
453 * lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for
454 OPTION_PLUGIN and OPTION_PLUGIN_OPT.
455 (ld_options[])[ENABLE_PLUGINS]: Add option data for the above two.
456 (parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once
457 option parsing is complete.
458 * ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just
460 * plugin.c: New source file.
461 * plugin.h: Likewise new header.
462 * testplug.c: New source file.
464 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
466 * emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed
467 basever_syms to global_syms.
468 Emit global_syms into .dynamic section for all executables and
470 (elf_solaris2_after_allocation): New function.
471 (LDEMUL_AFTER_ALLOCATION): Use it.
472 * emulparams/solaris2.sh: New file.
473 * emulparams/elf32_sparc_sol2.sh: Use it.
474 * emulparams/elf64_sparc_sol2.sh: Likewise.
475 * emulparams/elf_i386_sol2.sh: Likewise.
476 * emulparams/elf_x86_64_sol2.sh: Likewise.
477 * Makefile.am (eelf32_sparc_sol2.c): Depend on
478 $(srcdir)/emulparams/solaris2.sh.
479 (eelf64_sparc_sol2.c): Likewise.
480 (eelf_x86_64_sol2.c): Likewise.
481 (eelf_i386_sol2.c): Likewise.
482 * Makefile.in: Regenerate.
484 2010-10-06 Nick Clifton <nickc@redhat.com>
486 * ld.texinfo: Update description of computation of VMA and LMA
487 addresses for output sections.
489 2010-10-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
491 * Makefile.am (ALL_64_EMULATIONS): Fix typo in last commit.
492 * Makefile.in: Regenerate.
494 * Makefile.am (ALL_EMULATIONS): Rewrite in terms of ...
495 (ALL_EMULATION_SOURCES): ... this new variable.
496 (ALL_64_EMULATIONS): Rewrite in terms of ...
497 (ALL_64_EMULATION_SOURCES): ... this new variable.
498 (EXTRA_ld_new_SOURCES): Rewrite in terms of the _SOURCES
500 (eelf32microblaze.c): Fix indentation.
501 * Makefile.in: Regenerate.
503 2010-10-04 Bernd Schmidt <bernds@codesourcery.com>
505 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use
506 _bfd_elf_single_rel_hdr.
508 2010-10-01 Alan Modra <amodra@gmail.com>
511 * ldexp.c (fold_name): Treat absolute symbols as plain numbers.
512 * ld.texinfo (Expression Section): Don't say absolute symbols
515 2010-09-29 Alan Modra <amodra@gmail.com>
517 * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
518 section for orphans handled here.
520 2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
522 * configure: Regenerate.
524 2010-09-23 Dave Korn <dave.korn.cygwin@gmail.com>
526 * scripttempl/armcoff.sc: Revert 2010-09-22 change.
528 2010-09-23 Alan Modra <amodra@gmail.com>
530 * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
531 to output section on a final link.
533 2010-09-22 Kai Tietz <kai.tietz@onevision.com>
535 * ldlang.c (lang_add_section): Allow for debugging
536 section to be marked as noload but to keep content.
537 (IGNORE_SECTION): Likewise.
538 (lang_check_section_addresses): Likewise.
539 * ldwrite.c (build_link_order): Likewise.
541 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
543 * emultempl/pep.em: Likewise.
544 * scripttempl/armcoff.sc: Separate idata
545 and add __IAT_start__ and __IAT_end__ labels.
546 * scripttempl/pe.sc: Likewise.
547 * scripttempl/pep.sc: Likewise.
549 2010-09-20 David S. Miller <davem@davemloft.net>
551 * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
553 2010-09-16 Alan Modra <amodra@gmail.com>
555 * ld.texinfo (NOLOAD): Do not erroneously state that contents will
556 appear in output file.
557 * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
558 unless SEC_COFF_SHARED_LIBRARY.
559 (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
561 (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
562 to update dot in region. Ditto when setting SEC_ALLOC if dot
563 advanced due to assignment.
564 * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
566 2010-09-15 Kai Tietz <kai.tietz@onevision.com>
568 * scripttempl/pep.sc: Add .xdata segment and
569 put into .pdata all segments beginning with .pdata.
571 2010-09-10 Alan Modra <amodra@gmail.com>
574 * ldlang.h (lang_for_each_statement_worker): Declare.
575 * ldlang.c (lang_for_each_statement_worker): Make global. Don't
576 recurse into children of output_section_statement with constraint
578 (print_assignment): Handle NULL output_section->bfd_section.
579 (lang_size_sections_1): Ignore output section statement address
580 when constraint is -1.
581 * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
583 2010-09-09 Tristan Gingold <gingold@adacore.com>
585 * NEWS: Add a entry for alpha-vms.
587 2010-09-07 Andrew Burgess <aburgess@broadcom.com>
589 * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
590 newly cloned section.
592 2010-09-02 Richard Henderson <rth@redhat.com>
594 * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too.
596 2010-08-31 Nick Clifton <nickc@redhat.com>
598 * ldlex.l (WILDCHAR): Add the caret and exclamation point
599 characters, so that they can be used inside globs.
601 2010-08-31 Nick Clifton <nickc@redhat.com>
603 * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
604 a region's attributes.
606 2010-08-31 Alan Modra <amodra@gmail.com>
608 * scripttempl/mmo.sc: Move assignment to "Main" inside .text
609 output section statement.
611 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
614 * emultempl/elf32.em (_before_allocation): Check audit entry
617 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
620 * emultempl/elf32.em (_after_open): Find one .eh_frame section
623 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
626 * emultempl/elf32.em (_after_open): Find an ELF input for
627 --build-id and --eh-frame-hdr.
629 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
631 * Makefile.am (eshlelf_fd.c): Correct the name of the tool
633 * Makefile.in: Regenerate.
635 2010-08-20 Nick Clifton <nickc@redhat.com>
637 * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
640 2010-08-19 Alan Modra <amodra@gmail.com>
642 * NEWS: Mention change in linker script expression evaluation.
644 2010-08-19 Alan Modra <amodra@gmail.com>
646 * ld.texinfo (Expression Section): Detail expression evaluation.
647 (Builtin Functions <ADDR>): Correct.
648 (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
650 (Builtin Functions <SEGMENT_START>): Typo fix.
651 * ldexp.c (new_number): New function.
652 (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
653 (fold_unary <'~', '!', '-'>): Don't make_abs.
654 (fold_binary): Simplify result section logic. Return NULL section
656 (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
658 (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
659 (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
660 (fold_name <NAME>): No need to handle absolute symbols differently
662 (fold_name <ORIGIN>): Don't return valid result when
663 lang_first_phase_enum. Return new_rel_from_abs, not new_abs.
664 (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
665 (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning
666 a plain number to dot, assume the value is relative to expld.section.
667 Make terms not in an output section, absolute.
668 * ldlang.c (print_assignment): Fix style nit.
669 (lang_size_sections_1): Cope with NULL expld.result.section.
670 (lang_do_assignments_1): Likewise.
672 2010-08-12 Alan Modra <amodra@gmail.com>
674 * ldexp.c (new_rel): Remove "str". Update all call sites.
675 (exp_fold_tree_1): When assigning to dot, calculate nextdot
676 using expld.result.section rather than expld.section.
678 2010-08-06 Alan Modra <amodra@gmail.com>
681 * ldlang.c (lang_add_vers_depend): Don't leave version_needed
684 2010-07-28 Alan Modra <amodra@gmail.com>
686 * ldexp.c (exp_print_tree): Print function-like binary nodes as
687 functions rather than in-fix operators. Use fputs and fputc
690 2010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
691 Ina Pandit <ina.pandit@kpitcummins.com>
693 * configure.tgt: Match all v850 targets.
695 2010-07-20 Mike Frysinger <vapier@gentoo.org>
697 * ld.texinfo (VERSION): Remove "int" from example script and add ";".
698 Declare the default language as C.
700 2010-07-17 Alan Modra <amodra@gmail.com>
702 * ldlang.c (lang_check_section_addresses): Catch overlap for
703 sections that wrap around the address space.
705 2010-06-29 Nick Clifton <nickc@redhat.com>
707 * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
708 with the .gcc_except_table. prefix.
710 2010-06-29 Alan Modra <amodra@gmail.com>
712 * emulparams/maxqcoff.sh: Delete file.
713 * scripttempl/maxqcoff.sc: Delete file.
714 * Makefile.am: Remove references to maxq.
715 * configure.tgt: Likewise.
716 * Makefile.in: Regenerate.
717 * configure: Regenerate.
718 * po/POTFILES.in: Regenerate.
720 2010-06-27 Alan Modra <amodra@gmail.com>
722 * pe-dll.c (fill_edata): Avoid set but unused warning.
723 (pe_walk_relocs_of_symbol): Delete set but unused variables.
724 (generate_reloc, pe_implied_import_dll): Likewise.
725 * emultempl/aix.em (open_dynamic_archive): Likewise.
726 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
727 (xtensa_layout_wild): Likewise.
728 (xtensa_colocate_output_literals_callback): Likewise.
730 2010-06-25 Alan Modra <amodra@gmail.com>
732 * emultempl/ppc64elf.em (prelim_size_sections): New function.
733 (ppc_before_allocation): Use it. Size sections before toc edit too.
735 2010-06-25 Alan Modra <amodra@gmail.com>
737 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
739 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
741 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
742 auto-import and merge-rdata defaults same for i[3-7]86 and
745 2010-06-15 Joseph Myers <joseph@codesourcery.com>
747 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
749 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
752 * pe-dll.c (process_def_file_and_drectve): Reorder check for
753 forwarded export name after check for ordinary export.
755 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
757 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
759 2010-06-08 Nick Clifton <nickc@redhat.com>
761 * fdl.texi: Replace with v1.3 text.
762 * ld.texinfo: Replace abbreviated 20th century year numbers with
764 * ldint.texinfo: Likewise.
765 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
766 include of the fdl.texi file.
768 2010-06-01 Tristan Gingold <gingold@adacore.com>
770 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
771 readonly output-section. Handle LIB$INITIALIZE and sections
773 * emultempl/vms.em (vms_place_orphan): Add comments.
775 2010-05-28 Nick Clifton <nickc@redhat.com>
777 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
778 * Makefile.in: Regenerate.
780 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
783 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
784 multiple of maximum page size.
786 2010-05-25 Nick Clifton <nickc@redhat.com>
788 * Makefile.am: Fix typo.
789 * Makefile.in: Regenerate.
791 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
792 Joseph Myers <joseph@codesourcery.com>
793 Andrew Stubbs <ams@codesourcery.com>
795 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
796 (eshelf_fd.c, eshlelf_fd.c): New rules.
797 * Makefile.in: Regenerate.
798 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
800 * emulparams/shelf_fd.sh: New file.
801 * emulparams/shlelf_fd.sh: New file.
802 * emulparams/shlelf_linux.sh: Update comment.
804 2010-05-25 Jay Krell <jay.krell@cornell.edu>
807 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
808 * Makefile.in: Regenerate.
810 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
812 * deffilep.y (opt_name): Allow leading dot.
813 (dot_name): Likewise.
814 (anylang_id): Likewise.
815 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
817 (gld${EMULATION_NAME}_handle_option): Warn about v1.
818 (pep_find_data_imports): Remove superflous warnings about
820 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
821 and active pseudo-relocation-v2 rdata into data section.
822 * emultempl/pe.em (default_merge_rdata): New shell variable.
823 (MERGE_RDATA_V2): New macro.
824 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
827 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
829 * emultempl/pe.em (is_underscoring): New helper function.
830 (gld_${EMULATION_NAME}_before_parse): Replace code
831 for pe(p)_leading_underscore detection by is_underscoring.
833 (GET_INIT_SYMBOL_NAME): Likewise.
837 (gld_${EMULATION_NAME}_set_symbols):
838 * emultempl/pep.em: Likewise.
839 * pe-dll.c (pe_detail_list): Set default
840 underscoring for x64 target.
841 (pe_dll_id_target): Add initialization of
842 pe(p)_leading_underscore.
844 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
846 * pe-dll.c: Removed trailing whitespaces.
848 2010-05-14 Alan Modra <amodra@gmail.com>
851 * ldexp.c (exp_fold_tree_1): If assignment source expression is
852 invalid, make the destination symbol undefined.
854 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
856 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
857 Initialize pe(p)_leading_underscore variable.
858 (set_pe_name): Likewise.
859 * emultempl/pep.em: Likewise.
860 Additional change default to non-underscore for
861 pep_leading_underscore equal to -1.
863 2010-05-07 Tristan Gingold <gingold@adacore.com>
865 * Makefile.in: Regenerate with automake 1.11.1.
868 2010-05-05 Nick Clifton <nickc@redhat.com>
870 * po/es.po: Updated Spanish translation.
872 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
874 * pe-dll.c (_nm_-symbols): Use always underscored variant
876 (__imp_-symbols): Likewise.
877 (___imp_-symbols): Likewise.
878 * NEWS: Mention ABI change for x64 PE-COFF.
880 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
882 * Makefile.am (install-exec-local): Properly install ld as
883 default cross linker.
884 * Makefile.in: Regenerated.
886 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
887 Nick Clifton <nickc@redhat.com>
889 * configure.in (install_as_default): Define and set to true
890 unless --enable-gold=both/gold has been specified.
891 * configure: Regenerate.
893 * Makefile.am (transform): Use ld.bfd as the default name of
895 (install-exec-local): Also install the executable as a binary
896 named 'ld' if install_as_default is true.
897 * Makefile.in: Regenerate.
899 2010-04-22 Nick Clifton <nickc@redhat.com>
901 * po/ld.pot: Updated by the Translation project.
902 * po/vi.po: Updated Vietnamese translation.
903 * po/bg.po: Updated Bulgarian translation.
905 2010-04-15 Andrew Haley <aph@redhat.com>
907 * emultempl/armelf.em (merge_exidx_entries): New variable.
908 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
909 ("no-merge-exidx-entries"): New option.
910 * ld.texinfo (merge-exidx-entries): Document this option.
912 2010-04-14 Tristan Gingold <gingold@adacore.com>
914 * emulparams/alphavms.sh: New file.
915 * emultempl/vms.em: New file.
916 * scripttempl/alphavms.sc: New file.
917 * configure.tgt (alpha*-*-*vms*): Added.
918 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
919 (ealphavms.c): New target.
920 * Makefile.in: Regenerate.
922 2010-04-09 Nick Clifton <nickc@redhat.com>
924 * ldlang.c (wild_sort): Remove unused variable section_name.
926 2010-04-07 Alan Modra <amodra@gmail.com>
928 * configure: Regenerate.
930 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
933 * ld/testsuite/ld-x86-64/unique1.d: New.
934 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
936 * ld-x86-64/x86-64.exp: Run unique1.
938 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
940 * emultempl/pep.em (U): Macro modified.
941 (U_SIZE): New helper macro.
942 (GET_INIT_SYMBOL_NAME): Likewise.
943 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
944 and OPTION_LEADING_UNDERSCORE enumerator-values.
945 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
947 (definfo): Add new member is_c_symbol.
948 (D): Add to macro underscore mode parameter.
949 (init): Add definition for is_c_symbol.
950 (gld_${EMULATION_NAME}_list_options): Display new options.
951 (set_pep_name): Adjust underscoring dependent fixed
953 (gld_${EMULATION_NAME}_set_symbols): Likewise.
954 (saw_option): Likewise.
955 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
956 (set_entry_point): Initial initial_symbol_char dependent to
957 target's default and new option flag pep_leading_underscore.
958 * emultempl/pe.em (U): Macro modified.
959 (U_SIZE): New helper macro.
960 (GET_INIT_SYMBOL_NAME): Likewise.
961 (OPTION_LEADING_UNDERSCORE): Add new option define.
962 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
963 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
965 (definfo): Add new member is_c_symbol.
966 (D): Add to macro underscore mode parameter.
967 (init): Add definition for is_c_symbol.
968 (gld_${EMULATION_NAME}_list_options): Display new options.
969 (set_pep_name): Adjust underscoring dependent fixed
971 (gld_${EMULATION_NAME}_set_symbols): Likewise.
972 (saw_option): Likewise.
973 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
974 (set_entry_point): Initial initial_symbol_char dependent to
975 target's default and new option flag pep_leading_underscore.
976 * pe-dll.c (pe_leading_underscore): New flag variable.
977 (pe_detail_list): Remove const to allow modify of
979 (pe_dll_id_target): Initialize pe_details' underscore variable
980 dependent to target's default and flag pe_leading_underscore.
981 * pe-dll.h (pe_leading_underscore): Add extern declaration of
983 * pep-dll.c (pe_leading_underscore): Add alias define for
984 pep_leading_underscore.
985 * pep-dll.h (pep_leading_underscore) Add extern declaration of
987 * ld.texinfo: Add documentation for --(no-)leading-underscore
990 2010-03-26 Alan Modra <amodra@gmail.com>
993 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
994 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
996 2010-03-25 Joseph Myers <joseph@codesourcery.com>
998 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
1000 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
1001 * NEWS: Add news entry for TI C6X support.
1002 * configure.tgt (tic6x-*-*): New.
1003 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
1005 2010-03-23 Joseph Myers <joseph@codesourcery.com>
1007 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
1008 BSS_NAME): Define if not already defined. Use in place of some
1009 hardcoded section names.
1011 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
1013 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
1015 2010-03-18 Aymeric Vincent <vincent@labri.fr>
1018 * emultempl/sh64elf.em: Add missing EOF.
1020 2010-03-18 Doug Semler <dougsemler@gmail.com>
1022 * pe-dll.c (make_one): Make text section readonly.
1023 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
1024 the jump stub on X86 as /SAFESEH compatible for
1027 2010-03-17 Alan Modra <amodra@gmail.com>
1029 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
1030 *prev instead. Update all callers.
1032 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1034 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
1035 region and phdrs as their placement section.
1037 2010-03-15 Alan Modra <amodra@gmail.com>
1039 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
1040 (ppc_before_allocation): Call sort_toc_sections.
1041 (no_toc_sort, OPTION_NO_TOC_SORT): New.
1042 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
1043 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
1045 2010-03-14 Alan Modra <amodra@gmail.com>
1048 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
1049 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
1051 2010-03-11 George Gensure <werkt0@gmail.com>
1054 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
1056 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1058 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
1060 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
1061 (eelf32_sparc_sol2.c): New rule.
1062 (eelf64_sparc_sol2.c): Likewise.
1063 (eelf_x86_64_sol2.c): Likewise.
1064 (eelf_i386_sol2.c): Likewise.
1065 * Makefile.in: Regenerate.
1066 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
1068 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
1069 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
1070 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
1071 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
1072 Add target_extra_emuls.
1073 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
1074 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
1075 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
1076 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
1077 * emulparams/elf32_sparc_sol2.sh: New file.
1078 * emulparams/elf64_sparc_sol2.sh: New file.
1079 * emulparams/elf_i386_sol2.sh: New file.
1080 * emulparams/elf_x86_64_sol2.sh: New file.
1081 * emultempl/solaris2.em: New file.
1083 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
1086 * ld.texinfo: Replace explicitely with explicitly.
1088 2010-02-27 Jie Zhang <jie@codesourcery.com>
1090 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
1091 .fini_array.* when do relocatable linking.
1092 * scripttempl/elf.sc: Likewise.
1093 * scripttempl/elf32sh-symbian.sc: Likewise.
1094 * scripttempl/elf64hppa.sc: Likewise.
1095 * scripttempl/elfxtensa.sc: Likewise.
1097 2010-02-26 Alan Modra <amodra@gmail.com>
1099 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
1101 * scripttempl/armbpabi.sc: Likewise.
1102 * scripttempl/elf32sh-symbian.sc: Likewise.
1103 * scripttempl/elf64hppa.sc: Likewise.
1104 * scripttempl/elfxtensa.sc: Likewise.
1106 2010-02-25 Alan Modra <amodra@gmail.com>
1109 * ldlang.c (init_os): Remove isec param. Don't check for
1110 bfd_section already set or call bfd_init_private_section_data
1112 (exp_init_os): Update init_os call.
1113 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
1114 flags. Call bfd_init_private_section_data here.
1115 (map_input_to_output_sections): Tidy. Update init_os calls.
1116 Use os->sectype to select sec flags for lang_data_statement.
1118 2010-02-23 Alan Modra <amodra@gmail.com>
1121 * ldlang.c: Revert last patch.
1123 2010-02-23 Nick Clifton <nickc@redhat.com>
1125 * po/bg.po: Updated Bulgarian translation.
1127 2010-02-22 Alan Modra <amodra@gmail.com>
1130 * ldlang.c (exp_init_os): Delete forward declaration.
1131 (init_os): Don't check for bfd_section already created and don't
1132 init addr_tree and load_base expressions here.
1133 (map_input_to_output_sections): Only map input to output sections
1134 and set constraints here, and as an exception, create output
1135 sections which have their address set. Move all the other code to..
1136 (create_other_output_sections): ..here. New function. Handle init
1137 of addr_tree and load_base here too.
1138 (lang_process): Call create_other_output_sections.
1140 2010-02-19 Alan Modra <amodra@gmail.com>
1142 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
1143 * Makefile.in: Regenerate.
1145 2010-02-19 Alan Modra <amodra@gmail.com>
1147 * ldlang.c (unique_section_p): Add os param. Allow group
1148 sections to match /DISCARD/. Update all callers.
1149 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
1150 (LDEMUL_BEFORE_ALLOCATION): Define.
1152 2010-02-15 Nick Clifton <nickc@redhat.com>
1154 * po/vi.po: Updated Vietnamese translation.
1156 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
1158 * Makefile.am (CFILES): Add ldlex-wrapper.c.
1159 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
1160 (ldlex.o): Replace with...
1161 (ldlex-wrapper.o): ...this new rule.
1162 (EXTRA_ld_new_SOURCES): Add ldlex.l.
1163 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
1164 * Makefile.in: Regenerate.
1165 * ldlex.l (sysdep.h): Don't include here.
1166 * ldlex-wrapper.c: New file.
1168 2010-02-09 Alan Modra <amodra@gmail.com>
1170 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
1171 function parameters.
1173 2010-02-05 Nick Clifton <nickc@redhat.com>
1175 * configure.in (ALL_LIBGUAS): Add bg.
1176 * configure: Regenerate.
1177 * po/bg.po: New Bulgarian translation.
1179 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
1181 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
1182 --target1-abs and --target1-rel options.
1184 2010-02-03 Nick Clifton <nickc@redhat.com>
1186 * emultempl/alphaelf.em: Update value expected from elf_object_id.
1187 * emultempl/hppaelf.em: Likewise.
1188 * emultempl/mipself.em: Likewise.
1189 * emultempl/ppc32elf.em: Likewise.
1190 * emultempl/ppc64elf.em: Likewise.
1192 2010-02-03 Alan Modra <amodra@gmail.com>
1194 * emultempl/ppc64elf.em (build_toc_list): Report errors from
1195 ppc64_elf_next_toc_section.
1196 (after_allocation): Update for changed function names and params.
1197 Run second pass of multitoc partitioning.
1199 2010-01-21 Jon Grant <jg@jguk.org>
1200 Nick Clifton <nickc@redhat.com>
1203 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
1204 a missing file or library. Instead mark the entry as missing and
1205 set the global flag to indicate that missing files were
1207 * ldlang.c (missing_files): New exported variable.
1208 (load_symbols): Skip loading if the file is missing.
1209 (open_input_bfds): Terminate link if any input files were
1211 * ldlang.h (struct lang_input_statement_struct): Add missing_file
1213 Add export of missing_file variable.
1215 2010-01-13 DJ Delorie <dj@redhat.com>
1217 * emultempl/elf32.em (_place_orphan): If an input section doesn't
1218 match an existing output section, but an unused output section
1219 statement does match, use it.
1220 * emultempl/pe.em (_place_orphan): Likewise.
1221 * emultempl/pep.em (_place_orphan): Likewise.
1223 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1225 * configure: Regenerate.
1226 * Makefile.in: Regenerate.
1228 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
1230 * ldver.c (ldversion): Change to "Copyright 2010".
1232 2010-01-08 Alan Modra <amodra@gmail.com>
1235 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
1237 For older changes see ChangeLog-2009
1243 version-control: never