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