1 2015-09-09 Nick Clifton <nickc@redhat.com>
3 * po/zh_CN.po: Updated simplified Chinese translation.
5 2015-09-08 Nick Clifton <nickc@redhat.com>
7 * ld.texinfo (Source Code Reference): Extend description to
8 include an example using arrays.
10 2015-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
12 * ld.h (enum orphan_handling_enum): New.
13 (ld_config_type): Remove warn_orphan, add orphan_handling.
14 * ldemul.c (ldemul_place_orphan): Remove warning about orphan
16 * ldlang.c (ldlang_place_orphan): New function.
17 (lang_place_orphans): Call ldlang_place_orphan.
18 * ldlex.h (enum option_values): Remove OPTION_WARN_ORPHAN and
19 OPTION_NO_WARN_ORPHAN, add OPTION_ORPHAN_HANDLING.
20 * lexsup.c (ld_options): Remove 'warn-orphan' and
21 'no-warn-orphan', add 'orphan-handling'.
22 (parse_args): Remove handling for OPTION_WARN_ORPHAN and
23 OPTION_NO_WARN_ORPHAN, add handling for OPTION_ORPHAN_HANDLING.
24 * NEWS: Replace text about --warn-orphan with --orphan-handling.
25 * ld.texinfo (Options): Remove --warn-orphan entry and add
26 entry on --orphan-handling.
27 (Orphan Sections): Add reference to relevant command line options.
29 2015-09-03 Nick Clifton <nickc@redhat.com>
31 * ld.texinfo (--build-id): Fix typo. The COFF/PE build-id section
32 is called .buildid not .build-id.
34 2015-09-03 Nick Clifton <nickc@redhat.com>
36 (Source Code Reference): Fix off-by-one typo in example of how to
37 use linker script symbols in C source code.
39 2015-08-19 Alan Modra <amodra@gmail.com>
41 * emultempl/aix.em: Don't set link_info.pic.
42 * emultempl/pe.em: Likewise.
43 * emultempl/pep.em: Likewise.
44 * emultempl/sunos.em: Likewise.
45 * lexsup.c (parse_args): Likewise. Set type_pie for -pie.
46 * plugin.c (set_tv_header <LDPT_LINKER_OUTPUT>): Simplify.
48 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
50 * ld/ldctor.c: Replace shared, executable, relocatable and pie
51 fields with bfd_link_executable, bfd_link_dll,
52 bfd_link_relocatable, bfd_link_pic and bfd_link_pie.
53 * ld/ldemul.c: Likewise.
54 * ld/ldfile.c: Likewise.
55 * ld/ldlang.c: Likewise.
56 * ld/ldmain.c: Likewise.
57 * ld/ldwrite.c: Likewise.
58 * ld/lexsup.c: Likewise.
59 * ld/pe-dll.c: Likewise.
60 * ld/plugin.c: Likewise.
61 * ld/emultempl/aarch64elf.em: Likewise.
62 * ld/emultempl/aix.em: Likewise.
63 * ld/emultempl/alphaelf.em: Likewise.
64 * ld/emultempl/armcoff.em: Likewise.
65 * ld/emultempl/armelf.em: Likewise.
66 * ld/emultempl/avrelf.em: Likewise.
67 * ld/emultempl/beos.em: Likewise.
68 * ld/emultempl/cr16elf.em: Likewise.
69 * ld/emultempl/elf-generic.em: Likewise.
70 * ld/emultempl/elf32.em: Likewise.
71 * ld/emultempl/genelf.em: Likewise.
72 * ld/emultempl/generic.em: Likewise.
73 * ld/emultempl/gld960.em: Likewise.
74 * ld/emultempl/gld960c.em: Likewise.
75 * ld/emultempl/hppaelf.em: Likewise.
76 * ld/emultempl/irix.em: Likewise.
77 * ld/emultempl/linux.em: Likewise.
78 * ld/emultempl/lnk960.em: Likewise.
79 * ld/emultempl/m68hc1xelf.em: Likewise.
80 * ld/emultempl/m68kcoff.em: Likewise.
81 * ld/emultempl/m68kelf.em: Likewise.
82 * ld/emultempl/metagelf.em: Likewise.
83 * ld/emultempl/mipself.em: Likewise.
84 * ld/emultempl/mmo.em: Likewise.
85 * ld/emultempl/msp430.em: Likewise.
86 * ld/emultempl/nds32elf.em: Likewise.
87 * ld/emultempl/needrelax.em: Likewise.
88 * ld/emultempl/nios2elf.em: Likewise.
89 * ld/emultempl/pe.em: Likewise.
90 * ld/emultempl/pep.em: Likewise.
91 * ld/emultempl/ppc32elf.em: Likewise.
92 * ld/emultempl/ppc64elf.em: Likewise.
93 * ld/emultempl/sh64elf.em: Likewise.
94 * ld/emultempl/solaris2.em: Likewise.
95 * ld/emultempl/spuelf.em: Likewise.
96 * ld/emultempl/sunos.em: Likewise.
97 * ld/emultempl/tic6xdsbt.em: Likewise.
98 * ld/emultempl/ticoff.em: Likewise.
99 * ld/emultempl/v850elf.em: Likewise.
100 * ld/emultempl/vms.em: Likewise.
101 * ld/emultempl/vxworks.em: Likewise.
103 2015-08-18 Alan Modra <amodra@gmail.com>
105 * ldexp.c (exp_fold_tree_1): Clear linker_def on symbol assignment.
107 2015-08-06 Alan Modra <amodra@gmail.com>
109 * ldexp.c (align_dot_val): Delete.
110 (fold_unary <ALIGN_K, NEXT>): Revert 2015-07-10 change.
111 (is_align_conditional): Revert 2015-07-20 change.
112 (exp_fold_tree_1): Likewise, but keep expanded comment.
113 * scripttempl/elf.sc (.ldata, .bss): Revert 2015-07-20 change.
114 * ld.texinfo (<ALIGN>): Correct description.
116 2015-08-04 Andrew Burgess <andrew.burgess@embecosm.com>
118 * ld.texinfo (Options): Document --require-defined option.
119 * ldlang.c (struct require_defined_symbol): New structure.
120 (require_defined_symbol_list): New variable.
121 (ldlang_add_require_defined): New function.
122 (ldlang_check_require_defined_symbols): New function.
123 (lang_process): Check required symbols are defined.
124 * ldlang.h (ldlang_add_require_defined): Declare.
125 * ldlex.h (enum option_values): Add OPTION_REQUIRE_DEFINED_SYMBOL.
126 * lexsup.c (ld_options): Add '--require-defined' entry.
127 (parse_args): Handle '--requre-defined' entry.
128 * NEWS: Mention new '--require-defined' option.
130 2015-08-03 Andrew Burgess <andrew.burgess@embecosm.com>
132 * ld.texinfo (MEMORY): Explain that multiple MEMORY commands are
135 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
137 * lexsup.c (parse_args): Don't set link_info.executable to
138 TRUE for link_info.relocatable.
140 2015-07-27 H.J. Lu <hongjiu.lu@intel.com>
142 * configure: Regenerated.
144 2015-07-24 Nick Clifton <nickc@redhat.com>
146 * emulparams/elf32rl78.sh (OTHER_SECTIONS): Provide a value for
147 the _-rl78_abs__ symbol.
149 2015-07-20 Alan Modra <amodra@gmail.com>
151 * emulparams/criself.sh (INIT_ADDR, FINI_ADDR): Define.
152 (INIT_START, FINI_START): Don't ALIGN.
153 * scriptempl/elf.sc (.init, .fini): Apply INIT_ADDR/FINI_ADDR.
155 2015-07-20 Alan Modra <amodra@gmail.com>
157 * scripttempl/elf.sc (.ldata, .bss): Align absolute value of dot.
158 * ldexp.c (is_align_conditional): Handle binary ALIGN.
159 (exp_fold_tree_1): Move code setting SEC_KEEP for assignments to
160 dot inside output sections. Handle absolute expressions.
162 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
164 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Make
165 --compress-debug-sections=zlib the same as
166 --compress-debug-sections=zlib-gabi.
167 * ld.texinfo: Change --compress-debug-sections=zlib to zlib-gabi.
169 2015-07-14 Nick Clifton <nickc@redhat.com>
171 * ld.texinfo (Options): Add missing period after @xref.
173 2015-07-10 Alan Modra <amodra@gmail.com>
175 * ldexp.c (align_dot_val): New function.
176 (fold_unary <ALIGN_K, NEXT>): Use it.
178 2015-07-03 Kai Tietz <ktietz@redhat.com>
181 * scripttempl/pep.sc: Mark .idata*, .CRT*, .tls*,
182 .rsrc*, .init, .ctor*, .dtor*, .fini, .jcr,
183 .eh_frame, .pdata. .xdata, and .gcc_except_table sections
185 * scripttempl/pe.sc: Likewise.
186 * ld.texinfo: Document that --gc-sections has experimental support
187 for COFF and PE targets.
188 * NEWS: Mention experimental support.
190 2015-07-03 Alan Modra <amodra@gmail.com>
192 * Makefile.am (eelf32or1k.c, eelf32or1k_linux.c): Depend on ELF_DEPS.
193 * Makefile.in: Regenerate.
195 2015-06-28 H.J. Lu <hongjiu.lu@intel.com>
197 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option):
198 Replace COMPRESS_DEBUG_ZLIB with COMPRESS_DEBUG_GNU_ZLIB.
200 2015-06-26 H.J. Lu <hongjiu.lu@intel.com>
202 * emulparams/elf_iamcu.sh (COMPILE_IN): New.
204 2015-06-15 Nick Clifton <nickc@redhat.com>
207 * emultempl/pe.em (pe_find_data_imports): Generate an error if a
208 symbol name is too long to handle.
209 * emultempl/pep.em (pep_find_data_imports): Likewise.
211 2015-06-12 Tristan Gingold <gingold@adacore.com>
213 * NEWS: Mention new option.
214 * lexsup.c (parse_args): Handle --print-memory-usage.
215 (ld_options): Add --print-memory-usage.
216 * ldmain.c (main): Call lang_print_memory_usage.
217 * ldlex.h (enum option_values): Add OPTION_PRINT_MEMORY_USAGE.
218 * ldlang.h: Add prototype of lang_print_memory_usage.
219 * ldlang.c (lang_print_memory_size, lang_print_memory_usage): New
221 * ld.texinfo (Options): Document --print-memory-usage.
222 * ld.h (args_type): Add print_memory_usage field.
224 2015-06-08 Nick Clifton <nickc@redhat.com>
226 * po/fr.po: Updated French Translation.
228 2015-05-28 Catherine Moore <clm@codesourcery.com>
229 Paul Brook <paul@codesourcery.com>
231 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
232 Add Compact EH support.
233 * scripttempl/elf.sc: Handle .eh_frame_entry and .gnu_extab
236 2015-05-17 Chung-Lin Tang <cltang@codesourcery.com>
238 * configure.ac (AC_PROG_GREP): Check for grep program.
239 (elf_list_options,elf_shlib_list_options,elf_plt_unwind_list_options):
240 Enable ELF option printing for emulations containing
241 'TEMPLATE_NAME=elf32'.
242 * configure: Regenerate.
244 2015-05-14 Nick Clifton <nickc@redhat.com>
246 * ld.texinfo (ASSERT): Describe the interaction with PROVIDEd
249 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
251 * configure.tgt: Support i[3-7]86-*-elfiamcu target.
253 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
255 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_iamcu.c.
257 * configure.tgt (targ_extra_emuls): Add elf_iamcu if elf_i386 is
259 * Makefile.in: Regenerated.
260 * emulparams/elf_iamcu.sh: New file.
262 2015-05-05 Nick Clifton <nickc@redhat.com>
264 * emulparams/msp430elf.sh (TEMPLATE_NAME): Change to msp430.
265 * scripttempl/msp430.sc (.text): Add .lower.text and .either.text.
266 (.data): Add .lower.data and .either.data.
267 (.bss): Add .lower.bss and .either.bss.
268 (.rodata): Add .lower.rodata and .either.rodata.
269 * emultempl/msp430.em: New file. Implements a new orphan
270 placement algorithm that divides sections between lower and upper
272 * Makefile.am (emsp430elf.c): Depend upon msp430.em.
273 *emsp430X.c): Likewise.
274 * Makefine.in: Regenerate.
276 2015-04-28 Andreas Schwab <schwab@linux-m68k.org>
279 * ldlex.l (INPUTLIST): Increment lineno on newline.
281 2015-04-24 Alan Modra <amodra@gmail.com>
283 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
284 Call gld${EMULATION_NAME}_map_segments regardless of need_laying_out.
286 2015-04-24 DJ Delorie <dj@redhat.com>
288 * Makefile.am (msp430): Rename primary emulation to msp430elf.
289 (emsp430.c): Rename to emsp430elf.c, update dependencies
290 (emsp430X.c): Update dependencies.
291 * Makefile.in: Likewise.
292 * configure.tgt (msp430-*-*): Rename primary emulation to msp430elf.
293 * emulparams/msp430.sh: Rename to msp430elf.sh.
294 * emulparams/msp430X.sh: Update.
296 2015-04-23 H.J. Lu <hongjiu.lu@intel.com>
299 * ldfile.c (ldfile_try_open_bfd): Set is_linker_input to 1.
301 2015-04-23 Alan Modra <amodra@gmail.com>
303 * emulparams/elf64ppc.sh (GOT): Align.
305 2015-04-22 Alan Modra <amodra@gmail.com>
307 * ldexp.h (struct ldexp_control): Delete dataseg.min_base. Add
308 data_seg.relro_offset.
309 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Don't set min_base.
310 (fold_binary <DATA_SEGMENT_RELRO_END>): Do set relro_offset.
311 * ldlang.c (lang_size_sections): Rewrite code adjusting relro
312 segment base to line up last section on page boundary.
314 2015-04-15 H.J. Lu <hongjiu.lu@intel.com>
317 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
319 2015-04-14 H.J. Lu <hongjiu.lu@intel.com>
321 * ld.texinfo: Document --compress-debug-sections=.
322 * ldmain.c (main): Set BFD_COMPRESS on output_bfd if
323 COMPRESS_DEBUG is set. Set BFD_COMPRESS_GABI on output_bfd
324 for COMPRESS_DEBUG_GABI_ZLIB.
325 * lexsup.c (elf_static_list_options): Add
326 --compress-debug-sections=.
327 * emultempl/elf32.em (OPTION_COMPRESS_DEBUG): New.
328 (xtra_long): Add "compress-debug-sections".
329 (gld${EMULATION_NAME}_handle_option): Handle
330 OPTION_COMPRESS_DEBUG.
332 2015-04-14 H.J. Lu <hongjiu.lu@intel.com>
335 * ld.texinfo: Document "-z noextern-protected-data".
336 * ldmain.c (main): Initialize link_info.extern_protected_data
338 * lexsup.c (elf_shlib_list_options): Add
339 "-z [no]extern-protected-data".
340 * emulparams/elf32_x86_64.sh: Source extern_protected_data.sh.
341 * emulparams/elf_i386.sh: Likewise.
342 * emulparams/elf_i386_be.sh: Likewise.
343 * emulparams/elf_i386_chaos.sh: Likewise.
344 * emulparams/elf_i386_ldso.sh: Likewise.
345 * emulparams/elf_i386_vxworks.sh: Likewise.
346 * emulparams/elf_k1om.sh: Likewise.
347 * emulparams/elf_l1om.sh: Likewise.
348 * emulparams/elf_x86_64.sh: Source extern_protected_data.sh.
349 (PARSE_AND_LIST_OPTIONS): Renamed to ...
350 (PARSE_AND_LIST_OPTIONS_BNDPLT): This.
351 (PARSE_AND_LIST_ARGS_CASE_Z): Renamed to ...
352 (PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT): This.
353 (PARSE_AND_LIST_OPTIONS): Append $PARSE_AND_LIST_OPTIONS_BNDPLT.
354 (PARSE_AND_LIST_ARGS_CASE_Z): Append
355 $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT.
356 * emulparams/extern_protected_data.sh: New file.
358 2015-04-11 H.J. Lu <hongjiu.lu@intel.com>
360 * plugin.c (plugin_load_plugins): Removed an extra ';'.
362 2015-04-10 Nick Clifton <nickc@redhat.com>
365 * ld.texinfo (--be8): Add a note about the interaction of this
366 option with the assembler's -EB option.
368 2015-04-10 Alan Modra <amodra@gmail.com>
370 * configure.ac: Set elf_list_options etc. in proper case.
371 * configure: Regenerate.
373 2015-04-10 Alan Modra <amodra@gmail.com>
376 * ldlang.c (lang_process): Add _init and _fini to gc_sym_list.
378 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
380 * emulparams/elf_x86_64.sh (BNDPLT): Removed.
381 (PARSE_AND_LIST_OPTIONS): New.
382 (PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
383 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Remove
384 BNDPLT check. Handle PARSE_AND_LIST_ARGS_CASE_Z.
385 (gld${EMULATION_NAME}_list_options): Remove BNDPLT check.
387 2015-04-09 Nick Clifton <nickc@redhat.com>
389 * po/fr.po: Updated French translation.
391 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
393 * configure.ac (elf_list_options): Set to TRUE for
394 --enable-targets=all.
395 (elf_shlib_list_options): Likewise.
396 (elf_plt_unwind_list_options): Likewise.
397 * configure: Regenerated.
399 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
401 * emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME.
403 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
405 * Makefile.am (ELF_CLFAGS): New.
406 (AM_CFLAGS): Add $(ELF_CLFAGS).
407 * configure.ac (elf_list_options): New. AC_SUBST.
408 (elf_shlib_list_options): Likewise.
409 (elf_plt_unwind_list_options): Likewise.
410 * lexsup.c (elf_shlib_list_options): New.
411 (elf_static_list_options): Likewise.
412 (elf_plt_unwind_list_options): Likewise.
413 (ld_list_options): Likewise.
414 (help): Call ld_list_options.
415 * Makefile.in: Regenerated.
416 * configure: Likewise.
417 * emulparams/plt_unwind.sh (PLT_UNWIND): New.
418 (PARSE_AND_LIST_OPTIONS): Removed.
419 * emultempl/elf32.em (gld_list_options): New.
420 (gld${EMULATION_NAME}_list_options): Define only if BNDPLT or
421 PARSE_AND_LIST_OPTIONS is defined.
422 (ld_${EMULATION_NAME}_emulation): Replace
423 gld${EMULATION_NAME}_list_options with ${gld_list_options.
425 2015-04-07 Alan Modra <amodra@gmail.com>
428 * ldlang.c (lang_size_sections): Cast shift expression.
430 2015-04-07 Alan Modra <amodra@gmail.com>
432 * emultempl/ppc32elf.em: Handle --no-pic-fixup.
433 (params): Init new field.
434 (ppc_before_allocation): Enable relaxation for pic_fixup.
436 2015-04-07 Nick Clifton <nickc@redhat.com>
438 * ld.h (struct ld_config_type): Add new field: warn_orphan.
439 * ldlex.h (enum option_values): Add OPTION_WARN_ORPHAN and
440 OPTION_NO_WARN_ORPHAN.
441 * lexsup.c (ld_options): Add --warn-orphan and --no-warn-orphan.
442 (parse_args): Handle the new options.
443 * ldemul.c (ldemul_place_orphan): If requested, generate a warning
444 message when an orphan section is placed in the output file.
445 * ld.texinfo: Document the new option.
446 * NEWS: Mention the new feature.
448 2015-04-02 Andrew Turner <andrew@freebsd.org>
450 * Makefile.am: Add FreeBSD aarch64 files.
451 * Makefile.in: Regenerate.
452 * configure.tgt: Add aarch64-*-freebsd* target triple.
453 * emulparams/aarch64fbsd.sh: New file.
454 * emulparams/aarch64fbsdb.sh: New file.
456 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
458 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work
459 around a GCC uninitialized warning bug fixed in GCC 4.6.
461 2015-04-01 Tejas Belagod <tejas.belagod@arm.com>
463 * emultempl/aarch64elf.em
464 (aarch64_elf_create_output_section_statements): Add parameter in
465 bfd_elf${ELFSIZE}_aarch64_set_options call.
466 (OPTION_FIX_ERRATUM_843419): Define.
467 (PARSE_AND_LIST_LONGOPTS): Add fix-cortex-a53-843419.
468 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_FIX_ERRATUM_843419.
470 2015-04-01 Chen Gang <gang.chen.5i5j@gmail.com>
472 * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for
473 relocating operation.
475 2015-04-01 Alan Modra <amodra@gmail.com>
478 * ldlang.c (lang_size_sections): When alignment of sections
479 results in relro base adjustment being too large, don't go lower
480 than the initial value.
481 * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
482 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
483 alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
485 2015-04-01 Alan Modra <amodra@gmail.com>
487 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
488 init ehdr_start_save.
490 2015-04-01 Alan Modra <amodra@gmail.com>
492 * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
494 (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
495 eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
496 eelf32ppcsim.c): Rearrange deps for consistency.
497 * Makefile.in: Regenerate.
499 2015-04-01 Ed Schouten <ed@nuxi.nl>
501 * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
502 the ehdr_start_save variable.
504 2015-03-31 Ed Schouten <ed@nuxi.nl>
506 * Makefile.am (ALL_64_EMULATION_SOURCES): Add
507 eelf_x86_64_cloudabi.c.
508 (eelf_x86_64_cloudabi.c): New.
509 * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
511 * Makefile.in: Regenerated.
512 * emulparams/elf_x86_64_cloudabi.sh: New file.
514 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
516 * configure.ac (AM_ZLIB): Removed.
517 * Makefile.in: Regenerated.
518 * config.in: Likewise.
519 * configure: Likewise.
521 2015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
523 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
526 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
528 * emultempl/aarch64elf.em
529 (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
531 2015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
533 * ldmain.c (main): Use %F instead of %X for einfo.
535 2015-03-02 Alan Modra <amodra@gmail.com>
537 * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
539 2015-02-27 Nick Clifton <nickc@redhat.com>
542 * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
543 sense of the following memory region attribute characters.
545 2015-02-27 Alan Modra <amodra@gmail.com>
547 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
548 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
549 eh8300sxelf_linux.c): Do not invoke genscripts here.
550 * Makefile.in: Regenerate.
552 2015-02-24 Nick Clifton <nickc@redhat.com>
554 * Makefile.am (ev850.c): Add dependency upon
555 $(srcdir)/emultempl/v850elf.em.
556 (ev850_rh850.c): Likewise.
557 * Makefile.in: Regenerate.
558 * emultempl/v850elf.em: New file.
559 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
560 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
561 * scripttempl/v850.sc: Add .note.renesas section.
562 * scripttempl/v850_rh850.sc: Likewise.
564 2015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
566 * scripttempl/avr.sc: Add new user_signatures region. Define and
567 use symbols for all region lengths.
568 * scripttempl/avrtiny.sc: Define and use symbols for all region
571 2015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
573 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
574 * Makefile.in: Regenerate.
575 * configure.tgt: Add h8300-*-linux
576 * emulparams/h8300elf_linux.sh: Add new emulation.
577 * emulparams/h8300helf_linux.sh: Likewise.
578 * emulparams/h8300self_linux.sh: Likewise.
579 * emulparams/h8300sxelf_linux.sh: Likewise.
581 2015-02-23 Nick Clifton <nickc@redhat.com>
583 * lexsup.c (parse_args): Produce a more reasonable error message
584 when -ixxx or -rxxx is the last option on the linker command line.
586 2015-02-14 H.J. Lu <hongjiu.lu@intel.com>
589 * testplug2.c (allsymbolsread_silent): New.
590 (set_register_hook): Handle allsymbolsreadsilent.
591 (onall_symbols_read): Skip a message if allsymbolsread_silent is
594 2015-02-14 Alan Modra <amodra@gmail.com>
597 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
598 * ldlang.c (lang_process): Don't set loading_lto_outputs.
599 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
601 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
603 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
605 * NEWS: Mention support for LLVM plugin.
607 2015-02-13 Alan Modra <amodra@gmail.com>
609 * ld.texinfo (Options <--defsym>): Correct cross reference.
611 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
613 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
614 option compatibility.
616 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
618 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
619 "error:" for LDPL_FATAL and LDPL_ERROR.
620 * testplug2.c (parse_option): Handle fatal, error and warning.
622 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
624 * testplug2.c (dump_tv_tag): Removed.
625 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
627 * testplug3.c (dump_tv_tag): Removed.
628 (onclaim_file): Fix typo.
630 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
633 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
635 (libldtestplug2_la_SOURCES): New.
636 (libldtestplug2_la_CFLAGS): Likewise.
637 (libldtestplug2_la_LDFLAGS): Likewise.
638 (libldtestplug3_la_SOURCES): New.
639 (libldtestplug3_la_CFLAGS): Likewise.
640 (libldtestplug3_la_LDFLAGS): Likewise.
641 * Makefile.in: Regenerated.
642 * testplug2.c: New file.
643 * testplug3.c: Likewise.
645 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
648 * plugin.c: Include ../bfd/plugin.h.
649 (plugin_get_ir_dummy_bfd): Call bfd_create with
650 link_info.output_bfd instead of srctemplate. Copy BFD info
651 from srctemplate only if it doesn't use BFD plugin target
653 (plugin_load_plugins): Call register_ld_plugin_object_p with
655 (plugin_maybe_claim): Renamed to ...
656 (plugin_object_p): This. Return dummy BFD target vector if
657 input is calimed by plugin library, otherwise return NULL.
658 Update plugin_format and plugin_dummy_bfd.
659 (plugin_maybe_claim): New. Use plugin_object_p.
661 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
663 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
665 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
667 * plugin.c (plugin_input_file_t): Add use_mmap.
668 (plugin_pagesize): New.
669 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
670 (plugin_load_plugins): Initialize plugin_pagesize.
671 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
674 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
676 * plugin.c (get_view): Align offset passed to mmap.
678 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
680 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
681 if plugin isn't active or there is no thing more to claim.
683 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
685 * plugin.c (plugin_maybe_claim): Check format against bfd_object
688 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
690 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
693 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
695 * plugin.c: Include "libbfd.h".
696 (plugin_strdup): New.
697 (plugin_maybe_claim): Remove the argument of pointer to struct
698 ld_plugin_input_file. Open and handle input entry.
699 * plugin.h (plugin_maybe_claim): Updated.
700 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
701 without passing a pointer to struct ld_plugin_input_file.
702 * ldmain.c: Don't include "libbfd.h".
703 (add_archive_element): Call plugin_maybe_claim directly without
704 passing a pointer to struct ld_plugin_input_file.
706 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
708 * ld.texinfo: Document -z text, -z notext and -z textoff.
709 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
710 -z text, -z notext and -z textoff.
712 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
714 * configure.ac: Add AC_FUNC_MMAP.
715 * config.in: Regenerated.
716 * configure: Likewise.
717 * plugin.c: Include <sys/mman.h>.
718 (MAP_FAILED): New. Defined if not defined.
719 (PROT_READ): Likewise.
720 (MAP_PRIVATE): Likewise.
721 (view_buffer_t): New.
722 (plugin_input_file_t): Add view_buffer.
723 (get_view): Try mmap and cache the view buffer.
724 (plugin_maybe_claim): Initialize view_buffer.
726 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
728 * plugin.c (release_input_file): Set fd to -1 after closing it.
729 (plugin_maybe_claim): Close fd only if fd != -1.
731 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
734 * plugin.c: Include <errno.h>.
735 (errno): New. Declare if needed.
736 (plugin_input_file_t): New.
737 (get_input_file): Implemented.
738 (get_view): Likewise.
739 (release_input_file): Likewise.
740 (add_symbols): Updated.
741 (get_symbols): Likewise.
742 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
743 only for a bfd_object input.
745 2015-02-02 Alan Modra <amodra@gmail.com>
747 * emultempl/ppc64elf.em (toc_section_name): New var.
748 (ppc_after_open): Set it.
749 (ppc_before_allocation): Use it.
750 (gld${EMULATION_NAME}_after_allocation): Here too.
752 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
754 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
755 with link_info.lto_plugin_active.
756 * ldlang.c (lang_process): Likewise.
757 * ldmain.c (add_archive_element): Likewise.
758 * plugin.c (plugin_active_plugins_p): Removed.
759 * plugin.h (plugin_active_plugins_p): Likewise.
761 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
763 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
765 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
767 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
770 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
771 (get_view): New function.
772 (set_tv_header): Handle LDPT_GET_VIEW.
773 * testplug.c (tag_names): Add LDPT_GET_VIEW.
775 (dump_tv_tag): Handle LDPT_GET_VIEW.
776 (parse_tv_tag): Likewise.
778 2015-01-28 Alan Modra <amodra@gmail.com>
780 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
781 * emultempl/ppc64elf.em (params): Init new field.
782 (ppc_after_open): New function.
783 (LDEMUL_AFTER_OPEN): Define.
784 * ldlang.c (lang_final): Whitespace fix.
786 2015-01-28 James Bowman <james.bowman@ftdichip.com>
788 * Makefile.am: Add FT32 files.
789 * configure.tgt: Handle FT32 target.
790 * emulparams/elf32ft32.sh: New file.
791 * scripttempl/ft32.sc: New file.
792 * Makefile.in: Regenerate.
794 2015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
797 * ldexp.c (fold_name): Fold LENGTH only after
798 lang_first_phase_enum.
799 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
801 * ldlang.h (struct memory_region_struct): Add origin_exp and
803 * ldlang.c (lang_do_memory_regions): New.
804 (lang_memory_region_lookup): Initialize origin_exp and
806 (lang_process): Call lang_do_memory_regions.
808 2015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
810 * ldlang.c (print_assignment): Only evaluate the expression for a
811 PROVIDE'd assignment when the destination is being defined.
812 Display a special message for PROVIDE'd symbols that are not being
815 2015-01-20 Alan Modra <amodra@gmail.com>
817 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
818 (OTHER_BSS_SYMBOLS): ..this.
819 (OTHER_PLT_RELOC_SECTIONS): Don't define.
820 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
821 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
822 (OTHER_RELRO_SECTIONS_2): ..here.
823 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
825 2015-01-20 Alan Modra <amodra@gmail.com>
827 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
828 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
829 (OTHER_RELRO_SECTIONS_2): ..here.
830 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
831 PLT_BEFORE_GOT): Define.
832 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
833 PLT_BEFORE_GOT combination.
834 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
836 2015-01-20 Alan Modra <amodra@gmail.com>
838 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
839 (OTHER_RELRO_SECTIONS_2): ..here, new define.
840 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
842 2015-01-19 Alan Modra <amodra@gmail.com>
845 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
847 2015-01-14 Jiong Wang <jiong.wang@arm.com>
849 * ld-arm/elf32-reject.s: New testcase.
850 * ld-arm/elf32-reject.d: Likewise.
851 * ld-arm/elf32-reject-pie.s: Likewise.
852 * ld-arm/elf32-reject-pie.d: Likewise.
853 * ld-arm/arm-elf.exp: Run new testcases.
854 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
855 * ld-arm/ifunc-7.rd: Likewise.
856 * ld-arm/ifunc-7.gd: Likewise.
857 * ld-arm/ifunc-7.dd: Likewise.
858 * ld-arm/ifunc-8.s: Likewise.
859 * ld-arm/ifunc-8.rd: Likewise.
860 * ld-arm/ifunc-8.gd: Likewise.
861 * ld-arm/ifunc-8.dd: Likewise.
863 2015-01-01 Alan Modra <amodra@gmail.com>
865 * ldver.c (ldversion): Just print current year.
867 2015-01-01 Alan Modra <amodra@gmail.com>
869 Update year range in copyright notice of all files.
871 For older changes see ChangeLog-2014
873 Copyright (C) 2015 Free Software Foundation, Inc.
875 Copying and distribution of this file, with or without modification,
876 are permitted in any medium without royalty provided the copyright
877 notice and this notice are preserved.
883 version-control: never