1 2012-11-27 Nick Clifton <nickc@redhat.com>
4 * ld.texinfo: Fix spelling mistakes.
6 2012-11-26 Roland McGrath <mcgrathr@google.com>
8 * emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse):
9 Copy last elf32.em here too.
10 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
11 * emultempl/mmixelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
12 * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
14 2012-11-21 Roland McGrath <mcgrathr@google.com>
16 * ld.h (ld_config_type): New flag member separate_code.
18 (gld${EMULATION_NAME}_before_parse): Set it based on $SEPARATE_CODE.
19 * ldlang.c (ldlang_override_segment_assignment): If it's set, then
20 always return TRUE when SEC_CODE differs between the sections.
22 2012-11-20 H.J. Lu <hongjiu.lu@intel.com>
24 * ld.texinfo: Document "-z global".
26 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Support
28 (gld${EMULATION_NAME}_list_options): Likewise.
30 2012-11-15 Maxim Kuvyrkov <maxim@codesourcery.com>
32 Port lib32 arrangement from Debian.
33 * emulparams/elf_i386.sh: Include lib32 directories in library search
36 2012-11-15 Simon Baldwin <simonb@google.com>
38 * ldmain.c (main): Add start_sbrk set to sbrk(0) on entry.
39 On exit, compute data size as the delta between current
40 sbrk(0) and start_sbrk.
42 2012-11-09 Nick Clifton <nickc@redhat.com>
44 * emultempl/rxelf.em (no_flag_mismatch_warnings): Initialise to
46 (PARSE_AND_LIST_LONGOPTS): Add flag-mismatch-warnings.
47 (PARSE_AND_LIST_ARG_CASES): Add support for
48 --flag-mismatch-warnings.
50 * Makefile.am: (ALL_EMULATION_SOURCES): Add ev850_rh850.c.
51 * Makefile.in: Regenerate.
52 * configure.tgt (v850*-*-*): Make v850_rh850 the default
53 emulation. Add vanilla v850 as an extra emulation.
54 * emulparams/v850_rh850.sh: New file.
55 * scripttempl/v850_rh850.sc: New file.
57 2012-11-09 Edgar E. Iglesias <edgar.iglesias@gmail.com>
59 * Makefile.am: Add eelf32microblazeel.c and eelf32mbel_linux.c.
60 * Makefile.in: Regenerated.
61 * configure.tgt: Add microblazeel and set endian per target.
62 * emulparams/elf32mb_linux.sh: Add OUTPUT_FORMAT.
63 * emulparams/elf32microblaze.sh: Likewise.
64 * emulparams/elf32mbel_linux.sh: New file.
65 * emulparams/elf32microblazeel.sh: Likewise.
67 2012-11-09 H.J. Lu <hongjiu.lu@intel.com>
69 * testplug.c (record_add_file): Remove trailing redundant `;'.
71 2012-11-05 Alan Modra <amodra@gmail.com>
73 * configure.in: Apply 2012-09-10 change to config.in here.
75 2012-11-01 Nathan Sidwell <nathan@codesourcery.com>
77 * emultempl/elf32.em: Print stacksize help.
79 2012-11-01 Alan Modra <amodra@gmail.com>
81 * ldlang.c (insert_pad): Correct output section size calculation.
82 (lang_size_sections_1): Likewise for lang_data_statement and
85 2012-10-29 Alan Modra <amodra@gmail.com>
87 * configure.tgt (powerpcle-pe,winnt,cygwin): Add deffilep.o
90 2012-10-24 H.J. Lu <hongjiu.lu@intel.com>
92 * ld.h (command_line): Remove
93 disable_target_specific_optimizations.
94 (RELAXATION_DISABLED_BY_DEFAULT): Removed.
95 (RELAXATION_DISABLED_BY_USER): Likewise.
96 (RELAXATION_ENABLED): Likewise.
97 (DISABLE_RELAXATION): Likewise.
98 (ENABLE_RELAXATION): Likewise.
100 * ldmain.c (main): Updated.
102 * ldmain.h (RELAXATION_DISABLED_BY_DEFAULT): New macro.
103 (RELAXATION_DISABLED_BY_USER): Likewise.
104 (RELAXATION_ENABLED): Likewise.
105 (DISABLE_RELAXATION): Likewise.
106 (ENABLE_RELAXATION): Likewise.
108 2012-10-23 Nathan Sidwell <nathan@codesourcery.com>
110 * ld.texinfo (stack-size): New option.
111 * emultempl/elf32.em: Add stack-size option.
113 2012-10-22 Jan Beich <jbeich@tormail.org>
114 Alan Modra <amodra@gmail.com>
117 * ldlex.h (option_values): Add OPTION_IGNORE_UNRESOLVED_SYMBOL.
118 * lexsup.c (parse_args): Likewise.
119 (ld_options): Describe --ignore-unresolved-symbol.
120 * ldmain.h (add_ignoresym): Declare.
121 * ldmain.c (add_ignoresym): New function, extracted from..
122 (undefined_symbol): ..here. Return if the symbol is in ignore_hash.
123 (constructor_callback): Don't use global link_info here.
124 (reloc_overflow): Likewise.
126 2012-10-22 Alan Modra <amodra@gmail.com>
128 * plugin.c (plugin_load_plugins): Warning fix.
130 2012-10-18 Kai Tietz <ktietz@redhat.com>
133 * NEWS: Menition new feature.
134 * scripttempl/pep.sc: Add zdebug sections.
135 * scripttempl/pe.sc: L
137 2012-09-19 Steve Ellcey <sellcey@mips.com>
139 * configure.tgt: Add mips*-mti-elf* target.
141 2012-09-17 Alan Modra <amodra@gmail.com>
143 * ld.texinfo (Expression Section): Correct description of
144 conversions for a binary operation involving an absolute symbol
147 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
149 * configure: Regenerate.
151 2012-09-13 Anthony Green <green@moxielogic.com>
153 * emulparams/elf32moxie.sh (BIG_OUTPUT_FORMAT,
154 LITTLE_OUTPUT_FORMAT): Define.
155 (OUTPUT_FORMAT): Change to elf32-bigmoxie.
158 2012-09-12 DJ Delorie <dj@redhat.com>
160 * emulparams/elf32rx.sh (OTHER_READONLY_SECTIONS): Add W_* sections.
162 2012-09-10 Matthias Klose <doko@ubuntu.com>
164 * config.in: Disable sanity check for kfreebsd.
166 2012-09-10 H.J. Lu <hongjiu.lu@intel.com>
168 * configure: Regenerated.
170 2012-09-10 Iain Sandoe <iain@codesourcery.com>
171 Alan Modra <amodra@gmail.com>
173 * configure.tgt (powerpc-*-elf, et al): Define targ_extra_libpath.
175 (powerpcle-*-elf, et al): Likewise. Correct targ_extra_emuls.
177 2012-09-10 Iain Sandoe <iain@codesourcery.com>
179 * configure.tgt (powerpc-*-elf, et al): Define targ64_extra_emuls
180 and targ64_extra_libpath.
181 (powerpcle-*-elf, et al): Likewise.
183 2012-09-09 Hans-Peter Nilsson <hp@bitrange.com>
185 * emultempl/mmo.em (mmo_place_orphan): Rewrite to also attach
186 orphan sections to .data and .bss output sections, not just .text.
187 When giving up on finding a suitable output section, attach to any
188 output section other than .MMIX.reg_contents, if it exists.
189 * scripttempl/mmo.sc: Move output debug sections to just before
190 .MMIX.reg_contents. Add .gnu.attributes. Add new . = . NOP
191 assignments and move end-of-section provide-symbols after them
192 to force the end-of-section symbols to the address after orphan
193 placement. Add SORT_NONE to .init and .fini sections.
195 2012-08-30 H.J. Lu <hongjiu.lu@intel.com>
198 * scripttempl/elf.sc: Also provide __executable_start for PIE.
200 2012-08-17 Kai Tietz <ktietz@redhat.com>
203 * scripttempl/pe.sc: Add _etext symbol.
205 2012-08-14 Nick Clifton <nickc@redhat.com>
207 * configure.in (ALL_LINGUGAS): Add uk.
208 * configure: Regenerate.
209 * po/uk.po: New Ukranian translation.
211 2012-08-13 Ian Bolton <ian.bolton@arm.com>
212 Laurent Desnogues <laurent.desnogues@arm.com>
213 Jim MacArthur <jim.macarthur@arm.com>
214 Marcus Shawcroft <marcus.shawcroft@arm.com>
215 Nigel Stephens <nigel.stephens@arm.com>
216 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
217 Richard Earnshaw <rearnsha@arm.com>
218 Sofiane Naci <sofiane.naci@arm.com>
219 Tejas Belagod <tejas.belagod@arm.com>
220 Yufeng Zhang <yufeng.zhang@arm.com>
222 * Makefile.am: Add AArch64.
223 * Makefile.in: Regenerate.
224 * configure.tgt: Add AArch64.
225 * emulparams/aarch64elf.sh: New file.
226 * emulparams/aarch64elfb.sh: New file.
227 * emulparams/aarch64linux.sh: New file.
228 * emulparams/aarch64linuxb.sh: New file.
229 * emultempl/aarch64elf.em: New file.
230 * NEWS: Mention the new feature.
232 2012-08-09 Nick Clifton <nickc@redhat.com>
234 * po/vi.po: Updated Vietnamese translation.
236 2012-08-07 Daniel Green <venix1@gmail.com>
238 * scripttempl/pe.sc (R_TLS): Add .tls$AAA and .tls$ZZZ.
239 * scripttempl/pep.sc (R_TLS): Add .tls$AAA and .tls$ZZZ.
241 2012-08-07 Nick Clifton <nickc@redhat.com>
243 * po/ja.po: Updated Japanese translation.
245 2012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
247 * emulparams/elf32bmip.sh: Make _gp hidden.
248 * emulparams/elf32bmipn32-defs.sh: Likewise.
249 * emulparams/elf32mipswindiss.sh: Likewise.
250 * scripttempl/mips.sc: Likewise.
252 2012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
254 * ldexp.h (etree_union): Add defsym member to the assign member
256 (exp_assign): Add hidden argument to prototype.
257 * ldexp.c (exp_fold_tree_1): Use the defsym member to handle
259 (exp_assop): Add defsym argument, initialize the defsym member
260 of the assign structure.
261 (exp_assign): Handle hidden symbols.
262 (exp_defsym): Update to use the defsym argument to exp_assop.
263 (exp_provide): Update to handle the defsym argument to exp_assop.
264 * ldlex.l (HIDDEN): New token.
265 * ldgram.y (HIDDEN): Likewise.
266 (assignment, section): Update calls to exp_assign.
267 * ldctor.c (ldctor_build_sets): Likewise.
268 * mri.c (mri_format): Likewise.
269 * ldlang.c (lang_insert_orphan, lang_leave_overlay): Likewise.
270 (open_input_bfds): Remove --defsym symbols special case.
271 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Update
273 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
274 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
275 * emultempl/spuelf.em (spu_place_special_section): Likewise.
276 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets):
278 * ld.texinfo (Assigning Values to Symbols): Add HIDDEN.
279 (HIDDEN): New subsection.
281 2012-07-31 H.J. Lu <hongjiu.lu@intel.com>
284 * ldlang.c (wild_sort): Properly handle by_none.
286 * scripttempl/elf.sc: Add SORT_NONE to .init and .fini sections.
287 * scripttempl/elf32msp430.sc: Likewise.
288 * scripttempl/elf32msp430_3.sc: Likewise.
289 * scripttempl/elfd10v.sc: Likewise.
290 * scripttempl/elfd30v.sc: Likewise.
291 * scripttempl/elfxtensa.sc: Likewise.
293 2012-07-30 Nick Clifton <nickc@redhat.com>
295 * po/ld.pot: Updated template.
296 * po/bg.po: Updated Bulgarian translation.
297 * po/es.po: Updated Spanish translation.
298 * po/fi.po: Updated Finnish translation.
300 2012-07-27 Mike Frysinger <vapier@gentoo.org>
302 * configure.in (BFD_VERSION): Run bfd/configure --version and
303 parse the output of that.
304 * configure: Regenerate.
306 2012-07-27 Tristan Gingold <gingold@adacore.com>
308 * NEWS: Add marker for 2.23.
310 2012-07-24 Jan Waclawek <konfera@efton.sk>
313 * emultempl/avrelf.em (avr_elf_after_allocation): Call
314 elf32_avr_size_stubs with is_prealloc_run as TRUE.
316 2012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
318 * emulparams/elf_s390.sh (IREL_IN_PLT): Define.
319 * emulparams/elf64_s390.sh (IREL_IN_PLT): Define.
321 2012-07-13 Nick Clifton <nickc@redhat.com>
324 * ldmain.c (trace_file_tries): Rename to 'verbose'.
325 * ldfile.c: Likewise.
326 * ldlang.c: Likewise.
327 * ldmain.h: Likewise.
328 * lexsup.c: Likewise.
329 * emultempl/elf32.em: Likewise.
330 * emultemp/spuelf.em: Likewise.
331 * pe-dll.c (pe_dll_generate_implib): Only print creation message
334 2012-07-10 H.J. Lu <hongjiu.lu@intel.com>
337 * NEWS: Mention SORT_NONE.
339 * ld.h (sort_type): Add by_none.
341 * ld.texinfo: Document SORT_NONE.
343 * ldgram.y: Handle SORT_NONE.
345 * ldlang.c (update_wild_statements): Handle by_none. Don't
346 sort .init/.fini sections.
348 * ldlex.l: Add SORT_NONE.
350 2012-07-02 H.J. Lu <hongjiu.lu@intel.com>
352 * ld.texinfo: Replace __end_SECNAME with __stop_SECNAME.
354 2012-06-29 Nick Clifton <nickc@redhat.com>
356 * scripttempl/alphavms.sc: Add .debug_macro section.
357 * scripttempl/elf.sc: Likewise.
358 * scripttempl/elf64hppa.sc: Likewise.
359 * scripttempl/elf_chaos.sc: Likewise.
360 * scripttempl/elfxtensa.sc: Likewise.
361 * scripttempl/ia64vms.sc: Likewise.
363 * scripttempl/armbpabi.sc: Add .debug_pubtypes, .debug_ranges and
364 .debug_macro sections.
365 * scripttempl/avr.sc: Likewise.
366 * scripttempl/elf32cr16.sc: Likewise.
367 * scripttempl/elf32crx.sc: Likewise.
368 * scripttempl/elf32msp430.sc: Likewise.
369 * scripttempl/elf32msp430_3.sc: Likewise.
370 * scripttempl/elf32sh-symbian.sc: Likewise.
371 * scripttempl/elfd30v.sc: Likewise.
372 * scripttempl/elfi370.sc: Likewise.
373 * scripttempl/elfm68hc11.sc: Likewise.
374 * scripttempl/elfm68hc12.sc: Likewise.
375 * scripttempl/elfxgate.sc: Likewise.
376 * scripttempl/i386beos.sc: Likewise.
377 * scripttempl/i386go32.sc: Likewise.
378 * scripttempl/ip2k.sc: Likewise.
379 * scripttempl/iq2000.sc: Likewise.
380 * scripttempl/mep.sc: Likewise.
381 * scripttempl/mmo.sc: Likewise.
382 * scripttempl/v850.sc: Likewise.
383 * scripttempl/xstormy16.sc: Likewise.
385 2012-06-28 H.J. Lu <hongjiu.lu@intel.com>
387 * ldlang.c (update_wild_statements): Remove redundant statement.
389 2012-06-25 Alan Modra <amodra@gmail.com>
391 * ldlang.c (load_symbols): Close file and set flags.loaded
392 after parsing script file.
393 (open_input_bfds): Don't segv on closed script.
395 2012-06-24 H.J. Lu <hongjiu.lu@intel.com>
397 * configure.tgt: Enable elf_k1om for x86_64-*-linux-gnux32.
398 Remove x32 in tdir_i386linux and tdir_elf_i386.
400 2012-06-22 Roland McGrath <mcgrathr@google.com>
402 * NEWS: Mention __ehdr_start.
404 2012-06-21 Alan Modra <amodra@gmail.com>
406 * ldlang.c (lang_insert_orphan): Don't make __start_<sec> symbol
407 absolute, and remove unnecessary alignment.
409 2012-06-16 Alan Modra <amodra@gmail.com>
411 * ldlang.h (lang_output_section_statement_type): Add after_end field.
412 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
413 (section_for_dot): Declare.
414 * ldlang.c (lang_size_sections_1): Correct comment.
415 (current_section): Move earlier.
416 (current_assign, prefer_next_section): New static vars.
417 (lang_do_assignments_1): Add found_end param. Detect _end
418 assignment to set found_end. Set os->after_end. Set above statics.
419 (lang_do_assignments): Adjust lang_do_assignments_1 call. Init
421 (section_for_dot): New function.
422 (lang_set_startof): Don't make an absolute symbol.
423 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
424 * ldexp.c (new_rel_from_abs): Use section_for_dot.
425 * emultempl/lnk960.em (symbol_at_beginning_of): New function.
426 (symbol_at_end_of): Likewise.
427 (lnk960_after_allocation): Use them.
428 * scripttempl/elf.sc: Precede OTHER_GOT_SYMBOLS with . = .; and
429 likewise before __bss_start.
431 2012-06-14 H.J. Lu <hongjiu.lu@intel.com>
433 * plugin.c (set_tv_header): Handle link_info.pie.
435 2012-06-11 Alan Modra <amodra@gmail.com>
438 * ldexp.c (fold_name <SIZEOF, ALIGNOF>): Allow forward section
440 * emulparams/elf32_x86_64.sh (SEPARATE_GOTPLT): Depend on size of
442 * emulparams/elf32mb_linux.sh (SEPARATE_GOTPLT): Likewise.
443 * emulparams/elf32tilegx.sh (SEPARATE_GOTPLT): Likewise.
444 * emulparams/elf32tilepro.sh (SEPARATE_GOTPLT): Likewise.
445 * emulparams/elf64tilegx.sh (SEPARATE_GOTPLT): Likewise.
446 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Likewise.
447 * emulparams/elf_k1om.sh (SEPARATE_GOTPLT): Likewise.
448 * emulparams/elf_l1om.sh (SEPARATE_GOTPLT): Likewise.
449 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Likewise.
451 2012-06-07 Georg-Johann Lay <avr@gjlay.de>
454 * scripttempl/avr.sc (.data): Keep it.
456 2012-06-02 Andreas Schwab <schwab@linux-m68k.org>
458 * Makefile.am (TEXINFO_TEX): Remove $(top_srcdir) prefix.
459 * Makefile.in: Regenerate.
461 2012-05-30 Alan Modra <amodra@gmail.com>
463 * ldlang.h (lang_output_section_statement_type): Rename
464 "section_relative_symbol" field to "update_dot".
465 * ldlang.c: Update all uses.
466 (strip_excluded_output_sections): Don't test update_dot_tree here..
467 (lang_leave_overlay): ..set update_dot here.
469 2012-05-26 Alan Modra <amodra@gmail.com>
471 * ldlex.h (enum option_values): Move from..
473 * emultempl/ppc32elf.em: Include ldlex.h.
474 (PARSE_AND_LIST_ARGS_CASES): Disable optimisations when
475 --traditional-format.
476 * emultempl/ppc64elf.em: Likewise.
478 2012-05-25 Alan Modra <amodra@gmail.com>
481 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Handle
482 multiple .eh_frame sections attached to bfd.
484 2012-05-23 Cary Coutant <ccoutant@google.com>
486 * scripttempl/armbpabi.sc: Match .data.rel.ro.* sections more
487 carefully. Fix typo where .rela.data.rel.ro matches
489 * scripttempl/mep.sc: Likewise.
490 * scripttempl/elf.sc: Match .data.rel.ro.* sections more carefully.
491 * scripttempl/elf64hppa.sc: Likewise.
492 * scripttempl/elfxtensa.sc: Likewise.
494 2012-05-17 Daniel Richard G. <skunk@iskunk.org>
495 Nick Clifton <nickc@redhat.com>
498 * configure.in: Add check that sysdep.h has been included before
499 any system header files.
500 * configure: Regenerate.
501 * config.in: Regenerate.
502 * sysdep.h: Generate an error if included before config.h.
504 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
506 * emultempl/m68hc1xelf.em (hook_in_stub): Pass proper `bfd'
507 as the first argument for `bfd_get_section_name'.
509 2012-05-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
512 * emultempl/elf32.em: Include *-*-gnu* targets in ld.so.conf
515 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
517 * NEWS: Mention the support for S12X processors.
519 2012-05-14 James Lemke <jwlemke@codesourcery.com>
521 * ldlang.c (walk_wild_consider_section): Don't copy section_flag_list.
523 (walk_wild_section_general): Pass section_flag_list to callback.
524 (lang_add_section): Add sflag_list parm.
525 Move out logic to keep / omit a section & call bfd_lookup_section_flags.
526 (output_section_callback_fast): Add sflag_list parm.
527 Add new parm to lang_add_section calls.
528 (output_section_callback): Likewise.
529 (check_section_callback): Add sflag_list parm.
530 (lang_place_orphans): Add new parm to lang_add_section calls.
531 (gc_section_callback): Add sflag_list parm.
532 (find_relro_section_callback): Likewise.
533 * ldlang.h (callback_t): Add flag_info parm.
534 (lang_add_section): Add sflag_list parm.
535 * emultempl/armelf.em (elf32_arm_add_stub_section):
536 Add lang_add_section parm.
537 * emultempl/beos.em (gld*_place_orphan): Likewise.
538 * emultempl/elf32.em (gld*_place_orphan): Likewise.
539 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
540 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
541 * emultempl/mipself.em (mips_add_stub_section): Likewise.
542 * emultempl/mmo.em (mmo_place_orphan): Likewise.
543 * emultempl/pe.em (gld_*_place_orphan): Likewise.
544 * emultempl/pep.em (gld_*_place_orphan): Likewise.
545 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
546 * emultempl/spuelf.em (spu_place_special_section): Likewise.
547 * emultempl/vms.em (vms_place_orphan): Likewise.
549 2012-05-14 Catherine Moore <clm@codesourcery.com>
551 * NEWS: Mention PowerPC VLE port.
553 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
556 * configure.in: Invoke ACX_HEADER_STRING.
557 * configure: Regenerate.
558 * config.in: Regenerate.
559 * sysdep.h: If STRINGS_WITH_STRING is defined then include both
560 string.h and strings.h.
562 2012-05-08 Alan Modra <amodra@gmail.com>
564 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
565 LC and LANG environment vars.
566 * Makefile.in: Regenerate.
568 2012-05-07 Tristan Gingold <gingold@adacore.com>
570 * pe-dll.c (udef_table): Make it static.
572 2012-05-05 Alan Modra <amodra@gmail.com>
574 * pe-dll.c (process_def_file_and_drectve): Use bfd_und_section_ptr.
575 (generate_reloc): Use bfd_abs_section_ptr.
577 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
579 * configure.tgt: Support x86_64-*-linux-gnux32.
581 2012-05-03 Sean Keys <skeys@ipdatasys.com>
583 * Makefile.am (ALL_EMULATIONS): Added new emulation for XGATE
585 * Makefile.in: Rebuild.
586 * configure.tgt: Recognize XGATE.
587 * scripttempl/elfxgate.sc: New file, mostly cloned from m68hc12.
588 * emulparams/xgateelf: New emulation, mostly cloned from m68hc12.
589 * NEWS: Mention new support.
591 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
593 Make bfd asserts cause linker errors.
594 * ldmain.c (default_bfd_assert_handler): New variable.
595 (ld_bfd_assert_handler): New function.
596 (main): Call bfd_set_assert_handler.
598 2012-04-24 Alan Modra <amodra@gmail.com>
600 * ldlang.c (size_input_section): Use sec_info_type rather than
601 usrdata->flags.just_syms.
602 * ldwrite.c (build_link_order): Likewise.
603 * emultempl/hppaelf.em (build_section_lists): Likewise.
604 * emultempl/ppc64elf.em (build_toc_list): Likewise.
605 * emultempl/armelf.em (build_section_lists): Likewise.
606 (after_allocation): Update for renamed sec_info_type value.
607 * emultempl/tic6xdsbt.em: Likewise.
609 2012-04-12 Roland McGrath <mcgrathr@google.com>
611 * configure.tgt (arm*-*-nacl*, arm*b-*-nacl*): Handle them.
612 * emulparams/armelf_nacl.sh: New file.
613 * emulparams/armelfb_nacl.sh: New file.
614 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelf_nacl.c
615 and earmelfb_nacl.c here.
616 (earmelf_nacl.c, earmelfb_nacl.c): New targets.
617 * Makefile.in: Regenerated.
619 2012-04-11 Tristan Gingold <gingold@adacore.com>
621 * scripttempl/ia64vms.sc: New file.
622 * emultempl/vms.em (_before_parse): Support for ia64.
623 (elf64-ia64-vms): New fragment for ia64.
624 * emulparams/elf64_ia64_vms.sh: New file.
625 * configure.tgt (ia64-*-*vms*): Add.
626 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64_ia64_vms.c
627 (eelf64_ia64_vms.c): New rule.
628 * Makefile.in: Regenerate.
630 2012-04-06 Roland McGrath <mcgrathr@google.com>
632 * configure.in (AC_CHECK_HEADERS): Add locale.h.
633 * config.in: Regenerate.
634 * configure: Regenerate.
636 2012-04-05 Nick Clifton <nickc@redhat.com>
638 * configure.in (AC_CHECK_FUNCS): Add setlocale.
639 (AM_LC_MESSAGES): Add.
640 * aclocal.m4: Regenerate.
641 * config.in: Regenerate.
642 * configure: Regenerate.
644 2012-04-03 Roland McGrath <mcgrathr@google.com>
646 * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them.
647 * emulparams/elf_nacl.sh: New file.
648 * emulparams/elf_i386_nacl.sh: New file.
649 * emulparams/elf32_x86_64_nacl.sh: New file.
650 * emulparams/elf_x86_64_nacl.sh: New file.
651 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here.
652 (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and
653 eelf_x86_64_nacl.c here.
654 (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c):
656 * Makefile.in: Regenerated.
658 * scripttempl/elf.sc: Handle SEPARATE_CODE cases.
660 2012-04-02 Mike Frysinger <vapier@gentoo.org>
662 * ldmisc.c (vfinfo): Assign new local str to fmt. Delete
663 putc call. If str and fmt are different, call fwrite on
666 2012-03-30 Nick Clifton <nickc@redhat.com>
668 * po/vi.po: Updated Vietnamese translation.
670 2012-03-27 Roland McGrath <mcgrathr@google.com>
672 * configure.in: Set want64 on a 64-bit host regardless of
673 --enable-targets=all.
674 * configure: Regenerated.
676 2012-03-26 Tristan Gingold <gingold@adacore.com>
678 * lexsup.c (parse_args): Add a missing '\n'.
680 2012-03-25 Alan Modra <amodra@gmail.com>
682 * ldemul.c (before_allocation_default): Revert last change.
683 * ldlang.c (lang_add_section): Likewise.
684 (strip_excluded_output_sections): Don't strip output sections with
685 user input sections when emitrelocations, unless all are SEC_EXCLUDE.
687 2012-03-23 Alan Modra <amodra@gmail.com>
689 * ldemul.c (before_allocation_default): When emitrelocations,
690 don't strip sections..
691 * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
693 2012-03-14 Kai Tietz <ktietz@redhat.com>
694 Pascal Obry <pascal@obry.net>
696 * pe-dll.c (found_sym): New static variable.
697 (undef_count): Likewise.
698 (key_value): New structure.
699 (undef_sort_cmp): Compare routine for qsort/bsearch.
700 (pe_find_cdecl_alias_match): Add new argument.
701 (pe_undef_alias_cdecl_match): Removed.
702 (pe_undef_count): New helper routine.
703 (pe_create_undef_table): Likewise.
704 (pe_process_import_defs): Use pe_create_undef_table and
705 new pe_undef_alias_cdecl_match function.
707 2012-03-14 Alan Modra <amodra@gmail.com>
710 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
712 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
713 discarding result, for side effects. Fix typo in error message.
715 2012-03-08 Tristan Gingold <gingold@adacore.com>
717 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
718 (exp_print_token): Constify.
720 2012-03-08 Alan Modra <amodra@gmail.com>
723 * ldfile.c (is_sysrooted_pathname): Remove notsame param.
724 (ldfile_add_library_path): Don't set sysrooted flag.
725 (ldfile_open_file_search): Likewise, and don't copy them.
726 (try_open): Delete exten and code handling such. Add sysrooted
727 param and return whether path is in sysroot.
728 (ldfile_find_command_file): Delete extend param. Add sysrooted
729 param. Rename local var. Update try_open calls.
730 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
731 * ldfile.h (search_dirs_type): Remove sysrooted field.
732 * ldlang.c (new_afile): Always set sysrooted from input_flags.
733 (load_symbols): Don't set input_flags.sysrooted.
734 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
736 * ldlex.h (lex_push_file): Update prototype.
737 * ldlex.l (sysrooted_stack): New array.
738 (EOF): Pop input_flags.sysrooted.
739 (lex_push_file): Add sysrooted param. Save and set
740 input_flags.sysrooted.
742 2012-03-06 Alan Modra <amodra@gmail.com>
744 * ldlang.h (struct lang_input_statement_flags): New, extract from..
745 (lang_input_statement_type): ..here. New field "flags".
746 (input_flags): Declare.
747 (missing_file): Delete.
748 * ldmain.h (whole_archive): Delete.
749 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
750 * ld.h (ld_config_type <dynamic_link>): Delete.
751 * ldmain.c (whole_archive): Delete.
752 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
753 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
754 (input_flags): New variable. Replace all uses of config.dynamic_link,
755 missing_file, ldlang_sysrooted_script, whole_archive,
756 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
758 * ldfile.c: Likewise.
759 * ldgram.y: Likewise.
760 * ldmain.c: Likewise.
761 * ldwrite.c: Likewise.
762 * lexsup.c: Likewise.
763 * plugin.c: Likewise.
764 * emultempl/aix.em: Likewise.
765 * emultempl/armelf.em: Likewise.
766 * emultempl/elf32.em: Likewise.
767 * emultempl/hppaelf.em: Likewise.
768 * emultempl/linux.em: Likewise.
769 * emultempl/pe.em: Likewise.
770 * emultempl/pep.em: Likewise.
771 * emultempl/ppc64elf.em: Likewise.
772 * emultempl/scoreelf.em: Likewise.
773 * emultempl/spuelf.em: Likewise.
774 * emultempl/sunos.em: Likewise.
775 * emultempl/vms.em: Likewise.
776 * ldlang.c (new_afile): Use memset to init zero fields.
777 (load_symbols): Simplify save and restore of flags around command
779 * ldfile.c (is_sysrooted_pathname): Tidy.
781 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
783 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
784 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
785 replacing trailing "-*" with "*".
787 2012-02-25 Walter Lee <walt@tilera.com>
789 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
790 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
791 (eelf32tilegx_be.c): Add rule to build this file.
792 (eelf64tilegx_be.c): Ditto.
793 * Makefile.in: Regenerate.
794 * configure.tgt (tilegx-*-*): Support big endian.
796 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
797 (BIG_OUTPUT_FORMAT): Define.
798 (LITTLE_OUTPUT_FORMAT): Define.
799 * emulparams/elf32tilegx_be.sh: New.
800 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
801 (BIG_OUTPUT_FORMAT): Define.
802 (LITTLE_OUTPUT_FORMAT): Define.
803 * emulparams/elf64tilegx_be.sh: New.
805 2012-02-24 Kai Tietz <ktietz@redhat.com>
808 * deffilep.y (keyword_as_name): Disable LIBRARY
811 2012-02-22 Alan Modra <amodra@gmail.com>
814 * ldlang.c (lang_process): Rerun lang_do_assignments before
815 starting garbage collection.
816 * ldexp.c (fold_name): Generate a reloc for defined symbols
817 found without an associated output section during the mark phase.
818 (exp_fold_tree_1): Continue processing an expression, even if we
819 are unable to fold it, if we are in the first two evaluation
821 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
823 2012-02-19 Kai Tietz <ktietz@redhat.com>
825 * deffilep.y (cmp_import_elem): Sort first by module name.
826 * pe-dll.c (process_def_file_and_drectve): Free strings
827 from removed export-element.
828 (add_bfd_to_link): Optimize loop on import-elements and lower
830 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
833 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
835 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
836 temporary variable node used for NULL argument.
838 2012-02-18 Alan Modra <amodra@gmail.com>
841 * ld.h (parsing_defsym): Delete.
842 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
843 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
844 exp_get_abs_int): Add tree arg for %S in error messages. Don't
846 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
847 type.filename from sub-tree.
848 (exp_trinop): Likewise, and use "cond" rather than "lhs".
849 * ldexp.h (node_type): Add filename field to struct.
850 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
851 * ldfile.h (ldfile_input_filename): Delete.
852 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
853 %S in error messages.
854 * ldemul.c (syslib_default, hll_default): Likewise.
855 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
856 lang_get_regions, lang_new_phdr): Likewise.
857 (lang_size_sections_1): Pass addr_tree for %S.
858 * ldlex.h (lex_redirect): Update prototype.
859 (ldlex_filename): Declare.
860 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
861 (lex_redirect): Add fake_filename and count params. Push
862 fake_filename to file_name_stack and init lineno from count.
863 (ldlex_filename): New function.
864 (lex_warn_invalid): Use above.
865 * ldmain.c (main): Update lex_redirect call.
866 * ldmisc.c (vfinfo <%S>): Take file name and line number from
867 etree_type arg, or use current if arg is NULL.
868 * lexsup.c (parsing_defsym): Delete.
869 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
871 2012-02-13 Kai Tietz <ktietz@redhat.com>
873 * deffilep.y (find_export_in_list): Set is_indent for
874 first or last element, if identical.
875 (find_import_in_list): Likewise.
877 2012-02-11 Kai Tietz <ktietz@redhat.com>
879 * deffilep.y (%union): New type id_const.
880 (opt_name2): New rule.
881 (keyword_as_name): New rule.
882 (dot_name): Replaced by opt_name2 rule.
883 (opt_name): Adjust rule.
884 (opt_equal_name): Likewise.
886 2012-02-11 Pascal Obry <pascal@obry.net>
888 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
890 (process_def_file_and_drectve): Maintain sorting of exports table
891 after stripping leading @ signs.
893 2012-02-09 Alan Modra <amodra@gmail.com>
895 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
897 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
900 * emulparams/elf32_x86_64.sh: Remove NOP.
901 * emulparams/elf_i386.sh: Likewise.
902 * emulparams/elf_i386_be.sh: Likewise.
903 * emulparams/elf_i386_ldso.sh: Likewise.
904 * emulparams/elf_i386_vxworks.sh: Likewise.
905 * emulparams/elf_k1om.sh: Likewise.
906 * emulparams/elf_l1om.sh: Likewise.
907 * emulparams/elf_x86_64.sh: Likewise.
909 * ldlang.c (zero_fill): Initialized to 0.
911 * ldwrite.c (build_link_order): Set data size to linker odrder
912 size when they are the same.
914 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
916 2012-01-17 Alan Modra <amodra@gmail.com>
918 * ldver.c (ldversion): Update copyright message year.
920 2012-01-15 Alan Modra <amodra@gmail.com>
923 * ldlang.c (lang_process): Don't reopen all files, just those
924 newly added by plugin.
926 2012-01-11 Alan Modra <amodra@gmail.com>
928 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
929 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
930 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
932 (plt_thread_safe, plt_stub_align): New vars.
933 (gld${EMULATION_NAME}_after_allocation): Pass them to
934 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
935 * ld.texinfo: Document new command line options, and an old
938 2012-01-09 Roland McGrath <mcgrathr@google.com>
940 * configure.in: Use AM_ZLIB.
941 * configure: Regenerated.
943 For older changes see ChangeLog-2011
949 version-control: never