1 2012-12-17 Alan Modra <amodra@gmail.com>
4 * ldexp.h (struct ldexp_control): Add "assign_name".
5 * ldexp.c (fold_name <NAME>): Compare and clear assign_name on match.
6 (exp_fold_tree_1): Remove existing code testing for self assignment.
7 Instead set and test expld.assign_name.
8 * ldlang.c (scan_for_self_assignment): Delete.
9 (print_assignment): Instead set and test expld.assign_name.
11 2012-12-11 Roland McGrath <mcgrathr@google.com>
13 * emulparams/elf_nacl.sh (nacl_rodata_addr): New shell function.
14 (RODATA_ADDR, SHLIB_RODATA_ADDR): Use it to base the calculation
15 on SEGMENT_START("text-segment", ...) rather than ... alone.
16 * Makefile.am (earmelf_nacl.c, earmelfb_nacl.c): Add missing
17 dependency on $(srcdir)/emulparams/elf_nacl.sh.
18 * Makefile.in: Regenerate.
20 2012-12-05 H.J. Lu <hongjiu.lu@intel.com>
23 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Also
24 check DT_NEEDED entries when creating shared object with
25 --copy-dt-needed-entries.
27 2012-12-05 Leif Ekblad <leif@rdos.net>
29 * configure.tgt: Add x86_64-*-rdos.
31 2012-12-03 H.J. Lu <hongjiu.lu@intel.com>
34 * ldmain.c (main): Don't check plugin_load_plugins return.
36 * lexsup.c (parse_args): Don't check plugin_opt_plugin return.
38 * plugin.c (dlerror): New. Defined if HAVE_DLFCN_H isn't
40 (plugin_opt_plugin): Change return type to void. Stop on
41 dlopen error and report error with dlerror ().
42 (plugin_load_plugins): Change return type to void. Stop on
43 dlsym error and report error with dlerror (). Don't use
45 (plugin_call_cleanup): Issue an error for each plugin.
47 * plugin.h (plugin_opt_plugin): Change return type to void.
48 (plugin_load_plugins): Likewise.
50 2012-11-30 Joern Rennecke <joern.rennecke@embecosm.com>
52 * scripttempl/epiphany_4x4.sc, emulparams/elf32epiphany_4x4.sh: Add.
53 * emultempl/epiphanyelf_4x4.em: Likewise.
54 * configure.tgt: Add elf32epiphany_4x4 support.
55 * Makefile.am: Likewise.
56 * Makefile.in: Regenerate.
58 2012-11-29 Maciej W. Rozycki <macro@codesourcery.com>
60 * Makefile.in: Regenerate.
62 2012-11-27 Nick Clifton <nickc@redhat.com>
65 * ld.texinfo: Fix spelling mistakes.
67 2012-11-26 Roland McGrath <mcgrathr@google.com>
69 * emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse):
70 Copy last elf32.em here too.
71 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
72 * emultempl/mmixelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
73 * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
75 2012-11-21 Roland McGrath <mcgrathr@google.com>
77 * ld.h (ld_config_type): New flag member separate_code.
79 (gld${EMULATION_NAME}_before_parse): Set it based on $SEPARATE_CODE.
80 * ldlang.c (ldlang_override_segment_assignment): If it's set, then
81 always return TRUE when SEC_CODE differs between the sections.
83 2012-11-20 H.J. Lu <hongjiu.lu@intel.com>
85 * ld.texinfo: Document "-z global".
87 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Support
89 (gld${EMULATION_NAME}_list_options): Likewise.
91 2012-11-15 Maxim Kuvyrkov <maxim@codesourcery.com>
93 Port lib32 arrangement from Debian.
94 * emulparams/elf_i386.sh: Include lib32 directories in library search
97 2012-11-15 Simon Baldwin <simonb@google.com>
99 * ldmain.c (main): Add start_sbrk set to sbrk(0) on entry.
100 On exit, compute data size as the delta between current
101 sbrk(0) and start_sbrk.
103 2012-11-09 Nick Clifton <nickc@redhat.com>
105 * emultempl/rxelf.em (no_flag_mismatch_warnings): Initialise to
107 (PARSE_AND_LIST_LONGOPTS): Add flag-mismatch-warnings.
108 (PARSE_AND_LIST_ARG_CASES): Add support for
109 --flag-mismatch-warnings.
111 * Makefile.am: (ALL_EMULATION_SOURCES): Add ev850_rh850.c.
112 * Makefile.in: Regenerate.
113 * configure.tgt (v850*-*-*): Make v850_rh850 the default
114 emulation. Add vanilla v850 as an extra emulation.
115 * emulparams/v850_rh850.sh: New file.
116 * scripttempl/v850_rh850.sc: New file.
118 2012-11-09 Edgar E. Iglesias <edgar.iglesias@gmail.com>
120 * Makefile.am: Add eelf32microblazeel.c and eelf32mbel_linux.c.
121 * Makefile.in: Regenerated.
122 * configure.tgt: Add microblazeel and set endian per target.
123 * emulparams/elf32mb_linux.sh: Add OUTPUT_FORMAT.
124 * emulparams/elf32microblaze.sh: Likewise.
125 * emulparams/elf32mbel_linux.sh: New file.
126 * emulparams/elf32microblazeel.sh: Likewise.
128 2012-11-09 H.J. Lu <hongjiu.lu@intel.com>
130 * testplug.c (record_add_file): Remove trailing redundant `;'.
132 2012-11-05 Alan Modra <amodra@gmail.com>
134 * configure.in: Apply 2012-09-10 change to config.in here.
136 2012-11-01 Nathan Sidwell <nathan@codesourcery.com>
138 * emultempl/elf32.em: Print stacksize help.
140 2012-11-01 Alan Modra <amodra@gmail.com>
142 * ldlang.c (insert_pad): Correct output section size calculation.
143 (lang_size_sections_1): Likewise for lang_data_statement and
144 lang_reloc_statement.
146 2012-10-29 Alan Modra <amodra@gmail.com>
148 * configure.tgt (powerpcle-pe,winnt,cygwin): Add deffilep.o
151 2012-10-24 H.J. Lu <hongjiu.lu@intel.com>
153 * ld.h (command_line): Remove
154 disable_target_specific_optimizations.
155 (RELAXATION_DISABLED_BY_DEFAULT): Removed.
156 (RELAXATION_DISABLED_BY_USER): Likewise.
157 (RELAXATION_ENABLED): Likewise.
158 (DISABLE_RELAXATION): Likewise.
159 (ENABLE_RELAXATION): Likewise.
161 * ldmain.c (main): Updated.
163 * ldmain.h (RELAXATION_DISABLED_BY_DEFAULT): New macro.
164 (RELAXATION_DISABLED_BY_USER): Likewise.
165 (RELAXATION_ENABLED): Likewise.
166 (DISABLE_RELAXATION): Likewise.
167 (ENABLE_RELAXATION): Likewise.
169 2012-10-23 Nathan Sidwell <nathan@codesourcery.com>
171 * ld.texinfo (stack-size): New option.
172 * emultempl/elf32.em: Add stack-size option.
174 2012-10-22 Jan Beich <jbeich@tormail.org>
175 Alan Modra <amodra@gmail.com>
178 * ldlex.h (option_values): Add OPTION_IGNORE_UNRESOLVED_SYMBOL.
179 * lexsup.c (parse_args): Likewise.
180 (ld_options): Describe --ignore-unresolved-symbol.
181 * ldmain.h (add_ignoresym): Declare.
182 * ldmain.c (add_ignoresym): New function, extracted from..
183 (undefined_symbol): ..here. Return if the symbol is in ignore_hash.
184 (constructor_callback): Don't use global link_info here.
185 (reloc_overflow): Likewise.
187 2012-10-22 Alan Modra <amodra@gmail.com>
189 * plugin.c (plugin_load_plugins): Warning fix.
191 2012-10-18 Kai Tietz <ktietz@redhat.com>
194 * NEWS: Menition new feature.
195 * scripttempl/pep.sc: Add zdebug sections.
196 * scripttempl/pe.sc: L
198 2012-09-19 Steve Ellcey <sellcey@mips.com>
200 * configure.tgt: Add mips*-mti-elf* target.
202 2012-09-17 Alan Modra <amodra@gmail.com>
204 * ld.texinfo (Expression Section): Correct description of
205 conversions for a binary operation involving an absolute symbol
208 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
210 * configure: Regenerate.
212 2012-09-13 Anthony Green <green@moxielogic.com>
214 * emulparams/elf32moxie.sh (BIG_OUTPUT_FORMAT,
215 LITTLE_OUTPUT_FORMAT): Define.
216 (OUTPUT_FORMAT): Change to elf32-bigmoxie.
219 2012-09-12 DJ Delorie <dj@redhat.com>
221 * emulparams/elf32rx.sh (OTHER_READONLY_SECTIONS): Add W_* sections.
223 2012-09-10 Matthias Klose <doko@ubuntu.com>
225 * config.in: Disable sanity check for kfreebsd.
227 2012-09-10 H.J. Lu <hongjiu.lu@intel.com>
229 * configure: Regenerated.
231 2012-09-10 Iain Sandoe <iain@codesourcery.com>
232 Alan Modra <amodra@gmail.com>
234 * configure.tgt (powerpc-*-elf, et al): Define targ_extra_libpath.
236 (powerpcle-*-elf, et al): Likewise. Correct targ_extra_emuls.
238 2012-09-10 Iain Sandoe <iain@codesourcery.com>
240 * configure.tgt (powerpc-*-elf, et al): Define targ64_extra_emuls
241 and targ64_extra_libpath.
242 (powerpcle-*-elf, et al): Likewise.
244 2012-09-09 Hans-Peter Nilsson <hp@bitrange.com>
246 * emultempl/mmo.em (mmo_place_orphan): Rewrite to also attach
247 orphan sections to .data and .bss output sections, not just .text.
248 When giving up on finding a suitable output section, attach to any
249 output section other than .MMIX.reg_contents, if it exists.
250 * scripttempl/mmo.sc: Move output debug sections to just before
251 .MMIX.reg_contents. Add .gnu.attributes. Add new . = . NOP
252 assignments and move end-of-section provide-symbols after them
253 to force the end-of-section symbols to the address after orphan
254 placement. Add SORT_NONE to .init and .fini sections.
256 2012-08-30 H.J. Lu <hongjiu.lu@intel.com>
259 * scripttempl/elf.sc: Also provide __executable_start for PIE.
261 2012-08-17 Kai Tietz <ktietz@redhat.com>
264 * scripttempl/pe.sc: Add _etext symbol.
266 2012-08-14 Nick Clifton <nickc@redhat.com>
268 * configure.in (ALL_LINGUGAS): Add uk.
269 * configure: Regenerate.
270 * po/uk.po: New Ukranian translation.
272 2012-08-13 Ian Bolton <ian.bolton@arm.com>
273 Laurent Desnogues <laurent.desnogues@arm.com>
274 Jim MacArthur <jim.macarthur@arm.com>
275 Marcus Shawcroft <marcus.shawcroft@arm.com>
276 Nigel Stephens <nigel.stephens@arm.com>
277 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
278 Richard Earnshaw <rearnsha@arm.com>
279 Sofiane Naci <sofiane.naci@arm.com>
280 Tejas Belagod <tejas.belagod@arm.com>
281 Yufeng Zhang <yufeng.zhang@arm.com>
283 * Makefile.am: Add AArch64.
284 * Makefile.in: Regenerate.
285 * configure.tgt: Add AArch64.
286 * emulparams/aarch64elf.sh: New file.
287 * emulparams/aarch64elfb.sh: New file.
288 * emulparams/aarch64linux.sh: New file.
289 * emulparams/aarch64linuxb.sh: New file.
290 * emultempl/aarch64elf.em: New file.
291 * NEWS: Mention the new feature.
293 2012-08-09 Nick Clifton <nickc@redhat.com>
295 * po/vi.po: Updated Vietnamese translation.
297 2012-08-07 Daniel Green <venix1@gmail.com>
299 * scripttempl/pe.sc (R_TLS): Add .tls$AAA and .tls$ZZZ.
300 * scripttempl/pep.sc (R_TLS): Add .tls$AAA and .tls$ZZZ.
302 2012-08-07 Nick Clifton <nickc@redhat.com>
304 * po/ja.po: Updated Japanese translation.
306 2012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
308 * emulparams/elf32bmip.sh: Make _gp hidden.
309 * emulparams/elf32bmipn32-defs.sh: Likewise.
310 * emulparams/elf32mipswindiss.sh: Likewise.
311 * scripttempl/mips.sc: Likewise.
313 2012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
315 * ldexp.h (etree_union): Add defsym member to the assign member
317 (exp_assign): Add hidden argument to prototype.
318 * ldexp.c (exp_fold_tree_1): Use the defsym member to handle
320 (exp_assop): Add defsym argument, initialize the defsym member
321 of the assign structure.
322 (exp_assign): Handle hidden symbols.
323 (exp_defsym): Update to use the defsym argument to exp_assop.
324 (exp_provide): Update to handle the defsym argument to exp_assop.
325 * ldlex.l (HIDDEN): New token.
326 * ldgram.y (HIDDEN): Likewise.
327 (assignment, section): Update calls to exp_assign.
328 * ldctor.c (ldctor_build_sets): Likewise.
329 * mri.c (mri_format): Likewise.
330 * ldlang.c (lang_insert_orphan, lang_leave_overlay): Likewise.
331 (open_input_bfds): Remove --defsym symbols special case.
332 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Update
334 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
335 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
336 * emultempl/spuelf.em (spu_place_special_section): Likewise.
337 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets):
339 * ld.texinfo (Assigning Values to Symbols): Add HIDDEN.
340 (HIDDEN): New subsection.
342 2012-07-31 H.J. Lu <hongjiu.lu@intel.com>
345 * ldlang.c (wild_sort): Properly handle by_none.
347 * scripttempl/elf.sc: Add SORT_NONE to .init and .fini sections.
348 * scripttempl/elf32msp430.sc: Likewise.
349 * scripttempl/elf32msp430_3.sc: Likewise.
350 * scripttempl/elfd10v.sc: Likewise.
351 * scripttempl/elfd30v.sc: Likewise.
352 * scripttempl/elfxtensa.sc: Likewise.
354 2012-07-30 Nick Clifton <nickc@redhat.com>
356 * po/ld.pot: Updated template.
357 * po/bg.po: Updated Bulgarian translation.
358 * po/es.po: Updated Spanish translation.
359 * po/fi.po: Updated Finnish translation.
361 2012-07-27 Mike Frysinger <vapier@gentoo.org>
363 * configure.in (BFD_VERSION): Run bfd/configure --version and
364 parse the output of that.
365 * configure: Regenerate.
367 2012-07-27 Tristan Gingold <gingold@adacore.com>
369 * NEWS: Add marker for 2.23.
371 2012-07-24 Jan Waclawek <konfera@efton.sk>
374 * emultempl/avrelf.em (avr_elf_after_allocation): Call
375 elf32_avr_size_stubs with is_prealloc_run as TRUE.
377 2012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
379 * emulparams/elf_s390.sh (IREL_IN_PLT): Define.
380 * emulparams/elf64_s390.sh (IREL_IN_PLT): Define.
382 2012-07-13 Nick Clifton <nickc@redhat.com>
385 * ldmain.c (trace_file_tries): Rename to 'verbose'.
386 * ldfile.c: Likewise.
387 * ldlang.c: Likewise.
388 * ldmain.h: Likewise.
389 * lexsup.c: Likewise.
390 * emultempl/elf32.em: Likewise.
391 * emultemp/spuelf.em: Likewise.
392 * pe-dll.c (pe_dll_generate_implib): Only print creation message
395 2012-07-10 H.J. Lu <hongjiu.lu@intel.com>
398 * NEWS: Mention SORT_NONE.
400 * ld.h (sort_type): Add by_none.
402 * ld.texinfo: Document SORT_NONE.
404 * ldgram.y: Handle SORT_NONE.
406 * ldlang.c (update_wild_statements): Handle by_none. Don't
407 sort .init/.fini sections.
409 * ldlex.l: Add SORT_NONE.
411 2012-07-02 H.J. Lu <hongjiu.lu@intel.com>
413 * ld.texinfo: Replace __end_SECNAME with __stop_SECNAME.
415 2012-06-29 Nick Clifton <nickc@redhat.com>
417 * scripttempl/alphavms.sc: Add .debug_macro section.
418 * scripttempl/elf.sc: Likewise.
419 * scripttempl/elf64hppa.sc: Likewise.
420 * scripttempl/elf_chaos.sc: Likewise.
421 * scripttempl/elfxtensa.sc: Likewise.
422 * scripttempl/ia64vms.sc: Likewise.
424 * scripttempl/armbpabi.sc: Add .debug_pubtypes, .debug_ranges and
425 .debug_macro sections.
426 * scripttempl/avr.sc: Likewise.
427 * scripttempl/elf32cr16.sc: Likewise.
428 * scripttempl/elf32crx.sc: Likewise.
429 * scripttempl/elf32msp430.sc: Likewise.
430 * scripttempl/elf32msp430_3.sc: Likewise.
431 * scripttempl/elf32sh-symbian.sc: Likewise.
432 * scripttempl/elfd30v.sc: Likewise.
433 * scripttempl/elfi370.sc: Likewise.
434 * scripttempl/elfm68hc11.sc: Likewise.
435 * scripttempl/elfm68hc12.sc: Likewise.
436 * scripttempl/elfxgate.sc: Likewise.
437 * scripttempl/i386beos.sc: Likewise.
438 * scripttempl/i386go32.sc: Likewise.
439 * scripttempl/ip2k.sc: Likewise.
440 * scripttempl/iq2000.sc: Likewise.
441 * scripttempl/mep.sc: Likewise.
442 * scripttempl/mmo.sc: Likewise.
443 * scripttempl/v850.sc: Likewise.
444 * scripttempl/xstormy16.sc: Likewise.
446 2012-06-28 H.J. Lu <hongjiu.lu@intel.com>
448 * ldlang.c (update_wild_statements): Remove redundant statement.
450 2012-06-25 Alan Modra <amodra@gmail.com>
452 * ldlang.c (load_symbols): Close file and set flags.loaded
453 after parsing script file.
454 (open_input_bfds): Don't segv on closed script.
456 2012-06-24 H.J. Lu <hongjiu.lu@intel.com>
458 * configure.tgt: Enable elf_k1om for x86_64-*-linux-gnux32.
459 Remove x32 in tdir_i386linux and tdir_elf_i386.
461 2012-06-22 Roland McGrath <mcgrathr@google.com>
463 * NEWS: Mention __ehdr_start.
465 2012-06-21 Alan Modra <amodra@gmail.com>
467 * ldlang.c (lang_insert_orphan): Don't make __start_<sec> symbol
468 absolute, and remove unnecessary alignment.
470 2012-06-16 Alan Modra <amodra@gmail.com>
472 * ldlang.h (lang_output_section_statement_type): Add after_end field.
473 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
474 (section_for_dot): Declare.
475 * ldlang.c (lang_size_sections_1): Correct comment.
476 (current_section): Move earlier.
477 (current_assign, prefer_next_section): New static vars.
478 (lang_do_assignments_1): Add found_end param. Detect _end
479 assignment to set found_end. Set os->after_end. Set above statics.
480 (lang_do_assignments): Adjust lang_do_assignments_1 call. Init
482 (section_for_dot): New function.
483 (lang_set_startof): Don't make an absolute symbol.
484 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
485 * ldexp.c (new_rel_from_abs): Use section_for_dot.
486 * emultempl/lnk960.em (symbol_at_beginning_of): New function.
487 (symbol_at_end_of): Likewise.
488 (lnk960_after_allocation): Use them.
489 * scripttempl/elf.sc: Precede OTHER_GOT_SYMBOLS with . = .; and
490 likewise before __bss_start.
492 2012-06-14 H.J. Lu <hongjiu.lu@intel.com>
494 * plugin.c (set_tv_header): Handle link_info.pie.
496 2012-06-11 Alan Modra <amodra@gmail.com>
499 * ldexp.c (fold_name <SIZEOF, ALIGNOF>): Allow forward section
501 * emulparams/elf32_x86_64.sh (SEPARATE_GOTPLT): Depend on size of
503 * emulparams/elf32mb_linux.sh (SEPARATE_GOTPLT): Likewise.
504 * emulparams/elf32tilegx.sh (SEPARATE_GOTPLT): Likewise.
505 * emulparams/elf32tilepro.sh (SEPARATE_GOTPLT): Likewise.
506 * emulparams/elf64tilegx.sh (SEPARATE_GOTPLT): Likewise.
507 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Likewise.
508 * emulparams/elf_k1om.sh (SEPARATE_GOTPLT): Likewise.
509 * emulparams/elf_l1om.sh (SEPARATE_GOTPLT): Likewise.
510 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Likewise.
512 2012-06-07 Georg-Johann Lay <avr@gjlay.de>
515 * scripttempl/avr.sc (.data): Keep it.
517 2012-06-02 Andreas Schwab <schwab@linux-m68k.org>
519 * Makefile.am (TEXINFO_TEX): Remove $(top_srcdir) prefix.
520 * Makefile.in: Regenerate.
522 2012-05-30 Alan Modra <amodra@gmail.com>
524 * ldlang.h (lang_output_section_statement_type): Rename
525 "section_relative_symbol" field to "update_dot".
526 * ldlang.c: Update all uses.
527 (strip_excluded_output_sections): Don't test update_dot_tree here..
528 (lang_leave_overlay): ..set update_dot here.
530 2012-05-26 Alan Modra <amodra@gmail.com>
532 * ldlex.h (enum option_values): Move from..
534 * emultempl/ppc32elf.em: Include ldlex.h.
535 (PARSE_AND_LIST_ARGS_CASES): Disable optimisations when
536 --traditional-format.
537 * emultempl/ppc64elf.em: Likewise.
539 2012-05-25 Alan Modra <amodra@gmail.com>
542 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Handle
543 multiple .eh_frame sections attached to bfd.
545 2012-05-23 Cary Coutant <ccoutant@google.com>
547 * scripttempl/armbpabi.sc: Match .data.rel.ro.* sections more
548 carefully. Fix typo where .rela.data.rel.ro matches
550 * scripttempl/mep.sc: Likewise.
551 * scripttempl/elf.sc: Match .data.rel.ro.* sections more carefully.
552 * scripttempl/elf64hppa.sc: Likewise.
553 * scripttempl/elfxtensa.sc: Likewise.
555 2012-05-17 Daniel Richard G. <skunk@iskunk.org>
556 Nick Clifton <nickc@redhat.com>
559 * configure.in: Add check that sysdep.h has been included before
560 any system header files.
561 * configure: Regenerate.
562 * config.in: Regenerate.
563 * sysdep.h: Generate an error if included before config.h.
565 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
567 * emultempl/m68hc1xelf.em (hook_in_stub): Pass proper `bfd'
568 as the first argument for `bfd_get_section_name'.
570 2012-05-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
573 * emultempl/elf32.em: Include *-*-gnu* targets in ld.so.conf
576 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
578 * NEWS: Mention the support for S12X processors.
580 2012-05-14 James Lemke <jwlemke@codesourcery.com>
582 * ldlang.c (walk_wild_consider_section): Don't copy section_flag_list.
584 (walk_wild_section_general): Pass section_flag_list to callback.
585 (lang_add_section): Add sflag_list parm.
586 Move out logic to keep / omit a section & call bfd_lookup_section_flags.
587 (output_section_callback_fast): Add sflag_list parm.
588 Add new parm to lang_add_section calls.
589 (output_section_callback): Likewise.
590 (check_section_callback): Add sflag_list parm.
591 (lang_place_orphans): Add new parm to lang_add_section calls.
592 (gc_section_callback): Add sflag_list parm.
593 (find_relro_section_callback): Likewise.
594 * ldlang.h (callback_t): Add flag_info parm.
595 (lang_add_section): Add sflag_list parm.
596 * emultempl/armelf.em (elf32_arm_add_stub_section):
597 Add lang_add_section parm.
598 * emultempl/beos.em (gld*_place_orphan): Likewise.
599 * emultempl/elf32.em (gld*_place_orphan): Likewise.
600 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
601 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
602 * emultempl/mipself.em (mips_add_stub_section): Likewise.
603 * emultempl/mmo.em (mmo_place_orphan): Likewise.
604 * emultempl/pe.em (gld_*_place_orphan): Likewise.
605 * emultempl/pep.em (gld_*_place_orphan): Likewise.
606 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
607 * emultempl/spuelf.em (spu_place_special_section): Likewise.
608 * emultempl/vms.em (vms_place_orphan): Likewise.
610 2012-05-14 Catherine Moore <clm@codesourcery.com>
612 * NEWS: Mention PowerPC VLE port.
614 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
617 * configure.in: Invoke ACX_HEADER_STRING.
618 * configure: Regenerate.
619 * config.in: Regenerate.
620 * sysdep.h: If STRINGS_WITH_STRING is defined then include both
621 string.h and strings.h.
623 2012-05-08 Alan Modra <amodra@gmail.com>
625 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
626 LC and LANG environment vars.
627 * Makefile.in: Regenerate.
629 2012-05-07 Tristan Gingold <gingold@adacore.com>
631 * pe-dll.c (udef_table): Make it static.
633 2012-05-05 Alan Modra <amodra@gmail.com>
635 * pe-dll.c (process_def_file_and_drectve): Use bfd_und_section_ptr.
636 (generate_reloc): Use bfd_abs_section_ptr.
638 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
640 * configure.tgt: Support x86_64-*-linux-gnux32.
642 2012-05-03 Sean Keys <skeys@ipdatasys.com>
644 * Makefile.am (ALL_EMULATIONS): Added new emulation for XGATE
646 * Makefile.in: Rebuild.
647 * configure.tgt: Recognize XGATE.
648 * scripttempl/elfxgate.sc: New file, mostly cloned from m68hc12.
649 * emulparams/xgateelf: New emulation, mostly cloned from m68hc12.
650 * NEWS: Mention new support.
652 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
654 Make bfd asserts cause linker errors.
655 * ldmain.c (default_bfd_assert_handler): New variable.
656 (ld_bfd_assert_handler): New function.
657 (main): Call bfd_set_assert_handler.
659 2012-04-24 Alan Modra <amodra@gmail.com>
661 * ldlang.c (size_input_section): Use sec_info_type rather than
662 usrdata->flags.just_syms.
663 * ldwrite.c (build_link_order): Likewise.
664 * emultempl/hppaelf.em (build_section_lists): Likewise.
665 * emultempl/ppc64elf.em (build_toc_list): Likewise.
666 * emultempl/armelf.em (build_section_lists): Likewise.
667 (after_allocation): Update for renamed sec_info_type value.
668 * emultempl/tic6xdsbt.em: Likewise.
670 2012-04-12 Roland McGrath <mcgrathr@google.com>
672 * configure.tgt (arm*-*-nacl*, arm*b-*-nacl*): Handle them.
673 * emulparams/armelf_nacl.sh: New file.
674 * emulparams/armelfb_nacl.sh: New file.
675 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelf_nacl.c
676 and earmelfb_nacl.c here.
677 (earmelf_nacl.c, earmelfb_nacl.c): New targets.
678 * Makefile.in: Regenerated.
680 2012-04-11 Tristan Gingold <gingold@adacore.com>
682 * scripttempl/ia64vms.sc: New file.
683 * emultempl/vms.em (_before_parse): Support for ia64.
684 (elf64-ia64-vms): New fragment for ia64.
685 * emulparams/elf64_ia64_vms.sh: New file.
686 * configure.tgt (ia64-*-*vms*): Add.
687 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64_ia64_vms.c
688 (eelf64_ia64_vms.c): New rule.
689 * Makefile.in: Regenerate.
691 2012-04-06 Roland McGrath <mcgrathr@google.com>
693 * configure.in (AC_CHECK_HEADERS): Add locale.h.
694 * config.in: Regenerate.
695 * configure: Regenerate.
697 2012-04-05 Nick Clifton <nickc@redhat.com>
699 * configure.in (AC_CHECK_FUNCS): Add setlocale.
700 (AM_LC_MESSAGES): Add.
701 * aclocal.m4: Regenerate.
702 * config.in: Regenerate.
703 * configure: Regenerate.
705 2012-04-03 Roland McGrath <mcgrathr@google.com>
707 * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them.
708 * emulparams/elf_nacl.sh: New file.
709 * emulparams/elf_i386_nacl.sh: New file.
710 * emulparams/elf32_x86_64_nacl.sh: New file.
711 * emulparams/elf_x86_64_nacl.sh: New file.
712 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here.
713 (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and
714 eelf_x86_64_nacl.c here.
715 (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c):
717 * Makefile.in: Regenerated.
719 * scripttempl/elf.sc: Handle SEPARATE_CODE cases.
721 2012-04-02 Mike Frysinger <vapier@gentoo.org>
723 * ldmisc.c (vfinfo): Assign new local str to fmt. Delete
724 putc call. If str and fmt are different, call fwrite on
727 2012-03-30 Nick Clifton <nickc@redhat.com>
729 * po/vi.po: Updated Vietnamese translation.
731 2012-03-27 Roland McGrath <mcgrathr@google.com>
733 * configure.in: Set want64 on a 64-bit host regardless of
734 --enable-targets=all.
735 * configure: Regenerated.
737 2012-03-26 Tristan Gingold <gingold@adacore.com>
739 * lexsup.c (parse_args): Add a missing '\n'.
741 2012-03-25 Alan Modra <amodra@gmail.com>
743 * ldemul.c (before_allocation_default): Revert last change.
744 * ldlang.c (lang_add_section): Likewise.
745 (strip_excluded_output_sections): Don't strip output sections with
746 user input sections when emitrelocations, unless all are SEC_EXCLUDE.
748 2012-03-23 Alan Modra <amodra@gmail.com>
750 * ldemul.c (before_allocation_default): When emitrelocations,
751 don't strip sections..
752 * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
754 2012-03-14 Kai Tietz <ktietz@redhat.com>
755 Pascal Obry <pascal@obry.net>
757 * pe-dll.c (found_sym): New static variable.
758 (undef_count): Likewise.
759 (key_value): New structure.
760 (undef_sort_cmp): Compare routine for qsort/bsearch.
761 (pe_find_cdecl_alias_match): Add new argument.
762 (pe_undef_alias_cdecl_match): Removed.
763 (pe_undef_count): New helper routine.
764 (pe_create_undef_table): Likewise.
765 (pe_process_import_defs): Use pe_create_undef_table and
766 new pe_undef_alias_cdecl_match function.
768 2012-03-14 Alan Modra <amodra@gmail.com>
771 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
773 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
774 discarding result, for side effects. Fix typo in error message.
776 2012-03-08 Tristan Gingold <gingold@adacore.com>
778 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
779 (exp_print_token): Constify.
781 2012-03-08 Alan Modra <amodra@gmail.com>
784 * ldfile.c (is_sysrooted_pathname): Remove notsame param.
785 (ldfile_add_library_path): Don't set sysrooted flag.
786 (ldfile_open_file_search): Likewise, and don't copy them.
787 (try_open): Delete exten and code handling such. Add sysrooted
788 param and return whether path is in sysroot.
789 (ldfile_find_command_file): Delete extend param. Add sysrooted
790 param. Rename local var. Update try_open calls.
791 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
792 * ldfile.h (search_dirs_type): Remove sysrooted field.
793 * ldlang.c (new_afile): Always set sysrooted from input_flags.
794 (load_symbols): Don't set input_flags.sysrooted.
795 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
797 * ldlex.h (lex_push_file): Update prototype.
798 * ldlex.l (sysrooted_stack): New array.
799 (EOF): Pop input_flags.sysrooted.
800 (lex_push_file): Add sysrooted param. Save and set
801 input_flags.sysrooted.
803 2012-03-06 Alan Modra <amodra@gmail.com>
805 * ldlang.h (struct lang_input_statement_flags): New, extract from..
806 (lang_input_statement_type): ..here. New field "flags".
807 (input_flags): Declare.
808 (missing_file): Delete.
809 * ldmain.h (whole_archive): Delete.
810 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
811 * ld.h (ld_config_type <dynamic_link>): Delete.
812 * ldmain.c (whole_archive): Delete.
813 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
814 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
815 (input_flags): New variable. Replace all uses of config.dynamic_link,
816 missing_file, ldlang_sysrooted_script, whole_archive,
817 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
819 * ldfile.c: Likewise.
820 * ldgram.y: Likewise.
821 * ldmain.c: Likewise.
822 * ldwrite.c: Likewise.
823 * lexsup.c: Likewise.
824 * plugin.c: Likewise.
825 * emultempl/aix.em: Likewise.
826 * emultempl/armelf.em: Likewise.
827 * emultempl/elf32.em: Likewise.
828 * emultempl/hppaelf.em: Likewise.
829 * emultempl/linux.em: Likewise.
830 * emultempl/pe.em: Likewise.
831 * emultempl/pep.em: Likewise.
832 * emultempl/ppc64elf.em: Likewise.
833 * emultempl/scoreelf.em: Likewise.
834 * emultempl/spuelf.em: Likewise.
835 * emultempl/sunos.em: Likewise.
836 * emultempl/vms.em: Likewise.
837 * ldlang.c (new_afile): Use memset to init zero fields.
838 (load_symbols): Simplify save and restore of flags around command
840 * ldfile.c (is_sysrooted_pathname): Tidy.
842 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
844 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
845 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
846 replacing trailing "-*" with "*".
848 2012-02-25 Walter Lee <walt@tilera.com>
850 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
851 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
852 (eelf32tilegx_be.c): Add rule to build this file.
853 (eelf64tilegx_be.c): Ditto.
854 * Makefile.in: Regenerate.
855 * configure.tgt (tilegx-*-*): Support big endian.
857 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
858 (BIG_OUTPUT_FORMAT): Define.
859 (LITTLE_OUTPUT_FORMAT): Define.
860 * emulparams/elf32tilegx_be.sh: New.
861 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
862 (BIG_OUTPUT_FORMAT): Define.
863 (LITTLE_OUTPUT_FORMAT): Define.
864 * emulparams/elf64tilegx_be.sh: New.
866 2012-02-24 Kai Tietz <ktietz@redhat.com>
869 * deffilep.y (keyword_as_name): Disable LIBRARY
872 2012-02-22 Alan Modra <amodra@gmail.com>
875 * ldlang.c (lang_process): Rerun lang_do_assignments before
876 starting garbage collection.
877 * ldexp.c (fold_name): Generate a reloc for defined symbols
878 found without an associated output section during the mark phase.
879 (exp_fold_tree_1): Continue processing an expression, even if we
880 are unable to fold it, if we are in the first two evaluation
882 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
884 2012-02-19 Kai Tietz <ktietz@redhat.com>
886 * deffilep.y (cmp_import_elem): Sort first by module name.
887 * pe-dll.c (process_def_file_and_drectve): Free strings
888 from removed export-element.
889 (add_bfd_to_link): Optimize loop on import-elements and lower
891 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
894 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
896 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
897 temporary variable node used for NULL argument.
899 2012-02-18 Alan Modra <amodra@gmail.com>
902 * ld.h (parsing_defsym): Delete.
903 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
904 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
905 exp_get_abs_int): Add tree arg for %S in error messages. Don't
907 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
908 type.filename from sub-tree.
909 (exp_trinop): Likewise, and use "cond" rather than "lhs".
910 * ldexp.h (node_type): Add filename field to struct.
911 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
912 * ldfile.h (ldfile_input_filename): Delete.
913 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
914 %S in error messages.
915 * ldemul.c (syslib_default, hll_default): Likewise.
916 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
917 lang_get_regions, lang_new_phdr): Likewise.
918 (lang_size_sections_1): Pass addr_tree for %S.
919 * ldlex.h (lex_redirect): Update prototype.
920 (ldlex_filename): Declare.
921 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
922 (lex_redirect): Add fake_filename and count params. Push
923 fake_filename to file_name_stack and init lineno from count.
924 (ldlex_filename): New function.
925 (lex_warn_invalid): Use above.
926 * ldmain.c (main): Update lex_redirect call.
927 * ldmisc.c (vfinfo <%S>): Take file name and line number from
928 etree_type arg, or use current if arg is NULL.
929 * lexsup.c (parsing_defsym): Delete.
930 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
932 2012-02-13 Kai Tietz <ktietz@redhat.com>
934 * deffilep.y (find_export_in_list): Set is_indent for
935 first or last element, if identical.
936 (find_import_in_list): Likewise.
938 2012-02-11 Kai Tietz <ktietz@redhat.com>
940 * deffilep.y (%union): New type id_const.
941 (opt_name2): New rule.
942 (keyword_as_name): New rule.
943 (dot_name): Replaced by opt_name2 rule.
944 (opt_name): Adjust rule.
945 (opt_equal_name): Likewise.
947 2012-02-11 Pascal Obry <pascal@obry.net>
949 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
951 (process_def_file_and_drectve): Maintain sorting of exports table
952 after stripping leading @ signs.
954 2012-02-09 Alan Modra <amodra@gmail.com>
956 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
958 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
961 * emulparams/elf32_x86_64.sh: Remove NOP.
962 * emulparams/elf_i386.sh: Likewise.
963 * emulparams/elf_i386_be.sh: Likewise.
964 * emulparams/elf_i386_ldso.sh: Likewise.
965 * emulparams/elf_i386_vxworks.sh: Likewise.
966 * emulparams/elf_k1om.sh: Likewise.
967 * emulparams/elf_l1om.sh: Likewise.
968 * emulparams/elf_x86_64.sh: Likewise.
970 * ldlang.c (zero_fill): Initialized to 0.
972 * ldwrite.c (build_link_order): Set data size to linker odrder
973 size when they are the same.
975 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
977 2012-01-17 Alan Modra <amodra@gmail.com>
979 * ldver.c (ldversion): Update copyright message year.
981 2012-01-15 Alan Modra <amodra@gmail.com>
984 * ldlang.c (lang_process): Don't reopen all files, just those
985 newly added by plugin.
987 2012-01-11 Alan Modra <amodra@gmail.com>
989 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
990 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
991 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
993 (plt_thread_safe, plt_stub_align): New vars.
994 (gld${EMULATION_NAME}_after_allocation): Pass them to
995 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
996 * ld.texinfo: Document new command line options, and an old
999 2012-01-09 Roland McGrath <mcgrathr@google.com>
1001 * configure.in: Use AM_ZLIB.
1002 * configure: Regenerated.
1004 For older changes see ChangeLog-2011
1006 Copyright (C) 2012 Free Software Foundation, Inc.
1008 Copying and distribution of this file, with or without modification,
1009 are permitted in any medium without royalty provided the copyright
1010 notice and this notice are preserved.
1016 version-control: never