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