Change ld "notice" interface for better handling of indirect symbols
[external/binutils.git] / ld / ChangeLog
1 2014-08-12  Alan Modra  <amodra@gmail.com>
2
3         * ldmain.c (notice): Update args.
4         * plugin.c (plugin_notice): Likewise.  Follow warning sym link.
5         Handle new indirect symbol.
6
7 2014-08-12  Alan Modra  <amodra@gmail.com>
8
9         * plugin.c (plugin_load_plugins): Set link_info.lto_plugin_active.
10
11 2014-08-08  Ulrich Drepper  <drepper@gmail.com>
12
13         * ldlang.h (struct lang_input_statement_flags): Add pushed
14         member.
15         * ldlex.h (enum option_values): Add OPTION_PUSH_STATE and
16         OPTION_POP_STATE.
17         * lexsup.c (ld_options): Add entries for --push-state and
18         --pop-state.
19         (parse_args): Handle OPTION_PUSH_STATE and OPTION_POP_STATE.
20         * ld.texinfo: Document --push-state and --pop-state.
21
22 2014-08-06  H.J. Lu  <hongjiu.lu@intel.com>
23
24         PR14918
25         * plugin.c (plugin_opt_plugin_arg): Drop --pass-through.
26
27 2014-08-05  Alan Modra  <amodra@gmail.com>
28
29         * Makefile.in: Regenerate.
30
31 2014-07-29  Matthew Fortune  <matthew.fortune@imgtec.com>
32
33         * emulparams/elf32bmip.sh: Add .MIPS.abiflags.
34         * emulparams/elf32bmipn32-defs.sh: Likewise.
35         * emulparams/elf64bmip-defs.sh: Likewise.
36
37 2014-07-27  Anthony Green  <green@moxielogic.com>
38
39         * Makefile.am (ALL_EMULATION_SOURCES): Add moxiebox support.
40         (emoxiebox.c): Build.
41         * configure.tgt (targ_extra_ofiles): Add moxie-*-moxiebox*.
42         * emulparams/moxiebox.sh (TEXT_START_ADDR): New file.
43         * Makefile.in: Rebuilt.
44
45 2014-07-17  Stefan Kristiansson  <stefan.kristiansson@saunalahti.fi>
46
47         * emulparams/elf32or1k_linux.sh (TEXT_START_ADDR): Increase from
48         0x0 to first page boundary at 0x2000.
49
50 2014-07-10  Max Filippov  <jcmvbkbc@gmail.com>
51
52         * emultempl/xtensaelf.em (is_inconsistent_linkonce_section):
53         correctly handle missing dot in section name after
54         ".gnu.linkonce.prop.".
55
56 2014-07-08  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
57
58         * scripttempl/avr.sc: Remove KEEP for .data and
59         force .bss VMA to end of .data VMA.
60
61 2014-07-08  Will Newton  <will.newton@linaro.org>
62
63         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Increase
64         alignment to 64kB boundary.
65
66 2014-07-04  Alan Modra  <amodra@gmail.com>
67
68         * configure.ac: Update "configure.in" comments.
69         * configure: Regenerate.
70
71 2014-07-04  Alan Modra  <amodra@gmail.com>
72
73         * configure.ac: Rename from configure.in.
74         * Makefile.in: Regenerate.
75         * config.in: Regenerate.
76
77 2014-07-04  Alan Modra  <amodra@gmail.com>
78
79         * configure.in: Include bfd/version.m4.
80         (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
81         (BFD_VERSION): Delete.
82         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
83         * configure: Regenerate.
84         * Makefile.in: Regenerate.
85
86 2014-07-03  Alan Modra  <amodra@gmail.com>
87
88         PR 17068
89         * ldlang.c (load_symbols): Always check flags.reload.
90         (open_input_bfds): Always reload --as-needed shared libraries,
91         not just when rescanning.
92         * ldlang.h (struct lang_input_statement_flags): Update reload comment.
93         * plugin.c (plugin_should_reload): Assume shared library arg.
94         * plugin.h (plugin_should_reload): Update comment.
95
96 2014-07-01  Alan Modra  <amodra@gmail.com>
97
98         * emultempl/ppc64elf.em (stub_added): Delete.
99         (gld${EMULATION_NAME}_finish): Call ppc64_elf_build_stubs even when
100         none of the usual stubs have been added.  Only change entry_section
101         for ELFv1.
102
103 2014-07-01  Alan Modra  <amodra@gmail.com>
104
105         * sysdep.h: Don't include limits.h and sys/param.h.  Don't
106         include unistd.h twice.
107         (LD_PATHMAX): Don't define.
108         * ldlang.c (lang_common): Don't use UINT_MAX.
109
110 2014-07-01  Barney Stratford  <barney_stratford@fastmail.fm>
111             Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
112             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
113             Soundararajan  <Sounderarajan.D@atmel.com>
114
115         * Makefile.am (ALL_EMULATION_SOURCES): Add avrtiny emulation source.
116         (eavrtiny.c): Add rules for avrtiny emulation source.
117         * Makefile.in: Regenerate.
118         * configure.tgt: Add avrtiny to avr target emulations.
119         * scripttempl/avrtiny.sc: New file.  Linker script template for
120         avrtiny arch.
121         * emulparams/avrtiny.sh: New file.  Emulation parameters for
122         avrtiny arch.
123
124 2014-06-30  Ulrich Drepper  <drepper@gmail.com>
125
126         * lexsup.c (parse_args): Check whether provided SONAME is empty
127         string.  If yes, warn and ignore it.  Don't overwrite valid SONAME
128         with empty string.
129
130 2014-06-26  Linda Zhang  <lindasc@qq.com>
131
132         * emultempl/pe.em: Initialise insert_timestamp to true.
133         Add a --no-insert-timestamp command line option.
134         * emultempl/pep.em: Likewise.
135         * ld.texinfo: Document that --insert-timestamp is enabled by
136         default and that it now has an inverse command line option.
137         * NEWS: Mention the new behaviour.
138
139 2014-06-25  Nick Clifton  <nickc@redhat.com>
140
141         * Makefile.am (ALL_EMULATION_SOURCES): Move ei386pep.c from
142         here...
143         (ALL_64_EMULATION_SOURCES): ... to here.
144         (ALL_EMUL_EXTRA_OFILES): Move pep-dll.o from here...
145         (ALL_64_EMUL_EXTRA_OFILES): New.  ... to here.
146         * configure.in (EMUL_EXTRA_OFILES): Include
147         ALL_64_EMUL_EXTRA_OFILES when making a 64-bit enabled build.
148         * Makefile.in: Regenerate.
149         * configure: Regenerate.
150
151 2014-06-18  Andreas Tobler  <andreast@fgznet.ch>
152
153         * configure.tgt (arm*-*-freebsd*): Update targ_extra_emuls.
154         (arm*b-*-freebsd*): Add target.
155         * emulparams/armelfb_fbsd.sh: Added.
156         * emulparams/armelf_fbsd.sh: Updated.
157         * Makefile.am (ALL_EMULATION_SOURCES): Add earmelfb_fbsd.c.
158         * Makefile.in: Regenerate.
159
160 2014-06-16  Alan Modra  <amodra@gmail.com>
161
162         * scripttempl/elf.sc: Edit out __rela_iplt symbol assignments from
163         .rel sections, and __rel_iplt from .rela sections.
164         * scripttempl/nds32elf.sc: Likewise.
165         * Makefile.am (ends32*.c) Depend on nds32elf.sc.
166         * Makefile.in: Regenerate.
167
168 2014-06-13  Alan Modra  <amodra@gmail.com>
169
170         PR 17047
171         * ldlang.c (output_bfd_hash_table_free_fn): Delete.
172         (open_output): Don't set it..
173         * ldmain.c (ld_cleanup): ..or call it.
174
175 2014-06-13  Alan Modra  <amodra@gmail.com>
176
177         * emultempl/cr16elf.em, * emultempl/elf32.em, * emultempl/genelf.em,
178         * emultempl/m68kcoff.em, * emultempl/m68kelf.em,
179         * emultempl/nds32elf.em, * emultempl/pe.em, * emultempl/pep.em,
180         * ldlang.c, * ldmain.c, * pe-dll.c: Update for bfd.link_next change.
181
182 2014-06-13  Alan Modra  <amodra@gmail.com>
183
184         * Makefile.am (ALL_EMULATION_SOURCES): Add enios2elf.c, enios2linux.c.
185         * Makefile.in: Regenerate.
186
187 2014-06-07  Alan Modra  <amodra@gmail.com>
188
189         * ldexp.c (exp_fold_tree_1 <etree_provide>): Make PROVIDEd
190         linker script symbol value override a built-in linker symbol.
191
192 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
193
194         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
195         bfd's development.sh.
196         * Makefile.in, configure: Regenerate.
197
198 2014-06-02  Alan Modra  <amodra@gmail.com>
199
200         * emulparams/elf32bfin.sh: Rename from bfin.sh.
201         * emulparams/elf32bfinfd.sh: Update to suit.
202         * emulparams/msp430.sh: Rename from msp430all.sh.  Remove
203         MSP430_NAME and msp430X vars.
204         * emulparams/msp430X.sh: New.
205         * emulparams/score3_elf.sh: Rename from scoreelf.sh.  Remove
206         SCORE_NAME and score7_elf ARCH setting.
207         * emulparams/score7_elf.sh: New.
208         * Makefile.am (eelf32bfin.c, eelf32bfinfd.c): Update dependencies.
209         (emsp430.c, emsp430X.c, escore3_elf.c, escore7_elf.c): Likewise.
210         * Makefile.in: Regenerate.
211         * genscripts.sh: Delete customizer_script param.
212
213 2014-05-28  Hans-Peter Nilsson  <hp@axis.com>
214
215         * Makefile.am: Change all rules with ${GENSCRIPTS}
216         invocations to be just dependencies.
217         ($(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES))
218         (run-genscripts): New rules.
219         * Makefile.in: Regenerate.
220
221 2014-05-27  DJ Delorie  <dj@redhat.com>
222
223         * ld/ldemul.h (extra_map_file_text): New field.
224         (ldemul_extra_map_file_text): Declare.
225         * ld/ldemul.c (ldemul_extra_map_file_text): Define.
226         * ld/ldlang.c (lang_map): Call it.
227
228         * ld/emultempl/rxelf.em: Add extra_map_file_text hook.
229         * ld/emultempl/aix.em: Add NULL extra_map_file_text hook.
230         * ld/emultempl/armcoff.em: Likewise.
231         * ld/emultempl/beos.em: Likewise.
232         * ld/emultempl/elf32.em: Likewise.
233         * ld/emultempl/generic.em: Likewise.
234         * ld/emultempl/gld960.em: Likewise.
235         * ld/emultempl/gld960c.em: Likewise.
236         * ld/emultempl/linux.em: Likewise.
237         * ld/emultempl/lnk960.em: Likewise.
238         * ld/emultempl/m68kcoff.em: Likewise.
239         * ld/emultempl/pe.em: Likewise.
240         * ld/emultempl/pep.em: Likewise.
241         * ld/emultempl/sunos.em: Likewise.
242         * ld/emultempl/ticoff.em: Likewise.
243         * ld/emultempl/vanilla.em: Likewise.
244
245 2014-05-24  Alan Modra  <amodra@gmail.com>
246
247         * ldlang.c (base): Move variable to..
248         * mri.c: ..here, and make static.
249         * ldlang.h (base): Delete declaration.
250
251 2014-05-20  Hans-Peter Nilsson  <hp@axis.com>
252
253         * Makefile.am (ALL_EMULATION_SOURCES): Add missing eelf32mbel_linux.c.
254         * Makefile.in: Regenerate.
255
256 2014-05-20  Alan Modra  <amodra@gmail.com>
257
258         PR 16952
259         * emulparams/elf32ppccommon.sh (_SDA_BASE_, _SDA2_BASE_): Delete.
260         * emultempl/ppc32elf.em (ppc_before_allocation): Call
261         ppc_elf_maybe_strip_sdata_syms.
262         * ldlang.c (size_input_section): Correct output_offset value
263         for excluded input sections.
264
265 2014-05-16  John Marino  <binutils@marino.st>
266
267         * configure.tgt: Add /lib to dragonfly NATIVE_LIB_DIRS.
268
269 2014-05-11  Chung-Lin Tang  <cltang@codesourcery.com>
270
271         * emulparams/nios2linux.sh (OTHER_GOT_SYMBOLS): Wrap _gp in HIDDEN(),
272         and gp in PROVIDE_HIDDEN.
273
274 2014-05-10  Hans-Peter Nilsson  <hp@bitrange.com>
275
276         * ldlang.c (lang_finish): Don't call bfd_link_hash_table_free here.
277         (output_bfd_hash_table_free_fn): New variable.
278         (open_output): Save the _bfd_link_hash_table_free function for the
279         output_bfd into output_bfd_hash_table_free_fn.
280         * ldmain.c (ld_cleanup): If set, call output_bfd_hash_table_free_fn
281         on link_info.hash.
282         * ldlang.h (output_bfd_hash_table_free_fn): Declare.
283
284 2014-05-02  Alan Modra  <amodra@gmail.com>
285
286         * emultempl/metagelf.em: Update bfd target vector naming.
287         * emultempl/nios2elf.em: Likewise.
288         * emultempl/spuelf.em: Likewise.
289         * emultempl/tic6xdsbt.em: Likewise.
290
291 2014-04-22  Christian Svensson  <blue@cmd.nu>
292
293         * Makefile.am: Remove openrisc and or32 support.  Add support for or1k.
294         * configure.tgt: Likewise.
295         * emulparams/elf32or1k.sh: New file.
296         * emulparams/elf32or1k_linux.sh: New file.
297         * emulparams/elf32openrisc.sh: Delete.
298         * emulparams/or32.sh: Delete.
299         * emulparams/or32elf.sh: Delete.
300         * scripttempl/or32.sc: Delete.
301         * Makefile.in: Regenerate.
302
303 2014-04-21  Richard Henderson  <rth@redhat.com>
304
305         * emultempl/alphaelf.em (alpha_after_parse): Enable 2 relax passes.
306
307 2014-04-16  Steve Ellcey  <sellcey@mips.com>
308
309         * emultempl/elf32.em: Include safe-ctype.h.
310
311 2014-04-16  Steve Ellcey  <sellcey@mips.com>
312
313         * ldbuildid.c (generate_build_id): Add ATTRIBUTE_UNUSED to size arg.
314
315 2014-04-09  Nick Clifton  <nickc@redhat.com>
316
317         * Makefile.am (default-manifest.o): Remove rule.
318         (EMUL_EXTRA_BINARIES): Delete.
319         (ALL_EMUL_EXTRA_BINARIES): Delete.
320         (ld_new_DEPENDENCIES): Remove EMUL_EXTRA_BINARIES.
321         (install-data-local): Remove EMUL_EXTRA_BINARIES.
322         * Makefile.in: Regenerate.
323         * configure.in (all_emul_extra_binaries): Delete.
324         (EMUL_EXTRA_BINARIES): Remove.
325         * configure: Regenerate.
326         * configure.tgt (target_extra_binaries): Delete.
327         * emultempl/default-manifest.rc: Delete.
328         * ld.texinfo: Remove discussion of default manifest.
329         * emulparams/i386pe.sh (DEFAULT_MANIFEST): Delete.
330         * emulparams/i386pep.sh (DEFAULT_MANIFEST): Delete.
331
332 2014-04-09  Alan Modra  <amodra@gmail.com>
333
334         * emultempl/spuelf.em: Include safe-ctype.h, remove duplicate errno.h.
335         * emultempl/nds32elf.em: Include bfd_stdint.h.
336         * po/POTFILES.in: Regenerate.
337
338 2014-04-09  Alan Modra  <amodra@gmail.com>
339
340         * emultempl/ppc32elf.em (no_zero_padding, ppc_finish): New functions.
341         (LDEMUL_FINISH): Define.
342
343 2014-04-08  Nick Clifton  <nickc@redhat.com>
344
345         * scripttempl/pe.sc (R_RSRC): Remove default manifest.
346         * scripttempl/pep.sc (R_RSRC): Remove default manifest.
347
348 2014-04-08  Jon TURNEY  <jon.turney@dronecode.org.uk>
349
350         * emultempl/elf32.em (id_note_section_size, read_hex, write_build_id):
351         Move code for parsing build-id option and calculating the build-id to...
352         * ldbuildid.c: New file.
353         * ldbuildid.h: New file.
354         * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add new
355         files.
356         * Makefile.in: Regenerate.
357         * ld.texinfo: Update --build-id description to mention COFF
358         support.
359         * NEWS: Mention support for COFF build ids.
360         * emultempl/pe.em (gld${EMULATION_NAME}_handle_option):
361         (pecoff_checksum_contents, write_build_id, setup_build_id)
362         (gld_${EMULATION_NAME}_after_open):  Handle and implement
363         build-id option.
364         * emultempl/pep.em: Likewise.
365
366 2014-04-04  Cary Coutant  <ccoutant@google.com>
367
368         PR gold/16804
369         * ld.texinfo: Document optional comma following output section
370         command and overlay command.
371
372 2014-04-04  Alan Modra  <amodra@gmail.com>
373
374         * ldlang.c (lang_size_sections_1 <lang_input_section_enum>): Use
375         current "fill", not "output_section_statement->fill".
376
377 2014-03-31  Nick Clifton  <nickc@redhat.com>
378
379         PR ld/16744
380         * emultempl/elf32.em (_after_open): Create a .note.GNU-stack
381         section when performing a relocatable link with -z [no]execstack
382         specified.
383
384 2014-03-27  H.J. Lu  <hongjiu.lu@intel.com>
385
386         PR ld/16756
387         * ldmain.c (symbol_warning): New function.
388         (warning_callback): Use it.  Scan all input files for a reference
389         to SYMBOL.
390
391 2014-03-21  Christopher Faylor  <me.cygwin2013@cgf.cx>
392
393         * ld.texinfo: Document change in handling of --enable-auto-image-base.
394         * emultempl/pe.em (pe_auto_image_base): Set to default base.
395         (gld_${EMULATION_NAME}_list_options): Change usage message to reflect
396         optional --enable-auto-image-base argument.
397         (gld${EMULATION_NAME}_handle_option): Handle optional
398         --enable-auto-image-base argument.
399         (compute_dll_image_base): Eliminate constant.  Use pe_auto_image_base.
400
401 2014-03-19  Nick Clifton  <nickc@redhat.com>
402
403         * Makefile.am (default-manifest.o): Use WINDRES_FOR_TARGET.
404         * Makefile.in: Regenerate.
405         * emultempl/default-manifest.rc: Fix typo.
406         * scripttempl/pe.sc (R_RSRC): Fix default-manifest exclusion.
407         (.rsrc): Add SUBALIGN(4).  Remove SORT.
408         * scripttempl/pep.sc: Likewise.
409
410 2014-03-17  Christopher Faylor  <me.cygwin2014@cgf.cx>
411
412         * Makefile.am: Use host version of windres.
413         * Makefile.in: Regenerate.
414
415 2014-03-14  Romain Geissler  <romain.geissler@amadeus.com>
416             Alan Modra  <amodra@gmail.com>
417
418         * ldlang.h (full_name_provided): New input flag.
419         * ldlang.c (new_afile): Don't use lang_input_file_is_search_file_enum
420         for -l:namespec.  Instead use lang_input_file_is_l_enum with
421         full_name_provided flag.
422         * ldlfile.c (ldfile_open_file_search): Don't complete lib name if
423         full_name_provided flag is set.
424         * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
425         Handle full_name_provided libraries.  Tidy EXTRA_SHLIB_EXTENSION
426         support.  Set DT_NEEDED for -l:namespec as namespec.
427         * emultempl/aix.em (ppc_after_open_output): Handle full_name_provided.
428         * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
429         Don't handle full_name_provided libraries.
430         * emultempl/pe.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
431         * emultempl/pep.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
432         * emultempl/vms.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
433
434 2014-03-12  Alan Modra  <amodra@gmail.com>
435
436         * Makefile.in: Regenerate.
437
438 2014-03-05  Alan Modra  <amodra@gmail.com>
439
440         Update copyright years.
441
442 2014-03-04  Nick Clifton  <nickc@redhat.com>
443
444         * Makefile.am (ALL_EMUL_EXTRA_BINARIES): Remove default-manifest.
445         * Makefile.in: Regenerate.
446
447 2014-02-27  Yuri Gribov  <y.gribov@samsung.com>
448
449         * emultempl/armelf.em (OPTION_LONG_PLT): Define.
450         (PARSE_AND_LIST_LONGOPTS): Add long-plt.
451         (PARSE_AND_LIST_OPTIONS): Likewise.
452         (PARSE_AND_LIST_ARGS_CASES): Handle long-plt.
453         * ld.texinfo: Document --long-plt.
454
455 2014-02-27  Alan Modra  <amodra@gmail.com>
456
457         * emulparams/elf32ppcvxworks.sh: Source plt_unwind.sh and
458         use ppc32elf.em.
459         * emultempl/ppc32elf.em (ppc_after_open): Don't compile for
460         vxworks.
461         (LDEMUL_AFTER_OPEN): Don't set for vxworks.
462         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Exclude
463         -secure-plt, -bss-plt and -sdata-got when vxworks.
464
465 2014-02-27  Nick Clifton  <nickc@redhat.com>
466
467         * configure.in (all_emul_extra_binaries): New variable.  Populated
468         by invoking configure.tgt.
469         (EMUL_EXTRA_BINARIES): New substitution.
470         * configure: Regenerate.
471         * configure.tgt (target_extra_binaries): New variable.  Set to
472         default-manifest.o for Cygwin and MinGW targets.
473         * Makefile.am (EMUL_EXTRA_BINARIES): New variable.  Initialised
474         by the configure script.
475         (ALL_EMUL_EXTRA_BINARIES): New variable.
476         (default-manifest.o): New rule to build the default manifest.
477         (ld_new_DEPENDENCIES): Add EMUL_EXTRA_BINARIES.
478         (install-data-local): Add EMUL_EXTRA_BINARIES.
479         * Makefile.in: Regenerate.
480         * ld.texinfo: Document default manifest support.
481         * emulparams/i386pe.sh (DEFAULT_MANIFEST): Define.
482         * emulparams/i386pep.sh (DEFAULT_MANIFEST): Define.
483         * emultempl/default-manifest.rc: New file.
484         * scripttempl/pe.sc (R_RSRC): Include DEFAULT_MANIFEST, if defined.
485         * scripttempl/pep.sc (R_RSRC): Likewise.
486
487 2014-02-26  Dan Mick  <dan.mick@inktank.com>
488
489         PR ld/16569
490         * ldcref.c (cref_sort_array): Compare unmangled names unless
491         demanglng has been requiested.
492         (output_one_cref): Output unmangled name unless demangling has
493         been requested.
494
495 2014-02-19  Igor Zamyatin  <igor.zamyatin@intel.com>
496             H.J. Lu  <hongjiu.lu@intel.com>
497
498         * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): New.
499
500 2014-02-19  Alan Modra  <amodra@gmail.com>
501
502         * emultempl/ppc64elf.em (params): Init new field.
503         (ppc_create_output_section_statements): Set params.save_restore_funcs
504         default.
505         (PARSE_AND_LIST_*): Add support for --save-restore-funcs and
506         --no-save-restore-funcs.
507
508 2014-02-17  Alan Modra  <amodra@gmail.com>
509
510         * emultemps/ppc64elf.em (params): New static struct replacing
511         various other static vars.  Adjust code throughout file.
512
513 2014-02-17  Alan Modra  <amodra@gmail.com>
514
515         * emultempl/ppc32elf.em (ppc_after_open_output): Really enable
516         ppc476 workaround for ld -r.
517
518 2014-02-12  Alan Modra  <amodra@gmail.com>
519
520         * emultempl/ppc32elf.em (pagesize): New static var.
521         (ppc_after_open_output): Set params.pagesize_p2 from pagesize.
522         (PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
523
524 2014-02-11  Andrew Pinski  <apinski@cavium.com>
525
526         * emulparams/aarch64linux32.sh (LIBPATH_SUFFIX): Change to ilp32.
527         (ELF_INTERPRETER_NAME): Define.
528         * emulparams/aarch64linux32b.sh (ELF_INTERPRETER_NAME): Define.
529
530 2014-02-10  Alan Modra  <amodra@gmail.com>
531
532         * po/ld.pot: Regenerate.
533
534 2014-02-03  Alan Modra  <amodra@gmail.com>
535
536         * emultempl/ppc32elf.em (no_tls_get_addr_opt, emit_stub_syms)
537         plt_style): Delete.  Adjust all refs to instead use..
538         (params): ..this.  New variable.
539         (ppc_after_open_output): New function.  Tweak params and pass to
540         ppc_elf_link_params.
541         (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
542         (ppc_before_allocation): Adjust ppc_elf_tls_setup call.  Enable
543         relaxation for ppc476 workaround.
544         (PARSE_AND_LIST_*): Add --{no-,}ppc476-workaround support.
545         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
546
547 2014-02-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
548
549         * ld/ld.texinfo: Change ALIGN_WITH_INPUT documentation.
550         * ld/ldlang.c (lang_size_sections_1): Add dotdelta
551         variable which reflects the VMA change due to alignment
552         requirements.  Use dotdelta do change the LMA if
553         ALIGN_WITH_INPUT is requested.
554
555 2014-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
556
557         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
558         call to bfd_set_section_vma exposed by recent bfd_set_section_vma
559         change.
560
561 2014-01-30  Sandra Loosemore  <sandra@codesourcery.com>
562
563         * Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
564         * Makefile.in: Regenerated.
565         * emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
566         * emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
567         * emultempl/nios2elf.em: New file.
568         * gen-doc.texi (NIOSII): Set.
569         * ld.texinfo (NIOSII): Set.
570
571 2014-01-28  Nick Clifton  <nickc@redhat.com>
572
573         * Makefile.am: Remove obsolete MSP430 emulations.
574         * configure.tgt: Likewise.
575         * emulparams/msp430all.sh: Likewise.
576         * Makefile.in: Regenerate.
577
578 2014-01-24  H.J. Lu  <hongjiu.lu@intel.com>
579
580         PR ld/16498
581         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Improve
582         orphaned TLS section handling.
583
584 2014-01-24  Alan Modra  <amodra@gmail.com>
585
586         * ldlang.c (lang_output_section_find_by_flags): Be careful to
587         test look->bfd_section->flags if available rather than
588         look->flags.  Separate SEC_THREAD_LOCAL handling from
589         SEC_READONLY loop, and rewrite.
590
591 2014-01-22  Alan Modra  <amodra@gmail.com>
592
593         * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
594         (lang_init): Initialise them.
595         (lang_print_asneeded): New function.
596         (lang_process): Call lang_print_asneeded.
597         * ldlang.h (struct asneeded_minfo): New.
598         (asneeded_list_tail): Declare.
599         * ldmain.c (add_archive_element): Improve archive map heading.
600         * ldmisc.c (minfo): Stash --as-needed info.
601
602 2014-01-22  Alan Modra  <amodra@gmail.com>
603
604         * ld.h (struct map_symbol_def): Move to..
605         * ldlang.h: ..here.
606         * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
607
608 2014-01-22  Alan Modra  <amodra@gmail.com>
609
610         * ld.texinfo (Output Section Discarding): Mention assigning to dot
611         as a way of keeping otherwise empty sections.
612         * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
613         is_dot_plus_0, is_align_conditional): New predicates.
614         (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
615         output section, except for some special cases.
616         * scripttempl/elfmicroblaze.sc: Use canonical form to align at
617         end of .heap and .stack.
618
619 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
620
621         * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
622
623 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
624
625         * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
626
627 2014-01-20  Alan Modra  <amodra@gmail.com>
628
629         * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
630         by_script.  Make iteration a single bit field.
631         (lang_track_definedness, lang_symbol_definition_iteration): Delete.
632         (lang_symbol_defined): Declare.
633         * ldlang.c (lang_statement_iteration): Expand comment a little.
634         (lang_init <lang_definedness_table>): Make it bigger.
635         (lang_track_definedness, lang_symbol_definition): Delete.
636         (lang_definedness_newfunc): Update.
637         (lang_symbol_defined): New function.
638         (lang_update_definedness): Create entries here.  Do track whether
639         script definition of symbol is valid, even when also defined in
640         an object file.
641         * ldexp.c (fold_name <DEFINED>): Update.
642         (fold_name <NAME>): Allow self-assignment for absolute symbols
643         defined in a linker script.
644
645 2014-01-20  Guy Martin <gmsoft@tuxicoman.be>
646             Alan Modra  <amodra@gmail.com>
647
648         * ldlang.h (lang_output_section_get): Define.
649         * ldlang.c (lang_output_section_get): Likewise.
650         (init_os): Set the output_section userdata to the output
651         section statement.
652         * emultempl/hppaelf.em: Use lang_output_section_get instead of
653         lang_output_section_find where applicable.
654         * emultempl/aarch64elf.em: Likewise.
655         * emultempl/aix.em: Likewise.
656         * emultempl/armelf.em: Likewise.
657         * emultempl/m68hc1xelf.em: Likewise.
658         * emultempl/metagelf.em: Likewise.
659         * emultempl/mipself.em: Likewise.
660         * emultempl/ppc64elf.em: Likewise.
661         * emultempl/spuelf.em: Likewise.
662
663 2014-01-17  Alan Modra  <amodra@gmail.com>
664
665         * genscripts.sh (COMPILE_IN): Don't set if already set.
666         * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
667         COMPILE_IN=no.
668         * emulparams/nds32elf16m.sh: Likewise.
669         * emulparams/nds32elf_linux.sh: Likewise.
670         * emultempl/aix.em: Test COMPILE_IN value is "yes".
671         * emultempl/armcoff.em: Likewise.
672         * emultempl/elf32.em: Likewise.
673         * emultempl/generic.em: Likewise.
674         * emultempl/gld960.em: Likewise.
675         * emultempl/gld960c.em: Likewise.
676         * emultempl/linux.em: Likewise.
677         * emultempl/lnk960.em: Likewise.
678         * emultempl/m68kcoff.em: Likewise.
679         * emultempl/sunos.em: Likewise.
680         * emultempl/ticoff.em: Likewise.
681
682 2014-01-16  H.J. Lu  <hongjiu.lu@intel.com>
683
684         PR ld/16456
685         * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
686         suffix.
687         * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
688         for elf32_x86_64 emulation.
689         * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
690         for elf_i386 emulation.
691
692 2014-01-16  Alan Modra  <amodra@gmail.com>
693
694         * ld.h (fat_section_userdata_type, get_userdata): Move to..
695         * ldlang.h (input_section_userdata_type, get_userdata): ..here.
696         * ldlang.c (init_map_userdata): Delete.  Fold into..
697         (sort_def_symbol): ..here.  Don't attach input section userdata
698         to output sections or global bfd sections.
699         (lang_map): Don't pre-allocate input section userdata.
700         (init_os): Don't allocate userdata for output sections.
701         (print_all_symbols): Update.
702
703 2014-01-15  H.J. Lu  <hongjiu.lu@intel.com>
704
705         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
706         Silence uninitialized warning on ehdr_start_save with older
707         GCC.
708
709 2014-01-15  Alan Modra  <amodra@gmail.com>
710
711         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
712         __ehdr_start before size_dynamic_sections and restore afterwards.
713
714 2014-01-10  Alan Modra  <amodra@gmail.com>
715
716         PR ld/14207
717         PR ld/16322
718         PR binutils/16323
719         * ldlang.c (lang_size_sections): Remove unneeded RELRO base
720         adjust.  Tidy comments.
721         * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
722
723 2014-01-10  Hans-Peter Nilsson  <hp@axis.com>
724
725         * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
726
727 2014-01-08  H.J. Lu  <hongjiu.lu@intel.com>
728
729         PR ld/14207
730         PR ld/16322
731         PR binutils/16323
732         * ldlang.c (lang_size_sections): Properly align RELRO base.
733
734 2014-01-08  H.J. Lu  <hongjiu.lu@intel.com>
735
736         * ldver.c (ldversion): Update copyright year to 2014.
737
738 For older changes see ChangeLog-2013
739 \f
740 Copyright (C) 2014 Free Software Foundation, Inc.
741
742 Copying and distribution of this file, with or without modification,
743 are permitted in any medium without royalty provided the copyright
744 notice and this notice are preserved.
745
746 Local Variables:
747 mode: change-log
748 left-margin: 8
749 fill-column: 74
750 version-control: never
751 End: