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