1 2012-09-10 Iain Sandoe <iain@codesourcery.com>
3 * configure.tgt (powerpc-*-elf, et al): Define targ64_extra_emuls
4 and targ64_extra_libpath.
5 (powerpcle-*-elf, et al): Likewise.
7 2012-09-09 Hans-Peter Nilsson <hp@bitrange.com>
9 * emultempl/mmo.em (mmo_place_orphan): Rewrite to also attach
10 orphan sections to .data and .bss output sections, not just .text.
11 When giving up on finding a suitable output section, attach to any
12 output section other than .MMIX.reg_contents, if it exists.
13 * scripttempl/mmo.sc: Move output debug sections to just before
14 .MMIX.reg_contents. Add .gnu.attributes. Add new . = . NOP
15 assignments and move end-of-section provide-symbols after them
16 to force the end-of-section symbols to the address after orphan
17 placement. Add SORT_NONE to .init and .fini sections.
19 2012-08-30 H.J. Lu <hongjiu.lu@intel.com>
22 * scripttempl/elf.sc: Also provide __executable_start for PIE.
24 2012-08-17 Kai Tietz <ktietz@redhat.com>
27 * scripttempl/pe.sc: Add _etext symbol.
29 2012-08-14 Nick Clifton <nickc@redhat.com>
31 * configure.in (ALL_LINGUGAS): Add uk.
32 * configure: Regenerate.
33 * po/uk.po: New Ukranian translation.
35 2012-08-13 Ian Bolton <ian.bolton@arm.com>
36 Laurent Desnogues <laurent.desnogues@arm.com>
37 Jim MacArthur <jim.macarthur@arm.com>
38 Marcus Shawcroft <marcus.shawcroft@arm.com>
39 Nigel Stephens <nigel.stephens@arm.com>
40 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41 Richard Earnshaw <rearnsha@arm.com>
42 Sofiane Naci <sofiane.naci@arm.com>
43 Tejas Belagod <tejas.belagod@arm.com>
44 Yufeng Zhang <yufeng.zhang@arm.com>
46 * Makefile.am: Add AArch64.
47 * Makefile.in: Regenerate.
48 * configure.tgt: Add AArch64.
49 * emulparams/aarch64elf.sh: New file.
50 * emulparams/aarch64elfb.sh: New file.
51 * emulparams/aarch64linux.sh: New file.
52 * emulparams/aarch64linuxb.sh: New file.
53 * emultempl/aarch64elf.em: New file.
54 * NEWS: Mention the new feature.
56 2012-08-09 Nick Clifton <nickc@redhat.com>
58 * po/vi.po: Updated Vietnamese translation.
60 2012-08-07 Daniel Green <venix1@gmail.com>
62 * scripttempl/pe.sc (R_TLS): Add .tls$AAA and .tls$ZZZ.
63 * scripttempl/pep.sc (R_TLS): Add .tls$AAA and .tls$ZZZ.
65 2012-08-07 Nick Clifton <nickc@redhat.com>
67 * po/ja.po: Updated Japanese translation.
69 2012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
71 * emulparams/elf32bmip.sh: Make _gp hidden.
72 * emulparams/elf32bmipn32-defs.sh: Likewise.
73 * emulparams/elf32mipswindiss.sh: Likewise.
74 * scripttempl/mips.sc: Likewise.
76 2012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
78 * ldexp.h (etree_union): Add defsym member to the assign member
80 (exp_assign): Add hidden argument to prototype.
81 * ldexp.c (exp_fold_tree_1): Use the defsym member to handle
83 (exp_assop): Add defsym argument, initialize the defsym member
84 of the assign structure.
85 (exp_assign): Handle hidden symbols.
86 (exp_defsym): Update to use the defsym argument to exp_assop.
87 (exp_provide): Update to handle the defsym argument to exp_assop.
88 * ldlex.l (HIDDEN): New token.
89 * ldgram.y (HIDDEN): Likewise.
90 (assignment, section): Update calls to exp_assign.
91 * ldctor.c (ldctor_build_sets): Likewise.
92 * mri.c (mri_format): Likewise.
93 * ldlang.c (lang_insert_orphan, lang_leave_overlay): Likewise.
94 (open_input_bfds): Remove --defsym symbols special case.
95 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Update
97 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
98 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
99 * emultempl/spuelf.em (spu_place_special_section): Likewise.
100 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets):
102 * ld.texinfo (Assigning Values to Symbols): Add HIDDEN.
103 (HIDDEN): New subsection.
105 2012-07-31 H.J. Lu <hongjiu.lu@intel.com>
108 * ldlang.c (wild_sort): Properly handle by_none.
110 * scripttempl/elf.sc: Add SORT_NONE to .init and .fini sections.
111 * scripttempl/elf32msp430.sc: Likewise.
112 * scripttempl/elf32msp430_3.sc: Likewise.
113 * scripttempl/elfd10v.sc: Likewise.
114 * scripttempl/elfd30v.sc: Likewise.
115 * scripttempl/elfxtensa.sc: Likewise.
117 2012-07-30 Nick Clifton <nickc@redhat.com>
119 * po/ld.pot: Updated template.
120 * po/bg.po: Updated Bulgarian translation.
121 * po/es.po: Updated Spanish translation.
122 * po/fi.po: Updated Finnish translation.
124 2012-07-27 Mike Frysinger <vapier@gentoo.org>
126 * configure.in (BFD_VERSION): Run bfd/configure --version and
127 parse the output of that.
128 * configure: Regenerate.
130 2012-07-27 Tristan Gingold <gingold@adacore.com>
132 * NEWS: Add marker for 2.23.
134 2012-07-24 Jan Waclawek <konfera@efton.sk>
137 * emultempl/avrelf.em (avr_elf_after_allocation): Call
138 elf32_avr_size_stubs with is_prealloc_run as TRUE.
140 2012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
142 * emulparams/elf_s390.sh (IREL_IN_PLT): Define.
143 * emulparams/elf64_s390.sh (IREL_IN_PLT): Define.
145 2012-07-13 Nick Clifton <nickc@redhat.com>
148 * ldmain.c (trace_file_tries): Rename to 'verbose'.
149 * ldfile.c: Likewise.
150 * ldlang.c: Likewise.
151 * ldmain.h: Likewise.
152 * lexsup.c: Likewise.
153 * emultempl/elf32.em: Likewise.
154 * emultemp/spuelf.em: Likewise.
155 * pe-dll.c (pe_dll_generate_implib): Only print creation message
158 2012-07-10 H.J. Lu <hongjiu.lu@intel.com>
161 * NEWS: Mention SORT_NONE.
163 * ld.h (sort_type): Add by_none.
165 * ld.texinfo: Document SORT_NONE.
167 * ldgram.y: Handle SORT_NONE.
169 * ldlang.c (update_wild_statements): Handle by_none. Don't
170 sort .init/.fini sections.
172 * ldlex.l: Add SORT_NONE.
174 2012-07-02 H.J. Lu <hongjiu.lu@intel.com>
176 * ld.texinfo: Replace __end_SECNAME with __stop_SECNAME.
178 2012-06-29 Nick Clifton <nickc@redhat.com>
180 * scripttempl/alphavms.sc: Add .debug_macro section.
181 * scripttempl/elf.sc: Likewise.
182 * scripttempl/elf64hppa.sc: Likewise.
183 * scripttempl/elf_chaos.sc: Likewise.
184 * scripttempl/elfxtensa.sc: Likewise.
185 * scripttempl/ia64vms.sc: Likewise.
187 * scripttempl/armbpabi.sc: Add .debug_pubtypes, .debug_ranges and
188 .debug_macro sections.
189 * scripttempl/avr.sc: Likewise.
190 * scripttempl/elf32cr16.sc: Likewise.
191 * scripttempl/elf32crx.sc: Likewise.
192 * scripttempl/elf32msp430.sc: Likewise.
193 * scripttempl/elf32msp430_3.sc: Likewise.
194 * scripttempl/elf32sh-symbian.sc: Likewise.
195 * scripttempl/elfd30v.sc: Likewise.
196 * scripttempl/elfi370.sc: Likewise.
197 * scripttempl/elfm68hc11.sc: Likewise.
198 * scripttempl/elfm68hc12.sc: Likewise.
199 * scripttempl/elfxgate.sc: Likewise.
200 * scripttempl/i386beos.sc: Likewise.
201 * scripttempl/i386go32.sc: Likewise.
202 * scripttempl/ip2k.sc: Likewise.
203 * scripttempl/iq2000.sc: Likewise.
204 * scripttempl/mep.sc: Likewise.
205 * scripttempl/mmo.sc: Likewise.
206 * scripttempl/v850.sc: Likewise.
207 * scripttempl/xstormy16.sc: Likewise.
209 2012-06-28 H.J. Lu <hongjiu.lu@intel.com>
211 * ldlang.c (update_wild_statements): Remove redundant statement.
213 2012-06-25 Alan Modra <amodra@gmail.com>
215 * ldlang.c (load_symbols): Close file and set flags.loaded
216 after parsing script file.
217 (open_input_bfds): Don't segv on closed script.
219 2012-06-24 H.J. Lu <hongjiu.lu@intel.com>
221 * configure.tgt: Enable elf_k1om for x86_64-*-linux-gnux32.
222 Remove x32 in tdir_i386linux and tdir_elf_i386.
224 2012-06-22 Roland McGrath <mcgrathr@google.com>
226 * NEWS: Mention __ehdr_start.
228 2012-06-21 Alan Modra <amodra@gmail.com>
230 * ldlang.c (lang_insert_orphan): Don't make __start_<sec> symbol
231 absolute, and remove unnecessary alignment.
233 2012-06-16 Alan Modra <amodra@gmail.com>
235 * ldlang.h (lang_output_section_statement_type): Add after_end field.
236 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
237 (section_for_dot): Declare.
238 * ldlang.c (lang_size_sections_1): Correct comment.
239 (current_section): Move earlier.
240 (current_assign, prefer_next_section): New static vars.
241 (lang_do_assignments_1): Add found_end param. Detect _end
242 assignment to set found_end. Set os->after_end. Set above statics.
243 (lang_do_assignments): Adjust lang_do_assignments_1 call. Init
245 (section_for_dot): New function.
246 (lang_set_startof): Don't make an absolute symbol.
247 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
248 * ldexp.c (new_rel_from_abs): Use section_for_dot.
249 * emultempl/lnk960.em (symbol_at_beginning_of): New function.
250 (symbol_at_end_of): Likewise.
251 (lnk960_after_allocation): Use them.
252 * scripttempl/elf.sc: Precede OTHER_GOT_SYMBOLS with . = .; and
253 likewise before __bss_start.
255 2012-06-14 H.J. Lu <hongjiu.lu@intel.com>
257 * plugin.c (set_tv_header): Handle link_info.pie.
259 2012-06-11 Alan Modra <amodra@gmail.com>
262 * ldexp.c (fold_name <SIZEOF, ALIGNOF>): Allow forward section
264 * emulparams/elf32_x86_64.sh (SEPARATE_GOTPLT): Depend on size of
266 * emulparams/elf32mb_linux.sh (SEPARATE_GOTPLT): Likewise.
267 * emulparams/elf32tilegx.sh (SEPARATE_GOTPLT): Likewise.
268 * emulparams/elf32tilepro.sh (SEPARATE_GOTPLT): Likewise.
269 * emulparams/elf64tilegx.sh (SEPARATE_GOTPLT): Likewise.
270 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Likewise.
271 * emulparams/elf_k1om.sh (SEPARATE_GOTPLT): Likewise.
272 * emulparams/elf_l1om.sh (SEPARATE_GOTPLT): Likewise.
273 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Likewise.
275 2012-06-07 Georg-Johann Lay <avr@gjlay.de>
278 * scripttempl/avr.sc (.data): Keep it.
280 2012-06-02 Andreas Schwab <schwab@linux-m68k.org>
282 * Makefile.am (TEXINFO_TEX): Remove $(top_srcdir) prefix.
283 * Makefile.in: Regenerate.
285 2012-05-30 Alan Modra <amodra@gmail.com>
287 * ldlang.h (lang_output_section_statement_type): Rename
288 "section_relative_symbol" field to "update_dot".
289 * ldlang.c: Update all uses.
290 (strip_excluded_output_sections): Don't test update_dot_tree here..
291 (lang_leave_overlay): ..set update_dot here.
293 2012-05-26 Alan Modra <amodra@gmail.com>
295 * ldlex.h (enum option_values): Move from..
297 * emultempl/ppc32elf.em: Include ldlex.h.
298 (PARSE_AND_LIST_ARGS_CASES): Disable optimisations when
299 --traditional-format.
300 * emultempl/ppc64elf.em: Likewise.
302 2012-05-25 Alan Modra <amodra@gmail.com>
305 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Handle
306 multiple .eh_frame sections attached to bfd.
308 2012-05-23 Cary Coutant <ccoutant@google.com>
310 * scripttempl/armbpabi.sc: Match .data.rel.ro.* sections more
311 carefully. Fix typo where .rela.data.rel.ro matches
313 * scripttempl/mep.sc: Likewise.
314 * scripttempl/elf.sc: Match .data.rel.ro.* sections more carefully.
315 * scripttempl/elf64hppa.sc: Likewise.
316 * scripttempl/elfxtensa.sc: Likewise.
318 2012-05-17 Daniel Richard G. <skunk@iskunk.org>
319 Nick Clifton <nickc@redhat.com>
322 * configure.in: Add check that sysdep.h has been included before
323 any system header files.
324 * configure: Regenerate.
325 * config.in: Regenerate.
326 * sysdep.h: Generate an error if included before config.h.
328 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
330 * emultempl/m68hc1xelf.em (hook_in_stub): Pass proper `bfd'
331 as the first argument for `bfd_get_section_name'.
333 2012-05-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
336 * emultempl/elf32.em: Include *-*-gnu* targets in ld.so.conf
339 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
341 * NEWS: Mention the support for S12X processors.
343 2012-05-14 James Lemke <jwlemke@codesourcery.com>
345 * ldlang.c (walk_wild_consider_section): Don't copy section_flag_list.
347 (walk_wild_section_general): Pass section_flag_list to callback.
348 (lang_add_section): Add sflag_list parm.
349 Move out logic to keep / omit a section & call bfd_lookup_section_flags.
350 (output_section_callback_fast): Add sflag_list parm.
351 Add new parm to lang_add_section calls.
352 (output_section_callback): Likewise.
353 (check_section_callback): Add sflag_list parm.
354 (lang_place_orphans): Add new parm to lang_add_section calls.
355 (gc_section_callback): Add sflag_list parm.
356 (find_relro_section_callback): Likewise.
357 * ldlang.h (callback_t): Add flag_info parm.
358 (lang_add_section): Add sflag_list parm.
359 * emultempl/armelf.em (elf32_arm_add_stub_section):
360 Add lang_add_section parm.
361 * emultempl/beos.em (gld*_place_orphan): Likewise.
362 * emultempl/elf32.em (gld*_place_orphan): Likewise.
363 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
364 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
365 * emultempl/mipself.em (mips_add_stub_section): Likewise.
366 * emultempl/mmo.em (mmo_place_orphan): Likewise.
367 * emultempl/pe.em (gld_*_place_orphan): Likewise.
368 * emultempl/pep.em (gld_*_place_orphan): Likewise.
369 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
370 * emultempl/spuelf.em (spu_place_special_section): Likewise.
371 * emultempl/vms.em (vms_place_orphan): Likewise.
373 2012-05-14 Catherine Moore <clm@codesourcery.com>
375 * NEWS: Mention PowerPC VLE port.
377 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
380 * configure.in: Invoke ACX_HEADER_STRING.
381 * configure: Regenerate.
382 * config.in: Regenerate.
383 * sysdep.h: If STRINGS_WITH_STRING is defined then include both
384 string.h and strings.h.
386 2012-05-08 Alan Modra <amodra@gmail.com>
388 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
389 LC and LANG environment vars.
390 * Makefile.in: Regenerate.
392 2012-05-07 Tristan Gingold <gingold@adacore.com>
394 * pe-dll.c (udef_table): Make it static.
396 2012-05-05 Alan Modra <amodra@gmail.com>
398 * pe-dll.c (process_def_file_and_drectve): Use bfd_und_section_ptr.
399 (generate_reloc): Use bfd_abs_section_ptr.
401 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
403 * configure.tgt: Support x86_64-*-linux-gnux32.
405 2012-05-03 Sean Keys <skeys@ipdatasys.com>
407 * Makefile.am (ALL_EMULATIONS): Added new emulation for XGATE
409 * Makefile.in: Rebuild.
410 * configure.tgt: Recognize XGATE.
411 * scripttempl/elfxgate.sc: New file, mostly cloned from m68hc12.
412 * emulparams/xgateelf: New emulation, mostly cloned from m68hc12.
413 * NEWS: Mention new support.
415 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
417 Make bfd asserts cause linker errors.
418 * ldmain.c (default_bfd_assert_handler): New variable.
419 (ld_bfd_assert_handler): New function.
420 (main): Call bfd_set_assert_handler.
422 2012-04-24 Alan Modra <amodra@gmail.com>
424 * ldlang.c (size_input_section): Use sec_info_type rather than
425 usrdata->flags.just_syms.
426 * ldwrite.c (build_link_order): Likewise.
427 * emultempl/hppaelf.em (build_section_lists): Likewise.
428 * emultempl/ppc64elf.em (build_toc_list): Likewise.
429 * emultempl/armelf.em (build_section_lists): Likewise.
430 (after_allocation): Update for renamed sec_info_type value.
431 * emultempl/tic6xdsbt.em: Likewise.
433 2012-04-12 Roland McGrath <mcgrathr@google.com>
435 * configure.tgt (arm*-*-nacl*, arm*b-*-nacl*): Handle them.
436 * emulparams/armelf_nacl.sh: New file.
437 * emulparams/armelfb_nacl.sh: New file.
438 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelf_nacl.c
439 and earmelfb_nacl.c here.
440 (earmelf_nacl.c, earmelfb_nacl.c): New targets.
441 * Makefile.in: Regenerated.
443 2012-04-11 Tristan Gingold <gingold@adacore.com>
445 * scripttempl/ia64vms.sc: New file.
446 * emultempl/vms.em (_before_parse): Support for ia64.
447 (elf64-ia64-vms): New fragment for ia64.
448 * emulparams/elf64_ia64_vms.sh: New file.
449 * configure.tgt (ia64-*-*vms*): Add.
450 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64_ia64_vms.c
451 (eelf64_ia64_vms.c): New rule.
452 * Makefile.in: Regenerate.
454 2012-04-06 Roland McGrath <mcgrathr@google.com>
456 * configure.in (AC_CHECK_HEADERS): Add locale.h.
457 * config.in: Regenerate.
458 * configure: Regenerate.
460 2012-04-05 Nick Clifton <nickc@redhat.com>
462 * configure.in (AC_CHECK_FUNCS): Add setlocale.
463 (AM_LC_MESSAGES): Add.
464 * aclocal.m4: Regenerate.
465 * config.in: Regenerate.
466 * configure: Regenerate.
468 2012-04-03 Roland McGrath <mcgrathr@google.com>
470 * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them.
471 * emulparams/elf_nacl.sh: New file.
472 * emulparams/elf_i386_nacl.sh: New file.
473 * emulparams/elf32_x86_64_nacl.sh: New file.
474 * emulparams/elf_x86_64_nacl.sh: New file.
475 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here.
476 (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and
477 eelf_x86_64_nacl.c here.
478 (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c):
480 * Makefile.in: Regenerated.
482 * scripttempl/elf.sc: Handle SEPARATE_CODE cases.
484 2012-04-02 Mike Frysinger <vapier@gentoo.org>
486 * ldmisc.c (vfinfo): Assign new local str to fmt. Delete
487 putc call. If str and fmt are different, call fwrite on
490 2012-03-30 Nick Clifton <nickc@redhat.com>
492 * po/vi.po: Updated Vietnamese translation.
494 2012-03-27 Roland McGrath <mcgrathr@google.com>
496 * configure.in: Set want64 on a 64-bit host regardless of
497 --enable-targets=all.
498 * configure: Regenerated.
500 2012-03-26 Tristan Gingold <gingold@adacore.com>
502 * lexsup.c (parse_args): Add a missing '\n'.
504 2012-03-25 Alan Modra <amodra@gmail.com>
506 * ldemul.c (before_allocation_default): Revert last change.
507 * ldlang.c (lang_add_section): Likewise.
508 (strip_excluded_output_sections): Don't strip output sections with
509 user input sections when emitrelocations, unless all are SEC_EXCLUDE.
511 2012-03-23 Alan Modra <amodra@gmail.com>
513 * ldemul.c (before_allocation_default): When emitrelocations,
514 don't strip sections..
515 * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
517 2012-03-14 Kai Tietz <ktietz@redhat.com>
518 Pascal Obry <pascal@obry.net>
520 * pe-dll.c (found_sym): New static variable.
521 (undef_count): Likewise.
522 (key_value): New structure.
523 (undef_sort_cmp): Compare routine for qsort/bsearch.
524 (pe_find_cdecl_alias_match): Add new argument.
525 (pe_undef_alias_cdecl_match): Removed.
526 (pe_undef_count): New helper routine.
527 (pe_create_undef_table): Likewise.
528 (pe_process_import_defs): Use pe_create_undef_table and
529 new pe_undef_alias_cdecl_match function.
531 2012-03-14 Alan Modra <amodra@gmail.com>
534 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
536 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
537 discarding result, for side effects. Fix typo in error message.
539 2012-03-08 Tristan Gingold <gingold@adacore.com>
541 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
542 (exp_print_token): Constify.
544 2012-03-08 Alan Modra <amodra@gmail.com>
547 * ldfile.c (is_sysrooted_pathname): Remove notsame param.
548 (ldfile_add_library_path): Don't set sysrooted flag.
549 (ldfile_open_file_search): Likewise, and don't copy them.
550 (try_open): Delete exten and code handling such. Add sysrooted
551 param and return whether path is in sysroot.
552 (ldfile_find_command_file): Delete extend param. Add sysrooted
553 param. Rename local var. Update try_open calls.
554 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
555 * ldfile.h (search_dirs_type): Remove sysrooted field.
556 * ldlang.c (new_afile): Always set sysrooted from input_flags.
557 (load_symbols): Don't set input_flags.sysrooted.
558 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
560 * ldlex.h (lex_push_file): Update prototype.
561 * ldlex.l (sysrooted_stack): New array.
562 (EOF): Pop input_flags.sysrooted.
563 (lex_push_file): Add sysrooted param. Save and set
564 input_flags.sysrooted.
566 2012-03-06 Alan Modra <amodra@gmail.com>
568 * ldlang.h (struct lang_input_statement_flags): New, extract from..
569 (lang_input_statement_type): ..here. New field "flags".
570 (input_flags): Declare.
571 (missing_file): Delete.
572 * ldmain.h (whole_archive): Delete.
573 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
574 * ld.h (ld_config_type <dynamic_link>): Delete.
575 * ldmain.c (whole_archive): Delete.
576 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
577 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
578 (input_flags): New variable. Replace all uses of config.dynamic_link,
579 missing_file, ldlang_sysrooted_script, whole_archive,
580 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
582 * ldfile.c: Likewise.
583 * ldgram.y: Likewise.
584 * ldmain.c: Likewise.
585 * ldwrite.c: Likewise.
586 * lexsup.c: Likewise.
587 * plugin.c: Likewise.
588 * emultempl/aix.em: Likewise.
589 * emultempl/armelf.em: Likewise.
590 * emultempl/elf32.em: Likewise.
591 * emultempl/hppaelf.em: Likewise.
592 * emultempl/linux.em: Likewise.
593 * emultempl/pe.em: Likewise.
594 * emultempl/pep.em: Likewise.
595 * emultempl/ppc64elf.em: Likewise.
596 * emultempl/scoreelf.em: Likewise.
597 * emultempl/spuelf.em: Likewise.
598 * emultempl/sunos.em: Likewise.
599 * emultempl/vms.em: Likewise.
600 * ldlang.c (new_afile): Use memset to init zero fields.
601 (load_symbols): Simplify save and restore of flags around command
603 * ldfile.c (is_sysrooted_pathname): Tidy.
605 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
607 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
608 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
609 replacing trailing "-*" with "*".
611 2012-02-25 Walter Lee <walt@tilera.com>
613 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
614 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
615 (eelf32tilegx_be.c): Add rule to build this file.
616 (eelf64tilegx_be.c): Ditto.
617 * Makefile.in: Regenerate.
618 * configure.tgt (tilegx-*-*): Support big endian.
620 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
621 (BIG_OUTPUT_FORMAT): Define.
622 (LITTLE_OUTPUT_FORMAT): Define.
623 * emulparams/elf32tilegx_be.sh: New.
624 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
625 (BIG_OUTPUT_FORMAT): Define.
626 (LITTLE_OUTPUT_FORMAT): Define.
627 * emulparams/elf64tilegx_be.sh: New.
629 2012-02-24 Kai Tietz <ktietz@redhat.com>
632 * deffilep.y (keyword_as_name): Disable LIBRARY
635 2012-02-22 Alan Modra <amodra@gmail.com>
638 * ldlang.c (lang_process): Rerun lang_do_assignments before
639 starting garbage collection.
640 * ldexp.c (fold_name): Generate a reloc for defined symbols
641 found without an associated output section during the mark phase.
642 (exp_fold_tree_1): Continue processing an expression, even if we
643 are unable to fold it, if we are in the first two evaluation
645 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
647 2012-02-19 Kai Tietz <ktietz@redhat.com>
649 * deffilep.y (cmp_import_elem): Sort first by module name.
650 * pe-dll.c (process_def_file_and_drectve): Free strings
651 from removed export-element.
652 (add_bfd_to_link): Optimize loop on import-elements and lower
654 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
657 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
659 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
660 temporary variable node used for NULL argument.
662 2012-02-18 Alan Modra <amodra@gmail.com>
665 * ld.h (parsing_defsym): Delete.
666 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
667 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
668 exp_get_abs_int): Add tree arg for %S in error messages. Don't
670 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
671 type.filename from sub-tree.
672 (exp_trinop): Likewise, and use "cond" rather than "lhs".
673 * ldexp.h (node_type): Add filename field to struct.
674 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
675 * ldfile.h (ldfile_input_filename): Delete.
676 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
677 %S in error messages.
678 * ldemul.c (syslib_default, hll_default): Likewise.
679 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
680 lang_get_regions, lang_new_phdr): Likewise.
681 (lang_size_sections_1): Pass addr_tree for %S.
682 * ldlex.h (lex_redirect): Update prototype.
683 (ldlex_filename): Declare.
684 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
685 (lex_redirect): Add fake_filename and count params. Push
686 fake_filename to file_name_stack and init lineno from count.
687 (ldlex_filename): New function.
688 (lex_warn_invalid): Use above.
689 * ldmain.c (main): Update lex_redirect call.
690 * ldmisc.c (vfinfo <%S>): Take file name and line number from
691 etree_type arg, or use current if arg is NULL.
692 * lexsup.c (parsing_defsym): Delete.
693 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
695 2012-02-13 Kai Tietz <ktietz@redhat.com>
697 * deffilep.y (find_export_in_list): Set is_indent for
698 first or last element, if identical.
699 (find_import_in_list): Likewise.
701 2012-02-11 Kai Tietz <ktietz@redhat.com>
703 * deffilep.y (%union): New type id_const.
704 (opt_name2): New rule.
705 (keyword_as_name): New rule.
706 (dot_name): Replaced by opt_name2 rule.
707 (opt_name): Adjust rule.
708 (opt_equal_name): Likewise.
710 2012-02-11 Pascal Obry <pascal@obry.net>
712 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
714 (process_def_file_and_drectve): Maintain sorting of exports table
715 after stripping leading @ signs.
717 2012-02-09 Alan Modra <amodra@gmail.com>
719 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
721 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
724 * emulparams/elf32_x86_64.sh: Remove NOP.
725 * emulparams/elf_i386.sh: Likewise.
726 * emulparams/elf_i386_be.sh: Likewise.
727 * emulparams/elf_i386_ldso.sh: Likewise.
728 * emulparams/elf_i386_vxworks.sh: Likewise.
729 * emulparams/elf_k1om.sh: Likewise.
730 * emulparams/elf_l1om.sh: Likewise.
731 * emulparams/elf_x86_64.sh: Likewise.
733 * ldlang.c (zero_fill): Initialized to 0.
735 * ldwrite.c (build_link_order): Set data size to linker odrder
736 size when they are the same.
738 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
740 2012-01-17 Alan Modra <amodra@gmail.com>
742 * ldver.c (ldversion): Update copyright message year.
744 2012-01-15 Alan Modra <amodra@gmail.com>
747 * ldlang.c (lang_process): Don't reopen all files, just those
748 newly added by plugin.
750 2012-01-11 Alan Modra <amodra@gmail.com>
752 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
753 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
754 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
756 (plt_thread_safe, plt_stub_align): New vars.
757 (gld${EMULATION_NAME}_after_allocation): Pass them to
758 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
759 * ld.texinfo: Document new command line options, and an old
762 2012-01-09 Roland McGrath <mcgrathr@google.com>
764 * configure.in: Use AM_ZLIB.
765 * configure: Regenerated.
767 For older changes see ChangeLog-2011
773 version-control: never