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