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