1 2015-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3 * ld.h (enum orphan_handling_enum): New.
4 (ld_config_type): Remove warn_orphan, add orphan_handling.
5 * ldemul.c (ldemul_place_orphan): Remove warning about orphan
7 * ldlang.c (ldlang_place_orphan): New function.
8 (lang_place_orphans): Call ldlang_place_orphan.
9 * ldlex.h (enum option_values): Remove OPTION_WARN_ORPHAN and
10 OPTION_NO_WARN_ORPHAN, add OPTION_ORPHAN_HANDLING.
11 * lexsup.c (ld_options): Remove 'warn-orphan' and
12 'no-warn-orphan', add 'orphan-handling'.
13 (parse_args): Remove handling for OPTION_WARN_ORPHAN and
14 OPTION_NO_WARN_ORPHAN, add handling for OPTION_ORPHAN_HANDLING.
15 * NEWS: Replace text about --warn-orphan with --orphan-handling.
16 * ld.texinfo (Options): Remove --warn-orphan entry and add
17 entry on --orphan-handling.
18 (Orphan Sections): Add reference to relevant command line options.
20 2015-09-03 Nick Clifton <nickc@redhat.com>
22 * ld.texinfo (--build-id): Fix typo. The COFF/PE build-id section
23 is called .buildid not .build-id.
25 2015-09-03 Nick Clifton <nickc@redhat.com>
27 (Source Code Reference): Fix off-by-one typo in example of how to
28 use linker script symbols in C source code.
30 2015-08-19 Alan Modra <amodra@gmail.com>
32 * emultempl/aix.em: Don't set link_info.pic.
33 * emultempl/pe.em: Likewise.
34 * emultempl/pep.em: Likewise.
35 * emultempl/sunos.em: Likewise.
36 * lexsup.c (parse_args): Likewise. Set type_pie for -pie.
37 * plugin.c (set_tv_header <LDPT_LINKER_OUTPUT>): Simplify.
39 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
41 * ld/ldctor.c: Replace shared, executable, relocatable and pie
42 fields with bfd_link_executable, bfd_link_dll,
43 bfd_link_relocatable, bfd_link_pic and bfd_link_pie.
44 * ld/ldemul.c: Likewise.
45 * ld/ldfile.c: Likewise.
46 * ld/ldlang.c: Likewise.
47 * ld/ldmain.c: Likewise.
48 * ld/ldwrite.c: Likewise.
49 * ld/lexsup.c: Likewise.
50 * ld/pe-dll.c: Likewise.
51 * ld/plugin.c: Likewise.
52 * ld/emultempl/aarch64elf.em: Likewise.
53 * ld/emultempl/aix.em: Likewise.
54 * ld/emultempl/alphaelf.em: Likewise.
55 * ld/emultempl/armcoff.em: Likewise.
56 * ld/emultempl/armelf.em: Likewise.
57 * ld/emultempl/avrelf.em: Likewise.
58 * ld/emultempl/beos.em: Likewise.
59 * ld/emultempl/cr16elf.em: Likewise.
60 * ld/emultempl/elf-generic.em: Likewise.
61 * ld/emultempl/elf32.em: Likewise.
62 * ld/emultempl/genelf.em: Likewise.
63 * ld/emultempl/generic.em: Likewise.
64 * ld/emultempl/gld960.em: Likewise.
65 * ld/emultempl/gld960c.em: Likewise.
66 * ld/emultempl/hppaelf.em: Likewise.
67 * ld/emultempl/irix.em: Likewise.
68 * ld/emultempl/linux.em: Likewise.
69 * ld/emultempl/lnk960.em: Likewise.
70 * ld/emultempl/m68hc1xelf.em: Likewise.
71 * ld/emultempl/m68kcoff.em: Likewise.
72 * ld/emultempl/m68kelf.em: Likewise.
73 * ld/emultempl/metagelf.em: Likewise.
74 * ld/emultempl/mipself.em: Likewise.
75 * ld/emultempl/mmo.em: Likewise.
76 * ld/emultempl/msp430.em: Likewise.
77 * ld/emultempl/nds32elf.em: Likewise.
78 * ld/emultempl/needrelax.em: Likewise.
79 * ld/emultempl/nios2elf.em: Likewise.
80 * ld/emultempl/pe.em: Likewise.
81 * ld/emultempl/pep.em: Likewise.
82 * ld/emultempl/ppc32elf.em: Likewise.
83 * ld/emultempl/ppc64elf.em: Likewise.
84 * ld/emultempl/sh64elf.em: Likewise.
85 * ld/emultempl/solaris2.em: Likewise.
86 * ld/emultempl/spuelf.em: Likewise.
87 * ld/emultempl/sunos.em: Likewise.
88 * ld/emultempl/tic6xdsbt.em: Likewise.
89 * ld/emultempl/ticoff.em: Likewise.
90 * ld/emultempl/v850elf.em: Likewise.
91 * ld/emultempl/vms.em: Likewise.
92 * ld/emultempl/vxworks.em: Likewise.
94 2015-08-18 Alan Modra <amodra@gmail.com>
96 * ldexp.c (exp_fold_tree_1): Clear linker_def on symbol assignment.
98 2015-08-06 Alan Modra <amodra@gmail.com>
100 * ldexp.c (align_dot_val): Delete.
101 (fold_unary <ALIGN_K, NEXT>): Revert 2015-07-10 change.
102 (is_align_conditional): Revert 2015-07-20 change.
103 (exp_fold_tree_1): Likewise, but keep expanded comment.
104 * scripttempl/elf.sc (.ldata, .bss): Revert 2015-07-20 change.
105 * ld.texinfo (<ALIGN>): Correct description.
107 2015-08-04 Andrew Burgess <andrew.burgess@embecosm.com>
109 * ld.texinfo (Options): Document --require-defined option.
110 * ldlang.c (struct require_defined_symbol): New structure.
111 (require_defined_symbol_list): New variable.
112 (ldlang_add_require_defined): New function.
113 (ldlang_check_require_defined_symbols): New function.
114 (lang_process): Check required symbols are defined.
115 * ldlang.h (ldlang_add_require_defined): Declare.
116 * ldlex.h (enum option_values): Add OPTION_REQUIRE_DEFINED_SYMBOL.
117 * lexsup.c (ld_options): Add '--require-defined' entry.
118 (parse_args): Handle '--requre-defined' entry.
119 * NEWS: Mention new '--require-defined' option.
121 2015-08-03 Andrew Burgess <andrew.burgess@embecosm.com>
123 * ld.texinfo (MEMORY): Explain that multiple MEMORY commands are
126 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
128 * lexsup.c (parse_args): Don't set link_info.executable to
129 TRUE for link_info.relocatable.
131 2015-07-27 H.J. Lu <hongjiu.lu@intel.com>
133 * configure: Regenerated.
135 2015-07-24 Nick Clifton <nickc@redhat.com>
137 * emulparams/elf32rl78.sh (OTHER_SECTIONS): Provide a value for
138 the _-rl78_abs__ symbol.
140 2015-07-20 Alan Modra <amodra@gmail.com>
142 * emulparams/criself.sh (INIT_ADDR, FINI_ADDR): Define.
143 (INIT_START, FINI_START): Don't ALIGN.
144 * scriptempl/elf.sc (.init, .fini): Apply INIT_ADDR/FINI_ADDR.
146 2015-07-20 Alan Modra <amodra@gmail.com>
148 * scripttempl/elf.sc (.ldata, .bss): Align absolute value of dot.
149 * ldexp.c (is_align_conditional): Handle binary ALIGN.
150 (exp_fold_tree_1): Move code setting SEC_KEEP for assignments to
151 dot inside output sections. Handle absolute expressions.
153 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
155 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Make
156 --compress-debug-sections=zlib the same as
157 --compress-debug-sections=zlib-gabi.
158 * ld.texinfo: Change --compress-debug-sections=zlib to zlib-gabi.
160 2015-07-14 Nick Clifton <nickc@redhat.com>
162 * ld.texinfo (Options): Add missing period after @xref.
164 2015-07-10 Alan Modra <amodra@gmail.com>
166 * ldexp.c (align_dot_val): New function.
167 (fold_unary <ALIGN_K, NEXT>): Use it.
169 2015-07-03 Kai Tietz <ktietz@redhat.com>
172 * scripttempl/pep.sc: Mark .idata*, .CRT*, .tls*,
173 .rsrc*, .init, .ctor*, .dtor*, .fini, .jcr,
174 .eh_frame, .pdata. .xdata, and .gcc_except_table sections
176 * scripttempl/pe.sc: Likewise.
177 * ld.texinfo: Document that --gc-sections has experimental support
178 for COFF and PE targets.
179 * NEWS: Mention experimental support.
181 2015-07-03 Alan Modra <amodra@gmail.com>
183 * Makefile.am (eelf32or1k.c, eelf32or1k_linux.c): Depend on ELF_DEPS.
184 * Makefile.in: Regenerate.
186 2015-06-28 H.J. Lu <hongjiu.lu@intel.com>
188 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option):
189 Replace COMPRESS_DEBUG_ZLIB with COMPRESS_DEBUG_GNU_ZLIB.
191 2015-06-26 H.J. Lu <hongjiu.lu@intel.com>
193 * emulparams/elf_iamcu.sh (COMPILE_IN): New.
195 2015-06-15 Nick Clifton <nickc@redhat.com>
198 * emultempl/pe.em (pe_find_data_imports): Generate an error if a
199 symbol name is too long to handle.
200 * emultempl/pep.em (pep_find_data_imports): Likewise.
202 2015-06-12 Tristan Gingold <gingold@adacore.com>
204 * NEWS: Mention new option.
205 * lexsup.c (parse_args): Handle --print-memory-usage.
206 (ld_options): Add --print-memory-usage.
207 * ldmain.c (main): Call lang_print_memory_usage.
208 * ldlex.h (enum option_values): Add OPTION_PRINT_MEMORY_USAGE.
209 * ldlang.h: Add prototype of lang_print_memory_usage.
210 * ldlang.c (lang_print_memory_size, lang_print_memory_usage): New
212 * ld.texinfo (Options): Document --print-memory-usage.
213 * ld.h (args_type): Add print_memory_usage field.
215 2015-06-08 Nick Clifton <nickc@redhat.com>
217 * po/fr.po: Updated French Translation.
219 2015-05-28 Catherine Moore <clm@codesourcery.com>
220 Paul Brook <paul@codesourcery.com>
222 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
223 Add Compact EH support.
224 * scripttempl/elf.sc: Handle .eh_frame_entry and .gnu_extab
227 2015-05-17 Chung-Lin Tang <cltang@codesourcery.com>
229 * configure.ac (AC_PROG_GREP): Check for grep program.
230 (elf_list_options,elf_shlib_list_options,elf_plt_unwind_list_options):
231 Enable ELF option printing for emulations containing
232 'TEMPLATE_NAME=elf32'.
233 * configure: Regenerate.
235 2015-05-14 Nick Clifton <nickc@redhat.com>
237 * ld.texinfo (ASSERT): Describe the interaction with PROVIDEd
240 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
242 * configure.tgt: Support i[3-7]86-*-elfiamcu target.
244 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
246 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_iamcu.c.
248 * configure.tgt (targ_extra_emuls): Add elf_iamcu if elf_i386 is
250 * Makefile.in: Regenerated.
251 * emulparams/elf_iamcu.sh: New file.
253 2015-05-05 Nick Clifton <nickc@redhat.com>
255 * emulparams/msp430elf.sh (TEMPLATE_NAME): Change to msp430.
256 * scripttempl/msp430.sc (.text): Add .lower.text and .either.text.
257 (.data): Add .lower.data and .either.data.
258 (.bss): Add .lower.bss and .either.bss.
259 (.rodata): Add .lower.rodata and .either.rodata.
260 * emultempl/msp430.em: New file. Implements a new orphan
261 placement algorithm that divides sections between lower and upper
263 * Makefile.am (emsp430elf.c): Depend upon msp430.em.
264 *emsp430X.c): Likewise.
265 * Makefine.in: Regenerate.
267 2015-04-28 Andreas Schwab <schwab@linux-m68k.org>
270 * ldlex.l (INPUTLIST): Increment lineno on newline.
272 2015-04-24 Alan Modra <amodra@gmail.com>
274 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
275 Call gld${EMULATION_NAME}_map_segments regardless of need_laying_out.
277 2015-04-24 DJ Delorie <dj@redhat.com>
279 * Makefile.am (msp430): Rename primary emulation to msp430elf.
280 (emsp430.c): Rename to emsp430elf.c, update dependencies
281 (emsp430X.c): Update dependencies.
282 * Makefile.in: Likewise.
283 * configure.tgt (msp430-*-*): Rename primary emulation to msp430elf.
284 * emulparams/msp430.sh: Rename to msp430elf.sh.
285 * emulparams/msp430X.sh: Update.
287 2015-04-23 H.J. Lu <hongjiu.lu@intel.com>
290 * ldfile.c (ldfile_try_open_bfd): Set is_linker_input to 1.
292 2015-04-23 Alan Modra <amodra@gmail.com>
294 * emulparams/elf64ppc.sh (GOT): Align.
296 2015-04-22 Alan Modra <amodra@gmail.com>
298 * ldexp.h (struct ldexp_control): Delete dataseg.min_base. Add
299 data_seg.relro_offset.
300 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Don't set min_base.
301 (fold_binary <DATA_SEGMENT_RELRO_END>): Do set relro_offset.
302 * ldlang.c (lang_size_sections): Rewrite code adjusting relro
303 segment base to line up last section on page boundary.
305 2015-04-15 H.J. Lu <hongjiu.lu@intel.com>
308 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
310 2015-04-14 H.J. Lu <hongjiu.lu@intel.com>
312 * ld.texinfo: Document --compress-debug-sections=.
313 * ldmain.c (main): Set BFD_COMPRESS on output_bfd if
314 COMPRESS_DEBUG is set. Set BFD_COMPRESS_GABI on output_bfd
315 for COMPRESS_DEBUG_GABI_ZLIB.
316 * lexsup.c (elf_static_list_options): Add
317 --compress-debug-sections=.
318 * emultempl/elf32.em (OPTION_COMPRESS_DEBUG): New.
319 (xtra_long): Add "compress-debug-sections".
320 (gld${EMULATION_NAME}_handle_option): Handle
321 OPTION_COMPRESS_DEBUG.
323 2015-04-14 H.J. Lu <hongjiu.lu@intel.com>
326 * ld.texinfo: Document "-z noextern-protected-data".
327 * ldmain.c (main): Initialize link_info.extern_protected_data
329 * lexsup.c (elf_shlib_list_options): Add
330 "-z [no]extern-protected-data".
331 * emulparams/elf32_x86_64.sh: Source extern_protected_data.sh.
332 * emulparams/elf_i386.sh: Likewise.
333 * emulparams/elf_i386_be.sh: Likewise.
334 * emulparams/elf_i386_chaos.sh: Likewise.
335 * emulparams/elf_i386_ldso.sh: Likewise.
336 * emulparams/elf_i386_vxworks.sh: Likewise.
337 * emulparams/elf_k1om.sh: Likewise.
338 * emulparams/elf_l1om.sh: Likewise.
339 * emulparams/elf_x86_64.sh: Source extern_protected_data.sh.
340 (PARSE_AND_LIST_OPTIONS): Renamed to ...
341 (PARSE_AND_LIST_OPTIONS_BNDPLT): This.
342 (PARSE_AND_LIST_ARGS_CASE_Z): Renamed to ...
343 (PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT): This.
344 (PARSE_AND_LIST_OPTIONS): Append $PARSE_AND_LIST_OPTIONS_BNDPLT.
345 (PARSE_AND_LIST_ARGS_CASE_Z): Append
346 $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT.
347 * emulparams/extern_protected_data.sh: New file.
349 2015-04-11 H.J. Lu <hongjiu.lu@intel.com>
351 * plugin.c (plugin_load_plugins): Removed an extra ';'.
353 2015-04-10 Nick Clifton <nickc@redhat.com>
356 * ld.texinfo (--be8): Add a note about the interaction of this
357 option with the assembler's -EB option.
359 2015-04-10 Alan Modra <amodra@gmail.com>
361 * configure.ac: Set elf_list_options etc. in proper case.
362 * configure: Regenerate.
364 2015-04-10 Alan Modra <amodra@gmail.com>
367 * ldlang.c (lang_process): Add _init and _fini to gc_sym_list.
369 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
371 * emulparams/elf_x86_64.sh (BNDPLT): Removed.
372 (PARSE_AND_LIST_OPTIONS): New.
373 (PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
374 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Remove
375 BNDPLT check. Handle PARSE_AND_LIST_ARGS_CASE_Z.
376 (gld${EMULATION_NAME}_list_options): Remove BNDPLT check.
378 2015-04-09 Nick Clifton <nickc@redhat.com>
380 * po/fr.po: Updated French translation.
382 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
384 * configure.ac (elf_list_options): Set to TRUE for
385 --enable-targets=all.
386 (elf_shlib_list_options): Likewise.
387 (elf_plt_unwind_list_options): Likewise.
388 * configure: Regenerated.
390 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
392 * emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME.
394 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
396 * Makefile.am (ELF_CLFAGS): New.
397 (AM_CFLAGS): Add $(ELF_CLFAGS).
398 * configure.ac (elf_list_options): New. AC_SUBST.
399 (elf_shlib_list_options): Likewise.
400 (elf_plt_unwind_list_options): Likewise.
401 * lexsup.c (elf_shlib_list_options): New.
402 (elf_static_list_options): Likewise.
403 (elf_plt_unwind_list_options): Likewise.
404 (ld_list_options): Likewise.
405 (help): Call ld_list_options.
406 * Makefile.in: Regenerated.
407 * configure: Likewise.
408 * emulparams/plt_unwind.sh (PLT_UNWIND): New.
409 (PARSE_AND_LIST_OPTIONS): Removed.
410 * emultempl/elf32.em (gld_list_options): New.
411 (gld${EMULATION_NAME}_list_options): Define only if BNDPLT or
412 PARSE_AND_LIST_OPTIONS is defined.
413 (ld_${EMULATION_NAME}_emulation): Replace
414 gld${EMULATION_NAME}_list_options with ${gld_list_options.
416 2015-04-07 Alan Modra <amodra@gmail.com>
419 * ldlang.c (lang_size_sections): Cast shift expression.
421 2015-04-07 Alan Modra <amodra@gmail.com>
423 * emultempl/ppc32elf.em: Handle --no-pic-fixup.
424 (params): Init new field.
425 (ppc_before_allocation): Enable relaxation for pic_fixup.
427 2015-04-07 Nick Clifton <nickc@redhat.com>
429 * ld.h (struct ld_config_type): Add new field: warn_orphan.
430 * ldlex.h (enum option_values): Add OPTION_WARN_ORPHAN and
431 OPTION_NO_WARN_ORPHAN.
432 * lexsup.c (ld_options): Add --warn-orphan and --no-warn-orphan.
433 (parse_args): Handle the new options.
434 * ldemul.c (ldemul_place_orphan): If requested, generate a warning
435 message when an orphan section is placed in the output file.
436 * ld.texinfo: Document the new option.
437 * NEWS: Mention the new feature.
439 2015-04-02 Andrew Turner <andrew@freebsd.org>
441 * Makefile.am: Add FreeBSD aarch64 files.
442 * Makefile.in: Regenerate.
443 * configure.tgt: Add aarch64-*-freebsd* target triple.
444 * emulparams/aarch64fbsd.sh: New file.
445 * emulparams/aarch64fbsdb.sh: New file.
447 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
449 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work
450 around a GCC uninitialized warning bug fixed in GCC 4.6.
452 2015-04-01 Tejas Belagod <tejas.belagod@arm.com>
454 * emultempl/aarch64elf.em
455 (aarch64_elf_create_output_section_statements): Add parameter in
456 bfd_elf${ELFSIZE}_aarch64_set_options call.
457 (OPTION_FIX_ERRATUM_843419): Define.
458 (PARSE_AND_LIST_LONGOPTS): Add fix-cortex-a53-843419.
459 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_FIX_ERRATUM_843419.
461 2015-04-01 Chen Gang <gang.chen.5i5j@gmail.com>
463 * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for
464 relocating operation.
466 2015-04-01 Alan Modra <amodra@gmail.com>
469 * ldlang.c (lang_size_sections): When alignment of sections
470 results in relro base adjustment being too large, don't go lower
471 than the initial value.
472 * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
473 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
474 alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
476 2015-04-01 Alan Modra <amodra@gmail.com>
478 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
479 init ehdr_start_save.
481 2015-04-01 Alan Modra <amodra@gmail.com>
483 * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
485 (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
486 eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
487 eelf32ppcsim.c): Rearrange deps for consistency.
488 * Makefile.in: Regenerate.
490 2015-04-01 Ed Schouten <ed@nuxi.nl>
492 * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
493 the ehdr_start_save variable.
495 2015-03-31 Ed Schouten <ed@nuxi.nl>
497 * Makefile.am (ALL_64_EMULATION_SOURCES): Add
498 eelf_x86_64_cloudabi.c.
499 (eelf_x86_64_cloudabi.c): New.
500 * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
502 * Makefile.in: Regenerated.
503 * emulparams/elf_x86_64_cloudabi.sh: New file.
505 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
507 * configure.ac (AM_ZLIB): Removed.
508 * Makefile.in: Regenerated.
509 * config.in: Likewise.
510 * configure: Likewise.
512 2015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
514 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
517 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
519 * emultempl/aarch64elf.em
520 (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
522 2015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
524 * ldmain.c (main): Use %F instead of %X for einfo.
526 2015-03-02 Alan Modra <amodra@gmail.com>
528 * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
530 2015-02-27 Nick Clifton <nickc@redhat.com>
533 * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
534 sense of the following memory region attribute characters.
536 2015-02-27 Alan Modra <amodra@gmail.com>
538 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
539 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
540 eh8300sxelf_linux.c): Do not invoke genscripts here.
541 * Makefile.in: Regenerate.
543 2015-02-24 Nick Clifton <nickc@redhat.com>
545 * Makefile.am (ev850.c): Add dependency upon
546 $(srcdir)/emultempl/v850elf.em.
547 (ev850_rh850.c): Likewise.
548 * Makefile.in: Regenerate.
549 * emultempl/v850elf.em: New file.
550 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
551 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
552 * scripttempl/v850.sc: Add .note.renesas section.
553 * scripttempl/v850_rh850.sc: Likewise.
555 2015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
557 * scripttempl/avr.sc: Add new user_signatures region. Define and
558 use symbols for all region lengths.
559 * scripttempl/avrtiny.sc: Define and use symbols for all region
562 2015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
564 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
565 * Makefile.in: Regenerate.
566 * configure.tgt: Add h8300-*-linux
567 * emulparams/h8300elf_linux.sh: Add new emulation.
568 * emulparams/h8300helf_linux.sh: Likewise.
569 * emulparams/h8300self_linux.sh: Likewise.
570 * emulparams/h8300sxelf_linux.sh: Likewise.
572 2015-02-23 Nick Clifton <nickc@redhat.com>
574 * lexsup.c (parse_args): Produce a more reasonable error message
575 when -ixxx or -rxxx is the last option on the linker command line.
577 2015-02-14 H.J. Lu <hongjiu.lu@intel.com>
580 * testplug2.c (allsymbolsread_silent): New.
581 (set_register_hook): Handle allsymbolsreadsilent.
582 (onall_symbols_read): Skip a message if allsymbolsread_silent is
585 2015-02-14 Alan Modra <amodra@gmail.com>
588 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
589 * ldlang.c (lang_process): Don't set loading_lto_outputs.
590 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
592 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
594 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
596 * NEWS: Mention support for LLVM plugin.
598 2015-02-13 Alan Modra <amodra@gmail.com>
600 * ld.texinfo (Options <--defsym>): Correct cross reference.
602 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
604 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
605 option compatibility.
607 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
609 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
610 "error:" for LDPL_FATAL and LDPL_ERROR.
611 * testplug2.c (parse_option): Handle fatal, error and warning.
613 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
615 * testplug2.c (dump_tv_tag): Removed.
616 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
618 * testplug3.c (dump_tv_tag): Removed.
619 (onclaim_file): Fix typo.
621 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
624 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
626 (libldtestplug2_la_SOURCES): New.
627 (libldtestplug2_la_CFLAGS): Likewise.
628 (libldtestplug2_la_LDFLAGS): Likewise.
629 (libldtestplug3_la_SOURCES): New.
630 (libldtestplug3_la_CFLAGS): Likewise.
631 (libldtestplug3_la_LDFLAGS): Likewise.
632 * Makefile.in: Regenerated.
633 * testplug2.c: New file.
634 * testplug3.c: Likewise.
636 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
639 * plugin.c: Include ../bfd/plugin.h.
640 (plugin_get_ir_dummy_bfd): Call bfd_create with
641 link_info.output_bfd instead of srctemplate. Copy BFD info
642 from srctemplate only if it doesn't use BFD plugin target
644 (plugin_load_plugins): Call register_ld_plugin_object_p with
646 (plugin_maybe_claim): Renamed to ...
647 (plugin_object_p): This. Return dummy BFD target vector if
648 input is calimed by plugin library, otherwise return NULL.
649 Update plugin_format and plugin_dummy_bfd.
650 (plugin_maybe_claim): New. Use plugin_object_p.
652 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
654 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
656 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
658 * plugin.c (plugin_input_file_t): Add use_mmap.
659 (plugin_pagesize): New.
660 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
661 (plugin_load_plugins): Initialize plugin_pagesize.
662 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
665 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
667 * plugin.c (get_view): Align offset passed to mmap.
669 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
671 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
672 if plugin isn't active or there is no thing more to claim.
674 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
676 * plugin.c (plugin_maybe_claim): Check format against bfd_object
679 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
681 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
684 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
686 * plugin.c: Include "libbfd.h".
687 (plugin_strdup): New.
688 (plugin_maybe_claim): Remove the argument of pointer to struct
689 ld_plugin_input_file. Open and handle input entry.
690 * plugin.h (plugin_maybe_claim): Updated.
691 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
692 without passing a pointer to struct ld_plugin_input_file.
693 * ldmain.c: Don't include "libbfd.h".
694 (add_archive_element): Call plugin_maybe_claim directly without
695 passing a pointer to struct ld_plugin_input_file.
697 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
699 * ld.texinfo: Document -z text, -z notext and -z textoff.
700 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
701 -z text, -z notext and -z textoff.
703 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
705 * configure.ac: Add AC_FUNC_MMAP.
706 * config.in: Regenerated.
707 * configure: Likewise.
708 * plugin.c: Include <sys/mman.h>.
709 (MAP_FAILED): New. Defined if not defined.
710 (PROT_READ): Likewise.
711 (MAP_PRIVATE): Likewise.
712 (view_buffer_t): New.
713 (plugin_input_file_t): Add view_buffer.
714 (get_view): Try mmap and cache the view buffer.
715 (plugin_maybe_claim): Initialize view_buffer.
717 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
719 * plugin.c (release_input_file): Set fd to -1 after closing it.
720 (plugin_maybe_claim): Close fd only if fd != -1.
722 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
725 * plugin.c: Include <errno.h>.
726 (errno): New. Declare if needed.
727 (plugin_input_file_t): New.
728 (get_input_file): Implemented.
729 (get_view): Likewise.
730 (release_input_file): Likewise.
731 (add_symbols): Updated.
732 (get_symbols): Likewise.
733 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
734 only for a bfd_object input.
736 2015-02-02 Alan Modra <amodra@gmail.com>
738 * emultempl/ppc64elf.em (toc_section_name): New var.
739 (ppc_after_open): Set it.
740 (ppc_before_allocation): Use it.
741 (gld${EMULATION_NAME}_after_allocation): Here too.
743 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
745 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
746 with link_info.lto_plugin_active.
747 * ldlang.c (lang_process): Likewise.
748 * ldmain.c (add_archive_element): Likewise.
749 * plugin.c (plugin_active_plugins_p): Removed.
750 * plugin.h (plugin_active_plugins_p): Likewise.
752 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
754 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
756 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
758 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
761 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
762 (get_view): New function.
763 (set_tv_header): Handle LDPT_GET_VIEW.
764 * testplug.c (tag_names): Add LDPT_GET_VIEW.
766 (dump_tv_tag): Handle LDPT_GET_VIEW.
767 (parse_tv_tag): Likewise.
769 2015-01-28 Alan Modra <amodra@gmail.com>
771 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
772 * emultempl/ppc64elf.em (params): Init new field.
773 (ppc_after_open): New function.
774 (LDEMUL_AFTER_OPEN): Define.
775 * ldlang.c (lang_final): Whitespace fix.
777 2015-01-28 James Bowman <james.bowman@ftdichip.com>
779 * Makefile.am: Add FT32 files.
780 * configure.tgt: Handle FT32 target.
781 * emulparams/elf32ft32.sh: New file.
782 * scripttempl/ft32.sc: New file.
783 * Makefile.in: Regenerate.
785 2015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
788 * ldexp.c (fold_name): Fold LENGTH only after
789 lang_first_phase_enum.
790 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
792 * ldlang.h (struct memory_region_struct): Add origin_exp and
794 * ldlang.c (lang_do_memory_regions): New.
795 (lang_memory_region_lookup): Initialize origin_exp and
797 (lang_process): Call lang_do_memory_regions.
799 2015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
801 * ldlang.c (print_assignment): Only evaluate the expression for a
802 PROVIDE'd assignment when the destination is being defined.
803 Display a special message for PROVIDE'd symbols that are not being
806 2015-01-20 Alan Modra <amodra@gmail.com>
808 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
809 (OTHER_BSS_SYMBOLS): ..this.
810 (OTHER_PLT_RELOC_SECTIONS): Don't define.
811 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
812 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
813 (OTHER_RELRO_SECTIONS_2): ..here.
814 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
816 2015-01-20 Alan Modra <amodra@gmail.com>
818 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
819 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
820 (OTHER_RELRO_SECTIONS_2): ..here.
821 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
822 PLT_BEFORE_GOT): Define.
823 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
824 PLT_BEFORE_GOT combination.
825 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
827 2015-01-20 Alan Modra <amodra@gmail.com>
829 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
830 (OTHER_RELRO_SECTIONS_2): ..here, new define.
831 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
833 2015-01-19 Alan Modra <amodra@gmail.com>
836 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
838 2015-01-14 Jiong Wang <jiong.wang@arm.com>
840 * ld-arm/elf32-reject.s: New testcase.
841 * ld-arm/elf32-reject.d: Likewise.
842 * ld-arm/elf32-reject-pie.s: Likewise.
843 * ld-arm/elf32-reject-pie.d: Likewise.
844 * ld-arm/arm-elf.exp: Run new testcases.
845 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
846 * ld-arm/ifunc-7.rd: Likewise.
847 * ld-arm/ifunc-7.gd: Likewise.
848 * ld-arm/ifunc-7.dd: Likewise.
849 * ld-arm/ifunc-8.s: Likewise.
850 * ld-arm/ifunc-8.rd: Likewise.
851 * ld-arm/ifunc-8.gd: Likewise.
852 * ld-arm/ifunc-8.dd: Likewise.
854 2015-01-01 Alan Modra <amodra@gmail.com>
856 * ldver.c (ldversion): Just print current year.
858 2015-01-01 Alan Modra <amodra@gmail.com>
860 Update year range in copyright notice of all files.
862 For older changes see ChangeLog-2014
864 Copyright (C) 2015 Free Software Foundation, Inc.
866 Copying and distribution of this file, with or without modification,
867 are permitted in any medium without royalty provided the copyright
868 notice and this notice are preserved.
874 version-control: never