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