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