1 2012-09-19 Steve Ellcey <sellcey@mips.com>
3 * configure.tgt: Add mips*-mti-elf* target.
5 2012-09-17 Alan Modra <amodra@gmail.com>
7 * ld.texinfo (Expression Section): Correct description of
8 conversions for a binary operation involving an absolute symbol
11 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
13 * configure: Regenerate.
15 2012-09-13 Anthony Green <green@moxielogic.com>
17 * emulparams/elf32moxie.sh (BIG_OUTPUT_FORMAT,
18 LITTLE_OUTPUT_FORMAT): Define.
19 (OUTPUT_FORMAT): Change to elf32-bigmoxie.
22 2012-09-12 DJ Delorie <dj@redhat.com>
24 * emulparams/elf32rx.sh (OTHER_READONLY_SECTIONS): Add W_* sections.
26 2012-09-10 Matthias Klose <doko@ubuntu.com>
28 * config.in: Disable sanity check for kfreebsd.
30 2012-09-10 H.J. Lu <hongjiu.lu@intel.com>
32 * configure: Regenerated.
34 2012-09-10 Iain Sandoe <iain@codesourcery.com>
35 Alan Modra <amodra@gmail.com>
37 * configure.tgt (powerpc-*-elf, et al): Define targ_extra_libpath.
39 (powerpcle-*-elf, et al): Likewise. Correct targ_extra_emuls.
41 2012-09-10 Iain Sandoe <iain@codesourcery.com>
43 * configure.tgt (powerpc-*-elf, et al): Define targ64_extra_emuls
44 and targ64_extra_libpath.
45 (powerpcle-*-elf, et al): Likewise.
47 2012-09-09 Hans-Peter Nilsson <hp@bitrange.com>
49 * emultempl/mmo.em (mmo_place_orphan): Rewrite to also attach
50 orphan sections to .data and .bss output sections, not just .text.
51 When giving up on finding a suitable output section, attach to any
52 output section other than .MMIX.reg_contents, if it exists.
53 * scripttempl/mmo.sc: Move output debug sections to just before
54 .MMIX.reg_contents. Add .gnu.attributes. Add new . = . NOP
55 assignments and move end-of-section provide-symbols after them
56 to force the end-of-section symbols to the address after orphan
57 placement. Add SORT_NONE to .init and .fini sections.
59 2012-08-30 H.J. Lu <hongjiu.lu@intel.com>
62 * scripttempl/elf.sc: Also provide __executable_start for PIE.
64 2012-08-17 Kai Tietz <ktietz@redhat.com>
67 * scripttempl/pe.sc: Add _etext symbol.
69 2012-08-14 Nick Clifton <nickc@redhat.com>
71 * configure.in (ALL_LINGUGAS): Add uk.
72 * configure: Regenerate.
73 * po/uk.po: New Ukranian translation.
75 2012-08-13 Ian Bolton <ian.bolton@arm.com>
76 Laurent Desnogues <laurent.desnogues@arm.com>
77 Jim MacArthur <jim.macarthur@arm.com>
78 Marcus Shawcroft <marcus.shawcroft@arm.com>
79 Nigel Stephens <nigel.stephens@arm.com>
80 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
81 Richard Earnshaw <rearnsha@arm.com>
82 Sofiane Naci <sofiane.naci@arm.com>
83 Tejas Belagod <tejas.belagod@arm.com>
84 Yufeng Zhang <yufeng.zhang@arm.com>
86 * Makefile.am: Add AArch64.
87 * Makefile.in: Regenerate.
88 * configure.tgt: Add AArch64.
89 * emulparams/aarch64elf.sh: New file.
90 * emulparams/aarch64elfb.sh: New file.
91 * emulparams/aarch64linux.sh: New file.
92 * emulparams/aarch64linuxb.sh: New file.
93 * emultempl/aarch64elf.em: New file.
94 * NEWS: Mention the new feature.
96 2012-08-09 Nick Clifton <nickc@redhat.com>
98 * po/vi.po: Updated Vietnamese translation.
100 2012-08-07 Daniel Green <venix1@gmail.com>
102 * scripttempl/pe.sc (R_TLS): Add .tls$AAA and .tls$ZZZ.
103 * scripttempl/pep.sc (R_TLS): Add .tls$AAA and .tls$ZZZ.
105 2012-08-07 Nick Clifton <nickc@redhat.com>
107 * po/ja.po: Updated Japanese translation.
109 2012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
111 * emulparams/elf32bmip.sh: Make _gp hidden.
112 * emulparams/elf32bmipn32-defs.sh: Likewise.
113 * emulparams/elf32mipswindiss.sh: Likewise.
114 * scripttempl/mips.sc: Likewise.
116 2012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
118 * ldexp.h (etree_union): Add defsym member to the assign member
120 (exp_assign): Add hidden argument to prototype.
121 * ldexp.c (exp_fold_tree_1): Use the defsym member to handle
123 (exp_assop): Add defsym argument, initialize the defsym member
124 of the assign structure.
125 (exp_assign): Handle hidden symbols.
126 (exp_defsym): Update to use the defsym argument to exp_assop.
127 (exp_provide): Update to handle the defsym argument to exp_assop.
128 * ldlex.l (HIDDEN): New token.
129 * ldgram.y (HIDDEN): Likewise.
130 (assignment, section): Update calls to exp_assign.
131 * ldctor.c (ldctor_build_sets): Likewise.
132 * mri.c (mri_format): Likewise.
133 * ldlang.c (lang_insert_orphan, lang_leave_overlay): Likewise.
134 (open_input_bfds): Remove --defsym symbols special case.
135 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Update
137 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
138 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
139 * emultempl/spuelf.em (spu_place_special_section): Likewise.
140 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets):
142 * ld.texinfo (Assigning Values to Symbols): Add HIDDEN.
143 (HIDDEN): New subsection.
145 2012-07-31 H.J. Lu <hongjiu.lu@intel.com>
148 * ldlang.c (wild_sort): Properly handle by_none.
150 * scripttempl/elf.sc: Add SORT_NONE to .init and .fini sections.
151 * scripttempl/elf32msp430.sc: Likewise.
152 * scripttempl/elf32msp430_3.sc: Likewise.
153 * scripttempl/elfd10v.sc: Likewise.
154 * scripttempl/elfd30v.sc: Likewise.
155 * scripttempl/elfxtensa.sc: Likewise.
157 2012-07-30 Nick Clifton <nickc@redhat.com>
159 * po/ld.pot: Updated template.
160 * po/bg.po: Updated Bulgarian translation.
161 * po/es.po: Updated Spanish translation.
162 * po/fi.po: Updated Finnish translation.
164 2012-07-27 Mike Frysinger <vapier@gentoo.org>
166 * configure.in (BFD_VERSION): Run bfd/configure --version and
167 parse the output of that.
168 * configure: Regenerate.
170 2012-07-27 Tristan Gingold <gingold@adacore.com>
172 * NEWS: Add marker for 2.23.
174 2012-07-24 Jan Waclawek <konfera@efton.sk>
177 * emultempl/avrelf.em (avr_elf_after_allocation): Call
178 elf32_avr_size_stubs with is_prealloc_run as TRUE.
180 2012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
182 * emulparams/elf_s390.sh (IREL_IN_PLT): Define.
183 * emulparams/elf64_s390.sh (IREL_IN_PLT): Define.
185 2012-07-13 Nick Clifton <nickc@redhat.com>
188 * ldmain.c (trace_file_tries): Rename to 'verbose'.
189 * ldfile.c: Likewise.
190 * ldlang.c: Likewise.
191 * ldmain.h: Likewise.
192 * lexsup.c: Likewise.
193 * emultempl/elf32.em: Likewise.
194 * emultemp/spuelf.em: Likewise.
195 * pe-dll.c (pe_dll_generate_implib): Only print creation message
198 2012-07-10 H.J. Lu <hongjiu.lu@intel.com>
201 * NEWS: Mention SORT_NONE.
203 * ld.h (sort_type): Add by_none.
205 * ld.texinfo: Document SORT_NONE.
207 * ldgram.y: Handle SORT_NONE.
209 * ldlang.c (update_wild_statements): Handle by_none. Don't
210 sort .init/.fini sections.
212 * ldlex.l: Add SORT_NONE.
214 2012-07-02 H.J. Lu <hongjiu.lu@intel.com>
216 * ld.texinfo: Replace __end_SECNAME with __stop_SECNAME.
218 2012-06-29 Nick Clifton <nickc@redhat.com>
220 * scripttempl/alphavms.sc: Add .debug_macro section.
221 * scripttempl/elf.sc: Likewise.
222 * scripttempl/elf64hppa.sc: Likewise.
223 * scripttempl/elf_chaos.sc: Likewise.
224 * scripttempl/elfxtensa.sc: Likewise.
225 * scripttempl/ia64vms.sc: Likewise.
227 * scripttempl/armbpabi.sc: Add .debug_pubtypes, .debug_ranges and
228 .debug_macro sections.
229 * scripttempl/avr.sc: Likewise.
230 * scripttempl/elf32cr16.sc: Likewise.
231 * scripttempl/elf32crx.sc: Likewise.
232 * scripttempl/elf32msp430.sc: Likewise.
233 * scripttempl/elf32msp430_3.sc: Likewise.
234 * scripttempl/elf32sh-symbian.sc: Likewise.
235 * scripttempl/elfd30v.sc: Likewise.
236 * scripttempl/elfi370.sc: Likewise.
237 * scripttempl/elfm68hc11.sc: Likewise.
238 * scripttempl/elfm68hc12.sc: Likewise.
239 * scripttempl/elfxgate.sc: Likewise.
240 * scripttempl/i386beos.sc: Likewise.
241 * scripttempl/i386go32.sc: Likewise.
242 * scripttempl/ip2k.sc: Likewise.
243 * scripttempl/iq2000.sc: Likewise.
244 * scripttempl/mep.sc: Likewise.
245 * scripttempl/mmo.sc: Likewise.
246 * scripttempl/v850.sc: Likewise.
247 * scripttempl/xstormy16.sc: Likewise.
249 2012-06-28 H.J. Lu <hongjiu.lu@intel.com>
251 * ldlang.c (update_wild_statements): Remove redundant statement.
253 2012-06-25 Alan Modra <amodra@gmail.com>
255 * ldlang.c (load_symbols): Close file and set flags.loaded
256 after parsing script file.
257 (open_input_bfds): Don't segv on closed script.
259 2012-06-24 H.J. Lu <hongjiu.lu@intel.com>
261 * configure.tgt: Enable elf_k1om for x86_64-*-linux-gnux32.
262 Remove x32 in tdir_i386linux and tdir_elf_i386.
264 2012-06-22 Roland McGrath <mcgrathr@google.com>
266 * NEWS: Mention __ehdr_start.
268 2012-06-21 Alan Modra <amodra@gmail.com>
270 * ldlang.c (lang_insert_orphan): Don't make __start_<sec> symbol
271 absolute, and remove unnecessary alignment.
273 2012-06-16 Alan Modra <amodra@gmail.com>
275 * ldlang.h (lang_output_section_statement_type): Add after_end field.
276 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
277 (section_for_dot): Declare.
278 * ldlang.c (lang_size_sections_1): Correct comment.
279 (current_section): Move earlier.
280 (current_assign, prefer_next_section): New static vars.
281 (lang_do_assignments_1): Add found_end param. Detect _end
282 assignment to set found_end. Set os->after_end. Set above statics.
283 (lang_do_assignments): Adjust lang_do_assignments_1 call. Init
285 (section_for_dot): New function.
286 (lang_set_startof): Don't make an absolute symbol.
287 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
288 * ldexp.c (new_rel_from_abs): Use section_for_dot.
289 * emultempl/lnk960.em (symbol_at_beginning_of): New function.
290 (symbol_at_end_of): Likewise.
291 (lnk960_after_allocation): Use them.
292 * scripttempl/elf.sc: Precede OTHER_GOT_SYMBOLS with . = .; and
293 likewise before __bss_start.
295 2012-06-14 H.J. Lu <hongjiu.lu@intel.com>
297 * plugin.c (set_tv_header): Handle link_info.pie.
299 2012-06-11 Alan Modra <amodra@gmail.com>
302 * ldexp.c (fold_name <SIZEOF, ALIGNOF>): Allow forward section
304 * emulparams/elf32_x86_64.sh (SEPARATE_GOTPLT): Depend on size of
306 * emulparams/elf32mb_linux.sh (SEPARATE_GOTPLT): Likewise.
307 * emulparams/elf32tilegx.sh (SEPARATE_GOTPLT): Likewise.
308 * emulparams/elf32tilepro.sh (SEPARATE_GOTPLT): Likewise.
309 * emulparams/elf64tilegx.sh (SEPARATE_GOTPLT): Likewise.
310 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Likewise.
311 * emulparams/elf_k1om.sh (SEPARATE_GOTPLT): Likewise.
312 * emulparams/elf_l1om.sh (SEPARATE_GOTPLT): Likewise.
313 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Likewise.
315 2012-06-07 Georg-Johann Lay <avr@gjlay.de>
318 * scripttempl/avr.sc (.data): Keep it.
320 2012-06-02 Andreas Schwab <schwab@linux-m68k.org>
322 * Makefile.am (TEXINFO_TEX): Remove $(top_srcdir) prefix.
323 * Makefile.in: Regenerate.
325 2012-05-30 Alan Modra <amodra@gmail.com>
327 * ldlang.h (lang_output_section_statement_type): Rename
328 "section_relative_symbol" field to "update_dot".
329 * ldlang.c: Update all uses.
330 (strip_excluded_output_sections): Don't test update_dot_tree here..
331 (lang_leave_overlay): ..set update_dot here.
333 2012-05-26 Alan Modra <amodra@gmail.com>
335 * ldlex.h (enum option_values): Move from..
337 * emultempl/ppc32elf.em: Include ldlex.h.
338 (PARSE_AND_LIST_ARGS_CASES): Disable optimisations when
339 --traditional-format.
340 * emultempl/ppc64elf.em: Likewise.
342 2012-05-25 Alan Modra <amodra@gmail.com>
345 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Handle
346 multiple .eh_frame sections attached to bfd.
348 2012-05-23 Cary Coutant <ccoutant@google.com>
350 * scripttempl/armbpabi.sc: Match .data.rel.ro.* sections more
351 carefully. Fix typo where .rela.data.rel.ro matches
353 * scripttempl/mep.sc: Likewise.
354 * scripttempl/elf.sc: Match .data.rel.ro.* sections more carefully.
355 * scripttempl/elf64hppa.sc: Likewise.
356 * scripttempl/elfxtensa.sc: Likewise.
358 2012-05-17 Daniel Richard G. <skunk@iskunk.org>
359 Nick Clifton <nickc@redhat.com>
362 * configure.in: Add check that sysdep.h has been included before
363 any system header files.
364 * configure: Regenerate.
365 * config.in: Regenerate.
366 * sysdep.h: Generate an error if included before config.h.
368 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
370 * emultempl/m68hc1xelf.em (hook_in_stub): Pass proper `bfd'
371 as the first argument for `bfd_get_section_name'.
373 2012-05-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
376 * emultempl/elf32.em: Include *-*-gnu* targets in ld.so.conf
379 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
381 * NEWS: Mention the support for S12X processors.
383 2012-05-14 James Lemke <jwlemke@codesourcery.com>
385 * ldlang.c (walk_wild_consider_section): Don't copy section_flag_list.
387 (walk_wild_section_general): Pass section_flag_list to callback.
388 (lang_add_section): Add sflag_list parm.
389 Move out logic to keep / omit a section & call bfd_lookup_section_flags.
390 (output_section_callback_fast): Add sflag_list parm.
391 Add new parm to lang_add_section calls.
392 (output_section_callback): Likewise.
393 (check_section_callback): Add sflag_list parm.
394 (lang_place_orphans): Add new parm to lang_add_section calls.
395 (gc_section_callback): Add sflag_list parm.
396 (find_relro_section_callback): Likewise.
397 * ldlang.h (callback_t): Add flag_info parm.
398 (lang_add_section): Add sflag_list parm.
399 * emultempl/armelf.em (elf32_arm_add_stub_section):
400 Add lang_add_section parm.
401 * emultempl/beos.em (gld*_place_orphan): Likewise.
402 * emultempl/elf32.em (gld*_place_orphan): Likewise.
403 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
404 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
405 * emultempl/mipself.em (mips_add_stub_section): Likewise.
406 * emultempl/mmo.em (mmo_place_orphan): Likewise.
407 * emultempl/pe.em (gld_*_place_orphan): Likewise.
408 * emultempl/pep.em (gld_*_place_orphan): Likewise.
409 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
410 * emultempl/spuelf.em (spu_place_special_section): Likewise.
411 * emultempl/vms.em (vms_place_orphan): Likewise.
413 2012-05-14 Catherine Moore <clm@codesourcery.com>
415 * NEWS: Mention PowerPC VLE port.
417 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
420 * configure.in: Invoke ACX_HEADER_STRING.
421 * configure: Regenerate.
422 * config.in: Regenerate.
423 * sysdep.h: If STRINGS_WITH_STRING is defined then include both
424 string.h and strings.h.
426 2012-05-08 Alan Modra <amodra@gmail.com>
428 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
429 LC and LANG environment vars.
430 * Makefile.in: Regenerate.
432 2012-05-07 Tristan Gingold <gingold@adacore.com>
434 * pe-dll.c (udef_table): Make it static.
436 2012-05-05 Alan Modra <amodra@gmail.com>
438 * pe-dll.c (process_def_file_and_drectve): Use bfd_und_section_ptr.
439 (generate_reloc): Use bfd_abs_section_ptr.
441 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
443 * configure.tgt: Support x86_64-*-linux-gnux32.
445 2012-05-03 Sean Keys <skeys@ipdatasys.com>
447 * Makefile.am (ALL_EMULATIONS): Added new emulation for XGATE
449 * Makefile.in: Rebuild.
450 * configure.tgt: Recognize XGATE.
451 * scripttempl/elfxgate.sc: New file, mostly cloned from m68hc12.
452 * emulparams/xgateelf: New emulation, mostly cloned from m68hc12.
453 * NEWS: Mention new support.
455 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
457 Make bfd asserts cause linker errors.
458 * ldmain.c (default_bfd_assert_handler): New variable.
459 (ld_bfd_assert_handler): New function.
460 (main): Call bfd_set_assert_handler.
462 2012-04-24 Alan Modra <amodra@gmail.com>
464 * ldlang.c (size_input_section): Use sec_info_type rather than
465 usrdata->flags.just_syms.
466 * ldwrite.c (build_link_order): Likewise.
467 * emultempl/hppaelf.em (build_section_lists): Likewise.
468 * emultempl/ppc64elf.em (build_toc_list): Likewise.
469 * emultempl/armelf.em (build_section_lists): Likewise.
470 (after_allocation): Update for renamed sec_info_type value.
471 * emultempl/tic6xdsbt.em: Likewise.
473 2012-04-12 Roland McGrath <mcgrathr@google.com>
475 * configure.tgt (arm*-*-nacl*, arm*b-*-nacl*): Handle them.
476 * emulparams/armelf_nacl.sh: New file.
477 * emulparams/armelfb_nacl.sh: New file.
478 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelf_nacl.c
479 and earmelfb_nacl.c here.
480 (earmelf_nacl.c, earmelfb_nacl.c): New targets.
481 * Makefile.in: Regenerated.
483 2012-04-11 Tristan Gingold <gingold@adacore.com>
485 * scripttempl/ia64vms.sc: New file.
486 * emultempl/vms.em (_before_parse): Support for ia64.
487 (elf64-ia64-vms): New fragment for ia64.
488 * emulparams/elf64_ia64_vms.sh: New file.
489 * configure.tgt (ia64-*-*vms*): Add.
490 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64_ia64_vms.c
491 (eelf64_ia64_vms.c): New rule.
492 * Makefile.in: Regenerate.
494 2012-04-06 Roland McGrath <mcgrathr@google.com>
496 * configure.in (AC_CHECK_HEADERS): Add locale.h.
497 * config.in: Regenerate.
498 * configure: Regenerate.
500 2012-04-05 Nick Clifton <nickc@redhat.com>
502 * configure.in (AC_CHECK_FUNCS): Add setlocale.
503 (AM_LC_MESSAGES): Add.
504 * aclocal.m4: Regenerate.
505 * config.in: Regenerate.
506 * configure: Regenerate.
508 2012-04-03 Roland McGrath <mcgrathr@google.com>
510 * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them.
511 * emulparams/elf_nacl.sh: New file.
512 * emulparams/elf_i386_nacl.sh: New file.
513 * emulparams/elf32_x86_64_nacl.sh: New file.
514 * emulparams/elf_x86_64_nacl.sh: New file.
515 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here.
516 (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and
517 eelf_x86_64_nacl.c here.
518 (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c):
520 * Makefile.in: Regenerated.
522 * scripttempl/elf.sc: Handle SEPARATE_CODE cases.
524 2012-04-02 Mike Frysinger <vapier@gentoo.org>
526 * ldmisc.c (vfinfo): Assign new local str to fmt. Delete
527 putc call. If str and fmt are different, call fwrite on
530 2012-03-30 Nick Clifton <nickc@redhat.com>
532 * po/vi.po: Updated Vietnamese translation.
534 2012-03-27 Roland McGrath <mcgrathr@google.com>
536 * configure.in: Set want64 on a 64-bit host regardless of
537 --enable-targets=all.
538 * configure: Regenerated.
540 2012-03-26 Tristan Gingold <gingold@adacore.com>
542 * lexsup.c (parse_args): Add a missing '\n'.
544 2012-03-25 Alan Modra <amodra@gmail.com>
546 * ldemul.c (before_allocation_default): Revert last change.
547 * ldlang.c (lang_add_section): Likewise.
548 (strip_excluded_output_sections): Don't strip output sections with
549 user input sections when emitrelocations, unless all are SEC_EXCLUDE.
551 2012-03-23 Alan Modra <amodra@gmail.com>
553 * ldemul.c (before_allocation_default): When emitrelocations,
554 don't strip sections..
555 * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
557 2012-03-14 Kai Tietz <ktietz@redhat.com>
558 Pascal Obry <pascal@obry.net>
560 * pe-dll.c (found_sym): New static variable.
561 (undef_count): Likewise.
562 (key_value): New structure.
563 (undef_sort_cmp): Compare routine for qsort/bsearch.
564 (pe_find_cdecl_alias_match): Add new argument.
565 (pe_undef_alias_cdecl_match): Removed.
566 (pe_undef_count): New helper routine.
567 (pe_create_undef_table): Likewise.
568 (pe_process_import_defs): Use pe_create_undef_table and
569 new pe_undef_alias_cdecl_match function.
571 2012-03-14 Alan Modra <amodra@gmail.com>
574 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
576 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
577 discarding result, for side effects. Fix typo in error message.
579 2012-03-08 Tristan Gingold <gingold@adacore.com>
581 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
582 (exp_print_token): Constify.
584 2012-03-08 Alan Modra <amodra@gmail.com>
587 * ldfile.c (is_sysrooted_pathname): Remove notsame param.
588 (ldfile_add_library_path): Don't set sysrooted flag.
589 (ldfile_open_file_search): Likewise, and don't copy them.
590 (try_open): Delete exten and code handling such. Add sysrooted
591 param and return whether path is in sysroot.
592 (ldfile_find_command_file): Delete extend param. Add sysrooted
593 param. Rename local var. Update try_open calls.
594 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
595 * ldfile.h (search_dirs_type): Remove sysrooted field.
596 * ldlang.c (new_afile): Always set sysrooted from input_flags.
597 (load_symbols): Don't set input_flags.sysrooted.
598 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
600 * ldlex.h (lex_push_file): Update prototype.
601 * ldlex.l (sysrooted_stack): New array.
602 (EOF): Pop input_flags.sysrooted.
603 (lex_push_file): Add sysrooted param. Save and set
604 input_flags.sysrooted.
606 2012-03-06 Alan Modra <amodra@gmail.com>
608 * ldlang.h (struct lang_input_statement_flags): New, extract from..
609 (lang_input_statement_type): ..here. New field "flags".
610 (input_flags): Declare.
611 (missing_file): Delete.
612 * ldmain.h (whole_archive): Delete.
613 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
614 * ld.h (ld_config_type <dynamic_link>): Delete.
615 * ldmain.c (whole_archive): Delete.
616 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
617 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
618 (input_flags): New variable. Replace all uses of config.dynamic_link,
619 missing_file, ldlang_sysrooted_script, whole_archive,
620 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
622 * ldfile.c: Likewise.
623 * ldgram.y: Likewise.
624 * ldmain.c: Likewise.
625 * ldwrite.c: Likewise.
626 * lexsup.c: Likewise.
627 * plugin.c: Likewise.
628 * emultempl/aix.em: Likewise.
629 * emultempl/armelf.em: Likewise.
630 * emultempl/elf32.em: Likewise.
631 * emultempl/hppaelf.em: Likewise.
632 * emultempl/linux.em: Likewise.
633 * emultempl/pe.em: Likewise.
634 * emultempl/pep.em: Likewise.
635 * emultempl/ppc64elf.em: Likewise.
636 * emultempl/scoreelf.em: Likewise.
637 * emultempl/spuelf.em: Likewise.
638 * emultempl/sunos.em: Likewise.
639 * emultempl/vms.em: Likewise.
640 * ldlang.c (new_afile): Use memset to init zero fields.
641 (load_symbols): Simplify save and restore of flags around command
643 * ldfile.c (is_sysrooted_pathname): Tidy.
645 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
647 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
648 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
649 replacing trailing "-*" with "*".
651 2012-02-25 Walter Lee <walt@tilera.com>
653 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
654 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
655 (eelf32tilegx_be.c): Add rule to build this file.
656 (eelf64tilegx_be.c): Ditto.
657 * Makefile.in: Regenerate.
658 * configure.tgt (tilegx-*-*): Support big endian.
660 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
661 (BIG_OUTPUT_FORMAT): Define.
662 (LITTLE_OUTPUT_FORMAT): Define.
663 * emulparams/elf32tilegx_be.sh: New.
664 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
665 (BIG_OUTPUT_FORMAT): Define.
666 (LITTLE_OUTPUT_FORMAT): Define.
667 * emulparams/elf64tilegx_be.sh: New.
669 2012-02-24 Kai Tietz <ktietz@redhat.com>
672 * deffilep.y (keyword_as_name): Disable LIBRARY
675 2012-02-22 Alan Modra <amodra@gmail.com>
678 * ldlang.c (lang_process): Rerun lang_do_assignments before
679 starting garbage collection.
680 * ldexp.c (fold_name): Generate a reloc for defined symbols
681 found without an associated output section during the mark phase.
682 (exp_fold_tree_1): Continue processing an expression, even if we
683 are unable to fold it, if we are in the first two evaluation
685 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
687 2012-02-19 Kai Tietz <ktietz@redhat.com>
689 * deffilep.y (cmp_import_elem): Sort first by module name.
690 * pe-dll.c (process_def_file_and_drectve): Free strings
691 from removed export-element.
692 (add_bfd_to_link): Optimize loop on import-elements and lower
694 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
697 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
699 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
700 temporary variable node used for NULL argument.
702 2012-02-18 Alan Modra <amodra@gmail.com>
705 * ld.h (parsing_defsym): Delete.
706 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
707 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
708 exp_get_abs_int): Add tree arg for %S in error messages. Don't
710 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
711 type.filename from sub-tree.
712 (exp_trinop): Likewise, and use "cond" rather than "lhs".
713 * ldexp.h (node_type): Add filename field to struct.
714 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
715 * ldfile.h (ldfile_input_filename): Delete.
716 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
717 %S in error messages.
718 * ldemul.c (syslib_default, hll_default): Likewise.
719 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
720 lang_get_regions, lang_new_phdr): Likewise.
721 (lang_size_sections_1): Pass addr_tree for %S.
722 * ldlex.h (lex_redirect): Update prototype.
723 (ldlex_filename): Declare.
724 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
725 (lex_redirect): Add fake_filename and count params. Push
726 fake_filename to file_name_stack and init lineno from count.
727 (ldlex_filename): New function.
728 (lex_warn_invalid): Use above.
729 * ldmain.c (main): Update lex_redirect call.
730 * ldmisc.c (vfinfo <%S>): Take file name and line number from
731 etree_type arg, or use current if arg is NULL.
732 * lexsup.c (parsing_defsym): Delete.
733 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
735 2012-02-13 Kai Tietz <ktietz@redhat.com>
737 * deffilep.y (find_export_in_list): Set is_indent for
738 first or last element, if identical.
739 (find_import_in_list): Likewise.
741 2012-02-11 Kai Tietz <ktietz@redhat.com>
743 * deffilep.y (%union): New type id_const.
744 (opt_name2): New rule.
745 (keyword_as_name): New rule.
746 (dot_name): Replaced by opt_name2 rule.
747 (opt_name): Adjust rule.
748 (opt_equal_name): Likewise.
750 2012-02-11 Pascal Obry <pascal@obry.net>
752 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
754 (process_def_file_and_drectve): Maintain sorting of exports table
755 after stripping leading @ signs.
757 2012-02-09 Alan Modra <amodra@gmail.com>
759 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
761 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
764 * emulparams/elf32_x86_64.sh: Remove NOP.
765 * emulparams/elf_i386.sh: Likewise.
766 * emulparams/elf_i386_be.sh: Likewise.
767 * emulparams/elf_i386_ldso.sh: Likewise.
768 * emulparams/elf_i386_vxworks.sh: Likewise.
769 * emulparams/elf_k1om.sh: Likewise.
770 * emulparams/elf_l1om.sh: Likewise.
771 * emulparams/elf_x86_64.sh: Likewise.
773 * ldlang.c (zero_fill): Initialized to 0.
775 * ldwrite.c (build_link_order): Set data size to linker odrder
776 size when they are the same.
778 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
780 2012-01-17 Alan Modra <amodra@gmail.com>
782 * ldver.c (ldversion): Update copyright message year.
784 2012-01-15 Alan Modra <amodra@gmail.com>
787 * ldlang.c (lang_process): Don't reopen all files, just those
788 newly added by plugin.
790 2012-01-11 Alan Modra <amodra@gmail.com>
792 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
793 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
794 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
796 (plt_thread_safe, plt_stub_align): New vars.
797 (gld${EMULATION_NAME}_after_allocation): Pass them to
798 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
799 * ld.texinfo: Document new command line options, and an old
802 2012-01-09 Roland McGrath <mcgrathr@google.com>
804 * configure.in: Use AM_ZLIB.
805 * configure: Regenerated.
807 For older changes see ChangeLog-2011
813 version-control: never