1 2015-10-22 H.J. Lu <hongjiu.lu@intel.com>
3 * configure.ac: Properly check
4 --enable-compressed-debug-sections={yes,all}.
5 * configure: Regenerated.
7 2015-10-22 H.J. Lu <hongjiu.lu@intel.com>
10 * configure.ac: Handle --enable-compressed-debug-sections=*,ld,*.
11 * configure: Regenerated.
13 2015-10-22 H.J. Lu <hongjiu.lu@intel.com>
15 * ld/ld.texinfo: Document "-z call-nop=PADDING" option.
16 * emulparams/call_nop.sh: New file.
17 * emulparams/elf_i386_be.sh: Source
18 ${srcdir}/emulparams/call_nop.sh.
19 * emulparams/elf_i386_chaos.sh: Likewise.
20 * emulparams/elf_i386_ldso.sh: Likewise.
21 * emulparams/elf_i386_vxworks.sh: Likewise.
22 * emulparams/elf_iamcu.sh: Likewise.
23 * emulparams/elf_k1om.sh: Likewise.
24 * emulparams/elf_l1om.sh: Likewise.
25 * emulparams/elf_x86_64.sh: Likewise.
26 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
27 link_info.call_nop_byte if $CALL_NOP_BYTE isn't empty.
29 2015-10-21 Nick Clifton <nickc@redhat.com>
32 * configure.ac: Add --enable-compressed-debug-sections with
33 options of all, none or ld.
34 * configure: Regenerate.
35 * config.in: Regenerate.
36 * ld.texinfo: Document how to determine the default action for
38 * ldmain.c (main): If DEFAULT_FLAG_COMPRESS_DEBUG is defined then
39 set the compress_debug field of the link_info structure to
41 * lexsup.c (elf_static_list_options): Output the default setting
42 for the --compress-debug-sections option.
43 * NEWS: Mention the new configure option.
45 2015-10-15 H.J. Lu <hongjiu.lu@intel.com>
47 * ld.texinfo: Fix a typo for "-z noextern-protected-data".
49 2015-10-15 Simon Dardis <Simon.Dardis@imgtec.com>
51 * ld/ldexp.c: (try_copy_symbol_flags): New. Factored out from...
52 (exp_fold_tree_1): Here. Cope with ternary operator in
53 assignments. Use new helper.
55 2015-10-14 Nick Clifton <nickc@redhat.com>
57 * po/zh_TW.po: Updated Chinese translation.
59 2015-10-13 Nick Clifton <nickc@redhat.com>
61 * po/zh_TW.po: Updated Chinese translation.
63 2015-10-07 Claudiu Zissulescu <claziss@synopsys.com>
64 Cupertino Miranda <cmiranda@synopsys.com>
66 * configure.tgt: Added target arc-*-elf* and arc*-*-linux-uclibc*.
67 * emulparams/arcebelf_prof.sh: New file
68 * emulparams/arcebelf.sh: Likewise.
69 * emulparams/arceblinux_prof.sh: Likewise.
70 * emulparams/arceblinux.sh: Likewise.
71 * emulparams/arcelf_prof.sh: Likewise.
72 * emulparams/arcelf.sh: Likewise.
73 * emulparams/arclinux_prof.sh: Likewise.
74 * emulparams/arclinux.sh: Likewise.
75 * emulparams/arcv2elfx.sh: Likewise.
76 * emulparams/arcv2elf.sh: Likewise.
77 * emultempl/arclinux.em: Likewise.
78 * scripttempl/arclinux.sc: Likewise.
79 * scripttempl/elfarc.sc: Likewise.
80 * scripttempl/elfarcv2.sc: Likewise
81 * Makefile.am: Add new ARC emulations.
82 * Makefile.in: Regenerate.
83 * NEWS: Mention the new feature.
85 2015-10-04 H.J. Lu <hongjiu.lu@intel.com>
87 * configure.tgt (targ_extra_emuls): Add elf_iamcu for Solaris2/x86.
89 2015-10-01 Kaz Kojima <kkojima@rr.iij4u.or.jp>
91 * configure.tgt (targ_extra_emuls): Remove shlelf and
92 shelf from sh*-*-linux cases.
94 2015-09-30 Rich Felker <dalias@libc.org>
96 * configure.tgt (targ_extra_emuls): Add fdpic and misc
97 emulations to sh*-*-linux* targets.
99 2015-09-29 Nick Clifton <nickc@redhat.com>
102 * ld.texinfo (Options): Fix spelling mistake.
104 2015-09-24 Alan Modra <amodra@gmail.com>
107 * ldmain.c (main): Always enable --sysroot.
108 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
109 prepend sysroot to relative rpath/runpath.
111 2015-09-23 Nick Clifton <nickc@redhat.com>
113 * emultempl/elf32.em (ehdr_start_empty): New static variable.
114 (before_allocation): Use it to initialise ehdr_start_save.
115 * emultempl/pe.em (write_build_id): Remove useless double
117 * emultempl/pep.em (write_build_id): Likewise.
119 2015-09-22 H.J. Lu <hongjiu.lu@intel.com>
121 * emultempl/alphaelf.em (alpha_after_parse): Call
122 gld${EMULATION_NAME}_after_parse instead of
124 * emultempl/cr16elf.em (cr16elf_after_parse): Likewise.
125 * emultempl/crxelf.em (crxelf_after_parse); Likewise.
126 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
127 * emultempl/mipself.em (mips_after_parse): Likewise.
128 * emultempl/nds32elf.em (nds32_elf_after_parse): Likewise.
129 * emultempl/elf32.em: Don't include ldlex.h.
130 (gld${EMULATION_NAME}_after_parse): New function.
131 (gld${EMULATION_NAME}_handle_option) [GENERATE_PIE_SCRIPT]
132 <OPTION_PIE>: Removed.
133 (ld_${EMULATION_NAME}_emulation): Replace after_parse_default
134 with gld${EMULATION_NAME}_after_parse.
135 * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse):
137 (ia64elf_after_parse): This. Call
138 gld${EMULATION_NAME}_after_parse instead of after_parse_default.
139 (LDEMUL_AFTER_PARSE): Replace gld${EMULATION_NAME}_after_parse
140 with ia64elf_after_parse.
142 2015-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
144 * emulparams/solaris2.sh (GENERATE_PIE_SCRIPT): Set to yes.
146 * emultempl/elf32.em: Include ldlex.h.
147 (gld${EMULATION_NAME}_handle_option) [GENERATE_PIE_SCRIPT]
148 <OPTION_PIE>: Set DF_1_PIE.
150 2015-09-22 Alan Modra <amodra@gmail.com>
152 * ld.texinfo: Put --dotsyms/--no-dotsyms on separate lines.
153 Ditto for --save-restore-funcs and --tls-get-addr-optimize.
155 2015-09-20 Rich Felker <dalias@libc.org>
157 * ld.texinfo (--no-dynamic-linker): Document.
158 * ldlex.h (enum option_values): Add OPTION_NO_DYNAMIC_LINKER.
159 * lexsup.c (ld_options, parse_args): Handle --no-dynamic-linker.
161 2015-09-18 Alan Modra <amodra@gmail.com>
163 * ld.texinfo: Document PowerPC64 --{no-,}save-restore-funcs.
165 2015-09-18 Alan Modra <amodra@gmail.com>
167 * emultempl/ppc64elf.em (params): Init tls_get_addr_opt field to -1.
168 (OPTION_TLS_GET_ADDR_OPT): Define.
169 (PARSE_AND_LIST_LONGOPTS): Handle --tls-get-addr-opt.
170 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
171 * ld.texinfo: Document --tls-get-addr-optimize and
172 --no-tls-get-addr-optimize.
174 2015-09-18 Alan Modra <amodra@gmail.com>
177 * ldexp.h (struct ldexp_control): Add rel_from_abs.
178 (ldexp_finalize_syms): Declare.
179 * ldexp.c (new_rel_from_abs): Keep absolute for expressions
180 outside of output section statements. Set rel_from_abs.
181 (make_abs, exp_fold_tree, exp_fold_tree_no_dot): Clear rel_from_abs.
182 (struct definedness_hash_entry): Add final_sec, and comment.
183 (update_definedness): Set final_sec.
184 (set_sym_sections, ldexp_finalize_syms): New functions.
185 * ldlang.c (lang_process): Call ldexp_finalize_syms.
187 2015-09-10 Nick Clifton <nickc@redhat.com>
189 * po/zh_CN.po: Updated simplified Chinese translation.
191 2015-09-09 James Bowman <james.bowman@ftdichip.com>
193 * scripttempl/ft32.sc: default linker script RAM and
196 2015-09-09 Nick Clifton <nickc@redhat.com>
198 * po/zh_CN.po: Updated simplified Chinese translation.
200 2015-09-08 Nick Clifton <nickc@redhat.com>
202 * ld.texinfo (Source Code Reference): Extend description to
203 include an example using arrays.
205 2015-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
207 * ld.h (enum orphan_handling_enum): New.
208 (ld_config_type): Remove warn_orphan, add orphan_handling.
209 * ldemul.c (ldemul_place_orphan): Remove warning about orphan
211 * ldlang.c (ldlang_place_orphan): New function.
212 (lang_place_orphans): Call ldlang_place_orphan.
213 * ldlex.h (enum option_values): Remove OPTION_WARN_ORPHAN and
214 OPTION_NO_WARN_ORPHAN, add OPTION_ORPHAN_HANDLING.
215 * lexsup.c (ld_options): Remove 'warn-orphan' and
216 'no-warn-orphan', add 'orphan-handling'.
217 (parse_args): Remove handling for OPTION_WARN_ORPHAN and
218 OPTION_NO_WARN_ORPHAN, add handling for OPTION_ORPHAN_HANDLING.
219 * NEWS: Replace text about --warn-orphan with --orphan-handling.
220 * ld.texinfo (Options): Remove --warn-orphan entry and add
221 entry on --orphan-handling.
222 (Orphan Sections): Add reference to relevant command line options.
224 2015-09-03 Nick Clifton <nickc@redhat.com>
226 * ld.texinfo (--build-id): Fix typo. The COFF/PE build-id section
227 is called .buildid not .build-id.
229 2015-09-03 Nick Clifton <nickc@redhat.com>
231 (Source Code Reference): Fix off-by-one typo in example of how to
232 use linker script symbols in C source code.
234 2015-08-19 Alan Modra <amodra@gmail.com>
236 * emultempl/aix.em: Don't set link_info.pic.
237 * emultempl/pe.em: Likewise.
238 * emultempl/pep.em: Likewise.
239 * emultempl/sunos.em: Likewise.
240 * lexsup.c (parse_args): Likewise. Set type_pie for -pie.
241 * plugin.c (set_tv_header <LDPT_LINKER_OUTPUT>): Simplify.
243 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
245 * ld/ldctor.c: Replace shared, executable, relocatable and pie
246 fields with bfd_link_executable, bfd_link_dll,
247 bfd_link_relocatable, bfd_link_pic and bfd_link_pie.
248 * ld/ldemul.c: Likewise.
249 * ld/ldfile.c: Likewise.
250 * ld/ldlang.c: Likewise.
251 * ld/ldmain.c: Likewise.
252 * ld/ldwrite.c: Likewise.
253 * ld/lexsup.c: Likewise.
254 * ld/pe-dll.c: Likewise.
255 * ld/plugin.c: Likewise.
256 * ld/emultempl/aarch64elf.em: Likewise.
257 * ld/emultempl/aix.em: Likewise.
258 * ld/emultempl/alphaelf.em: Likewise.
259 * ld/emultempl/armcoff.em: Likewise.
260 * ld/emultempl/armelf.em: Likewise.
261 * ld/emultempl/avrelf.em: Likewise.
262 * ld/emultempl/beos.em: Likewise.
263 * ld/emultempl/cr16elf.em: Likewise.
264 * ld/emultempl/elf-generic.em: Likewise.
265 * ld/emultempl/elf32.em: Likewise.
266 * ld/emultempl/genelf.em: Likewise.
267 * ld/emultempl/generic.em: Likewise.
268 * ld/emultempl/gld960.em: Likewise.
269 * ld/emultempl/gld960c.em: Likewise.
270 * ld/emultempl/hppaelf.em: Likewise.
271 * ld/emultempl/irix.em: Likewise.
272 * ld/emultempl/linux.em: Likewise.
273 * ld/emultempl/lnk960.em: Likewise.
274 * ld/emultempl/m68hc1xelf.em: Likewise.
275 * ld/emultempl/m68kcoff.em: Likewise.
276 * ld/emultempl/m68kelf.em: Likewise.
277 * ld/emultempl/metagelf.em: Likewise.
278 * ld/emultempl/mipself.em: Likewise.
279 * ld/emultempl/mmo.em: Likewise.
280 * ld/emultempl/msp430.em: Likewise.
281 * ld/emultempl/nds32elf.em: Likewise.
282 * ld/emultempl/needrelax.em: Likewise.
283 * ld/emultempl/nios2elf.em: Likewise.
284 * ld/emultempl/pe.em: Likewise.
285 * ld/emultempl/pep.em: Likewise.
286 * ld/emultempl/ppc32elf.em: Likewise.
287 * ld/emultempl/ppc64elf.em: Likewise.
288 * ld/emultempl/sh64elf.em: Likewise.
289 * ld/emultempl/solaris2.em: Likewise.
290 * ld/emultempl/spuelf.em: Likewise.
291 * ld/emultempl/sunos.em: Likewise.
292 * ld/emultempl/tic6xdsbt.em: Likewise.
293 * ld/emultempl/ticoff.em: Likewise.
294 * ld/emultempl/v850elf.em: Likewise.
295 * ld/emultempl/vms.em: Likewise.
296 * ld/emultempl/vxworks.em: Likewise.
298 2015-08-18 Alan Modra <amodra@gmail.com>
300 * ldexp.c (exp_fold_tree_1): Clear linker_def on symbol assignment.
302 2015-08-06 Alan Modra <amodra@gmail.com>
304 * ldexp.c (align_dot_val): Delete.
305 (fold_unary <ALIGN_K, NEXT>): Revert 2015-07-10 change.
306 (is_align_conditional): Revert 2015-07-20 change.
307 (exp_fold_tree_1): Likewise, but keep expanded comment.
308 * scripttempl/elf.sc (.ldata, .bss): Revert 2015-07-20 change.
309 * ld.texinfo (<ALIGN>): Correct description.
311 2015-08-04 Andrew Burgess <andrew.burgess@embecosm.com>
313 * ld.texinfo (Options): Document --require-defined option.
314 * ldlang.c (struct require_defined_symbol): New structure.
315 (require_defined_symbol_list): New variable.
316 (ldlang_add_require_defined): New function.
317 (ldlang_check_require_defined_symbols): New function.
318 (lang_process): Check required symbols are defined.
319 * ldlang.h (ldlang_add_require_defined): Declare.
320 * ldlex.h (enum option_values): Add OPTION_REQUIRE_DEFINED_SYMBOL.
321 * lexsup.c (ld_options): Add '--require-defined' entry.
322 (parse_args): Handle '--requre-defined' entry.
323 * NEWS: Mention new '--require-defined' option.
325 2015-08-03 Andrew Burgess <andrew.burgess@embecosm.com>
327 * ld.texinfo (MEMORY): Explain that multiple MEMORY commands are
330 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
332 * lexsup.c (parse_args): Don't set link_info.executable to
333 TRUE for link_info.relocatable.
335 2015-07-27 H.J. Lu <hongjiu.lu@intel.com>
337 * configure: Regenerated.
339 2015-07-24 Nick Clifton <nickc@redhat.com>
341 * emulparams/elf32rl78.sh (OTHER_SECTIONS): Provide a value for
342 the _-rl78_abs__ symbol.
344 2015-07-20 Alan Modra <amodra@gmail.com>
346 * emulparams/criself.sh (INIT_ADDR, FINI_ADDR): Define.
347 (INIT_START, FINI_START): Don't ALIGN.
348 * scriptempl/elf.sc (.init, .fini): Apply INIT_ADDR/FINI_ADDR.
350 2015-07-20 Alan Modra <amodra@gmail.com>
352 * scripttempl/elf.sc (.ldata, .bss): Align absolute value of dot.
353 * ldexp.c (is_align_conditional): Handle binary ALIGN.
354 (exp_fold_tree_1): Move code setting SEC_KEEP for assignments to
355 dot inside output sections. Handle absolute expressions.
357 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
359 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Make
360 --compress-debug-sections=zlib the same as
361 --compress-debug-sections=zlib-gabi.
362 * ld.texinfo: Change --compress-debug-sections=zlib to zlib-gabi.
364 2015-07-14 Nick Clifton <nickc@redhat.com>
366 * ld.texinfo (Options): Add missing period after @xref.
368 2015-07-10 Alan Modra <amodra@gmail.com>
370 * ldexp.c (align_dot_val): New function.
371 (fold_unary <ALIGN_K, NEXT>): Use it.
373 2015-07-03 Kai Tietz <ktietz@redhat.com>
376 * scripttempl/pep.sc: Mark .idata*, .CRT*, .tls*,
377 .rsrc*, .init, .ctor*, .dtor*, .fini, .jcr,
378 .eh_frame, .pdata. .xdata, and .gcc_except_table sections
380 * scripttempl/pe.sc: Likewise.
381 * ld.texinfo: Document that --gc-sections has experimental support
382 for COFF and PE targets.
383 * NEWS: Mention experimental support.
385 2015-07-03 Alan Modra <amodra@gmail.com>
387 * Makefile.am (eelf32or1k.c, eelf32or1k_linux.c): Depend on ELF_DEPS.
388 * Makefile.in: Regenerate.
390 2015-06-28 H.J. Lu <hongjiu.lu@intel.com>
392 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option):
393 Replace COMPRESS_DEBUG_ZLIB with COMPRESS_DEBUG_GNU_ZLIB.
395 2015-06-26 H.J. Lu <hongjiu.lu@intel.com>
397 * emulparams/elf_iamcu.sh (COMPILE_IN): New.
399 2015-06-15 Nick Clifton <nickc@redhat.com>
402 * emultempl/pe.em (pe_find_data_imports): Generate an error if a
403 symbol name is too long to handle.
404 * emultempl/pep.em (pep_find_data_imports): Likewise.
406 2015-06-12 Tristan Gingold <gingold@adacore.com>
408 * NEWS: Mention new option.
409 * lexsup.c (parse_args): Handle --print-memory-usage.
410 (ld_options): Add --print-memory-usage.
411 * ldmain.c (main): Call lang_print_memory_usage.
412 * ldlex.h (enum option_values): Add OPTION_PRINT_MEMORY_USAGE.
413 * ldlang.h: Add prototype of lang_print_memory_usage.
414 * ldlang.c (lang_print_memory_size, lang_print_memory_usage): New
416 * ld.texinfo (Options): Document --print-memory-usage.
417 * ld.h (args_type): Add print_memory_usage field.
419 2015-06-08 Nick Clifton <nickc@redhat.com>
421 * po/fr.po: Updated French Translation.
423 2015-05-28 Catherine Moore <clm@codesourcery.com>
424 Paul Brook <paul@codesourcery.com>
426 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
427 Add Compact EH support.
428 * scripttempl/elf.sc: Handle .eh_frame_entry and .gnu_extab
431 2015-05-17 Chung-Lin Tang <cltang@codesourcery.com>
433 * configure.ac (AC_PROG_GREP): Check for grep program.
434 (elf_list_options,elf_shlib_list_options,elf_plt_unwind_list_options):
435 Enable ELF option printing for emulations containing
436 'TEMPLATE_NAME=elf32'.
437 * configure: Regenerate.
439 2015-05-14 Nick Clifton <nickc@redhat.com>
441 * ld.texinfo (ASSERT): Describe the interaction with PROVIDEd
444 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
446 * configure.tgt: Support i[3-7]86-*-elfiamcu target.
448 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
450 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_iamcu.c.
452 * configure.tgt (targ_extra_emuls): Add elf_iamcu if elf_i386 is
454 * Makefile.in: Regenerated.
455 * emulparams/elf_iamcu.sh: New file.
457 2015-05-05 Nick Clifton <nickc@redhat.com>
459 * emulparams/msp430elf.sh (TEMPLATE_NAME): Change to msp430.
460 * scripttempl/msp430.sc (.text): Add .lower.text and .either.text.
461 (.data): Add .lower.data and .either.data.
462 (.bss): Add .lower.bss and .either.bss.
463 (.rodata): Add .lower.rodata and .either.rodata.
464 * emultempl/msp430.em: New file. Implements a new orphan
465 placement algorithm that divides sections between lower and upper
467 * Makefile.am (emsp430elf.c): Depend upon msp430.em.
468 *emsp430X.c): Likewise.
469 * Makefine.in: Regenerate.
471 2015-04-28 Andreas Schwab <schwab@linux-m68k.org>
474 * ldlex.l (INPUTLIST): Increment lineno on newline.
476 2015-04-24 Alan Modra <amodra@gmail.com>
478 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
479 Call gld${EMULATION_NAME}_map_segments regardless of need_laying_out.
481 2015-04-24 DJ Delorie <dj@redhat.com>
483 * Makefile.am (msp430): Rename primary emulation to msp430elf.
484 (emsp430.c): Rename to emsp430elf.c, update dependencies
485 (emsp430X.c): Update dependencies.
486 * Makefile.in: Likewise.
487 * configure.tgt (msp430-*-*): Rename primary emulation to msp430elf.
488 * emulparams/msp430.sh: Rename to msp430elf.sh.
489 * emulparams/msp430X.sh: Update.
491 2015-04-23 H.J. Lu <hongjiu.lu@intel.com>
494 * ldfile.c (ldfile_try_open_bfd): Set is_linker_input to 1.
496 2015-04-23 Alan Modra <amodra@gmail.com>
498 * emulparams/elf64ppc.sh (GOT): Align.
500 2015-04-22 Alan Modra <amodra@gmail.com>
502 * ldexp.h (struct ldexp_control): Delete dataseg.min_base. Add
503 data_seg.relro_offset.
504 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Don't set min_base.
505 (fold_binary <DATA_SEGMENT_RELRO_END>): Do set relro_offset.
506 * ldlang.c (lang_size_sections): Rewrite code adjusting relro
507 segment base to line up last section on page boundary.
509 2015-04-15 H.J. Lu <hongjiu.lu@intel.com>
512 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
514 2015-04-14 H.J. Lu <hongjiu.lu@intel.com>
516 * ld.texinfo: Document --compress-debug-sections=.
517 * ldmain.c (main): Set BFD_COMPRESS on output_bfd if
518 COMPRESS_DEBUG is set. Set BFD_COMPRESS_GABI on output_bfd
519 for COMPRESS_DEBUG_GABI_ZLIB.
520 * lexsup.c (elf_static_list_options): Add
521 --compress-debug-sections=.
522 * emultempl/elf32.em (OPTION_COMPRESS_DEBUG): New.
523 (xtra_long): Add "compress-debug-sections".
524 (gld${EMULATION_NAME}_handle_option): Handle
525 OPTION_COMPRESS_DEBUG.
527 2015-04-14 H.J. Lu <hongjiu.lu@intel.com>
530 * ld.texinfo: Document "-z noextern-protected-data".
531 * ldmain.c (main): Initialize link_info.extern_protected_data
533 * lexsup.c (elf_shlib_list_options): Add
534 "-z [no]extern-protected-data".
535 * emulparams/elf32_x86_64.sh: Source extern_protected_data.sh.
536 * emulparams/elf_i386.sh: Likewise.
537 * emulparams/elf_i386_be.sh: Likewise.
538 * emulparams/elf_i386_chaos.sh: Likewise.
539 * emulparams/elf_i386_ldso.sh: Likewise.
540 * emulparams/elf_i386_vxworks.sh: Likewise.
541 * emulparams/elf_k1om.sh: Likewise.
542 * emulparams/elf_l1om.sh: Likewise.
543 * emulparams/elf_x86_64.sh: Source extern_protected_data.sh.
544 (PARSE_AND_LIST_OPTIONS): Renamed to ...
545 (PARSE_AND_LIST_OPTIONS_BNDPLT): This.
546 (PARSE_AND_LIST_ARGS_CASE_Z): Renamed to ...
547 (PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT): This.
548 (PARSE_AND_LIST_OPTIONS): Append $PARSE_AND_LIST_OPTIONS_BNDPLT.
549 (PARSE_AND_LIST_ARGS_CASE_Z): Append
550 $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT.
551 * emulparams/extern_protected_data.sh: New file.
553 2015-04-11 H.J. Lu <hongjiu.lu@intel.com>
555 * plugin.c (plugin_load_plugins): Removed an extra ';'.
557 2015-04-10 Nick Clifton <nickc@redhat.com>
560 * ld.texinfo (--be8): Add a note about the interaction of this
561 option with the assembler's -EB option.
563 2015-04-10 Alan Modra <amodra@gmail.com>
565 * configure.ac: Set elf_list_options etc. in proper case.
566 * configure: Regenerate.
568 2015-04-10 Alan Modra <amodra@gmail.com>
571 * ldlang.c (lang_process): Add _init and _fini to gc_sym_list.
573 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
575 * emulparams/elf_x86_64.sh (BNDPLT): Removed.
576 (PARSE_AND_LIST_OPTIONS): New.
577 (PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
578 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Remove
579 BNDPLT check. Handle PARSE_AND_LIST_ARGS_CASE_Z.
580 (gld${EMULATION_NAME}_list_options): Remove BNDPLT check.
582 2015-04-09 Nick Clifton <nickc@redhat.com>
584 * po/fr.po: Updated French translation.
586 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
588 * configure.ac (elf_list_options): Set to TRUE for
589 --enable-targets=all.
590 (elf_shlib_list_options): Likewise.
591 (elf_plt_unwind_list_options): Likewise.
592 * configure: Regenerated.
594 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
596 * emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME.
598 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
600 * Makefile.am (ELF_CLFAGS): New.
601 (AM_CFLAGS): Add $(ELF_CLFAGS).
602 * configure.ac (elf_list_options): New. AC_SUBST.
603 (elf_shlib_list_options): Likewise.
604 (elf_plt_unwind_list_options): Likewise.
605 * lexsup.c (elf_shlib_list_options): New.
606 (elf_static_list_options): Likewise.
607 (elf_plt_unwind_list_options): Likewise.
608 (ld_list_options): Likewise.
609 (help): Call ld_list_options.
610 * Makefile.in: Regenerated.
611 * configure: Likewise.
612 * emulparams/plt_unwind.sh (PLT_UNWIND): New.
613 (PARSE_AND_LIST_OPTIONS): Removed.
614 * emultempl/elf32.em (gld_list_options): New.
615 (gld${EMULATION_NAME}_list_options): Define only if BNDPLT or
616 PARSE_AND_LIST_OPTIONS is defined.
617 (ld_${EMULATION_NAME}_emulation): Replace
618 gld${EMULATION_NAME}_list_options with ${gld_list_options.
620 2015-04-07 Alan Modra <amodra@gmail.com>
623 * ldlang.c (lang_size_sections): Cast shift expression.
625 2015-04-07 Alan Modra <amodra@gmail.com>
627 * emultempl/ppc32elf.em: Handle --no-pic-fixup.
628 (params): Init new field.
629 (ppc_before_allocation): Enable relaxation for pic_fixup.
631 2015-04-07 Nick Clifton <nickc@redhat.com>
633 * ld.h (struct ld_config_type): Add new field: warn_orphan.
634 * ldlex.h (enum option_values): Add OPTION_WARN_ORPHAN and
635 OPTION_NO_WARN_ORPHAN.
636 * lexsup.c (ld_options): Add --warn-orphan and --no-warn-orphan.
637 (parse_args): Handle the new options.
638 * ldemul.c (ldemul_place_orphan): If requested, generate a warning
639 message when an orphan section is placed in the output file.
640 * ld.texinfo: Document the new option.
641 * NEWS: Mention the new feature.
643 2015-04-02 Andrew Turner <andrew@freebsd.org>
645 * Makefile.am: Add FreeBSD aarch64 files.
646 * Makefile.in: Regenerate.
647 * configure.tgt: Add aarch64-*-freebsd* target triple.
648 * emulparams/aarch64fbsd.sh: New file.
649 * emulparams/aarch64fbsdb.sh: New file.
651 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
653 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work
654 around a GCC uninitialized warning bug fixed in GCC 4.6.
656 2015-04-01 Tejas Belagod <tejas.belagod@arm.com>
658 * emultempl/aarch64elf.em
659 (aarch64_elf_create_output_section_statements): Add parameter in
660 bfd_elf${ELFSIZE}_aarch64_set_options call.
661 (OPTION_FIX_ERRATUM_843419): Define.
662 (PARSE_AND_LIST_LONGOPTS): Add fix-cortex-a53-843419.
663 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_FIX_ERRATUM_843419.
665 2015-04-01 Chen Gang <gang.chen.5i5j@gmail.com>
667 * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for
668 relocating operation.
670 2015-04-01 Alan Modra <amodra@gmail.com>
673 * ldlang.c (lang_size_sections): When alignment of sections
674 results in relro base adjustment being too large, don't go lower
675 than the initial value.
676 * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
677 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
678 alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
680 2015-04-01 Alan Modra <amodra@gmail.com>
682 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
683 init ehdr_start_save.
685 2015-04-01 Alan Modra <amodra@gmail.com>
687 * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
689 (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
690 eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
691 eelf32ppcsim.c): Rearrange deps for consistency.
692 * Makefile.in: Regenerate.
694 2015-04-01 Ed Schouten <ed@nuxi.nl>
696 * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
697 the ehdr_start_save variable.
699 2015-03-31 Ed Schouten <ed@nuxi.nl>
701 * Makefile.am (ALL_64_EMULATION_SOURCES): Add
702 eelf_x86_64_cloudabi.c.
703 (eelf_x86_64_cloudabi.c): New.
704 * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
706 * Makefile.in: Regenerated.
707 * emulparams/elf_x86_64_cloudabi.sh: New file.
709 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
711 * configure.ac (AM_ZLIB): Removed.
712 * Makefile.in: Regenerated.
713 * config.in: Likewise.
714 * configure: Likewise.
716 2015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
718 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
721 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
723 * emultempl/aarch64elf.em
724 (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
726 2015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
728 * ldmain.c (main): Use %F instead of %X for einfo.
730 2015-03-02 Alan Modra <amodra@gmail.com>
732 * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
734 2015-02-27 Nick Clifton <nickc@redhat.com>
737 * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
738 sense of the following memory region attribute characters.
740 2015-02-27 Alan Modra <amodra@gmail.com>
742 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
743 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
744 eh8300sxelf_linux.c): Do not invoke genscripts here.
745 * Makefile.in: Regenerate.
747 2015-02-24 Nick Clifton <nickc@redhat.com>
749 * Makefile.am (ev850.c): Add dependency upon
750 $(srcdir)/emultempl/v850elf.em.
751 (ev850_rh850.c): Likewise.
752 * Makefile.in: Regenerate.
753 * emultempl/v850elf.em: New file.
754 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
755 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
756 * scripttempl/v850.sc: Add .note.renesas section.
757 * scripttempl/v850_rh850.sc: Likewise.
759 2015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
761 * scripttempl/avr.sc: Add new user_signatures region. Define and
762 use symbols for all region lengths.
763 * scripttempl/avrtiny.sc: Define and use symbols for all region
766 2015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
768 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
769 * Makefile.in: Regenerate.
770 * configure.tgt: Add h8300-*-linux
771 * emulparams/h8300elf_linux.sh: Add new emulation.
772 * emulparams/h8300helf_linux.sh: Likewise.
773 * emulparams/h8300self_linux.sh: Likewise.
774 * emulparams/h8300sxelf_linux.sh: Likewise.
776 2015-02-23 Nick Clifton <nickc@redhat.com>
778 * lexsup.c (parse_args): Produce a more reasonable error message
779 when -ixxx or -rxxx is the last option on the linker command line.
781 2015-02-14 H.J. Lu <hongjiu.lu@intel.com>
784 * testplug2.c (allsymbolsread_silent): New.
785 (set_register_hook): Handle allsymbolsreadsilent.
786 (onall_symbols_read): Skip a message if allsymbolsread_silent is
789 2015-02-14 Alan Modra <amodra@gmail.com>
792 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
793 * ldlang.c (lang_process): Don't set loading_lto_outputs.
794 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
796 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
798 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
800 * NEWS: Mention support for LLVM plugin.
802 2015-02-13 Alan Modra <amodra@gmail.com>
804 * ld.texinfo (Options <--defsym>): Correct cross reference.
806 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
808 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
809 option compatibility.
811 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
813 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
814 "error:" for LDPL_FATAL and LDPL_ERROR.
815 * testplug2.c (parse_option): Handle fatal, error and warning.
817 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
819 * testplug2.c (dump_tv_tag): Removed.
820 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
822 * testplug3.c (dump_tv_tag): Removed.
823 (onclaim_file): Fix typo.
825 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
828 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
830 (libldtestplug2_la_SOURCES): New.
831 (libldtestplug2_la_CFLAGS): Likewise.
832 (libldtestplug2_la_LDFLAGS): Likewise.
833 (libldtestplug3_la_SOURCES): New.
834 (libldtestplug3_la_CFLAGS): Likewise.
835 (libldtestplug3_la_LDFLAGS): Likewise.
836 * Makefile.in: Regenerated.
837 * testplug2.c: New file.
838 * testplug3.c: Likewise.
840 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
843 * plugin.c: Include ../bfd/plugin.h.
844 (plugin_get_ir_dummy_bfd): Call bfd_create with
845 link_info.output_bfd instead of srctemplate. Copy BFD info
846 from srctemplate only if it doesn't use BFD plugin target
848 (plugin_load_plugins): Call register_ld_plugin_object_p with
850 (plugin_maybe_claim): Renamed to ...
851 (plugin_object_p): This. Return dummy BFD target vector if
852 input is calimed by plugin library, otherwise return NULL.
853 Update plugin_format and plugin_dummy_bfd.
854 (plugin_maybe_claim): New. Use plugin_object_p.
856 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
858 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
860 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
862 * plugin.c (plugin_input_file_t): Add use_mmap.
863 (plugin_pagesize): New.
864 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
865 (plugin_load_plugins): Initialize plugin_pagesize.
866 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
869 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
871 * plugin.c (get_view): Align offset passed to mmap.
873 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
875 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
876 if plugin isn't active or there is no thing more to claim.
878 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
880 * plugin.c (plugin_maybe_claim): Check format against bfd_object
883 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
885 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
888 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
890 * plugin.c: Include "libbfd.h".
891 (plugin_strdup): New.
892 (plugin_maybe_claim): Remove the argument of pointer to struct
893 ld_plugin_input_file. Open and handle input entry.
894 * plugin.h (plugin_maybe_claim): Updated.
895 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
896 without passing a pointer to struct ld_plugin_input_file.
897 * ldmain.c: Don't include "libbfd.h".
898 (add_archive_element): Call plugin_maybe_claim directly without
899 passing a pointer to struct ld_plugin_input_file.
901 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
903 * ld.texinfo: Document -z text, -z notext and -z textoff.
904 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
905 -z text, -z notext and -z textoff.
907 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
909 * configure.ac: Add AC_FUNC_MMAP.
910 * config.in: Regenerated.
911 * configure: Likewise.
912 * plugin.c: Include <sys/mman.h>.
913 (MAP_FAILED): New. Defined if not defined.
914 (PROT_READ): Likewise.
915 (MAP_PRIVATE): Likewise.
916 (view_buffer_t): New.
917 (plugin_input_file_t): Add view_buffer.
918 (get_view): Try mmap and cache the view buffer.
919 (plugin_maybe_claim): Initialize view_buffer.
921 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
923 * plugin.c (release_input_file): Set fd to -1 after closing it.
924 (plugin_maybe_claim): Close fd only if fd != -1.
926 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
929 * plugin.c: Include <errno.h>.
930 (errno): New. Declare if needed.
931 (plugin_input_file_t): New.
932 (get_input_file): Implemented.
933 (get_view): Likewise.
934 (release_input_file): Likewise.
935 (add_symbols): Updated.
936 (get_symbols): Likewise.
937 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
938 only for a bfd_object input.
940 2015-02-02 Alan Modra <amodra@gmail.com>
942 * emultempl/ppc64elf.em (toc_section_name): New var.
943 (ppc_after_open): Set it.
944 (ppc_before_allocation): Use it.
945 (gld${EMULATION_NAME}_after_allocation): Here too.
947 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
949 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
950 with link_info.lto_plugin_active.
951 * ldlang.c (lang_process): Likewise.
952 * ldmain.c (add_archive_element): Likewise.
953 * plugin.c (plugin_active_plugins_p): Removed.
954 * plugin.h (plugin_active_plugins_p): Likewise.
956 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
958 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
960 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
962 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
965 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
966 (get_view): New function.
967 (set_tv_header): Handle LDPT_GET_VIEW.
968 * testplug.c (tag_names): Add LDPT_GET_VIEW.
970 (dump_tv_tag): Handle LDPT_GET_VIEW.
971 (parse_tv_tag): Likewise.
973 2015-01-28 Alan Modra <amodra@gmail.com>
975 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
976 * emultempl/ppc64elf.em (params): Init new field.
977 (ppc_after_open): New function.
978 (LDEMUL_AFTER_OPEN): Define.
979 * ldlang.c (lang_final): Whitespace fix.
981 2015-01-28 James Bowman <james.bowman@ftdichip.com>
983 * Makefile.am: Add FT32 files.
984 * configure.tgt: Handle FT32 target.
985 * emulparams/elf32ft32.sh: New file.
986 * scripttempl/ft32.sc: New file.
987 * Makefile.in: Regenerate.
989 2015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
992 * ldexp.c (fold_name): Fold LENGTH only after
993 lang_first_phase_enum.
994 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
996 * ldlang.h (struct memory_region_struct): Add origin_exp and
998 * ldlang.c (lang_do_memory_regions): New.
999 (lang_memory_region_lookup): Initialize origin_exp and
1001 (lang_process): Call lang_do_memory_regions.
1003 2015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
1005 * ldlang.c (print_assignment): Only evaluate the expression for a
1006 PROVIDE'd assignment when the destination is being defined.
1007 Display a special message for PROVIDE'd symbols that are not being
1010 2015-01-20 Alan Modra <amodra@gmail.com>
1012 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
1013 (OTHER_BSS_SYMBOLS): ..this.
1014 (OTHER_PLT_RELOC_SECTIONS): Don't define.
1015 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
1016 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
1017 (OTHER_RELRO_SECTIONS_2): ..here.
1018 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
1020 2015-01-20 Alan Modra <amodra@gmail.com>
1022 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
1023 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
1024 (OTHER_RELRO_SECTIONS_2): ..here.
1025 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
1026 PLT_BEFORE_GOT): Define.
1027 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
1028 PLT_BEFORE_GOT combination.
1029 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
1031 2015-01-20 Alan Modra <amodra@gmail.com>
1033 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
1034 (OTHER_RELRO_SECTIONS_2): ..here, new define.
1035 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
1037 2015-01-19 Alan Modra <amodra@gmail.com>
1040 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
1042 2015-01-14 Jiong Wang <jiong.wang@arm.com>
1044 * ld-arm/elf32-reject.s: New testcase.
1045 * ld-arm/elf32-reject.d: Likewise.
1046 * ld-arm/elf32-reject-pie.s: Likewise.
1047 * ld-arm/elf32-reject-pie.d: Likewise.
1048 * ld-arm/arm-elf.exp: Run new testcases.
1049 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
1050 * ld-arm/ifunc-7.rd: Likewise.
1051 * ld-arm/ifunc-7.gd: Likewise.
1052 * ld-arm/ifunc-7.dd: Likewise.
1053 * ld-arm/ifunc-8.s: Likewise.
1054 * ld-arm/ifunc-8.rd: Likewise.
1055 * ld-arm/ifunc-8.gd: Likewise.
1056 * ld-arm/ifunc-8.dd: Likewise.
1058 2015-01-01 Alan Modra <amodra@gmail.com>
1060 * ldver.c (ldversion): Just print current year.
1062 2015-01-01 Alan Modra <amodra@gmail.com>
1064 Update year range in copyright notice of all files.
1066 For older changes see ChangeLog-2014
1068 Copyright (C) 2015 Free Software Foundation, Inc.
1070 Copying and distribution of this file, with or without modification,
1071 are permitted in any medium without royalty provided the copyright
1072 notice and this notice are preserved.
1078 version-control: never