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