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