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