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