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