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