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