1 2012-12-05 H.J. Lu <hongjiu.lu@intel.com>
4 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Also
5 check DT_NEEDED entries when creating shared object with
6 --copy-dt-needed-entries.
8 2012-12-05 Leif Ekblad <leif@rdos.net>
10 * configure.tgt: Add x86_64-*-rdos.
12 2012-12-03 H.J. Lu <hongjiu.lu@intel.com>
15 * ldmain.c (main): Don't check plugin_load_plugins return.
17 * lexsup.c (parse_args): Don't check plugin_opt_plugin return.
19 * plugin.c (dlerror): New. Defined if HAVE_DLFCN_H isn't
21 (plugin_opt_plugin): Change return type to void. Stop on
22 dlopen error and report error with dlerror ().
23 (plugin_load_plugins): Change return type to void. Stop on
24 dlsym error and report error with dlerror (). Don't use
26 (plugin_call_cleanup): Issue an error for each plugin.
28 * plugin.h (plugin_opt_plugin): Change return type to void.
29 (plugin_load_plugins): Likewise.
31 2012-11-30 Joern Rennecke <joern.rennecke@embecosm.com>
33 * scripttempl/epiphany_4x4.sc, emulparams/elf32epiphany_4x4.sh: Add.
34 * emultempl/epiphanyelf_4x4.em: Likewise.
35 * configure.tgt: Add elf32epiphany_4x4 support.
36 * Makefile.am: Likewise.
37 * Makefile.in: Regenerate.
39 2012-11-29 Maciej W. Rozycki <macro@codesourcery.com>
41 * Makefile.in: Regenerate.
43 2012-11-27 Nick Clifton <nickc@redhat.com>
46 * ld.texinfo: Fix spelling mistakes.
48 2012-11-26 Roland McGrath <mcgrathr@google.com>
50 * emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse):
51 Copy last elf32.em here too.
52 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
53 * emultempl/mmixelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
54 * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
56 2012-11-21 Roland McGrath <mcgrathr@google.com>
58 * ld.h (ld_config_type): New flag member separate_code.
60 (gld${EMULATION_NAME}_before_parse): Set it based on $SEPARATE_CODE.
61 * ldlang.c (ldlang_override_segment_assignment): If it's set, then
62 always return TRUE when SEC_CODE differs between the sections.
64 2012-11-20 H.J. Lu <hongjiu.lu@intel.com>
66 * ld.texinfo: Document "-z global".
68 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Support
70 (gld${EMULATION_NAME}_list_options): Likewise.
72 2012-11-15 Maxim Kuvyrkov <maxim@codesourcery.com>
74 Port lib32 arrangement from Debian.
75 * emulparams/elf_i386.sh: Include lib32 directories in library search
78 2012-11-15 Simon Baldwin <simonb@google.com>
80 * ldmain.c (main): Add start_sbrk set to sbrk(0) on entry.
81 On exit, compute data size as the delta between current
82 sbrk(0) and start_sbrk.
84 2012-11-09 Nick Clifton <nickc@redhat.com>
86 * emultempl/rxelf.em (no_flag_mismatch_warnings): Initialise to
88 (PARSE_AND_LIST_LONGOPTS): Add flag-mismatch-warnings.
89 (PARSE_AND_LIST_ARG_CASES): Add support for
90 --flag-mismatch-warnings.
92 * Makefile.am: (ALL_EMULATION_SOURCES): Add ev850_rh850.c.
93 * Makefile.in: Regenerate.
94 * configure.tgt (v850*-*-*): Make v850_rh850 the default
95 emulation. Add vanilla v850 as an extra emulation.
96 * emulparams/v850_rh850.sh: New file.
97 * scripttempl/v850_rh850.sc: New file.
99 2012-11-09 Edgar E. Iglesias <edgar.iglesias@gmail.com>
101 * Makefile.am: Add eelf32microblazeel.c and eelf32mbel_linux.c.
102 * Makefile.in: Regenerated.
103 * configure.tgt: Add microblazeel and set endian per target.
104 * emulparams/elf32mb_linux.sh: Add OUTPUT_FORMAT.
105 * emulparams/elf32microblaze.sh: Likewise.
106 * emulparams/elf32mbel_linux.sh: New file.
107 * emulparams/elf32microblazeel.sh: Likewise.
109 2012-11-09 H.J. Lu <hongjiu.lu@intel.com>
111 * testplug.c (record_add_file): Remove trailing redundant `;'.
113 2012-11-05 Alan Modra <amodra@gmail.com>
115 * configure.in: Apply 2012-09-10 change to config.in here.
117 2012-11-01 Nathan Sidwell <nathan@codesourcery.com>
119 * emultempl/elf32.em: Print stacksize help.
121 2012-11-01 Alan Modra <amodra@gmail.com>
123 * ldlang.c (insert_pad): Correct output section size calculation.
124 (lang_size_sections_1): Likewise for lang_data_statement and
125 lang_reloc_statement.
127 2012-10-29 Alan Modra <amodra@gmail.com>
129 * configure.tgt (powerpcle-pe,winnt,cygwin): Add deffilep.o
132 2012-10-24 H.J. Lu <hongjiu.lu@intel.com>
134 * ld.h (command_line): Remove
135 disable_target_specific_optimizations.
136 (RELAXATION_DISABLED_BY_DEFAULT): Removed.
137 (RELAXATION_DISABLED_BY_USER): Likewise.
138 (RELAXATION_ENABLED): Likewise.
139 (DISABLE_RELAXATION): Likewise.
140 (ENABLE_RELAXATION): Likewise.
142 * ldmain.c (main): Updated.
144 * ldmain.h (RELAXATION_DISABLED_BY_DEFAULT): New macro.
145 (RELAXATION_DISABLED_BY_USER): Likewise.
146 (RELAXATION_ENABLED): Likewise.
147 (DISABLE_RELAXATION): Likewise.
148 (ENABLE_RELAXATION): Likewise.
150 2012-10-23 Nathan Sidwell <nathan@codesourcery.com>
152 * ld.texinfo (stack-size): New option.
153 * emultempl/elf32.em: Add stack-size option.
155 2012-10-22 Jan Beich <jbeich@tormail.org>
156 Alan Modra <amodra@gmail.com>
159 * ldlex.h (option_values): Add OPTION_IGNORE_UNRESOLVED_SYMBOL.
160 * lexsup.c (parse_args): Likewise.
161 (ld_options): Describe --ignore-unresolved-symbol.
162 * ldmain.h (add_ignoresym): Declare.
163 * ldmain.c (add_ignoresym): New function, extracted from..
164 (undefined_symbol): ..here. Return if the symbol is in ignore_hash.
165 (constructor_callback): Don't use global link_info here.
166 (reloc_overflow): Likewise.
168 2012-10-22 Alan Modra <amodra@gmail.com>
170 * plugin.c (plugin_load_plugins): Warning fix.
172 2012-10-18 Kai Tietz <ktietz@redhat.com>
175 * NEWS: Menition new feature.
176 * scripttempl/pep.sc: Add zdebug sections.
177 * scripttempl/pe.sc: L
179 2012-09-19 Steve Ellcey <sellcey@mips.com>
181 * configure.tgt: Add mips*-mti-elf* target.
183 2012-09-17 Alan Modra <amodra@gmail.com>
185 * ld.texinfo (Expression Section): Correct description of
186 conversions for a binary operation involving an absolute symbol
189 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
191 * configure: Regenerate.
193 2012-09-13 Anthony Green <green@moxielogic.com>
195 * emulparams/elf32moxie.sh (BIG_OUTPUT_FORMAT,
196 LITTLE_OUTPUT_FORMAT): Define.
197 (OUTPUT_FORMAT): Change to elf32-bigmoxie.
200 2012-09-12 DJ Delorie <dj@redhat.com>
202 * emulparams/elf32rx.sh (OTHER_READONLY_SECTIONS): Add W_* sections.
204 2012-09-10 Matthias Klose <doko@ubuntu.com>
206 * config.in: Disable sanity check for kfreebsd.
208 2012-09-10 H.J. Lu <hongjiu.lu@intel.com>
210 * configure: Regenerated.
212 2012-09-10 Iain Sandoe <iain@codesourcery.com>
213 Alan Modra <amodra@gmail.com>
215 * configure.tgt (powerpc-*-elf, et al): Define targ_extra_libpath.
217 (powerpcle-*-elf, et al): Likewise. Correct targ_extra_emuls.
219 2012-09-10 Iain Sandoe <iain@codesourcery.com>
221 * configure.tgt (powerpc-*-elf, et al): Define targ64_extra_emuls
222 and targ64_extra_libpath.
223 (powerpcle-*-elf, et al): Likewise.
225 2012-09-09 Hans-Peter Nilsson <hp@bitrange.com>
227 * emultempl/mmo.em (mmo_place_orphan): Rewrite to also attach
228 orphan sections to .data and .bss output sections, not just .text.
229 When giving up on finding a suitable output section, attach to any
230 output section other than .MMIX.reg_contents, if it exists.
231 * scripttempl/mmo.sc: Move output debug sections to just before
232 .MMIX.reg_contents. Add .gnu.attributes. Add new . = . NOP
233 assignments and move end-of-section provide-symbols after them
234 to force the end-of-section symbols to the address after orphan
235 placement. Add SORT_NONE to .init and .fini sections.
237 2012-08-30 H.J. Lu <hongjiu.lu@intel.com>
240 * scripttempl/elf.sc: Also provide __executable_start for PIE.
242 2012-08-17 Kai Tietz <ktietz@redhat.com>
245 * scripttempl/pe.sc: Add _etext symbol.
247 2012-08-14 Nick Clifton <nickc@redhat.com>
249 * configure.in (ALL_LINGUGAS): Add uk.
250 * configure: Regenerate.
251 * po/uk.po: New Ukranian translation.
253 2012-08-13 Ian Bolton <ian.bolton@arm.com>
254 Laurent Desnogues <laurent.desnogues@arm.com>
255 Jim MacArthur <jim.macarthur@arm.com>
256 Marcus Shawcroft <marcus.shawcroft@arm.com>
257 Nigel Stephens <nigel.stephens@arm.com>
258 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
259 Richard Earnshaw <rearnsha@arm.com>
260 Sofiane Naci <sofiane.naci@arm.com>
261 Tejas Belagod <tejas.belagod@arm.com>
262 Yufeng Zhang <yufeng.zhang@arm.com>
264 * Makefile.am: Add AArch64.
265 * Makefile.in: Regenerate.
266 * configure.tgt: Add AArch64.
267 * emulparams/aarch64elf.sh: New file.
268 * emulparams/aarch64elfb.sh: New file.
269 * emulparams/aarch64linux.sh: New file.
270 * emulparams/aarch64linuxb.sh: New file.
271 * emultempl/aarch64elf.em: New file.
272 * NEWS: Mention the new feature.
274 2012-08-09 Nick Clifton <nickc@redhat.com>
276 * po/vi.po: Updated Vietnamese translation.
278 2012-08-07 Daniel Green <venix1@gmail.com>
280 * scripttempl/pe.sc (R_TLS): Add .tls$AAA and .tls$ZZZ.
281 * scripttempl/pep.sc (R_TLS): Add .tls$AAA and .tls$ZZZ.
283 2012-08-07 Nick Clifton <nickc@redhat.com>
285 * po/ja.po: Updated Japanese translation.
287 2012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
289 * emulparams/elf32bmip.sh: Make _gp hidden.
290 * emulparams/elf32bmipn32-defs.sh: Likewise.
291 * emulparams/elf32mipswindiss.sh: Likewise.
292 * scripttempl/mips.sc: Likewise.
294 2012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
296 * ldexp.h (etree_union): Add defsym member to the assign member
298 (exp_assign): Add hidden argument to prototype.
299 * ldexp.c (exp_fold_tree_1): Use the defsym member to handle
301 (exp_assop): Add defsym argument, initialize the defsym member
302 of the assign structure.
303 (exp_assign): Handle hidden symbols.
304 (exp_defsym): Update to use the defsym argument to exp_assop.
305 (exp_provide): Update to handle the defsym argument to exp_assop.
306 * ldlex.l (HIDDEN): New token.
307 * ldgram.y (HIDDEN): Likewise.
308 (assignment, section): Update calls to exp_assign.
309 * ldctor.c (ldctor_build_sets): Likewise.
310 * mri.c (mri_format): Likewise.
311 * ldlang.c (lang_insert_orphan, lang_leave_overlay): Likewise.
312 (open_input_bfds): Remove --defsym symbols special case.
313 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Update
315 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
316 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
317 * emultempl/spuelf.em (spu_place_special_section): Likewise.
318 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets):
320 * ld.texinfo (Assigning Values to Symbols): Add HIDDEN.
321 (HIDDEN): New subsection.
323 2012-07-31 H.J. Lu <hongjiu.lu@intel.com>
326 * ldlang.c (wild_sort): Properly handle by_none.
328 * scripttempl/elf.sc: Add SORT_NONE to .init and .fini sections.
329 * scripttempl/elf32msp430.sc: Likewise.
330 * scripttempl/elf32msp430_3.sc: Likewise.
331 * scripttempl/elfd10v.sc: Likewise.
332 * scripttempl/elfd30v.sc: Likewise.
333 * scripttempl/elfxtensa.sc: Likewise.
335 2012-07-30 Nick Clifton <nickc@redhat.com>
337 * po/ld.pot: Updated template.
338 * po/bg.po: Updated Bulgarian translation.
339 * po/es.po: Updated Spanish translation.
340 * po/fi.po: Updated Finnish translation.
342 2012-07-27 Mike Frysinger <vapier@gentoo.org>
344 * configure.in (BFD_VERSION): Run bfd/configure --version and
345 parse the output of that.
346 * configure: Regenerate.
348 2012-07-27 Tristan Gingold <gingold@adacore.com>
350 * NEWS: Add marker for 2.23.
352 2012-07-24 Jan Waclawek <konfera@efton.sk>
355 * emultempl/avrelf.em (avr_elf_after_allocation): Call
356 elf32_avr_size_stubs with is_prealloc_run as TRUE.
358 2012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
360 * emulparams/elf_s390.sh (IREL_IN_PLT): Define.
361 * emulparams/elf64_s390.sh (IREL_IN_PLT): Define.
363 2012-07-13 Nick Clifton <nickc@redhat.com>
366 * ldmain.c (trace_file_tries): Rename to 'verbose'.
367 * ldfile.c: Likewise.
368 * ldlang.c: Likewise.
369 * ldmain.h: Likewise.
370 * lexsup.c: Likewise.
371 * emultempl/elf32.em: Likewise.
372 * emultemp/spuelf.em: Likewise.
373 * pe-dll.c (pe_dll_generate_implib): Only print creation message
376 2012-07-10 H.J. Lu <hongjiu.lu@intel.com>
379 * NEWS: Mention SORT_NONE.
381 * ld.h (sort_type): Add by_none.
383 * ld.texinfo: Document SORT_NONE.
385 * ldgram.y: Handle SORT_NONE.
387 * ldlang.c (update_wild_statements): Handle by_none. Don't
388 sort .init/.fini sections.
390 * ldlex.l: Add SORT_NONE.
392 2012-07-02 H.J. Lu <hongjiu.lu@intel.com>
394 * ld.texinfo: Replace __end_SECNAME with __stop_SECNAME.
396 2012-06-29 Nick Clifton <nickc@redhat.com>
398 * scripttempl/alphavms.sc: Add .debug_macro section.
399 * scripttempl/elf.sc: Likewise.
400 * scripttempl/elf64hppa.sc: Likewise.
401 * scripttempl/elf_chaos.sc: Likewise.
402 * scripttempl/elfxtensa.sc: Likewise.
403 * scripttempl/ia64vms.sc: Likewise.
405 * scripttempl/armbpabi.sc: Add .debug_pubtypes, .debug_ranges and
406 .debug_macro sections.
407 * scripttempl/avr.sc: Likewise.
408 * scripttempl/elf32cr16.sc: Likewise.
409 * scripttempl/elf32crx.sc: Likewise.
410 * scripttempl/elf32msp430.sc: Likewise.
411 * scripttempl/elf32msp430_3.sc: Likewise.
412 * scripttempl/elf32sh-symbian.sc: Likewise.
413 * scripttempl/elfd30v.sc: Likewise.
414 * scripttempl/elfi370.sc: Likewise.
415 * scripttempl/elfm68hc11.sc: Likewise.
416 * scripttempl/elfm68hc12.sc: Likewise.
417 * scripttempl/elfxgate.sc: Likewise.
418 * scripttempl/i386beos.sc: Likewise.
419 * scripttempl/i386go32.sc: Likewise.
420 * scripttempl/ip2k.sc: Likewise.
421 * scripttempl/iq2000.sc: Likewise.
422 * scripttempl/mep.sc: Likewise.
423 * scripttempl/mmo.sc: Likewise.
424 * scripttempl/v850.sc: Likewise.
425 * scripttempl/xstormy16.sc: Likewise.
427 2012-06-28 H.J. Lu <hongjiu.lu@intel.com>
429 * ldlang.c (update_wild_statements): Remove redundant statement.
431 2012-06-25 Alan Modra <amodra@gmail.com>
433 * ldlang.c (load_symbols): Close file and set flags.loaded
434 after parsing script file.
435 (open_input_bfds): Don't segv on closed script.
437 2012-06-24 H.J. Lu <hongjiu.lu@intel.com>
439 * configure.tgt: Enable elf_k1om for x86_64-*-linux-gnux32.
440 Remove x32 in tdir_i386linux and tdir_elf_i386.
442 2012-06-22 Roland McGrath <mcgrathr@google.com>
444 * NEWS: Mention __ehdr_start.
446 2012-06-21 Alan Modra <amodra@gmail.com>
448 * ldlang.c (lang_insert_orphan): Don't make __start_<sec> symbol
449 absolute, and remove unnecessary alignment.
451 2012-06-16 Alan Modra <amodra@gmail.com>
453 * ldlang.h (lang_output_section_statement_type): Add after_end field.
454 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
455 (section_for_dot): Declare.
456 * ldlang.c (lang_size_sections_1): Correct comment.
457 (current_section): Move earlier.
458 (current_assign, prefer_next_section): New static vars.
459 (lang_do_assignments_1): Add found_end param. Detect _end
460 assignment to set found_end. Set os->after_end. Set above statics.
461 (lang_do_assignments): Adjust lang_do_assignments_1 call. Init
463 (section_for_dot): New function.
464 (lang_set_startof): Don't make an absolute symbol.
465 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
466 * ldexp.c (new_rel_from_abs): Use section_for_dot.
467 * emultempl/lnk960.em (symbol_at_beginning_of): New function.
468 (symbol_at_end_of): Likewise.
469 (lnk960_after_allocation): Use them.
470 * scripttempl/elf.sc: Precede OTHER_GOT_SYMBOLS with . = .; and
471 likewise before __bss_start.
473 2012-06-14 H.J. Lu <hongjiu.lu@intel.com>
475 * plugin.c (set_tv_header): Handle link_info.pie.
477 2012-06-11 Alan Modra <amodra@gmail.com>
480 * ldexp.c (fold_name <SIZEOF, ALIGNOF>): Allow forward section
482 * emulparams/elf32_x86_64.sh (SEPARATE_GOTPLT): Depend on size of
484 * emulparams/elf32mb_linux.sh (SEPARATE_GOTPLT): Likewise.
485 * emulparams/elf32tilegx.sh (SEPARATE_GOTPLT): Likewise.
486 * emulparams/elf32tilepro.sh (SEPARATE_GOTPLT): Likewise.
487 * emulparams/elf64tilegx.sh (SEPARATE_GOTPLT): Likewise.
488 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Likewise.
489 * emulparams/elf_k1om.sh (SEPARATE_GOTPLT): Likewise.
490 * emulparams/elf_l1om.sh (SEPARATE_GOTPLT): Likewise.
491 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Likewise.
493 2012-06-07 Georg-Johann Lay <avr@gjlay.de>
496 * scripttempl/avr.sc (.data): Keep it.
498 2012-06-02 Andreas Schwab <schwab@linux-m68k.org>
500 * Makefile.am (TEXINFO_TEX): Remove $(top_srcdir) prefix.
501 * Makefile.in: Regenerate.
503 2012-05-30 Alan Modra <amodra@gmail.com>
505 * ldlang.h (lang_output_section_statement_type): Rename
506 "section_relative_symbol" field to "update_dot".
507 * ldlang.c: Update all uses.
508 (strip_excluded_output_sections): Don't test update_dot_tree here..
509 (lang_leave_overlay): ..set update_dot here.
511 2012-05-26 Alan Modra <amodra@gmail.com>
513 * ldlex.h (enum option_values): Move from..
515 * emultempl/ppc32elf.em: Include ldlex.h.
516 (PARSE_AND_LIST_ARGS_CASES): Disable optimisations when
517 --traditional-format.
518 * emultempl/ppc64elf.em: Likewise.
520 2012-05-25 Alan Modra <amodra@gmail.com>
523 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Handle
524 multiple .eh_frame sections attached to bfd.
526 2012-05-23 Cary Coutant <ccoutant@google.com>
528 * scripttempl/armbpabi.sc: Match .data.rel.ro.* sections more
529 carefully. Fix typo where .rela.data.rel.ro matches
531 * scripttempl/mep.sc: Likewise.
532 * scripttempl/elf.sc: Match .data.rel.ro.* sections more carefully.
533 * scripttempl/elf64hppa.sc: Likewise.
534 * scripttempl/elfxtensa.sc: Likewise.
536 2012-05-17 Daniel Richard G. <skunk@iskunk.org>
537 Nick Clifton <nickc@redhat.com>
540 * configure.in: Add check that sysdep.h has been included before
541 any system header files.
542 * configure: Regenerate.
543 * config.in: Regenerate.
544 * sysdep.h: Generate an error if included before config.h.
546 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
548 * emultempl/m68hc1xelf.em (hook_in_stub): Pass proper `bfd'
549 as the first argument for `bfd_get_section_name'.
551 2012-05-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
554 * emultempl/elf32.em: Include *-*-gnu* targets in ld.so.conf
557 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
559 * NEWS: Mention the support for S12X processors.
561 2012-05-14 James Lemke <jwlemke@codesourcery.com>
563 * ldlang.c (walk_wild_consider_section): Don't copy section_flag_list.
565 (walk_wild_section_general): Pass section_flag_list to callback.
566 (lang_add_section): Add sflag_list parm.
567 Move out logic to keep / omit a section & call bfd_lookup_section_flags.
568 (output_section_callback_fast): Add sflag_list parm.
569 Add new parm to lang_add_section calls.
570 (output_section_callback): Likewise.
571 (check_section_callback): Add sflag_list parm.
572 (lang_place_orphans): Add new parm to lang_add_section calls.
573 (gc_section_callback): Add sflag_list parm.
574 (find_relro_section_callback): Likewise.
575 * ldlang.h (callback_t): Add flag_info parm.
576 (lang_add_section): Add sflag_list parm.
577 * emultempl/armelf.em (elf32_arm_add_stub_section):
578 Add lang_add_section parm.
579 * emultempl/beos.em (gld*_place_orphan): Likewise.
580 * emultempl/elf32.em (gld*_place_orphan): Likewise.
581 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
582 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
583 * emultempl/mipself.em (mips_add_stub_section): Likewise.
584 * emultempl/mmo.em (mmo_place_orphan): Likewise.
585 * emultempl/pe.em (gld_*_place_orphan): Likewise.
586 * emultempl/pep.em (gld_*_place_orphan): Likewise.
587 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
588 * emultempl/spuelf.em (spu_place_special_section): Likewise.
589 * emultempl/vms.em (vms_place_orphan): Likewise.
591 2012-05-14 Catherine Moore <clm@codesourcery.com>
593 * NEWS: Mention PowerPC VLE port.
595 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
598 * configure.in: Invoke ACX_HEADER_STRING.
599 * configure: Regenerate.
600 * config.in: Regenerate.
601 * sysdep.h: If STRINGS_WITH_STRING is defined then include both
602 string.h and strings.h.
604 2012-05-08 Alan Modra <amodra@gmail.com>
606 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
607 LC and LANG environment vars.
608 * Makefile.in: Regenerate.
610 2012-05-07 Tristan Gingold <gingold@adacore.com>
612 * pe-dll.c (udef_table): Make it static.
614 2012-05-05 Alan Modra <amodra@gmail.com>
616 * pe-dll.c (process_def_file_and_drectve): Use bfd_und_section_ptr.
617 (generate_reloc): Use bfd_abs_section_ptr.
619 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
621 * configure.tgt: Support x86_64-*-linux-gnux32.
623 2012-05-03 Sean Keys <skeys@ipdatasys.com>
625 * Makefile.am (ALL_EMULATIONS): Added new emulation for XGATE
627 * Makefile.in: Rebuild.
628 * configure.tgt: Recognize XGATE.
629 * scripttempl/elfxgate.sc: New file, mostly cloned from m68hc12.
630 * emulparams/xgateelf: New emulation, mostly cloned from m68hc12.
631 * NEWS: Mention new support.
633 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
635 Make bfd asserts cause linker errors.
636 * ldmain.c (default_bfd_assert_handler): New variable.
637 (ld_bfd_assert_handler): New function.
638 (main): Call bfd_set_assert_handler.
640 2012-04-24 Alan Modra <amodra@gmail.com>
642 * ldlang.c (size_input_section): Use sec_info_type rather than
643 usrdata->flags.just_syms.
644 * ldwrite.c (build_link_order): Likewise.
645 * emultempl/hppaelf.em (build_section_lists): Likewise.
646 * emultempl/ppc64elf.em (build_toc_list): Likewise.
647 * emultempl/armelf.em (build_section_lists): Likewise.
648 (after_allocation): Update for renamed sec_info_type value.
649 * emultempl/tic6xdsbt.em: Likewise.
651 2012-04-12 Roland McGrath <mcgrathr@google.com>
653 * configure.tgt (arm*-*-nacl*, arm*b-*-nacl*): Handle them.
654 * emulparams/armelf_nacl.sh: New file.
655 * emulparams/armelfb_nacl.sh: New file.
656 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelf_nacl.c
657 and earmelfb_nacl.c here.
658 (earmelf_nacl.c, earmelfb_nacl.c): New targets.
659 * Makefile.in: Regenerated.
661 2012-04-11 Tristan Gingold <gingold@adacore.com>
663 * scripttempl/ia64vms.sc: New file.
664 * emultempl/vms.em (_before_parse): Support for ia64.
665 (elf64-ia64-vms): New fragment for ia64.
666 * emulparams/elf64_ia64_vms.sh: New file.
667 * configure.tgt (ia64-*-*vms*): Add.
668 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64_ia64_vms.c
669 (eelf64_ia64_vms.c): New rule.
670 * Makefile.in: Regenerate.
672 2012-04-06 Roland McGrath <mcgrathr@google.com>
674 * configure.in (AC_CHECK_HEADERS): Add locale.h.
675 * config.in: Regenerate.
676 * configure: Regenerate.
678 2012-04-05 Nick Clifton <nickc@redhat.com>
680 * configure.in (AC_CHECK_FUNCS): Add setlocale.
681 (AM_LC_MESSAGES): Add.
682 * aclocal.m4: Regenerate.
683 * config.in: Regenerate.
684 * configure: Regenerate.
686 2012-04-03 Roland McGrath <mcgrathr@google.com>
688 * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them.
689 * emulparams/elf_nacl.sh: New file.
690 * emulparams/elf_i386_nacl.sh: New file.
691 * emulparams/elf32_x86_64_nacl.sh: New file.
692 * emulparams/elf_x86_64_nacl.sh: New file.
693 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here.
694 (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and
695 eelf_x86_64_nacl.c here.
696 (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c):
698 * Makefile.in: Regenerated.
700 * scripttempl/elf.sc: Handle SEPARATE_CODE cases.
702 2012-04-02 Mike Frysinger <vapier@gentoo.org>
704 * ldmisc.c (vfinfo): Assign new local str to fmt. Delete
705 putc call. If str and fmt are different, call fwrite on
708 2012-03-30 Nick Clifton <nickc@redhat.com>
710 * po/vi.po: Updated Vietnamese translation.
712 2012-03-27 Roland McGrath <mcgrathr@google.com>
714 * configure.in: Set want64 on a 64-bit host regardless of
715 --enable-targets=all.
716 * configure: Regenerated.
718 2012-03-26 Tristan Gingold <gingold@adacore.com>
720 * lexsup.c (parse_args): Add a missing '\n'.
722 2012-03-25 Alan Modra <amodra@gmail.com>
724 * ldemul.c (before_allocation_default): Revert last change.
725 * ldlang.c (lang_add_section): Likewise.
726 (strip_excluded_output_sections): Don't strip output sections with
727 user input sections when emitrelocations, unless all are SEC_EXCLUDE.
729 2012-03-23 Alan Modra <amodra@gmail.com>
731 * ldemul.c (before_allocation_default): When emitrelocations,
732 don't strip sections..
733 * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
735 2012-03-14 Kai Tietz <ktietz@redhat.com>
736 Pascal Obry <pascal@obry.net>
738 * pe-dll.c (found_sym): New static variable.
739 (undef_count): Likewise.
740 (key_value): New structure.
741 (undef_sort_cmp): Compare routine for qsort/bsearch.
742 (pe_find_cdecl_alias_match): Add new argument.
743 (pe_undef_alias_cdecl_match): Removed.
744 (pe_undef_count): New helper routine.
745 (pe_create_undef_table): Likewise.
746 (pe_process_import_defs): Use pe_create_undef_table and
747 new pe_undef_alias_cdecl_match function.
749 2012-03-14 Alan Modra <amodra@gmail.com>
752 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
754 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
755 discarding result, for side effects. Fix typo in error message.
757 2012-03-08 Tristan Gingold <gingold@adacore.com>
759 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
760 (exp_print_token): Constify.
762 2012-03-08 Alan Modra <amodra@gmail.com>
765 * ldfile.c (is_sysrooted_pathname): Remove notsame param.
766 (ldfile_add_library_path): Don't set sysrooted flag.
767 (ldfile_open_file_search): Likewise, and don't copy them.
768 (try_open): Delete exten and code handling such. Add sysrooted
769 param and return whether path is in sysroot.
770 (ldfile_find_command_file): Delete extend param. Add sysrooted
771 param. Rename local var. Update try_open calls.
772 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
773 * ldfile.h (search_dirs_type): Remove sysrooted field.
774 * ldlang.c (new_afile): Always set sysrooted from input_flags.
775 (load_symbols): Don't set input_flags.sysrooted.
776 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
778 * ldlex.h (lex_push_file): Update prototype.
779 * ldlex.l (sysrooted_stack): New array.
780 (EOF): Pop input_flags.sysrooted.
781 (lex_push_file): Add sysrooted param. Save and set
782 input_flags.sysrooted.
784 2012-03-06 Alan Modra <amodra@gmail.com>
786 * ldlang.h (struct lang_input_statement_flags): New, extract from..
787 (lang_input_statement_type): ..here. New field "flags".
788 (input_flags): Declare.
789 (missing_file): Delete.
790 * ldmain.h (whole_archive): Delete.
791 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
792 * ld.h (ld_config_type <dynamic_link>): Delete.
793 * ldmain.c (whole_archive): Delete.
794 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
795 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
796 (input_flags): New variable. Replace all uses of config.dynamic_link,
797 missing_file, ldlang_sysrooted_script, whole_archive,
798 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
800 * ldfile.c: Likewise.
801 * ldgram.y: Likewise.
802 * ldmain.c: Likewise.
803 * ldwrite.c: Likewise.
804 * lexsup.c: Likewise.
805 * plugin.c: Likewise.
806 * emultempl/aix.em: Likewise.
807 * emultempl/armelf.em: Likewise.
808 * emultempl/elf32.em: Likewise.
809 * emultempl/hppaelf.em: Likewise.
810 * emultempl/linux.em: Likewise.
811 * emultempl/pe.em: Likewise.
812 * emultempl/pep.em: Likewise.
813 * emultempl/ppc64elf.em: Likewise.
814 * emultempl/scoreelf.em: Likewise.
815 * emultempl/spuelf.em: Likewise.
816 * emultempl/sunos.em: Likewise.
817 * emultempl/vms.em: Likewise.
818 * ldlang.c (new_afile): Use memset to init zero fields.
819 (load_symbols): Simplify save and restore of flags around command
821 * ldfile.c (is_sysrooted_pathname): Tidy.
823 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
825 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
826 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
827 replacing trailing "-*" with "*".
829 2012-02-25 Walter Lee <walt@tilera.com>
831 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
832 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
833 (eelf32tilegx_be.c): Add rule to build this file.
834 (eelf64tilegx_be.c): Ditto.
835 * Makefile.in: Regenerate.
836 * configure.tgt (tilegx-*-*): Support big endian.
838 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
839 (BIG_OUTPUT_FORMAT): Define.
840 (LITTLE_OUTPUT_FORMAT): Define.
841 * emulparams/elf32tilegx_be.sh: New.
842 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
843 (BIG_OUTPUT_FORMAT): Define.
844 (LITTLE_OUTPUT_FORMAT): Define.
845 * emulparams/elf64tilegx_be.sh: New.
847 2012-02-24 Kai Tietz <ktietz@redhat.com>
850 * deffilep.y (keyword_as_name): Disable LIBRARY
853 2012-02-22 Alan Modra <amodra@gmail.com>
856 * ldlang.c (lang_process): Rerun lang_do_assignments before
857 starting garbage collection.
858 * ldexp.c (fold_name): Generate a reloc for defined symbols
859 found without an associated output section during the mark phase.
860 (exp_fold_tree_1): Continue processing an expression, even if we
861 are unable to fold it, if we are in the first two evaluation
863 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
865 2012-02-19 Kai Tietz <ktietz@redhat.com>
867 * deffilep.y (cmp_import_elem): Sort first by module name.
868 * pe-dll.c (process_def_file_and_drectve): Free strings
869 from removed export-element.
870 (add_bfd_to_link): Optimize loop on import-elements and lower
872 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
875 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
877 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
878 temporary variable node used for NULL argument.
880 2012-02-18 Alan Modra <amodra@gmail.com>
883 * ld.h (parsing_defsym): Delete.
884 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
885 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
886 exp_get_abs_int): Add tree arg for %S in error messages. Don't
888 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
889 type.filename from sub-tree.
890 (exp_trinop): Likewise, and use "cond" rather than "lhs".
891 * ldexp.h (node_type): Add filename field to struct.
892 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
893 * ldfile.h (ldfile_input_filename): Delete.
894 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
895 %S in error messages.
896 * ldemul.c (syslib_default, hll_default): Likewise.
897 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
898 lang_get_regions, lang_new_phdr): Likewise.
899 (lang_size_sections_1): Pass addr_tree for %S.
900 * ldlex.h (lex_redirect): Update prototype.
901 (ldlex_filename): Declare.
902 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
903 (lex_redirect): Add fake_filename and count params. Push
904 fake_filename to file_name_stack and init lineno from count.
905 (ldlex_filename): New function.
906 (lex_warn_invalid): Use above.
907 * ldmain.c (main): Update lex_redirect call.
908 * ldmisc.c (vfinfo <%S>): Take file name and line number from
909 etree_type arg, or use current if arg is NULL.
910 * lexsup.c (parsing_defsym): Delete.
911 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
913 2012-02-13 Kai Tietz <ktietz@redhat.com>
915 * deffilep.y (find_export_in_list): Set is_indent for
916 first or last element, if identical.
917 (find_import_in_list): Likewise.
919 2012-02-11 Kai Tietz <ktietz@redhat.com>
921 * deffilep.y (%union): New type id_const.
922 (opt_name2): New rule.
923 (keyword_as_name): New rule.
924 (dot_name): Replaced by opt_name2 rule.
925 (opt_name): Adjust rule.
926 (opt_equal_name): Likewise.
928 2012-02-11 Pascal Obry <pascal@obry.net>
930 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
932 (process_def_file_and_drectve): Maintain sorting of exports table
933 after stripping leading @ signs.
935 2012-02-09 Alan Modra <amodra@gmail.com>
937 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
939 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
942 * emulparams/elf32_x86_64.sh: Remove NOP.
943 * emulparams/elf_i386.sh: Likewise.
944 * emulparams/elf_i386_be.sh: Likewise.
945 * emulparams/elf_i386_ldso.sh: Likewise.
946 * emulparams/elf_i386_vxworks.sh: Likewise.
947 * emulparams/elf_k1om.sh: Likewise.
948 * emulparams/elf_l1om.sh: Likewise.
949 * emulparams/elf_x86_64.sh: Likewise.
951 * ldlang.c (zero_fill): Initialized to 0.
953 * ldwrite.c (build_link_order): Set data size to linker odrder
954 size when they are the same.
956 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
958 2012-01-17 Alan Modra <amodra@gmail.com>
960 * ldver.c (ldversion): Update copyright message year.
962 2012-01-15 Alan Modra <amodra@gmail.com>
965 * ldlang.c (lang_process): Don't reopen all files, just those
966 newly added by plugin.
968 2012-01-11 Alan Modra <amodra@gmail.com>
970 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
971 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
972 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
974 (plt_thread_safe, plt_stub_align): New vars.
975 (gld${EMULATION_NAME}_after_allocation): Pass them to
976 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
977 * ld.texinfo: Document new command line options, and an old
980 2012-01-09 Roland McGrath <mcgrathr@google.com>
982 * configure.in: Use AM_ZLIB.
983 * configure: Regenerated.
985 For older changes see ChangeLog-2011
991 version-control: never