1 2014-07-01 Alan Modra <amodra@gmail.com>
3 * sysdep.h: Don't include limits.h and sys/param.h. Don't
4 include unistd.h twice.
5 (LD_PATHMAX): Don't define.
6 * ldlang.c (lang_common): Don't use UINT_MAX.
8 2014-07-01 Barney Stratford <barney_stratford@fastmail.fm>
9 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11 Soundararajan <Sounderarajan.D@atmel.com>
13 * Makefile.am (ALL_EMULATION_SOURCES): Add avrtiny emulation source.
14 (eavrtiny.c): Add rules for avrtiny emulation source.
15 * Makefile.in: Regenerate.
16 * configure.tgt: Add avrtiny to avr target emulations.
17 * scripttempl/avrtiny.sc: New file. Linker script template for
19 * emulparams/avrtiny.sh: New file. Emulation parameters for
22 2014-06-30 Ulrich Drepper <drepper@gmail.com>
24 * lexsup.c (parse_args): Check whether provided SONAME is empty
25 string. If yes, warn and ignore it. Don't overwrite valid SONAME
28 2014-06-26 Linda Zhang <lindasc@qq.com>
30 * emultempl/pe.em: Initialise insert_timestamp to true.
31 Add a --no-insert-timestamp command line option.
32 * emultempl/pep.em: Likewise.
33 * ld.texinfo: Document that --insert-timestamp is enabled by
34 default and that it now has an inverse command line option.
35 * NEWS: Mention the new behaviour.
37 2014-06-25 Nick Clifton <nickc@redhat.com>
39 * Makefile.am (ALL_EMULATION_SOURCES): Move ei386pep.c from
41 (ALL_64_EMULATION_SOURCES): ... to here.
42 (ALL_EMUL_EXTRA_OFILES): Move pep-dll.o from here...
43 (ALL_64_EMUL_EXTRA_OFILES): New. ... to here.
44 * configure.in (EMUL_EXTRA_OFILES): Include
45 ALL_64_EMUL_EXTRA_OFILES when making a 64-bit enabled build.
46 * Makefile.in: Regenerate.
47 * configure: Regenerate.
49 2014-06-18 Andreas Tobler <andreast@fgznet.ch>
51 * configure.tgt (arm*-*-freebsd*): Update targ_extra_emuls.
52 (arm*b-*-freebsd*): Add target.
53 * emulparams/armelfb_fbsd.sh: Added.
54 * emulparams/armelf_fbsd.sh: Updated.
55 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelfb_fbsd.c.
56 * Makefile.in: Regenerate.
58 2014-06-16 Alan Modra <amodra@gmail.com>
60 * scripttempl/elf.sc: Edit out __rela_iplt symbol assignments from
61 .rel sections, and __rel_iplt from .rela sections.
62 * scripttempl/nds32elf.sc: Likewise.
63 * Makefile.am (ends32*.c) Depend on nds32elf.sc.
64 * Makefile.in: Regenerate.
66 2014-06-13 Alan Modra <amodra@gmail.com>
69 * ldlang.c (output_bfd_hash_table_free_fn): Delete.
70 (open_output): Don't set it..
71 * ldmain.c (ld_cleanup): ..or call it.
73 2014-06-13 Alan Modra <amodra@gmail.com>
75 * emultempl/cr16elf.em, * emultempl/elf32.em, * emultempl/genelf.em,
76 * emultempl/m68kcoff.em, * emultempl/m68kelf.em,
77 * emultempl/nds32elf.em, * emultempl/pe.em, * emultempl/pep.em,
78 * ldlang.c, * ldmain.c, * pe-dll.c: Update for bfd.link_next change.
80 2014-06-13 Alan Modra <amodra@gmail.com>
82 * Makefile.am (ALL_EMULATION_SOURCES): Add enios2elf.c, enios2linux.c.
83 * Makefile.in: Regenerate.
85 2014-06-07 Alan Modra <amodra@gmail.com>
87 * ldexp.c (exp_fold_tree_1 <etree_provide>): Make PROVIDEd
88 linker script symbol value override a built-in linker symbol.
90 2014-06-05 Joel Brobecker <brobecker@adacore.com>
92 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
94 * Makefile.in, configure: Regenerate.
96 2014-06-02 Alan Modra <amodra@gmail.com>
98 * emulparams/elf32bfin.sh: Rename from bfin.sh.
99 * emulparams/elf32bfinfd.sh: Update to suit.
100 * emulparams/msp430.sh: Rename from msp430all.sh. Remove
101 MSP430_NAME and msp430X vars.
102 * emulparams/msp430X.sh: New.
103 * emulparams/score3_elf.sh: Rename from scoreelf.sh. Remove
104 SCORE_NAME and score7_elf ARCH setting.
105 * emulparams/score7_elf.sh: New.
106 * Makefile.am (eelf32bfin.c, eelf32bfinfd.c): Update dependencies.
107 (emsp430.c, emsp430X.c, escore3_elf.c, escore7_elf.c): Likewise.
108 * Makefile.in: Regenerate.
109 * genscripts.sh: Delete customizer_script param.
111 2014-05-28 Hans-Peter Nilsson <hp@axis.com>
113 * Makefile.am: Change all rules with ${GENSCRIPTS}
114 invocations to be just dependencies.
115 ($(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES))
116 (run-genscripts): New rules.
117 * Makefile.in: Regenerate.
119 2014-05-27 DJ Delorie <dj@redhat.com>
121 * ld/ldemul.h (extra_map_file_text): New field.
122 (ldemul_extra_map_file_text): Declare.
123 * ld/ldemul.c (ldemul_extra_map_file_text): Define.
124 * ld/ldlang.c (lang_map): Call it.
126 * ld/emultempl/rxelf.em: Add extra_map_file_text hook.
127 * ld/emultempl/aix.em: Add NULL extra_map_file_text hook.
128 * ld/emultempl/armcoff.em: Likewise.
129 * ld/emultempl/beos.em: Likewise.
130 * ld/emultempl/elf32.em: Likewise.
131 * ld/emultempl/generic.em: Likewise.
132 * ld/emultempl/gld960.em: Likewise.
133 * ld/emultempl/gld960c.em: Likewise.
134 * ld/emultempl/linux.em: Likewise.
135 * ld/emultempl/lnk960.em: Likewise.
136 * ld/emultempl/m68kcoff.em: Likewise.
137 * ld/emultempl/pe.em: Likewise.
138 * ld/emultempl/pep.em: Likewise.
139 * ld/emultempl/sunos.em: Likewise.
140 * ld/emultempl/ticoff.em: Likewise.
141 * ld/emultempl/vanilla.em: Likewise.
143 2014-05-24 Alan Modra <amodra@gmail.com>
145 * ldlang.c (base): Move variable to..
146 * mri.c: ..here, and make static.
147 * ldlang.h (base): Delete declaration.
149 2014-05-20 Hans-Peter Nilsson <hp@axis.com>
151 * Makefile.am (ALL_EMULATION_SOURCES): Add missing eelf32mbel_linux.c.
152 * Makefile.in: Regenerate.
154 2014-05-20 Alan Modra <amodra@gmail.com>
157 * emulparams/elf32ppccommon.sh (_SDA_BASE_, _SDA2_BASE_): Delete.
158 * emultempl/ppc32elf.em (ppc_before_allocation): Call
159 ppc_elf_maybe_strip_sdata_syms.
160 * ldlang.c (size_input_section): Correct output_offset value
161 for excluded input sections.
163 2014-05-16 John Marino <binutils@marino.st>
165 * configure.tgt: Add /lib to dragonfly NATIVE_LIB_DIRS.
167 2014-05-11 Chung-Lin Tang <cltang@codesourcery.com>
169 * emulparams/nios2linux.sh (OTHER_GOT_SYMBOLS): Wrap _gp in HIDDEN(),
170 and gp in PROVIDE_HIDDEN.
172 2014-05-10 Hans-Peter Nilsson <hp@bitrange.com>
174 * ldlang.c (lang_finish): Don't call bfd_link_hash_table_free here.
175 (output_bfd_hash_table_free_fn): New variable.
176 (open_output): Save the _bfd_link_hash_table_free function for the
177 output_bfd into output_bfd_hash_table_free_fn.
178 * ldmain.c (ld_cleanup): If set, call output_bfd_hash_table_free_fn
180 * ldlang.h (output_bfd_hash_table_free_fn): Declare.
182 2014-05-02 Alan Modra <amodra@gmail.com>
184 * emultempl/metagelf.em: Update bfd target vector naming.
185 * emultempl/nios2elf.em: Likewise.
186 * emultempl/spuelf.em: Likewise.
187 * emultempl/tic6xdsbt.em: Likewise.
189 2014-04-22 Christian Svensson <blue@cmd.nu>
191 * Makefile.am: Remove openrisc and or32 support. Add support for or1k.
192 * configure.tgt: Likewise.
193 * emulparams/elf32or1k.sh: New file.
194 * emulparams/elf32or1k_linux.sh: New file.
195 * emulparams/elf32openrisc.sh: Delete.
196 * emulparams/or32.sh: Delete.
197 * emulparams/or32elf.sh: Delete.
198 * scripttempl/or32.sc: Delete.
199 * Makefile.in: Regenerate.
201 2014-04-21 Richard Henderson <rth@redhat.com>
203 * emultempl/alphaelf.em (alpha_after_parse): Enable 2 relax passes.
205 2014-04-16 Steve Ellcey <sellcey@mips.com>
207 * emultempl/elf32.em: Include safe-ctype.h.
209 2014-04-16 Steve Ellcey <sellcey@mips.com>
211 * ldbuildid.c (generate_build_id): Add ATTRIBUTE_UNUSED to size arg.
213 2014-04-09 Nick Clifton <nickc@redhat.com>
215 * Makefile.am (default-manifest.o): Remove rule.
216 (EMUL_EXTRA_BINARIES): Delete.
217 (ALL_EMUL_EXTRA_BINARIES): Delete.
218 (ld_new_DEPENDENCIES): Remove EMUL_EXTRA_BINARIES.
219 (install-data-local): Remove EMUL_EXTRA_BINARIES.
220 * Makefile.in: Regenerate.
221 * configure.in (all_emul_extra_binaries): Delete.
222 (EMUL_EXTRA_BINARIES): Remove.
223 * configure: Regenerate.
224 * configure.tgt (target_extra_binaries): Delete.
225 * emultempl/default-manifest.rc: Delete.
226 * ld.texinfo: Remove discussion of default manifest.
227 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Delete.
228 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Delete.
230 2014-04-09 Alan Modra <amodra@gmail.com>
232 * emultempl/spuelf.em: Include safe-ctype.h, remove duplicate errno.h.
233 * emultempl/nds32elf.em: Include bfd_stdint.h.
234 * po/POTFILES.in: Regenerate.
236 2014-04-09 Alan Modra <amodra@gmail.com>
238 * emultempl/ppc32elf.em (no_zero_padding, ppc_finish): New functions.
239 (LDEMUL_FINISH): Define.
241 2014-04-08 Nick Clifton <nickc@redhat.com>
243 * scripttempl/pe.sc (R_RSRC): Remove default manifest.
244 * scripttempl/pep.sc (R_RSRC): Remove default manifest.
246 2014-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
248 * emultempl/elf32.em (id_note_section_size, read_hex, write_build_id):
249 Move code for parsing build-id option and calculating the build-id to...
250 * ldbuildid.c: New file.
251 * ldbuildid.h: New file.
252 * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add new
254 * Makefile.in: Regenerate.
255 * ld.texinfo: Update --build-id description to mention COFF
257 * NEWS: Mention support for COFF build ids.
258 * emultempl/pe.em (gld${EMULATION_NAME}_handle_option):
259 (pecoff_checksum_contents, write_build_id, setup_build_id)
260 (gld_${EMULATION_NAME}_after_open): Handle and implement
262 * emultempl/pep.em: Likewise.
264 2014-04-04 Cary Coutant <ccoutant@google.com>
267 * ld.texinfo: Document optional comma following output section
268 command and overlay command.
270 2014-04-04 Alan Modra <amodra@gmail.com>
272 * ldlang.c (lang_size_sections_1 <lang_input_section_enum>): Use
273 current "fill", not "output_section_statement->fill".
275 2014-03-31 Nick Clifton <nickc@redhat.com>
278 * emultempl/elf32.em (_after_open): Create a .note.GNU-stack
279 section when performing a relocatable link with -z [no]execstack
282 2014-03-27 H.J. Lu <hongjiu.lu@intel.com>
285 * ldmain.c (symbol_warning): New function.
286 (warning_callback): Use it. Scan all input files for a reference
289 2014-03-21 Christopher Faylor <me.cygwin2013@cgf.cx>
291 * ld.texinfo: Document change in handling of --enable-auto-image-base.
292 * emultempl/pe.em (pe_auto_image_base): Set to default base.
293 (gld_${EMULATION_NAME}_list_options): Change usage message to reflect
294 optional --enable-auto-image-base argument.
295 (gld${EMULATION_NAME}_handle_option): Handle optional
296 --enable-auto-image-base argument.
297 (compute_dll_image_base): Eliminate constant. Use pe_auto_image_base.
299 2014-03-19 Nick Clifton <nickc@redhat.com>
301 * Makefile.am (default-manifest.o): Use WINDRES_FOR_TARGET.
302 * Makefile.in: Regenerate.
303 * emultempl/default-manifest.rc: Fix typo.
304 * scripttempl/pe.sc (R_RSRC): Fix default-manifest exclusion.
305 (.rsrc): Add SUBALIGN(4). Remove SORT.
306 * scripttempl/pep.sc: Likewise.
308 2014-03-17 Christopher Faylor <me.cygwin2014@cgf.cx>
310 * Makefile.am: Use host version of windres.
311 * Makefile.in: Regenerate.
313 2014-03-14 Romain Geissler <romain.geissler@amadeus.com>
314 Alan Modra <amodra@gmail.com>
316 * ldlang.h (full_name_provided): New input flag.
317 * ldlang.c (new_afile): Don't use lang_input_file_is_search_file_enum
318 for -l:namespec. Instead use lang_input_file_is_l_enum with
319 full_name_provided flag.
320 * ldlfile.c (ldfile_open_file_search): Don't complete lib name if
321 full_name_provided flag is set.
322 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
323 Handle full_name_provided libraries. Tidy EXTRA_SHLIB_EXTENSION
324 support. Set DT_NEEDED for -l:namespec as namespec.
325 * emultempl/aix.em (ppc_after_open_output): Handle full_name_provided.
326 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
327 Don't handle full_name_provided libraries.
328 * emultempl/pe.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
329 * emultempl/pep.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
330 * emultempl/vms.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
332 2014-03-12 Alan Modra <amodra@gmail.com>
334 * Makefile.in: Regenerate.
336 2014-03-05 Alan Modra <amodra@gmail.com>
338 Update copyright years.
340 2014-03-04 Nick Clifton <nickc@redhat.com>
342 * Makefile.am (ALL_EMUL_EXTRA_BINARIES): Remove default-manifest.
343 * Makefile.in: Regenerate.
345 2014-02-27 Yuri Gribov <y.gribov@samsung.com>
347 * emultempl/armelf.em (OPTION_LONG_PLT): Define.
348 (PARSE_AND_LIST_LONGOPTS): Add long-plt.
349 (PARSE_AND_LIST_OPTIONS): Likewise.
350 (PARSE_AND_LIST_ARGS_CASES): Handle long-plt.
351 * ld.texinfo: Document --long-plt.
353 2014-02-27 Alan Modra <amodra@gmail.com>
355 * emulparams/elf32ppcvxworks.sh: Source plt_unwind.sh and
357 * emultempl/ppc32elf.em (ppc_after_open): Don't compile for
359 (LDEMUL_AFTER_OPEN): Don't set for vxworks.
360 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Exclude
361 -secure-plt, -bss-plt and -sdata-got when vxworks.
363 2014-02-27 Nick Clifton <nickc@redhat.com>
365 * configure.in (all_emul_extra_binaries): New variable. Populated
366 by invoking configure.tgt.
367 (EMUL_EXTRA_BINARIES): New substitution.
368 * configure: Regenerate.
369 * configure.tgt (target_extra_binaries): New variable. Set to
370 default-manifest.o for Cygwin and MinGW targets.
371 * Makefile.am (EMUL_EXTRA_BINARIES): New variable. Initialised
372 by the configure script.
373 (ALL_EMUL_EXTRA_BINARIES): New variable.
374 (default-manifest.o): New rule to build the default manifest.
375 (ld_new_DEPENDENCIES): Add EMUL_EXTRA_BINARIES.
376 (install-data-local): Add EMUL_EXTRA_BINARIES.
377 * Makefile.in: Regenerate.
378 * ld.texinfo: Document default manifest support.
379 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Define.
380 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Define.
381 * emultempl/default-manifest.rc: New file.
382 * scripttempl/pe.sc (R_RSRC): Include DEFAULT_MANIFEST, if defined.
383 * scripttempl/pep.sc (R_RSRC): Likewise.
385 2014-02-26 Dan Mick <dan.mick@inktank.com>
388 * ldcref.c (cref_sort_array): Compare unmangled names unless
389 demanglng has been requiested.
390 (output_one_cref): Output unmangled name unless demangling has
393 2014-02-19 Igor Zamyatin <igor.zamyatin@intel.com>
394 H.J. Lu <hongjiu.lu@intel.com>
396 * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): New.
398 2014-02-19 Alan Modra <amodra@gmail.com>
400 * emultempl/ppc64elf.em (params): Init new field.
401 (ppc_create_output_section_statements): Set params.save_restore_funcs
403 (PARSE_AND_LIST_*): Add support for --save-restore-funcs and
404 --no-save-restore-funcs.
406 2014-02-17 Alan Modra <amodra@gmail.com>
408 * emultemps/ppc64elf.em (params): New static struct replacing
409 various other static vars. Adjust code throughout file.
411 2014-02-17 Alan Modra <amodra@gmail.com>
413 * emultempl/ppc32elf.em (ppc_after_open_output): Really enable
414 ppc476 workaround for ld -r.
416 2014-02-12 Alan Modra <amodra@gmail.com>
418 * emultempl/ppc32elf.em (pagesize): New static var.
419 (ppc_after_open_output): Set params.pagesize_p2 from pagesize.
420 (PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
422 2014-02-11 Andrew Pinski <apinski@cavium.com>
424 * emulparams/aarch64linux32.sh (LIBPATH_SUFFIX): Change to ilp32.
425 (ELF_INTERPRETER_NAME): Define.
426 * emulparams/aarch64linux32b.sh (ELF_INTERPRETER_NAME): Define.
428 2014-02-10 Alan Modra <amodra@gmail.com>
430 * po/ld.pot: Regenerate.
432 2014-02-03 Alan Modra <amodra@gmail.com>
434 * emultempl/ppc32elf.em (no_tls_get_addr_opt, emit_stub_syms)
435 plt_style): Delete. Adjust all refs to instead use..
436 (params): ..this. New variable.
437 (ppc_after_open_output): New function. Tweak params and pass to
439 (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
440 (ppc_before_allocation): Adjust ppc_elf_tls_setup call. Enable
441 relaxation for ppc476 workaround.
442 (PARSE_AND_LIST_*): Add --{no-,}ppc476-workaround support.
443 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
445 2014-02-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
447 * ld/ld.texinfo: Change ALIGN_WITH_INPUT documentation.
448 * ld/ldlang.c (lang_size_sections_1): Add dotdelta
449 variable which reflects the VMA change due to alignment
450 requirements. Use dotdelta do change the LMA if
451 ALIGN_WITH_INPUT is requested.
453 2014-02-01 Hans-Peter Nilsson <hp@bitrange.com>
455 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
456 call to bfd_set_section_vma exposed by recent bfd_set_section_vma
459 2014-01-30 Sandra Loosemore <sandra@codesourcery.com>
461 * Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
462 * Makefile.in: Regenerated.
463 * emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
464 * emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
465 * emultempl/nios2elf.em: New file.
466 * gen-doc.texi (NIOSII): Set.
467 * ld.texinfo (NIOSII): Set.
469 2014-01-28 Nick Clifton <nickc@redhat.com>
471 * Makefile.am: Remove obsolete MSP430 emulations.
472 * configure.tgt: Likewise.
473 * emulparams/msp430all.sh: Likewise.
474 * Makefile.in: Regenerate.
476 2014-01-24 H.J. Lu <hongjiu.lu@intel.com>
479 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Improve
480 orphaned TLS section handling.
482 2014-01-24 Alan Modra <amodra@gmail.com>
484 * ldlang.c (lang_output_section_find_by_flags): Be careful to
485 test look->bfd_section->flags if available rather than
486 look->flags. Separate SEC_THREAD_LOCAL handling from
487 SEC_READONLY loop, and rewrite.
489 2014-01-22 Alan Modra <amodra@gmail.com>
491 * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
492 (lang_init): Initialise them.
493 (lang_print_asneeded): New function.
494 (lang_process): Call lang_print_asneeded.
495 * ldlang.h (struct asneeded_minfo): New.
496 (asneeded_list_tail): Declare.
497 * ldmain.c (add_archive_element): Improve archive map heading.
498 * ldmisc.c (minfo): Stash --as-needed info.
500 2014-01-22 Alan Modra <amodra@gmail.com>
502 * ld.h (struct map_symbol_def): Move to..
504 * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
506 2014-01-22 Alan Modra <amodra@gmail.com>
508 * ld.texinfo (Output Section Discarding): Mention assigning to dot
509 as a way of keeping otherwise empty sections.
510 * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
511 is_dot_plus_0, is_align_conditional): New predicates.
512 (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
513 output section, except for some special cases.
514 * scripttempl/elfmicroblaze.sc: Use canonical form to align at
515 end of .heap and .stack.
517 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
519 * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
521 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
523 * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
525 2014-01-20 Alan Modra <amodra@gmail.com>
527 * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
528 by_script. Make iteration a single bit field.
529 (lang_track_definedness, lang_symbol_definition_iteration): Delete.
530 (lang_symbol_defined): Declare.
531 * ldlang.c (lang_statement_iteration): Expand comment a little.
532 (lang_init <lang_definedness_table>): Make it bigger.
533 (lang_track_definedness, lang_symbol_definition): Delete.
534 (lang_definedness_newfunc): Update.
535 (lang_symbol_defined): New function.
536 (lang_update_definedness): Create entries here. Do track whether
537 script definition of symbol is valid, even when also defined in
539 * ldexp.c (fold_name <DEFINED>): Update.
540 (fold_name <NAME>): Allow self-assignment for absolute symbols
541 defined in a linker script.
543 2014-01-20 Guy Martin <gmsoft@tuxicoman.be>
544 Alan Modra <amodra@gmail.com>
546 * ldlang.h (lang_output_section_get): Define.
547 * ldlang.c (lang_output_section_get): Likewise.
548 (init_os): Set the output_section userdata to the output
550 * emultempl/hppaelf.em: Use lang_output_section_get instead of
551 lang_output_section_find where applicable.
552 * emultempl/aarch64elf.em: Likewise.
553 * emultempl/aix.em: Likewise.
554 * emultempl/armelf.em: Likewise.
555 * emultempl/m68hc1xelf.em: Likewise.
556 * emultempl/metagelf.em: Likewise.
557 * emultempl/mipself.em: Likewise.
558 * emultempl/ppc64elf.em: Likewise.
559 * emultempl/spuelf.em: Likewise.
561 2014-01-17 Alan Modra <amodra@gmail.com>
563 * genscripts.sh (COMPILE_IN): Don't set if already set.
564 * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
566 * emulparams/nds32elf16m.sh: Likewise.
567 * emulparams/nds32elf_linux.sh: Likewise.
568 * emultempl/aix.em: Test COMPILE_IN value is "yes".
569 * emultempl/armcoff.em: Likewise.
570 * emultempl/elf32.em: Likewise.
571 * emultempl/generic.em: Likewise.
572 * emultempl/gld960.em: Likewise.
573 * emultempl/gld960c.em: Likewise.
574 * emultempl/linux.em: Likewise.
575 * emultempl/lnk960.em: Likewise.
576 * emultempl/m68kcoff.em: Likewise.
577 * emultempl/sunos.em: Likewise.
578 * emultempl/ticoff.em: Likewise.
580 2014-01-16 H.J. Lu <hongjiu.lu@intel.com>
583 * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
585 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
586 for elf32_x86_64 emulation.
587 * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
588 for elf_i386 emulation.
590 2014-01-16 Alan Modra <amodra@gmail.com>
592 * ld.h (fat_section_userdata_type, get_userdata): Move to..
593 * ldlang.h (input_section_userdata_type, get_userdata): ..here.
594 * ldlang.c (init_map_userdata): Delete. Fold into..
595 (sort_def_symbol): ..here. Don't attach input section userdata
596 to output sections or global bfd sections.
597 (lang_map): Don't pre-allocate input section userdata.
598 (init_os): Don't allocate userdata for output sections.
599 (print_all_symbols): Update.
601 2014-01-15 H.J. Lu <hongjiu.lu@intel.com>
603 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
604 Silence uninitialized warning on ehdr_start_save with older
607 2014-01-15 Alan Modra <amodra@gmail.com>
609 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
610 __ehdr_start before size_dynamic_sections and restore afterwards.
612 2014-01-10 Alan Modra <amodra@gmail.com>
617 * ldlang.c (lang_size_sections): Remove unneeded RELRO base
618 adjust. Tidy comments.
619 * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
621 2014-01-10 Hans-Peter Nilsson <hp@axis.com>
623 * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
625 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
630 * ldlang.c (lang_size_sections): Properly align RELRO base.
632 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
634 * ldver.c (ldversion): Update copyright year to 2014.
636 For older changes see ChangeLog-2013
638 Copyright (C) 2014 Free Software Foundation, Inc.
640 Copying and distribution of this file, with or without modification,
641 are permitted in any medium without royalty provided the copyright
642 notice and this notice are preserved.
648 version-control: never