1 2012-11-01 Alan Modra <amodra@gmail.com>
3 * ldlang.c (insert_pad): Correct output section size calculation.
4 (lang_size_sections_1): Likewise for lang_data_statement and
7 2012-10-29 Alan Modra <amodra@gmail.com>
9 * configure.tgt (powerpcle-pe,winnt,cygwin): Add deffilep.o
12 2012-10-24 H.J. Lu <hongjiu.lu@intel.com>
14 * ld.h (command_line): Remove
15 disable_target_specific_optimizations.
16 (RELAXATION_DISABLED_BY_DEFAULT): Removed.
17 (RELAXATION_DISABLED_BY_USER): Likewise.
18 (RELAXATION_ENABLED): Likewise.
19 (DISABLE_RELAXATION): Likewise.
20 (ENABLE_RELAXATION): Likewise.
22 * ldmain.c (main): Updated.
24 * ldmain.h (RELAXATION_DISABLED_BY_DEFAULT): New macro.
25 (RELAXATION_DISABLED_BY_USER): Likewise.
26 (RELAXATION_ENABLED): Likewise.
27 (DISABLE_RELAXATION): Likewise.
28 (ENABLE_RELAXATION): Likewise.
30 2012-10-23 Nathan Sidwell <nathan@codesourcery.com>
32 * ld.texinfo (stack-size): New option.
33 * emultempl/elf32.em: Add stack-size option.
35 2012-10-22 Jan Beich <jbeich@tormail.org>
36 Alan Modra <amodra@gmail.com>
39 * ldlex.h (option_values): Add OPTION_IGNORE_UNRESOLVED_SYMBOL.
40 * lexsup.c (parse_args): Likewise.
41 (ld_options): Describe --ignore-unresolved-symbol.
42 * ldmain.h (add_ignoresym): Declare.
43 * ldmain.c (add_ignoresym): New function, extracted from..
44 (undefined_symbol): ..here. Return if the symbol is in ignore_hash.
45 (constructor_callback): Don't use global link_info here.
46 (reloc_overflow): Likewise.
48 2012-10-22 Alan Modra <amodra@gmail.com>
50 * plugin.c (plugin_load_plugins): Warning fix.
52 2012-10-18 Kai Tietz <ktietz@redhat.com>
55 * NEWS: Menition new feature.
56 * scripttempl/pep.sc: Add zdebug sections.
57 * scripttempl/pe.sc: L
59 2012-09-19 Steve Ellcey <sellcey@mips.com>
61 * configure.tgt: Add mips*-mti-elf* target.
63 2012-09-17 Alan Modra <amodra@gmail.com>
65 * ld.texinfo (Expression Section): Correct description of
66 conversions for a binary operation involving an absolute symbol
69 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
71 * configure: Regenerate.
73 2012-09-13 Anthony Green <green@moxielogic.com>
75 * emulparams/elf32moxie.sh (BIG_OUTPUT_FORMAT,
76 LITTLE_OUTPUT_FORMAT): Define.
77 (OUTPUT_FORMAT): Change to elf32-bigmoxie.
80 2012-09-12 DJ Delorie <dj@redhat.com>
82 * emulparams/elf32rx.sh (OTHER_READONLY_SECTIONS): Add W_* sections.
84 2012-09-10 Matthias Klose <doko@ubuntu.com>
86 * config.in: Disable sanity check for kfreebsd.
88 2012-09-10 H.J. Lu <hongjiu.lu@intel.com>
90 * configure: Regenerated.
92 2012-09-10 Iain Sandoe <iain@codesourcery.com>
93 Alan Modra <amodra@gmail.com>
95 * configure.tgt (powerpc-*-elf, et al): Define targ_extra_libpath.
97 (powerpcle-*-elf, et al): Likewise. Correct targ_extra_emuls.
99 2012-09-10 Iain Sandoe <iain@codesourcery.com>
101 * configure.tgt (powerpc-*-elf, et al): Define targ64_extra_emuls
102 and targ64_extra_libpath.
103 (powerpcle-*-elf, et al): Likewise.
105 2012-09-09 Hans-Peter Nilsson <hp@bitrange.com>
107 * emultempl/mmo.em (mmo_place_orphan): Rewrite to also attach
108 orphan sections to .data and .bss output sections, not just .text.
109 When giving up on finding a suitable output section, attach to any
110 output section other than .MMIX.reg_contents, if it exists.
111 * scripttempl/mmo.sc: Move output debug sections to just before
112 .MMIX.reg_contents. Add .gnu.attributes. Add new . = . NOP
113 assignments and move end-of-section provide-symbols after them
114 to force the end-of-section symbols to the address after orphan
115 placement. Add SORT_NONE to .init and .fini sections.
117 2012-08-30 H.J. Lu <hongjiu.lu@intel.com>
120 * scripttempl/elf.sc: Also provide __executable_start for PIE.
122 2012-08-17 Kai Tietz <ktietz@redhat.com>
125 * scripttempl/pe.sc: Add _etext symbol.
127 2012-08-14 Nick Clifton <nickc@redhat.com>
129 * configure.in (ALL_LINGUGAS): Add uk.
130 * configure: Regenerate.
131 * po/uk.po: New Ukranian translation.
133 2012-08-13 Ian Bolton <ian.bolton@arm.com>
134 Laurent Desnogues <laurent.desnogues@arm.com>
135 Jim MacArthur <jim.macarthur@arm.com>
136 Marcus Shawcroft <marcus.shawcroft@arm.com>
137 Nigel Stephens <nigel.stephens@arm.com>
138 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
139 Richard Earnshaw <rearnsha@arm.com>
140 Sofiane Naci <sofiane.naci@arm.com>
141 Tejas Belagod <tejas.belagod@arm.com>
142 Yufeng Zhang <yufeng.zhang@arm.com>
144 * Makefile.am: Add AArch64.
145 * Makefile.in: Regenerate.
146 * configure.tgt: Add AArch64.
147 * emulparams/aarch64elf.sh: New file.
148 * emulparams/aarch64elfb.sh: New file.
149 * emulparams/aarch64linux.sh: New file.
150 * emulparams/aarch64linuxb.sh: New file.
151 * emultempl/aarch64elf.em: New file.
152 * NEWS: Mention the new feature.
154 2012-08-09 Nick Clifton <nickc@redhat.com>
156 * po/vi.po: Updated Vietnamese translation.
158 2012-08-07 Daniel Green <venix1@gmail.com>
160 * scripttempl/pe.sc (R_TLS): Add .tls$AAA and .tls$ZZZ.
161 * scripttempl/pep.sc (R_TLS): Add .tls$AAA and .tls$ZZZ.
163 2012-08-07 Nick Clifton <nickc@redhat.com>
165 * po/ja.po: Updated Japanese translation.
167 2012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
169 * emulparams/elf32bmip.sh: Make _gp hidden.
170 * emulparams/elf32bmipn32-defs.sh: Likewise.
171 * emulparams/elf32mipswindiss.sh: Likewise.
172 * scripttempl/mips.sc: Likewise.
174 2012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
176 * ldexp.h (etree_union): Add defsym member to the assign member
178 (exp_assign): Add hidden argument to prototype.
179 * ldexp.c (exp_fold_tree_1): Use the defsym member to handle
181 (exp_assop): Add defsym argument, initialize the defsym member
182 of the assign structure.
183 (exp_assign): Handle hidden symbols.
184 (exp_defsym): Update to use the defsym argument to exp_assop.
185 (exp_provide): Update to handle the defsym argument to exp_assop.
186 * ldlex.l (HIDDEN): New token.
187 * ldgram.y (HIDDEN): Likewise.
188 (assignment, section): Update calls to exp_assign.
189 * ldctor.c (ldctor_build_sets): Likewise.
190 * mri.c (mri_format): Likewise.
191 * ldlang.c (lang_insert_orphan, lang_leave_overlay): Likewise.
192 (open_input_bfds): Remove --defsym symbols special case.
193 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Update
195 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
196 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
197 * emultempl/spuelf.em (spu_place_special_section): Likewise.
198 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets):
200 * ld.texinfo (Assigning Values to Symbols): Add HIDDEN.
201 (HIDDEN): New subsection.
203 2012-07-31 H.J. Lu <hongjiu.lu@intel.com>
206 * ldlang.c (wild_sort): Properly handle by_none.
208 * scripttempl/elf.sc: Add SORT_NONE to .init and .fini sections.
209 * scripttempl/elf32msp430.sc: Likewise.
210 * scripttempl/elf32msp430_3.sc: Likewise.
211 * scripttempl/elfd10v.sc: Likewise.
212 * scripttempl/elfd30v.sc: Likewise.
213 * scripttempl/elfxtensa.sc: Likewise.
215 2012-07-30 Nick Clifton <nickc@redhat.com>
217 * po/ld.pot: Updated template.
218 * po/bg.po: Updated Bulgarian translation.
219 * po/es.po: Updated Spanish translation.
220 * po/fi.po: Updated Finnish translation.
222 2012-07-27 Mike Frysinger <vapier@gentoo.org>
224 * configure.in (BFD_VERSION): Run bfd/configure --version and
225 parse the output of that.
226 * configure: Regenerate.
228 2012-07-27 Tristan Gingold <gingold@adacore.com>
230 * NEWS: Add marker for 2.23.
232 2012-07-24 Jan Waclawek <konfera@efton.sk>
235 * emultempl/avrelf.em (avr_elf_after_allocation): Call
236 elf32_avr_size_stubs with is_prealloc_run as TRUE.
238 2012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
240 * emulparams/elf_s390.sh (IREL_IN_PLT): Define.
241 * emulparams/elf64_s390.sh (IREL_IN_PLT): Define.
243 2012-07-13 Nick Clifton <nickc@redhat.com>
246 * ldmain.c (trace_file_tries): Rename to 'verbose'.
247 * ldfile.c: Likewise.
248 * ldlang.c: Likewise.
249 * ldmain.h: Likewise.
250 * lexsup.c: Likewise.
251 * emultempl/elf32.em: Likewise.
252 * emultemp/spuelf.em: Likewise.
253 * pe-dll.c (pe_dll_generate_implib): Only print creation message
256 2012-07-10 H.J. Lu <hongjiu.lu@intel.com>
259 * NEWS: Mention SORT_NONE.
261 * ld.h (sort_type): Add by_none.
263 * ld.texinfo: Document SORT_NONE.
265 * ldgram.y: Handle SORT_NONE.
267 * ldlang.c (update_wild_statements): Handle by_none. Don't
268 sort .init/.fini sections.
270 * ldlex.l: Add SORT_NONE.
272 2012-07-02 H.J. Lu <hongjiu.lu@intel.com>
274 * ld.texinfo: Replace __end_SECNAME with __stop_SECNAME.
276 2012-06-29 Nick Clifton <nickc@redhat.com>
278 * scripttempl/alphavms.sc: Add .debug_macro section.
279 * scripttempl/elf.sc: Likewise.
280 * scripttempl/elf64hppa.sc: Likewise.
281 * scripttempl/elf_chaos.sc: Likewise.
282 * scripttempl/elfxtensa.sc: Likewise.
283 * scripttempl/ia64vms.sc: Likewise.
285 * scripttempl/armbpabi.sc: Add .debug_pubtypes, .debug_ranges and
286 .debug_macro sections.
287 * scripttempl/avr.sc: Likewise.
288 * scripttempl/elf32cr16.sc: Likewise.
289 * scripttempl/elf32crx.sc: Likewise.
290 * scripttempl/elf32msp430.sc: Likewise.
291 * scripttempl/elf32msp430_3.sc: Likewise.
292 * scripttempl/elf32sh-symbian.sc: Likewise.
293 * scripttempl/elfd30v.sc: Likewise.
294 * scripttempl/elfi370.sc: Likewise.
295 * scripttempl/elfm68hc11.sc: Likewise.
296 * scripttempl/elfm68hc12.sc: Likewise.
297 * scripttempl/elfxgate.sc: Likewise.
298 * scripttempl/i386beos.sc: Likewise.
299 * scripttempl/i386go32.sc: Likewise.
300 * scripttempl/ip2k.sc: Likewise.
301 * scripttempl/iq2000.sc: Likewise.
302 * scripttempl/mep.sc: Likewise.
303 * scripttempl/mmo.sc: Likewise.
304 * scripttempl/v850.sc: Likewise.
305 * scripttempl/xstormy16.sc: Likewise.
307 2012-06-28 H.J. Lu <hongjiu.lu@intel.com>
309 * ldlang.c (update_wild_statements): Remove redundant statement.
311 2012-06-25 Alan Modra <amodra@gmail.com>
313 * ldlang.c (load_symbols): Close file and set flags.loaded
314 after parsing script file.
315 (open_input_bfds): Don't segv on closed script.
317 2012-06-24 H.J. Lu <hongjiu.lu@intel.com>
319 * configure.tgt: Enable elf_k1om for x86_64-*-linux-gnux32.
320 Remove x32 in tdir_i386linux and tdir_elf_i386.
322 2012-06-22 Roland McGrath <mcgrathr@google.com>
324 * NEWS: Mention __ehdr_start.
326 2012-06-21 Alan Modra <amodra@gmail.com>
328 * ldlang.c (lang_insert_orphan): Don't make __start_<sec> symbol
329 absolute, and remove unnecessary alignment.
331 2012-06-16 Alan Modra <amodra@gmail.com>
333 * ldlang.h (lang_output_section_statement_type): Add after_end field.
334 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
335 (section_for_dot): Declare.
336 * ldlang.c (lang_size_sections_1): Correct comment.
337 (current_section): Move earlier.
338 (current_assign, prefer_next_section): New static vars.
339 (lang_do_assignments_1): Add found_end param. Detect _end
340 assignment to set found_end. Set os->after_end. Set above statics.
341 (lang_do_assignments): Adjust lang_do_assignments_1 call. Init
343 (section_for_dot): New function.
344 (lang_set_startof): Don't make an absolute symbol.
345 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
346 * ldexp.c (new_rel_from_abs): Use section_for_dot.
347 * emultempl/lnk960.em (symbol_at_beginning_of): New function.
348 (symbol_at_end_of): Likewise.
349 (lnk960_after_allocation): Use them.
350 * scripttempl/elf.sc: Precede OTHER_GOT_SYMBOLS with . = .; and
351 likewise before __bss_start.
353 2012-06-14 H.J. Lu <hongjiu.lu@intel.com>
355 * plugin.c (set_tv_header): Handle link_info.pie.
357 2012-06-11 Alan Modra <amodra@gmail.com>
360 * ldexp.c (fold_name <SIZEOF, ALIGNOF>): Allow forward section
362 * emulparams/elf32_x86_64.sh (SEPARATE_GOTPLT): Depend on size of
364 * emulparams/elf32mb_linux.sh (SEPARATE_GOTPLT): Likewise.
365 * emulparams/elf32tilegx.sh (SEPARATE_GOTPLT): Likewise.
366 * emulparams/elf32tilepro.sh (SEPARATE_GOTPLT): Likewise.
367 * emulparams/elf64tilegx.sh (SEPARATE_GOTPLT): Likewise.
368 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Likewise.
369 * emulparams/elf_k1om.sh (SEPARATE_GOTPLT): Likewise.
370 * emulparams/elf_l1om.sh (SEPARATE_GOTPLT): Likewise.
371 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Likewise.
373 2012-06-07 Georg-Johann Lay <avr@gjlay.de>
376 * scripttempl/avr.sc (.data): Keep it.
378 2012-06-02 Andreas Schwab <schwab@linux-m68k.org>
380 * Makefile.am (TEXINFO_TEX): Remove $(top_srcdir) prefix.
381 * Makefile.in: Regenerate.
383 2012-05-30 Alan Modra <amodra@gmail.com>
385 * ldlang.h (lang_output_section_statement_type): Rename
386 "section_relative_symbol" field to "update_dot".
387 * ldlang.c: Update all uses.
388 (strip_excluded_output_sections): Don't test update_dot_tree here..
389 (lang_leave_overlay): ..set update_dot here.
391 2012-05-26 Alan Modra <amodra@gmail.com>
393 * ldlex.h (enum option_values): Move from..
395 * emultempl/ppc32elf.em: Include ldlex.h.
396 (PARSE_AND_LIST_ARGS_CASES): Disable optimisations when
397 --traditional-format.
398 * emultempl/ppc64elf.em: Likewise.
400 2012-05-25 Alan Modra <amodra@gmail.com>
403 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Handle
404 multiple .eh_frame sections attached to bfd.
406 2012-05-23 Cary Coutant <ccoutant@google.com>
408 * scripttempl/armbpabi.sc: Match .data.rel.ro.* sections more
409 carefully. Fix typo where .rela.data.rel.ro matches
411 * scripttempl/mep.sc: Likewise.
412 * scripttempl/elf.sc: Match .data.rel.ro.* sections more carefully.
413 * scripttempl/elf64hppa.sc: Likewise.
414 * scripttempl/elfxtensa.sc: Likewise.
416 2012-05-17 Daniel Richard G. <skunk@iskunk.org>
417 Nick Clifton <nickc@redhat.com>
420 * configure.in: Add check that sysdep.h has been included before
421 any system header files.
422 * configure: Regenerate.
423 * config.in: Regenerate.
424 * sysdep.h: Generate an error if included before config.h.
426 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
428 * emultempl/m68hc1xelf.em (hook_in_stub): Pass proper `bfd'
429 as the first argument for `bfd_get_section_name'.
431 2012-05-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
434 * emultempl/elf32.em: Include *-*-gnu* targets in ld.so.conf
437 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
439 * NEWS: Mention the support for S12X processors.
441 2012-05-14 James Lemke <jwlemke@codesourcery.com>
443 * ldlang.c (walk_wild_consider_section): Don't copy section_flag_list.
445 (walk_wild_section_general): Pass section_flag_list to callback.
446 (lang_add_section): Add sflag_list parm.
447 Move out logic to keep / omit a section & call bfd_lookup_section_flags.
448 (output_section_callback_fast): Add sflag_list parm.
449 Add new parm to lang_add_section calls.
450 (output_section_callback): Likewise.
451 (check_section_callback): Add sflag_list parm.
452 (lang_place_orphans): Add new parm to lang_add_section calls.
453 (gc_section_callback): Add sflag_list parm.
454 (find_relro_section_callback): Likewise.
455 * ldlang.h (callback_t): Add flag_info parm.
456 (lang_add_section): Add sflag_list parm.
457 * emultempl/armelf.em (elf32_arm_add_stub_section):
458 Add lang_add_section parm.
459 * emultempl/beos.em (gld*_place_orphan): Likewise.
460 * emultempl/elf32.em (gld*_place_orphan): Likewise.
461 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
462 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
463 * emultempl/mipself.em (mips_add_stub_section): Likewise.
464 * emultempl/mmo.em (mmo_place_orphan): Likewise.
465 * emultempl/pe.em (gld_*_place_orphan): Likewise.
466 * emultempl/pep.em (gld_*_place_orphan): Likewise.
467 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
468 * emultempl/spuelf.em (spu_place_special_section): Likewise.
469 * emultempl/vms.em (vms_place_orphan): Likewise.
471 2012-05-14 Catherine Moore <clm@codesourcery.com>
473 * NEWS: Mention PowerPC VLE port.
475 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
478 * configure.in: Invoke ACX_HEADER_STRING.
479 * configure: Regenerate.
480 * config.in: Regenerate.
481 * sysdep.h: If STRINGS_WITH_STRING is defined then include both
482 string.h and strings.h.
484 2012-05-08 Alan Modra <amodra@gmail.com>
486 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
487 LC and LANG environment vars.
488 * Makefile.in: Regenerate.
490 2012-05-07 Tristan Gingold <gingold@adacore.com>
492 * pe-dll.c (udef_table): Make it static.
494 2012-05-05 Alan Modra <amodra@gmail.com>
496 * pe-dll.c (process_def_file_and_drectve): Use bfd_und_section_ptr.
497 (generate_reloc): Use bfd_abs_section_ptr.
499 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
501 * configure.tgt: Support x86_64-*-linux-gnux32.
503 2012-05-03 Sean Keys <skeys@ipdatasys.com>
505 * Makefile.am (ALL_EMULATIONS): Added new emulation for XGATE
507 * Makefile.in: Rebuild.
508 * configure.tgt: Recognize XGATE.
509 * scripttempl/elfxgate.sc: New file, mostly cloned from m68hc12.
510 * emulparams/xgateelf: New emulation, mostly cloned from m68hc12.
511 * NEWS: Mention new support.
513 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
515 Make bfd asserts cause linker errors.
516 * ldmain.c (default_bfd_assert_handler): New variable.
517 (ld_bfd_assert_handler): New function.
518 (main): Call bfd_set_assert_handler.
520 2012-04-24 Alan Modra <amodra@gmail.com>
522 * ldlang.c (size_input_section): Use sec_info_type rather than
523 usrdata->flags.just_syms.
524 * ldwrite.c (build_link_order): Likewise.
525 * emultempl/hppaelf.em (build_section_lists): Likewise.
526 * emultempl/ppc64elf.em (build_toc_list): Likewise.
527 * emultempl/armelf.em (build_section_lists): Likewise.
528 (after_allocation): Update for renamed sec_info_type value.
529 * emultempl/tic6xdsbt.em: Likewise.
531 2012-04-12 Roland McGrath <mcgrathr@google.com>
533 * configure.tgt (arm*-*-nacl*, arm*b-*-nacl*): Handle them.
534 * emulparams/armelf_nacl.sh: New file.
535 * emulparams/armelfb_nacl.sh: New file.
536 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelf_nacl.c
537 and earmelfb_nacl.c here.
538 (earmelf_nacl.c, earmelfb_nacl.c): New targets.
539 * Makefile.in: Regenerated.
541 2012-04-11 Tristan Gingold <gingold@adacore.com>
543 * scripttempl/ia64vms.sc: New file.
544 * emultempl/vms.em (_before_parse): Support for ia64.
545 (elf64-ia64-vms): New fragment for ia64.
546 * emulparams/elf64_ia64_vms.sh: New file.
547 * configure.tgt (ia64-*-*vms*): Add.
548 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64_ia64_vms.c
549 (eelf64_ia64_vms.c): New rule.
550 * Makefile.in: Regenerate.
552 2012-04-06 Roland McGrath <mcgrathr@google.com>
554 * configure.in (AC_CHECK_HEADERS): Add locale.h.
555 * config.in: Regenerate.
556 * configure: Regenerate.
558 2012-04-05 Nick Clifton <nickc@redhat.com>
560 * configure.in (AC_CHECK_FUNCS): Add setlocale.
561 (AM_LC_MESSAGES): Add.
562 * aclocal.m4: Regenerate.
563 * config.in: Regenerate.
564 * configure: Regenerate.
566 2012-04-03 Roland McGrath <mcgrathr@google.com>
568 * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them.
569 * emulparams/elf_nacl.sh: New file.
570 * emulparams/elf_i386_nacl.sh: New file.
571 * emulparams/elf32_x86_64_nacl.sh: New file.
572 * emulparams/elf_x86_64_nacl.sh: New file.
573 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here.
574 (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and
575 eelf_x86_64_nacl.c here.
576 (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c):
578 * Makefile.in: Regenerated.
580 * scripttempl/elf.sc: Handle SEPARATE_CODE cases.
582 2012-04-02 Mike Frysinger <vapier@gentoo.org>
584 * ldmisc.c (vfinfo): Assign new local str to fmt. Delete
585 putc call. If str and fmt are different, call fwrite on
588 2012-03-30 Nick Clifton <nickc@redhat.com>
590 * po/vi.po: Updated Vietnamese translation.
592 2012-03-27 Roland McGrath <mcgrathr@google.com>
594 * configure.in: Set want64 on a 64-bit host regardless of
595 --enable-targets=all.
596 * configure: Regenerated.
598 2012-03-26 Tristan Gingold <gingold@adacore.com>
600 * lexsup.c (parse_args): Add a missing '\n'.
602 2012-03-25 Alan Modra <amodra@gmail.com>
604 * ldemul.c (before_allocation_default): Revert last change.
605 * ldlang.c (lang_add_section): Likewise.
606 (strip_excluded_output_sections): Don't strip output sections with
607 user input sections when emitrelocations, unless all are SEC_EXCLUDE.
609 2012-03-23 Alan Modra <amodra@gmail.com>
611 * ldemul.c (before_allocation_default): When emitrelocations,
612 don't strip sections..
613 * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
615 2012-03-14 Kai Tietz <ktietz@redhat.com>
616 Pascal Obry <pascal@obry.net>
618 * pe-dll.c (found_sym): New static variable.
619 (undef_count): Likewise.
620 (key_value): New structure.
621 (undef_sort_cmp): Compare routine for qsort/bsearch.
622 (pe_find_cdecl_alias_match): Add new argument.
623 (pe_undef_alias_cdecl_match): Removed.
624 (pe_undef_count): New helper routine.
625 (pe_create_undef_table): Likewise.
626 (pe_process_import_defs): Use pe_create_undef_table and
627 new pe_undef_alias_cdecl_match function.
629 2012-03-14 Alan Modra <amodra@gmail.com>
632 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
634 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
635 discarding result, for side effects. Fix typo in error message.
637 2012-03-08 Tristan Gingold <gingold@adacore.com>
639 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
640 (exp_print_token): Constify.
642 2012-03-08 Alan Modra <amodra@gmail.com>
645 * ldfile.c (is_sysrooted_pathname): Remove notsame param.
646 (ldfile_add_library_path): Don't set sysrooted flag.
647 (ldfile_open_file_search): Likewise, and don't copy them.
648 (try_open): Delete exten and code handling such. Add sysrooted
649 param and return whether path is in sysroot.
650 (ldfile_find_command_file): Delete extend param. Add sysrooted
651 param. Rename local var. Update try_open calls.
652 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
653 * ldfile.h (search_dirs_type): Remove sysrooted field.
654 * ldlang.c (new_afile): Always set sysrooted from input_flags.
655 (load_symbols): Don't set input_flags.sysrooted.
656 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
658 * ldlex.h (lex_push_file): Update prototype.
659 * ldlex.l (sysrooted_stack): New array.
660 (EOF): Pop input_flags.sysrooted.
661 (lex_push_file): Add sysrooted param. Save and set
662 input_flags.sysrooted.
664 2012-03-06 Alan Modra <amodra@gmail.com>
666 * ldlang.h (struct lang_input_statement_flags): New, extract from..
667 (lang_input_statement_type): ..here. New field "flags".
668 (input_flags): Declare.
669 (missing_file): Delete.
670 * ldmain.h (whole_archive): Delete.
671 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
672 * ld.h (ld_config_type <dynamic_link>): Delete.
673 * ldmain.c (whole_archive): Delete.
674 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
675 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
676 (input_flags): New variable. Replace all uses of config.dynamic_link,
677 missing_file, ldlang_sysrooted_script, whole_archive,
678 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
680 * ldfile.c: Likewise.
681 * ldgram.y: Likewise.
682 * ldmain.c: Likewise.
683 * ldwrite.c: Likewise.
684 * lexsup.c: Likewise.
685 * plugin.c: Likewise.
686 * emultempl/aix.em: Likewise.
687 * emultempl/armelf.em: Likewise.
688 * emultempl/elf32.em: Likewise.
689 * emultempl/hppaelf.em: Likewise.
690 * emultempl/linux.em: Likewise.
691 * emultempl/pe.em: Likewise.
692 * emultempl/pep.em: Likewise.
693 * emultempl/ppc64elf.em: Likewise.
694 * emultempl/scoreelf.em: Likewise.
695 * emultempl/spuelf.em: Likewise.
696 * emultempl/sunos.em: Likewise.
697 * emultempl/vms.em: Likewise.
698 * ldlang.c (new_afile): Use memset to init zero fields.
699 (load_symbols): Simplify save and restore of flags around command
701 * ldfile.c (is_sysrooted_pathname): Tidy.
703 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
705 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
706 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
707 replacing trailing "-*" with "*".
709 2012-02-25 Walter Lee <walt@tilera.com>
711 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
712 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
713 (eelf32tilegx_be.c): Add rule to build this file.
714 (eelf64tilegx_be.c): Ditto.
715 * Makefile.in: Regenerate.
716 * configure.tgt (tilegx-*-*): Support big endian.
718 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
719 (BIG_OUTPUT_FORMAT): Define.
720 (LITTLE_OUTPUT_FORMAT): Define.
721 * emulparams/elf32tilegx_be.sh: New.
722 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
723 (BIG_OUTPUT_FORMAT): Define.
724 (LITTLE_OUTPUT_FORMAT): Define.
725 * emulparams/elf64tilegx_be.sh: New.
727 2012-02-24 Kai Tietz <ktietz@redhat.com>
730 * deffilep.y (keyword_as_name): Disable LIBRARY
733 2012-02-22 Alan Modra <amodra@gmail.com>
736 * ldlang.c (lang_process): Rerun lang_do_assignments before
737 starting garbage collection.
738 * ldexp.c (fold_name): Generate a reloc for defined symbols
739 found without an associated output section during the mark phase.
740 (exp_fold_tree_1): Continue processing an expression, even if we
741 are unable to fold it, if we are in the first two evaluation
743 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
745 2012-02-19 Kai Tietz <ktietz@redhat.com>
747 * deffilep.y (cmp_import_elem): Sort first by module name.
748 * pe-dll.c (process_def_file_and_drectve): Free strings
749 from removed export-element.
750 (add_bfd_to_link): Optimize loop on import-elements and lower
752 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
755 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
757 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
758 temporary variable node used for NULL argument.
760 2012-02-18 Alan Modra <amodra@gmail.com>
763 * ld.h (parsing_defsym): Delete.
764 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
765 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
766 exp_get_abs_int): Add tree arg for %S in error messages. Don't
768 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
769 type.filename from sub-tree.
770 (exp_trinop): Likewise, and use "cond" rather than "lhs".
771 * ldexp.h (node_type): Add filename field to struct.
772 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
773 * ldfile.h (ldfile_input_filename): Delete.
774 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
775 %S in error messages.
776 * ldemul.c (syslib_default, hll_default): Likewise.
777 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
778 lang_get_regions, lang_new_phdr): Likewise.
779 (lang_size_sections_1): Pass addr_tree for %S.
780 * ldlex.h (lex_redirect): Update prototype.
781 (ldlex_filename): Declare.
782 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
783 (lex_redirect): Add fake_filename and count params. Push
784 fake_filename to file_name_stack and init lineno from count.
785 (ldlex_filename): New function.
786 (lex_warn_invalid): Use above.
787 * ldmain.c (main): Update lex_redirect call.
788 * ldmisc.c (vfinfo <%S>): Take file name and line number from
789 etree_type arg, or use current if arg is NULL.
790 * lexsup.c (parsing_defsym): Delete.
791 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
793 2012-02-13 Kai Tietz <ktietz@redhat.com>
795 * deffilep.y (find_export_in_list): Set is_indent for
796 first or last element, if identical.
797 (find_import_in_list): Likewise.
799 2012-02-11 Kai Tietz <ktietz@redhat.com>
801 * deffilep.y (%union): New type id_const.
802 (opt_name2): New rule.
803 (keyword_as_name): New rule.
804 (dot_name): Replaced by opt_name2 rule.
805 (opt_name): Adjust rule.
806 (opt_equal_name): Likewise.
808 2012-02-11 Pascal Obry <pascal@obry.net>
810 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
812 (process_def_file_and_drectve): Maintain sorting of exports table
813 after stripping leading @ signs.
815 2012-02-09 Alan Modra <amodra@gmail.com>
817 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
819 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
822 * emulparams/elf32_x86_64.sh: Remove NOP.
823 * emulparams/elf_i386.sh: Likewise.
824 * emulparams/elf_i386_be.sh: Likewise.
825 * emulparams/elf_i386_ldso.sh: Likewise.
826 * emulparams/elf_i386_vxworks.sh: Likewise.
827 * emulparams/elf_k1om.sh: Likewise.
828 * emulparams/elf_l1om.sh: Likewise.
829 * emulparams/elf_x86_64.sh: Likewise.
831 * ldlang.c (zero_fill): Initialized to 0.
833 * ldwrite.c (build_link_order): Set data size to linker odrder
834 size when they are the same.
836 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
838 2012-01-17 Alan Modra <amodra@gmail.com>
840 * ldver.c (ldversion): Update copyright message year.
842 2012-01-15 Alan Modra <amodra@gmail.com>
845 * ldlang.c (lang_process): Don't reopen all files, just those
846 newly added by plugin.
848 2012-01-11 Alan Modra <amodra@gmail.com>
850 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
851 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
852 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
854 (plt_thread_safe, plt_stub_align): New vars.
855 (gld${EMULATION_NAME}_after_allocation): Pass them to
856 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
857 * ld.texinfo: Document new command line options, and an old
860 2012-01-09 Roland McGrath <mcgrathr@google.com>
862 * configure.in: Use AM_ZLIB.
863 * configure: Regenerated.
865 For older changes see ChangeLog-2011
871 version-control: never