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