1 2012-12-17 Nick Clifton <nickc@redhat.com>
3 * MAINTAINERS: Add copyright notice.
4 * Makefile.am: Likewise.
7 * configure.host: Likewise.
8 * configure.in: Likewise.
9 * gen-doc.texi: Likewise.
10 * h8-doc.texi: Likewise.
11 * ldlex-wrapper.c: Likewise.
12 * emulparams/README: Likewise.
13 * emultempl/README: Likewise.
14 * scripttempl/README: Likewise.
15 * Makefile.in: Regenerate.
17 2012-12-17 Alan Modra <amodra@gmail.com>
20 * ldexp.h (struct ldexp_control): Add "assign_name".
21 * ldexp.c (fold_name <NAME>): Compare and clear assign_name on match.
22 (exp_fold_tree_1): Remove existing code testing for self assignment.
23 Instead set and test expld.assign_name.
24 * ldlang.c (scan_for_self_assignment): Delete.
25 (print_assignment): Instead set and test expld.assign_name.
27 2012-12-11 Roland McGrath <mcgrathr@google.com>
29 * emulparams/elf_nacl.sh (nacl_rodata_addr): New shell function.
30 (RODATA_ADDR, SHLIB_RODATA_ADDR): Use it to base the calculation
31 on SEGMENT_START("text-segment", ...) rather than ... alone.
32 * Makefile.am (earmelf_nacl.c, earmelfb_nacl.c): Add missing
33 dependency on $(srcdir)/emulparams/elf_nacl.sh.
34 * Makefile.in: Regenerate.
36 2012-12-05 H.J. Lu <hongjiu.lu@intel.com>
39 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Also
40 check DT_NEEDED entries when creating shared object with
41 --copy-dt-needed-entries.
43 2012-12-05 Leif Ekblad <leif@rdos.net>
45 * configure.tgt: Add x86_64-*-rdos.
47 2012-12-03 H.J. Lu <hongjiu.lu@intel.com>
50 * ldmain.c (main): Don't check plugin_load_plugins return.
52 * lexsup.c (parse_args): Don't check plugin_opt_plugin return.
54 * plugin.c (dlerror): New. Defined if HAVE_DLFCN_H isn't
56 (plugin_opt_plugin): Change return type to void. Stop on
57 dlopen error and report error with dlerror ().
58 (plugin_load_plugins): Change return type to void. Stop on
59 dlsym error and report error with dlerror (). Don't use
61 (plugin_call_cleanup): Issue an error for each plugin.
63 * plugin.h (plugin_opt_plugin): Change return type to void.
64 (plugin_load_plugins): Likewise.
66 2012-11-30 Joern Rennecke <joern.rennecke@embecosm.com>
68 * scripttempl/epiphany_4x4.sc, emulparams/elf32epiphany_4x4.sh: Add.
69 * emultempl/epiphanyelf_4x4.em: Likewise.
70 * configure.tgt: Add elf32epiphany_4x4 support.
71 * Makefile.am: Likewise.
72 * Makefile.in: Regenerate.
74 2012-11-29 Maciej W. Rozycki <macro@codesourcery.com>
76 * Makefile.in: Regenerate.
78 2012-11-27 Nick Clifton <nickc@redhat.com>
81 * ld.texinfo: Fix spelling mistakes.
83 2012-11-26 Roland McGrath <mcgrathr@google.com>
85 * emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse):
86 Copy last elf32.em here too.
87 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
88 * emultempl/mmixelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
89 * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
91 2012-11-21 Roland McGrath <mcgrathr@google.com>
93 * ld.h (ld_config_type): New flag member separate_code.
95 (gld${EMULATION_NAME}_before_parse): Set it based on $SEPARATE_CODE.
96 * ldlang.c (ldlang_override_segment_assignment): If it's set, then
97 always return TRUE when SEC_CODE differs between the sections.
99 2012-11-20 H.J. Lu <hongjiu.lu@intel.com>
101 * ld.texinfo: Document "-z global".
103 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Support
105 (gld${EMULATION_NAME}_list_options): Likewise.
107 2012-11-15 Maxim Kuvyrkov <maxim@codesourcery.com>
109 Port lib32 arrangement from Debian.
110 * emulparams/elf_i386.sh: Include lib32 directories in library search
113 2012-11-15 Simon Baldwin <simonb@google.com>
115 * ldmain.c (main): Add start_sbrk set to sbrk(0) on entry.
116 On exit, compute data size as the delta between current
117 sbrk(0) and start_sbrk.
119 2012-11-09 Nick Clifton <nickc@redhat.com>
121 * emultempl/rxelf.em (no_flag_mismatch_warnings): Initialise to
123 (PARSE_AND_LIST_LONGOPTS): Add flag-mismatch-warnings.
124 (PARSE_AND_LIST_ARG_CASES): Add support for
125 --flag-mismatch-warnings.
127 * Makefile.am: (ALL_EMULATION_SOURCES): Add ev850_rh850.c.
128 * Makefile.in: Regenerate.
129 * configure.tgt (v850*-*-*): Make v850_rh850 the default
130 emulation. Add vanilla v850 as an extra emulation.
131 * emulparams/v850_rh850.sh: New file.
132 * scripttempl/v850_rh850.sc: New file.
134 2012-11-09 Edgar E. Iglesias <edgar.iglesias@gmail.com>
136 * Makefile.am: Add eelf32microblazeel.c and eelf32mbel_linux.c.
137 * Makefile.in: Regenerated.
138 * configure.tgt: Add microblazeel and set endian per target.
139 * emulparams/elf32mb_linux.sh: Add OUTPUT_FORMAT.
140 * emulparams/elf32microblaze.sh: Likewise.
141 * emulparams/elf32mbel_linux.sh: New file.
142 * emulparams/elf32microblazeel.sh: Likewise.
144 2012-11-09 H.J. Lu <hongjiu.lu@intel.com>
146 * testplug.c (record_add_file): Remove trailing redundant `;'.
148 2012-11-05 Alan Modra <amodra@gmail.com>
150 * configure.in: Apply 2012-09-10 change to config.in here.
152 2012-11-01 Nathan Sidwell <nathan@codesourcery.com>
154 * emultempl/elf32.em: Print stacksize help.
156 2012-11-01 Alan Modra <amodra@gmail.com>
158 * ldlang.c (insert_pad): Correct output section size calculation.
159 (lang_size_sections_1): Likewise for lang_data_statement and
160 lang_reloc_statement.
162 2012-10-29 Alan Modra <amodra@gmail.com>
164 * configure.tgt (powerpcle-pe,winnt,cygwin): Add deffilep.o
167 2012-10-24 H.J. Lu <hongjiu.lu@intel.com>
169 * ld.h (command_line): Remove
170 disable_target_specific_optimizations.
171 (RELAXATION_DISABLED_BY_DEFAULT): Removed.
172 (RELAXATION_DISABLED_BY_USER): Likewise.
173 (RELAXATION_ENABLED): Likewise.
174 (DISABLE_RELAXATION): Likewise.
175 (ENABLE_RELAXATION): Likewise.
177 * ldmain.c (main): Updated.
179 * ldmain.h (RELAXATION_DISABLED_BY_DEFAULT): New macro.
180 (RELAXATION_DISABLED_BY_USER): Likewise.
181 (RELAXATION_ENABLED): Likewise.
182 (DISABLE_RELAXATION): Likewise.
183 (ENABLE_RELAXATION): Likewise.
185 2012-10-23 Nathan Sidwell <nathan@codesourcery.com>
187 * ld.texinfo (stack-size): New option.
188 * emultempl/elf32.em: Add stack-size option.
190 2012-10-22 Jan Beich <jbeich@tormail.org>
191 Alan Modra <amodra@gmail.com>
194 * ldlex.h (option_values): Add OPTION_IGNORE_UNRESOLVED_SYMBOL.
195 * lexsup.c (parse_args): Likewise.
196 (ld_options): Describe --ignore-unresolved-symbol.
197 * ldmain.h (add_ignoresym): Declare.
198 * ldmain.c (add_ignoresym): New function, extracted from..
199 (undefined_symbol): ..here. Return if the symbol is in ignore_hash.
200 (constructor_callback): Don't use global link_info here.
201 (reloc_overflow): Likewise.
203 2012-10-22 Alan Modra <amodra@gmail.com>
205 * plugin.c (plugin_load_plugins): Warning fix.
207 2012-10-18 Kai Tietz <ktietz@redhat.com>
210 * NEWS: Menition new feature.
211 * scripttempl/pep.sc: Add zdebug sections.
212 * scripttempl/pe.sc: L
214 2012-09-19 Steve Ellcey <sellcey@mips.com>
216 * configure.tgt: Add mips*-mti-elf* target.
218 2012-09-17 Alan Modra <amodra@gmail.com>
220 * ld.texinfo (Expression Section): Correct description of
221 conversions for a binary operation involving an absolute symbol
224 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
226 * configure: Regenerate.
228 2012-09-13 Anthony Green <green@moxielogic.com>
230 * emulparams/elf32moxie.sh (BIG_OUTPUT_FORMAT,
231 LITTLE_OUTPUT_FORMAT): Define.
232 (OUTPUT_FORMAT): Change to elf32-bigmoxie.
235 2012-09-12 DJ Delorie <dj@redhat.com>
237 * emulparams/elf32rx.sh (OTHER_READONLY_SECTIONS): Add W_* sections.
239 2012-09-10 Matthias Klose <doko@ubuntu.com>
241 * config.in: Disable sanity check for kfreebsd.
243 2012-09-10 H.J. Lu <hongjiu.lu@intel.com>
245 * configure: Regenerated.
247 2012-09-10 Iain Sandoe <iain@codesourcery.com>
248 Alan Modra <amodra@gmail.com>
250 * configure.tgt (powerpc-*-elf, et al): Define targ_extra_libpath.
252 (powerpcle-*-elf, et al): Likewise. Correct targ_extra_emuls.
254 2012-09-10 Iain Sandoe <iain@codesourcery.com>
256 * configure.tgt (powerpc-*-elf, et al): Define targ64_extra_emuls
257 and targ64_extra_libpath.
258 (powerpcle-*-elf, et al): Likewise.
260 2012-09-09 Hans-Peter Nilsson <hp@bitrange.com>
262 * emultempl/mmo.em (mmo_place_orphan): Rewrite to also attach
263 orphan sections to .data and .bss output sections, not just .text.
264 When giving up on finding a suitable output section, attach to any
265 output section other than .MMIX.reg_contents, if it exists.
266 * scripttempl/mmo.sc: Move output debug sections to just before
267 .MMIX.reg_contents. Add .gnu.attributes. Add new . = . NOP
268 assignments and move end-of-section provide-symbols after them
269 to force the end-of-section symbols to the address after orphan
270 placement. Add SORT_NONE to .init and .fini sections.
272 2012-08-30 H.J. Lu <hongjiu.lu@intel.com>
275 * scripttempl/elf.sc: Also provide __executable_start for PIE.
277 2012-08-17 Kai Tietz <ktietz@redhat.com>
280 * scripttempl/pe.sc: Add _etext symbol.
282 2012-08-14 Nick Clifton <nickc@redhat.com>
284 * configure.in (ALL_LINGUGAS): Add uk.
285 * configure: Regenerate.
286 * po/uk.po: New Ukranian translation.
288 2012-08-13 Ian Bolton <ian.bolton@arm.com>
289 Laurent Desnogues <laurent.desnogues@arm.com>
290 Jim MacArthur <jim.macarthur@arm.com>
291 Marcus Shawcroft <marcus.shawcroft@arm.com>
292 Nigel Stephens <nigel.stephens@arm.com>
293 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
294 Richard Earnshaw <rearnsha@arm.com>
295 Sofiane Naci <sofiane.naci@arm.com>
296 Tejas Belagod <tejas.belagod@arm.com>
297 Yufeng Zhang <yufeng.zhang@arm.com>
299 * Makefile.am: Add AArch64.
300 * Makefile.in: Regenerate.
301 * configure.tgt: Add AArch64.
302 * emulparams/aarch64elf.sh: New file.
303 * emulparams/aarch64elfb.sh: New file.
304 * emulparams/aarch64linux.sh: New file.
305 * emulparams/aarch64linuxb.sh: New file.
306 * emultempl/aarch64elf.em: New file.
307 * NEWS: Mention the new feature.
309 2012-08-09 Nick Clifton <nickc@redhat.com>
311 * po/vi.po: Updated Vietnamese translation.
313 2012-08-07 Daniel Green <venix1@gmail.com>
315 * scripttempl/pe.sc (R_TLS): Add .tls$AAA and .tls$ZZZ.
316 * scripttempl/pep.sc (R_TLS): Add .tls$AAA and .tls$ZZZ.
318 2012-08-07 Nick Clifton <nickc@redhat.com>
320 * po/ja.po: Updated Japanese translation.
322 2012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
324 * emulparams/elf32bmip.sh: Make _gp hidden.
325 * emulparams/elf32bmipn32-defs.sh: Likewise.
326 * emulparams/elf32mipswindiss.sh: Likewise.
327 * scripttempl/mips.sc: Likewise.
329 2012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
331 * ldexp.h (etree_union): Add defsym member to the assign member
333 (exp_assign): Add hidden argument to prototype.
334 * ldexp.c (exp_fold_tree_1): Use the defsym member to handle
336 (exp_assop): Add defsym argument, initialize the defsym member
337 of the assign structure.
338 (exp_assign): Handle hidden symbols.
339 (exp_defsym): Update to use the defsym argument to exp_assop.
340 (exp_provide): Update to handle the defsym argument to exp_assop.
341 * ldlex.l (HIDDEN): New token.
342 * ldgram.y (HIDDEN): Likewise.
343 (assignment, section): Update calls to exp_assign.
344 * ldctor.c (ldctor_build_sets): Likewise.
345 * mri.c (mri_format): Likewise.
346 * ldlang.c (lang_insert_orphan, lang_leave_overlay): Likewise.
347 (open_input_bfds): Remove --defsym symbols special case.
348 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Update
350 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
351 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
352 * emultempl/spuelf.em (spu_place_special_section): Likewise.
353 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets):
355 * ld.texinfo (Assigning Values to Symbols): Add HIDDEN.
356 (HIDDEN): New subsection.
358 2012-07-31 H.J. Lu <hongjiu.lu@intel.com>
361 * ldlang.c (wild_sort): Properly handle by_none.
363 * scripttempl/elf.sc: Add SORT_NONE to .init and .fini sections.
364 * scripttempl/elf32msp430.sc: Likewise.
365 * scripttempl/elf32msp430_3.sc: Likewise.
366 * scripttempl/elfd10v.sc: Likewise.
367 * scripttempl/elfd30v.sc: Likewise.
368 * scripttempl/elfxtensa.sc: Likewise.
370 2012-07-30 Nick Clifton <nickc@redhat.com>
372 * po/ld.pot: Updated template.
373 * po/bg.po: Updated Bulgarian translation.
374 * po/es.po: Updated Spanish translation.
375 * po/fi.po: Updated Finnish translation.
377 2012-07-27 Mike Frysinger <vapier@gentoo.org>
379 * configure.in (BFD_VERSION): Run bfd/configure --version and
380 parse the output of that.
381 * configure: Regenerate.
383 2012-07-27 Tristan Gingold <gingold@adacore.com>
385 * NEWS: Add marker for 2.23.
387 2012-07-24 Jan Waclawek <konfera@efton.sk>
390 * emultempl/avrelf.em (avr_elf_after_allocation): Call
391 elf32_avr_size_stubs with is_prealloc_run as TRUE.
393 2012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
395 * emulparams/elf_s390.sh (IREL_IN_PLT): Define.
396 * emulparams/elf64_s390.sh (IREL_IN_PLT): Define.
398 2012-07-13 Nick Clifton <nickc@redhat.com>
401 * ldmain.c (trace_file_tries): Rename to 'verbose'.
402 * ldfile.c: Likewise.
403 * ldlang.c: Likewise.
404 * ldmain.h: Likewise.
405 * lexsup.c: Likewise.
406 * emultempl/elf32.em: Likewise.
407 * emultemp/spuelf.em: Likewise.
408 * pe-dll.c (pe_dll_generate_implib): Only print creation message
411 2012-07-10 H.J. Lu <hongjiu.lu@intel.com>
414 * NEWS: Mention SORT_NONE.
416 * ld.h (sort_type): Add by_none.
418 * ld.texinfo: Document SORT_NONE.
420 * ldgram.y: Handle SORT_NONE.
422 * ldlang.c (update_wild_statements): Handle by_none. Don't
423 sort .init/.fini sections.
425 * ldlex.l: Add SORT_NONE.
427 2012-07-02 H.J. Lu <hongjiu.lu@intel.com>
429 * ld.texinfo: Replace __end_SECNAME with __stop_SECNAME.
431 2012-06-29 Nick Clifton <nickc@redhat.com>
433 * scripttempl/alphavms.sc: Add .debug_macro section.
434 * scripttempl/elf.sc: Likewise.
435 * scripttempl/elf64hppa.sc: Likewise.
436 * scripttempl/elf_chaos.sc: Likewise.
437 * scripttempl/elfxtensa.sc: Likewise.
438 * scripttempl/ia64vms.sc: Likewise.
440 * scripttempl/armbpabi.sc: Add .debug_pubtypes, .debug_ranges and
441 .debug_macro sections.
442 * scripttempl/avr.sc: Likewise.
443 * scripttempl/elf32cr16.sc: Likewise.
444 * scripttempl/elf32crx.sc: Likewise.
445 * scripttempl/elf32msp430.sc: Likewise.
446 * scripttempl/elf32msp430_3.sc: Likewise.
447 * scripttempl/elf32sh-symbian.sc: Likewise.
448 * scripttempl/elfd30v.sc: Likewise.
449 * scripttempl/elfi370.sc: Likewise.
450 * scripttempl/elfm68hc11.sc: Likewise.
451 * scripttempl/elfm68hc12.sc: Likewise.
452 * scripttempl/elfxgate.sc: Likewise.
453 * scripttempl/i386beos.sc: Likewise.
454 * scripttempl/i386go32.sc: Likewise.
455 * scripttempl/ip2k.sc: Likewise.
456 * scripttempl/iq2000.sc: Likewise.
457 * scripttempl/mep.sc: Likewise.
458 * scripttempl/mmo.sc: Likewise.
459 * scripttempl/v850.sc: Likewise.
460 * scripttempl/xstormy16.sc: Likewise.
462 2012-06-28 H.J. Lu <hongjiu.lu@intel.com>
464 * ldlang.c (update_wild_statements): Remove redundant statement.
466 2012-06-25 Alan Modra <amodra@gmail.com>
468 * ldlang.c (load_symbols): Close file and set flags.loaded
469 after parsing script file.
470 (open_input_bfds): Don't segv on closed script.
472 2012-06-24 H.J. Lu <hongjiu.lu@intel.com>
474 * configure.tgt: Enable elf_k1om for x86_64-*-linux-gnux32.
475 Remove x32 in tdir_i386linux and tdir_elf_i386.
477 2012-06-22 Roland McGrath <mcgrathr@google.com>
479 * NEWS: Mention __ehdr_start.
481 2012-06-21 Alan Modra <amodra@gmail.com>
483 * ldlang.c (lang_insert_orphan): Don't make __start_<sec> symbol
484 absolute, and remove unnecessary alignment.
486 2012-06-16 Alan Modra <amodra@gmail.com>
488 * ldlang.h (lang_output_section_statement_type): Add after_end field.
489 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
490 (section_for_dot): Declare.
491 * ldlang.c (lang_size_sections_1): Correct comment.
492 (current_section): Move earlier.
493 (current_assign, prefer_next_section): New static vars.
494 (lang_do_assignments_1): Add found_end param. Detect _end
495 assignment to set found_end. Set os->after_end. Set above statics.
496 (lang_do_assignments): Adjust lang_do_assignments_1 call. Init
498 (section_for_dot): New function.
499 (lang_set_startof): Don't make an absolute symbol.
500 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
501 * ldexp.c (new_rel_from_abs): Use section_for_dot.
502 * emultempl/lnk960.em (symbol_at_beginning_of): New function.
503 (symbol_at_end_of): Likewise.
504 (lnk960_after_allocation): Use them.
505 * scripttempl/elf.sc: Precede OTHER_GOT_SYMBOLS with . = .; and
506 likewise before __bss_start.
508 2012-06-14 H.J. Lu <hongjiu.lu@intel.com>
510 * plugin.c (set_tv_header): Handle link_info.pie.
512 2012-06-11 Alan Modra <amodra@gmail.com>
515 * ldexp.c (fold_name <SIZEOF, ALIGNOF>): Allow forward section
517 * emulparams/elf32_x86_64.sh (SEPARATE_GOTPLT): Depend on size of
519 * emulparams/elf32mb_linux.sh (SEPARATE_GOTPLT): Likewise.
520 * emulparams/elf32tilegx.sh (SEPARATE_GOTPLT): Likewise.
521 * emulparams/elf32tilepro.sh (SEPARATE_GOTPLT): Likewise.
522 * emulparams/elf64tilegx.sh (SEPARATE_GOTPLT): Likewise.
523 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Likewise.
524 * emulparams/elf_k1om.sh (SEPARATE_GOTPLT): Likewise.
525 * emulparams/elf_l1om.sh (SEPARATE_GOTPLT): Likewise.
526 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Likewise.
528 2012-06-07 Georg-Johann Lay <avr@gjlay.de>
531 * scripttempl/avr.sc (.data): Keep it.
533 2012-06-02 Andreas Schwab <schwab@linux-m68k.org>
535 * Makefile.am (TEXINFO_TEX): Remove $(top_srcdir) prefix.
536 * Makefile.in: Regenerate.
538 2012-05-30 Alan Modra <amodra@gmail.com>
540 * ldlang.h (lang_output_section_statement_type): Rename
541 "section_relative_symbol" field to "update_dot".
542 * ldlang.c: Update all uses.
543 (strip_excluded_output_sections): Don't test update_dot_tree here..
544 (lang_leave_overlay): ..set update_dot here.
546 2012-05-26 Alan Modra <amodra@gmail.com>
548 * ldlex.h (enum option_values): Move from..
550 * emultempl/ppc32elf.em: Include ldlex.h.
551 (PARSE_AND_LIST_ARGS_CASES): Disable optimisations when
552 --traditional-format.
553 * emultempl/ppc64elf.em: Likewise.
555 2012-05-25 Alan Modra <amodra@gmail.com>
558 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Handle
559 multiple .eh_frame sections attached to bfd.
561 2012-05-23 Cary Coutant <ccoutant@google.com>
563 * scripttempl/armbpabi.sc: Match .data.rel.ro.* sections more
564 carefully. Fix typo where .rela.data.rel.ro matches
566 * scripttempl/mep.sc: Likewise.
567 * scripttempl/elf.sc: Match .data.rel.ro.* sections more carefully.
568 * scripttempl/elf64hppa.sc: Likewise.
569 * scripttempl/elfxtensa.sc: Likewise.
571 2012-05-17 Daniel Richard G. <skunk@iskunk.org>
572 Nick Clifton <nickc@redhat.com>
575 * configure.in: Add check that sysdep.h has been included before
576 any system header files.
577 * configure: Regenerate.
578 * config.in: Regenerate.
579 * sysdep.h: Generate an error if included before config.h.
581 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
583 * emultempl/m68hc1xelf.em (hook_in_stub): Pass proper `bfd'
584 as the first argument for `bfd_get_section_name'.
586 2012-05-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
589 * emultempl/elf32.em: Include *-*-gnu* targets in ld.so.conf
592 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
594 * NEWS: Mention the support for S12X processors.
596 2012-05-14 James Lemke <jwlemke@codesourcery.com>
598 * ldlang.c (walk_wild_consider_section): Don't copy section_flag_list.
600 (walk_wild_section_general): Pass section_flag_list to callback.
601 (lang_add_section): Add sflag_list parm.
602 Move out logic to keep / omit a section & call bfd_lookup_section_flags.
603 (output_section_callback_fast): Add sflag_list parm.
604 Add new parm to lang_add_section calls.
605 (output_section_callback): Likewise.
606 (check_section_callback): Add sflag_list parm.
607 (lang_place_orphans): Add new parm to lang_add_section calls.
608 (gc_section_callback): Add sflag_list parm.
609 (find_relro_section_callback): Likewise.
610 * ldlang.h (callback_t): Add flag_info parm.
611 (lang_add_section): Add sflag_list parm.
612 * emultempl/armelf.em (elf32_arm_add_stub_section):
613 Add lang_add_section parm.
614 * emultempl/beos.em (gld*_place_orphan): Likewise.
615 * emultempl/elf32.em (gld*_place_orphan): Likewise.
616 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
617 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
618 * emultempl/mipself.em (mips_add_stub_section): Likewise.
619 * emultempl/mmo.em (mmo_place_orphan): Likewise.
620 * emultempl/pe.em (gld_*_place_orphan): Likewise.
621 * emultempl/pep.em (gld_*_place_orphan): Likewise.
622 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
623 * emultempl/spuelf.em (spu_place_special_section): Likewise.
624 * emultempl/vms.em (vms_place_orphan): Likewise.
626 2012-05-14 Catherine Moore <clm@codesourcery.com>
628 * NEWS: Mention PowerPC VLE port.
630 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
633 * configure.in: Invoke ACX_HEADER_STRING.
634 * configure: Regenerate.
635 * config.in: Regenerate.
636 * sysdep.h: If STRINGS_WITH_STRING is defined then include both
637 string.h and strings.h.
639 2012-05-08 Alan Modra <amodra@gmail.com>
641 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
642 LC and LANG environment vars.
643 * Makefile.in: Regenerate.
645 2012-05-07 Tristan Gingold <gingold@adacore.com>
647 * pe-dll.c (udef_table): Make it static.
649 2012-05-05 Alan Modra <amodra@gmail.com>
651 * pe-dll.c (process_def_file_and_drectve): Use bfd_und_section_ptr.
652 (generate_reloc): Use bfd_abs_section_ptr.
654 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
656 * configure.tgt: Support x86_64-*-linux-gnux32.
658 2012-05-03 Sean Keys <skeys@ipdatasys.com>
660 * Makefile.am (ALL_EMULATIONS): Added new emulation for XGATE
662 * Makefile.in: Rebuild.
663 * configure.tgt: Recognize XGATE.
664 * scripttempl/elfxgate.sc: New file, mostly cloned from m68hc12.
665 * emulparams/xgateelf: New emulation, mostly cloned from m68hc12.
666 * NEWS: Mention new support.
668 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
670 Make bfd asserts cause linker errors.
671 * ldmain.c (default_bfd_assert_handler): New variable.
672 (ld_bfd_assert_handler): New function.
673 (main): Call bfd_set_assert_handler.
675 2012-04-24 Alan Modra <amodra@gmail.com>
677 * ldlang.c (size_input_section): Use sec_info_type rather than
678 usrdata->flags.just_syms.
679 * ldwrite.c (build_link_order): Likewise.
680 * emultempl/hppaelf.em (build_section_lists): Likewise.
681 * emultempl/ppc64elf.em (build_toc_list): Likewise.
682 * emultempl/armelf.em (build_section_lists): Likewise.
683 (after_allocation): Update for renamed sec_info_type value.
684 * emultempl/tic6xdsbt.em: Likewise.
686 2012-04-12 Roland McGrath <mcgrathr@google.com>
688 * configure.tgt (arm*-*-nacl*, arm*b-*-nacl*): Handle them.
689 * emulparams/armelf_nacl.sh: New file.
690 * emulparams/armelfb_nacl.sh: New file.
691 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelf_nacl.c
692 and earmelfb_nacl.c here.
693 (earmelf_nacl.c, earmelfb_nacl.c): New targets.
694 * Makefile.in: Regenerated.
696 2012-04-11 Tristan Gingold <gingold@adacore.com>
698 * scripttempl/ia64vms.sc: New file.
699 * emultempl/vms.em (_before_parse): Support for ia64.
700 (elf64-ia64-vms): New fragment for ia64.
701 * emulparams/elf64_ia64_vms.sh: New file.
702 * configure.tgt (ia64-*-*vms*): Add.
703 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64_ia64_vms.c
704 (eelf64_ia64_vms.c): New rule.
705 * Makefile.in: Regenerate.
707 2012-04-06 Roland McGrath <mcgrathr@google.com>
709 * configure.in (AC_CHECK_HEADERS): Add locale.h.
710 * config.in: Regenerate.
711 * configure: Regenerate.
713 2012-04-05 Nick Clifton <nickc@redhat.com>
715 * configure.in (AC_CHECK_FUNCS): Add setlocale.
716 (AM_LC_MESSAGES): Add.
717 * aclocal.m4: Regenerate.
718 * config.in: Regenerate.
719 * configure: Regenerate.
721 2012-04-03 Roland McGrath <mcgrathr@google.com>
723 * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them.
724 * emulparams/elf_nacl.sh: New file.
725 * emulparams/elf_i386_nacl.sh: New file.
726 * emulparams/elf32_x86_64_nacl.sh: New file.
727 * emulparams/elf_x86_64_nacl.sh: New file.
728 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here.
729 (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and
730 eelf_x86_64_nacl.c here.
731 (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c):
733 * Makefile.in: Regenerated.
735 * scripttempl/elf.sc: Handle SEPARATE_CODE cases.
737 2012-04-02 Mike Frysinger <vapier@gentoo.org>
739 * ldmisc.c (vfinfo): Assign new local str to fmt. Delete
740 putc call. If str and fmt are different, call fwrite on
743 2012-03-30 Nick Clifton <nickc@redhat.com>
745 * po/vi.po: Updated Vietnamese translation.
747 2012-03-27 Roland McGrath <mcgrathr@google.com>
749 * configure.in: Set want64 on a 64-bit host regardless of
750 --enable-targets=all.
751 * configure: Regenerated.
753 2012-03-26 Tristan Gingold <gingold@adacore.com>
755 * lexsup.c (parse_args): Add a missing '\n'.
757 2012-03-25 Alan Modra <amodra@gmail.com>
759 * ldemul.c (before_allocation_default): Revert last change.
760 * ldlang.c (lang_add_section): Likewise.
761 (strip_excluded_output_sections): Don't strip output sections with
762 user input sections when emitrelocations, unless all are SEC_EXCLUDE.
764 2012-03-23 Alan Modra <amodra@gmail.com>
766 * ldemul.c (before_allocation_default): When emitrelocations,
767 don't strip sections..
768 * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
770 2012-03-14 Kai Tietz <ktietz@redhat.com>
771 Pascal Obry <pascal@obry.net>
773 * pe-dll.c (found_sym): New static variable.
774 (undef_count): Likewise.
775 (key_value): New structure.
776 (undef_sort_cmp): Compare routine for qsort/bsearch.
777 (pe_find_cdecl_alias_match): Add new argument.
778 (pe_undef_alias_cdecl_match): Removed.
779 (pe_undef_count): New helper routine.
780 (pe_create_undef_table): Likewise.
781 (pe_process_import_defs): Use pe_create_undef_table and
782 new pe_undef_alias_cdecl_match function.
784 2012-03-14 Alan Modra <amodra@gmail.com>
787 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
789 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
790 discarding result, for side effects. Fix typo in error message.
792 2012-03-08 Tristan Gingold <gingold@adacore.com>
794 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
795 (exp_print_token): Constify.
797 2012-03-08 Alan Modra <amodra@gmail.com>
800 * ldfile.c (is_sysrooted_pathname): Remove notsame param.
801 (ldfile_add_library_path): Don't set sysrooted flag.
802 (ldfile_open_file_search): Likewise, and don't copy them.
803 (try_open): Delete exten and code handling such. Add sysrooted
804 param and return whether path is in sysroot.
805 (ldfile_find_command_file): Delete extend param. Add sysrooted
806 param. Rename local var. Update try_open calls.
807 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
808 * ldfile.h (search_dirs_type): Remove sysrooted field.
809 * ldlang.c (new_afile): Always set sysrooted from input_flags.
810 (load_symbols): Don't set input_flags.sysrooted.
811 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
813 * ldlex.h (lex_push_file): Update prototype.
814 * ldlex.l (sysrooted_stack): New array.
815 (EOF): Pop input_flags.sysrooted.
816 (lex_push_file): Add sysrooted param. Save and set
817 input_flags.sysrooted.
819 2012-03-06 Alan Modra <amodra@gmail.com>
821 * ldlang.h (struct lang_input_statement_flags): New, extract from..
822 (lang_input_statement_type): ..here. New field "flags".
823 (input_flags): Declare.
824 (missing_file): Delete.
825 * ldmain.h (whole_archive): Delete.
826 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
827 * ld.h (ld_config_type <dynamic_link>): Delete.
828 * ldmain.c (whole_archive): Delete.
829 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
830 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
831 (input_flags): New variable. Replace all uses of config.dynamic_link,
832 missing_file, ldlang_sysrooted_script, whole_archive,
833 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
835 * ldfile.c: Likewise.
836 * ldgram.y: Likewise.
837 * ldmain.c: Likewise.
838 * ldwrite.c: Likewise.
839 * lexsup.c: Likewise.
840 * plugin.c: Likewise.
841 * emultempl/aix.em: Likewise.
842 * emultempl/armelf.em: Likewise.
843 * emultempl/elf32.em: Likewise.
844 * emultempl/hppaelf.em: Likewise.
845 * emultempl/linux.em: Likewise.
846 * emultempl/pe.em: Likewise.
847 * emultempl/pep.em: Likewise.
848 * emultempl/ppc64elf.em: Likewise.
849 * emultempl/scoreelf.em: Likewise.
850 * emultempl/spuelf.em: Likewise.
851 * emultempl/sunos.em: Likewise.
852 * emultempl/vms.em: Likewise.
853 * ldlang.c (new_afile): Use memset to init zero fields.
854 (load_symbols): Simplify save and restore of flags around command
856 * ldfile.c (is_sysrooted_pathname): Tidy.
858 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
860 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
861 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
862 replacing trailing "-*" with "*".
864 2012-02-25 Walter Lee <walt@tilera.com>
866 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
867 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
868 (eelf32tilegx_be.c): Add rule to build this file.
869 (eelf64tilegx_be.c): Ditto.
870 * Makefile.in: Regenerate.
871 * configure.tgt (tilegx-*-*): Support big endian.
873 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
874 (BIG_OUTPUT_FORMAT): Define.
875 (LITTLE_OUTPUT_FORMAT): Define.
876 * emulparams/elf32tilegx_be.sh: New.
877 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
878 (BIG_OUTPUT_FORMAT): Define.
879 (LITTLE_OUTPUT_FORMAT): Define.
880 * emulparams/elf64tilegx_be.sh: New.
882 2012-02-24 Kai Tietz <ktietz@redhat.com>
885 * deffilep.y (keyword_as_name): Disable LIBRARY
888 2012-02-22 Alan Modra <amodra@gmail.com>
891 * ldlang.c (lang_process): Rerun lang_do_assignments before
892 starting garbage collection.
893 * ldexp.c (fold_name): Generate a reloc for defined symbols
894 found without an associated output section during the mark phase.
895 (exp_fold_tree_1): Continue processing an expression, even if we
896 are unable to fold it, if we are in the first two evaluation
898 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
900 2012-02-19 Kai Tietz <ktietz@redhat.com>
902 * deffilep.y (cmp_import_elem): Sort first by module name.
903 * pe-dll.c (process_def_file_and_drectve): Free strings
904 from removed export-element.
905 (add_bfd_to_link): Optimize loop on import-elements and lower
907 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
910 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
912 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
913 temporary variable node used for NULL argument.
915 2012-02-18 Alan Modra <amodra@gmail.com>
918 * ld.h (parsing_defsym): Delete.
919 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
920 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
921 exp_get_abs_int): Add tree arg for %S in error messages. Don't
923 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
924 type.filename from sub-tree.
925 (exp_trinop): Likewise, and use "cond" rather than "lhs".
926 * ldexp.h (node_type): Add filename field to struct.
927 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
928 * ldfile.h (ldfile_input_filename): Delete.
929 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
930 %S in error messages.
931 * ldemul.c (syslib_default, hll_default): Likewise.
932 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
933 lang_get_regions, lang_new_phdr): Likewise.
934 (lang_size_sections_1): Pass addr_tree for %S.
935 * ldlex.h (lex_redirect): Update prototype.
936 (ldlex_filename): Declare.
937 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
938 (lex_redirect): Add fake_filename and count params. Push
939 fake_filename to file_name_stack and init lineno from count.
940 (ldlex_filename): New function.
941 (lex_warn_invalid): Use above.
942 * ldmain.c (main): Update lex_redirect call.
943 * ldmisc.c (vfinfo <%S>): Take file name and line number from
944 etree_type arg, or use current if arg is NULL.
945 * lexsup.c (parsing_defsym): Delete.
946 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
948 2012-02-13 Kai Tietz <ktietz@redhat.com>
950 * deffilep.y (find_export_in_list): Set is_indent for
951 first or last element, if identical.
952 (find_import_in_list): Likewise.
954 2012-02-11 Kai Tietz <ktietz@redhat.com>
956 * deffilep.y (%union): New type id_const.
957 (opt_name2): New rule.
958 (keyword_as_name): New rule.
959 (dot_name): Replaced by opt_name2 rule.
960 (opt_name): Adjust rule.
961 (opt_equal_name): Likewise.
963 2012-02-11 Pascal Obry <pascal@obry.net>
965 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
967 (process_def_file_and_drectve): Maintain sorting of exports table
968 after stripping leading @ signs.
970 2012-02-09 Alan Modra <amodra@gmail.com>
972 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
974 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
977 * emulparams/elf32_x86_64.sh: Remove NOP.
978 * emulparams/elf_i386.sh: Likewise.
979 * emulparams/elf_i386_be.sh: Likewise.
980 * emulparams/elf_i386_ldso.sh: Likewise.
981 * emulparams/elf_i386_vxworks.sh: Likewise.
982 * emulparams/elf_k1om.sh: Likewise.
983 * emulparams/elf_l1om.sh: Likewise.
984 * emulparams/elf_x86_64.sh: Likewise.
986 * ldlang.c (zero_fill): Initialized to 0.
988 * ldwrite.c (build_link_order): Set data size to linker odrder
989 size when they are the same.
991 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
993 2012-01-17 Alan Modra <amodra@gmail.com>
995 * ldver.c (ldversion): Update copyright message year.
997 2012-01-15 Alan Modra <amodra@gmail.com>
1000 * ldlang.c (lang_process): Don't reopen all files, just those
1001 newly added by plugin.
1003 2012-01-11 Alan Modra <amodra@gmail.com>
1005 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
1006 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
1007 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
1009 (plt_thread_safe, plt_stub_align): New vars.
1010 (gld${EMULATION_NAME}_after_allocation): Pass them to
1011 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
1012 * ld.texinfo: Document new command line options, and an old
1013 undocumented option.
1015 2012-01-09 Roland McGrath <mcgrathr@google.com>
1017 * configure.in: Use AM_ZLIB.
1018 * configure: Regenerated.
1020 For older changes see ChangeLog-2011
1022 Copyright (C) 2012 Free Software Foundation, Inc.
1024 Copying and distribution of this file, with or without modification,
1025 are permitted in any medium without royalty provided the copyright
1026 notice and this notice are preserved.
1032 version-control: never