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