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