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