1 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
3 * ld/ldctor.c: Replace shared, executable, relocatable and pie
4 fields with bfd_link_executable, bfd_link_dll,
5 bfd_link_relocatable, bfd_link_pic and bfd_link_pie.
6 * ld/ldemul.c: Likewise.
7 * ld/ldfile.c: Likewise.
8 * ld/ldlang.c: Likewise.
9 * ld/ldmain.c: Likewise.
10 * ld/ldwrite.c: Likewise.
11 * ld/lexsup.c: Likewise.
12 * ld/pe-dll.c: Likewise.
13 * ld/plugin.c: Likewise.
14 * ld/emultempl/aarch64elf.em: Likewise.
15 * ld/emultempl/aix.em: Likewise.
16 * ld/emultempl/alphaelf.em: Likewise.
17 * ld/emultempl/armcoff.em: Likewise.
18 * ld/emultempl/armelf.em: Likewise.
19 * ld/emultempl/avrelf.em: Likewise.
20 * ld/emultempl/beos.em: Likewise.
21 * ld/emultempl/cr16elf.em: Likewise.
22 * ld/emultempl/elf-generic.em: Likewise.
23 * ld/emultempl/elf32.em: Likewise.
24 * ld/emultempl/genelf.em: Likewise.
25 * ld/emultempl/generic.em: Likewise.
26 * ld/emultempl/gld960.em: Likewise.
27 * ld/emultempl/gld960c.em: Likewise.
28 * ld/emultempl/hppaelf.em: Likewise.
29 * ld/emultempl/irix.em: Likewise.
30 * ld/emultempl/linux.em: Likewise.
31 * ld/emultempl/lnk960.em: Likewise.
32 * ld/emultempl/m68hc1xelf.em: Likewise.
33 * ld/emultempl/m68kcoff.em: Likewise.
34 * ld/emultempl/m68kelf.em: Likewise.
35 * ld/emultempl/metagelf.em: Likewise.
36 * ld/emultempl/mipself.em: Likewise.
37 * ld/emultempl/mmo.em: Likewise.
38 * ld/emultempl/msp430.em: Likewise.
39 * ld/emultempl/nds32elf.em: Likewise.
40 * ld/emultempl/needrelax.em: Likewise.
41 * ld/emultempl/nios2elf.em: Likewise.
42 * ld/emultempl/pe.em: Likewise.
43 * ld/emultempl/pep.em: Likewise.
44 * ld/emultempl/ppc32elf.em: Likewise.
45 * ld/emultempl/ppc64elf.em: Likewise.
46 * ld/emultempl/sh64elf.em: Likewise.
47 * ld/emultempl/solaris2.em: Likewise.
48 * ld/emultempl/spuelf.em: Likewise.
49 * ld/emultempl/sunos.em: Likewise.
50 * ld/emultempl/tic6xdsbt.em: Likewise.
51 * ld/emultempl/ticoff.em: Likewise.
52 * ld/emultempl/v850elf.em: Likewise.
53 * ld/emultempl/vms.em: Likewise.
54 * ld/emultempl/vxworks.em: Likewise.
56 2015-08-18 Alan Modra <amodra@gmail.com>
58 * ldexp.c (exp_fold_tree_1): Clear linker_def on symbol assignment.
60 2015-08-06 Alan Modra <amodra@gmail.com>
62 * ldexp.c (align_dot_val): Delete.
63 (fold_unary <ALIGN_K, NEXT>): Revert 2015-07-10 change.
64 (is_align_conditional): Revert 2015-07-20 change.
65 (exp_fold_tree_1): Likewise, but keep expanded comment.
66 * scripttempl/elf.sc (.ldata, .bss): Revert 2015-07-20 change.
67 * ld.texinfo (<ALIGN>): Correct description.
69 2015-08-04 Andrew Burgess <andrew.burgess@embecosm.com>
71 * ld.texinfo (Options): Document --require-defined option.
72 * ldlang.c (struct require_defined_symbol): New structure.
73 (require_defined_symbol_list): New variable.
74 (ldlang_add_require_defined): New function.
75 (ldlang_check_require_defined_symbols): New function.
76 (lang_process): Check required symbols are defined.
77 * ldlang.h (ldlang_add_require_defined): Declare.
78 * ldlex.h (enum option_values): Add OPTION_REQUIRE_DEFINED_SYMBOL.
79 * lexsup.c (ld_options): Add '--require-defined' entry.
80 (parse_args): Handle '--requre-defined' entry.
81 * NEWS: Mention new '--require-defined' option.
83 2015-08-03 Andrew Burgess <andrew.burgess@embecosm.com>
85 * ld.texinfo (MEMORY): Explain that multiple MEMORY commands are
88 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
90 * lexsup.c (parse_args): Don't set link_info.executable to
91 TRUE for link_info.relocatable.
93 2015-07-27 H.J. Lu <hongjiu.lu@intel.com>
95 * configure: Regenerated.
97 2015-07-24 Nick Clifton <nickc@redhat.com>
99 * emulparams/elf32rl78.sh (OTHER_SECTIONS): Provide a value for
100 the _-rl78_abs__ symbol.
102 2015-07-20 Alan Modra <amodra@gmail.com>
104 * emulparams/criself.sh (INIT_ADDR, FINI_ADDR): Define.
105 (INIT_START, FINI_START): Don't ALIGN.
106 * scriptempl/elf.sc (.init, .fini): Apply INIT_ADDR/FINI_ADDR.
108 2015-07-20 Alan Modra <amodra@gmail.com>
110 * scripttempl/elf.sc (.ldata, .bss): Align absolute value of dot.
111 * ldexp.c (is_align_conditional): Handle binary ALIGN.
112 (exp_fold_tree_1): Move code setting SEC_KEEP for assignments to
113 dot inside output sections. Handle absolute expressions.
115 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
117 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Make
118 --compress-debug-sections=zlib the same as
119 --compress-debug-sections=zlib-gabi.
120 * ld.texinfo: Change --compress-debug-sections=zlib to zlib-gabi.
122 2015-07-14 Nick Clifton <nickc@redhat.com>
124 * ld.texinfo (Options): Add missing period after @xref.
126 2015-07-10 Alan Modra <amodra@gmail.com>
128 * ldexp.c (align_dot_val): New function.
129 (fold_unary <ALIGN_K, NEXT>): Use it.
131 2015-07-03 Kai Tietz <ktietz@redhat.com>
134 * scripttempl/pep.sc: Mark .idata*, .CRT*, .tls*,
135 .rsrc*, .init, .ctor*, .dtor*, .fini, .jcr,
136 .eh_frame, .pdata. .xdata, and .gcc_except_table sections
138 * scripttempl/pe.sc: Likewise.
139 * ld.texinfo: Document that --gc-sections has experimental support
140 for COFF and PE targets.
141 * NEWS: Mention experimental support.
143 2015-07-03 Alan Modra <amodra@gmail.com>
145 * Makefile.am (eelf32or1k.c, eelf32or1k_linux.c): Depend on ELF_DEPS.
146 * Makefile.in: Regenerate.
148 2015-06-28 H.J. Lu <hongjiu.lu@intel.com>
150 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option):
151 Replace COMPRESS_DEBUG_ZLIB with COMPRESS_DEBUG_GNU_ZLIB.
153 2015-06-26 H.J. Lu <hongjiu.lu@intel.com>
155 * emulparams/elf_iamcu.sh (COMPILE_IN): New.
157 2015-06-15 Nick Clifton <nickc@redhat.com>
160 * emultempl/pe.em (pe_find_data_imports): Generate an error if a
161 symbol name is too long to handle.
162 * emultempl/pep.em (pep_find_data_imports): Likewise.
164 2015-06-12 Tristan Gingold <gingold@adacore.com>
166 * NEWS: Mention new option.
167 * lexsup.c (parse_args): Handle --print-memory-usage.
168 (ld_options): Add --print-memory-usage.
169 * ldmain.c (main): Call lang_print_memory_usage.
170 * ldlex.h (enum option_values): Add OPTION_PRINT_MEMORY_USAGE.
171 * ldlang.h: Add prototype of lang_print_memory_usage.
172 * ldlang.c (lang_print_memory_size, lang_print_memory_usage): New
174 * ld.texinfo (Options): Document --print-memory-usage.
175 * ld.h (args_type): Add print_memory_usage field.
177 2015-06-08 Nick Clifton <nickc@redhat.com>
179 * po/fr.po: Updated French Translation.
181 2015-05-28 Catherine Moore <clm@codesourcery.com>
182 Paul Brook <paul@codesourcery.com>
184 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
185 Add Compact EH support.
186 * scripttempl/elf.sc: Handle .eh_frame_entry and .gnu_extab
189 2015-05-17 Chung-Lin Tang <cltang@codesourcery.com>
191 * configure.ac (AC_PROG_GREP): Check for grep program.
192 (elf_list_options,elf_shlib_list_options,elf_plt_unwind_list_options):
193 Enable ELF option printing for emulations containing
194 'TEMPLATE_NAME=elf32'.
195 * configure: Regenerate.
197 2015-05-14 Nick Clifton <nickc@redhat.com>
199 * ld.texinfo (ASSERT): Describe the interaction with PROVIDEd
202 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
204 * configure.tgt: Support i[3-7]86-*-elfiamcu target.
206 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
208 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_iamcu.c.
210 * configure.tgt (targ_extra_emuls): Add elf_iamcu if elf_i386 is
212 * Makefile.in: Regenerated.
213 * emulparams/elf_iamcu.sh: New file.
215 2015-05-05 Nick Clifton <nickc@redhat.com>
217 * emulparams/msp430elf.sh (TEMPLATE_NAME): Change to msp430.
218 * scripttempl/msp430.sc (.text): Add .lower.text and .either.text.
219 (.data): Add .lower.data and .either.data.
220 (.bss): Add .lower.bss and .either.bss.
221 (.rodata): Add .lower.rodata and .either.rodata.
222 * emultempl/msp430.em: New file. Implements a new orphan
223 placement algorithm that divides sections between lower and upper
225 * Makefile.am (emsp430elf.c): Depend upon msp430.em.
226 *emsp430X.c): Likewise.
227 * Makefine.in: Regenerate.
229 2015-04-28 Andreas Schwab <schwab@linux-m68k.org>
232 * ldlex.l (INPUTLIST): Increment lineno on newline.
234 2015-04-24 Alan Modra <amodra@gmail.com>
236 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
237 Call gld${EMULATION_NAME}_map_segments regardless of need_laying_out.
239 2015-04-24 DJ Delorie <dj@redhat.com>
241 * Makefile.am (msp430): Rename primary emulation to msp430elf.
242 (emsp430.c): Rename to emsp430elf.c, update dependencies
243 (emsp430X.c): Update dependencies.
244 * Makefile.in: Likewise.
245 * configure.tgt (msp430-*-*): Rename primary emulation to msp430elf.
246 * emulparams/msp430.sh: Rename to msp430elf.sh.
247 * emulparams/msp430X.sh: Update.
249 2015-04-23 H.J. Lu <hongjiu.lu@intel.com>
252 * ldfile.c (ldfile_try_open_bfd): Set is_linker_input to 1.
254 2015-04-23 Alan Modra <amodra@gmail.com>
256 * emulparams/elf64ppc.sh (GOT): Align.
258 2015-04-22 Alan Modra <amodra@gmail.com>
260 * ldexp.h (struct ldexp_control): Delete dataseg.min_base. Add
261 data_seg.relro_offset.
262 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Don't set min_base.
263 (fold_binary <DATA_SEGMENT_RELRO_END>): Do set relro_offset.
264 * ldlang.c (lang_size_sections): Rewrite code adjusting relro
265 segment base to line up last section on page boundary.
267 2015-04-15 H.J. Lu <hongjiu.lu@intel.com>
270 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
272 2015-04-14 H.J. Lu <hongjiu.lu@intel.com>
274 * ld.texinfo: Document --compress-debug-sections=.
275 * ldmain.c (main): Set BFD_COMPRESS on output_bfd if
276 COMPRESS_DEBUG is set. Set BFD_COMPRESS_GABI on output_bfd
277 for COMPRESS_DEBUG_GABI_ZLIB.
278 * lexsup.c (elf_static_list_options): Add
279 --compress-debug-sections=.
280 * emultempl/elf32.em (OPTION_COMPRESS_DEBUG): New.
281 (xtra_long): Add "compress-debug-sections".
282 (gld${EMULATION_NAME}_handle_option): Handle
283 OPTION_COMPRESS_DEBUG.
285 2015-04-14 H.J. Lu <hongjiu.lu@intel.com>
288 * ld.texinfo: Document "-z noextern-protected-data".
289 * ldmain.c (main): Initialize link_info.extern_protected_data
291 * lexsup.c (elf_shlib_list_options): Add
292 "-z [no]extern-protected-data".
293 * emulparams/elf32_x86_64.sh: Source extern_protected_data.sh.
294 * emulparams/elf_i386.sh: Likewise.
295 * emulparams/elf_i386_be.sh: Likewise.
296 * emulparams/elf_i386_chaos.sh: Likewise.
297 * emulparams/elf_i386_ldso.sh: Likewise.
298 * emulparams/elf_i386_vxworks.sh: Likewise.
299 * emulparams/elf_k1om.sh: Likewise.
300 * emulparams/elf_l1om.sh: Likewise.
301 * emulparams/elf_x86_64.sh: Source extern_protected_data.sh.
302 (PARSE_AND_LIST_OPTIONS): Renamed to ...
303 (PARSE_AND_LIST_OPTIONS_BNDPLT): This.
304 (PARSE_AND_LIST_ARGS_CASE_Z): Renamed to ...
305 (PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT): This.
306 (PARSE_AND_LIST_OPTIONS): Append $PARSE_AND_LIST_OPTIONS_BNDPLT.
307 (PARSE_AND_LIST_ARGS_CASE_Z): Append
308 $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT.
309 * emulparams/extern_protected_data.sh: New file.
311 2015-04-11 H.J. Lu <hongjiu.lu@intel.com>
313 * plugin.c (plugin_load_plugins): Removed an extra ';'.
315 2015-04-10 Nick Clifton <nickc@redhat.com>
318 * ld.texinfo (--be8): Add a note about the interaction of this
319 option with the assembler's -EB option.
321 2015-04-10 Alan Modra <amodra@gmail.com>
323 * configure.ac: Set elf_list_options etc. in proper case.
324 * configure: Regenerate.
326 2015-04-10 Alan Modra <amodra@gmail.com>
329 * ldlang.c (lang_process): Add _init and _fini to gc_sym_list.
331 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
333 * emulparams/elf_x86_64.sh (BNDPLT): Removed.
334 (PARSE_AND_LIST_OPTIONS): New.
335 (PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
336 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Remove
337 BNDPLT check. Handle PARSE_AND_LIST_ARGS_CASE_Z.
338 (gld${EMULATION_NAME}_list_options): Remove BNDPLT check.
340 2015-04-09 Nick Clifton <nickc@redhat.com>
342 * po/fr.po: Updated French translation.
344 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
346 * configure.ac (elf_list_options): Set to TRUE for
347 --enable-targets=all.
348 (elf_shlib_list_options): Likewise.
349 (elf_plt_unwind_list_options): Likewise.
350 * configure: Regenerated.
352 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
354 * emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME.
356 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
358 * Makefile.am (ELF_CLFAGS): New.
359 (AM_CFLAGS): Add $(ELF_CLFAGS).
360 * configure.ac (elf_list_options): New. AC_SUBST.
361 (elf_shlib_list_options): Likewise.
362 (elf_plt_unwind_list_options): Likewise.
363 * lexsup.c (elf_shlib_list_options): New.
364 (elf_static_list_options): Likewise.
365 (elf_plt_unwind_list_options): Likewise.
366 (ld_list_options): Likewise.
367 (help): Call ld_list_options.
368 * Makefile.in: Regenerated.
369 * configure: Likewise.
370 * emulparams/plt_unwind.sh (PLT_UNWIND): New.
371 (PARSE_AND_LIST_OPTIONS): Removed.
372 * emultempl/elf32.em (gld_list_options): New.
373 (gld${EMULATION_NAME}_list_options): Define only if BNDPLT or
374 PARSE_AND_LIST_OPTIONS is defined.
375 (ld_${EMULATION_NAME}_emulation): Replace
376 gld${EMULATION_NAME}_list_options with ${gld_list_options.
378 2015-04-07 Alan Modra <amodra@gmail.com>
381 * ldlang.c (lang_size_sections): Cast shift expression.
383 2015-04-07 Alan Modra <amodra@gmail.com>
385 * emultempl/ppc32elf.em: Handle --no-pic-fixup.
386 (params): Init new field.
387 (ppc_before_allocation): Enable relaxation for pic_fixup.
389 2015-04-07 Nick Clifton <nickc@redhat.com>
391 * ld.h (struct ld_config_type): Add new field: warn_orphan.
392 * ldlex.h (enum option_values): Add OPTION_WARN_ORPHAN and
393 OPTION_NO_WARN_ORPHAN.
394 * lexsup.c (ld_options): Add --warn-orphan and --no-warn-orphan.
395 (parse_args): Handle the new options.
396 * ldemul.c (ldemul_place_orphan): If requested, generate a warning
397 message when an orphan section is placed in the output file.
398 * ld.texinfo: Document the new option.
399 * NEWS: Mention the new feature.
401 2015-04-02 Andrew Turner <andrew@freebsd.org>
403 * Makefile.am: Add FreeBSD aarch64 files.
404 * Makefile.in: Regenerate.
405 * configure.tgt: Add aarch64-*-freebsd* target triple.
406 * emulparams/aarch64fbsd.sh: New file.
407 * emulparams/aarch64fbsdb.sh: New file.
409 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
411 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work
412 around a GCC uninitialized warning bug fixed in GCC 4.6.
414 2015-04-01 Tejas Belagod <tejas.belagod@arm.com>
416 * emultempl/aarch64elf.em
417 (aarch64_elf_create_output_section_statements): Add parameter in
418 bfd_elf${ELFSIZE}_aarch64_set_options call.
419 (OPTION_FIX_ERRATUM_843419): Define.
420 (PARSE_AND_LIST_LONGOPTS): Add fix-cortex-a53-843419.
421 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_FIX_ERRATUM_843419.
423 2015-04-01 Chen Gang <gang.chen.5i5j@gmail.com>
425 * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for
426 relocating operation.
428 2015-04-01 Alan Modra <amodra@gmail.com>
431 * ldlang.c (lang_size_sections): When alignment of sections
432 results in relro base adjustment being too large, don't go lower
433 than the initial value.
434 * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
435 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
436 alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
438 2015-04-01 Alan Modra <amodra@gmail.com>
440 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
441 init ehdr_start_save.
443 2015-04-01 Alan Modra <amodra@gmail.com>
445 * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
447 (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
448 eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
449 eelf32ppcsim.c): Rearrange deps for consistency.
450 * Makefile.in: Regenerate.
452 2015-04-01 Ed Schouten <ed@nuxi.nl>
454 * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
455 the ehdr_start_save variable.
457 2015-03-31 Ed Schouten <ed@nuxi.nl>
459 * Makefile.am (ALL_64_EMULATION_SOURCES): Add
460 eelf_x86_64_cloudabi.c.
461 (eelf_x86_64_cloudabi.c): New.
462 * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
464 * Makefile.in: Regenerated.
465 * emulparams/elf_x86_64_cloudabi.sh: New file.
467 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
469 * configure.ac (AM_ZLIB): Removed.
470 * Makefile.in: Regenerated.
471 * config.in: Likewise.
472 * configure: Likewise.
474 2015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
476 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
479 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
481 * emultempl/aarch64elf.em
482 (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
484 2015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
486 * ldmain.c (main): Use %F instead of %X for einfo.
488 2015-03-02 Alan Modra <amodra@gmail.com>
490 * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
492 2015-02-27 Nick Clifton <nickc@redhat.com>
495 * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
496 sense of the following memory region attribute characters.
498 2015-02-27 Alan Modra <amodra@gmail.com>
500 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
501 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
502 eh8300sxelf_linux.c): Do not invoke genscripts here.
503 * Makefile.in: Regenerate.
505 2015-02-24 Nick Clifton <nickc@redhat.com>
507 * Makefile.am (ev850.c): Add dependency upon
508 $(srcdir)/emultempl/v850elf.em.
509 (ev850_rh850.c): Likewise.
510 * Makefile.in: Regenerate.
511 * emultempl/v850elf.em: New file.
512 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
513 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
514 * scripttempl/v850.sc: Add .note.renesas section.
515 * scripttempl/v850_rh850.sc: Likewise.
517 2015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
519 * scripttempl/avr.sc: Add new user_signatures region. Define and
520 use symbols for all region lengths.
521 * scripttempl/avrtiny.sc: Define and use symbols for all region
524 2015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
526 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
527 * Makefile.in: Regenerate.
528 * configure.tgt: Add h8300-*-linux
529 * emulparams/h8300elf_linux.sh: Add new emulation.
530 * emulparams/h8300helf_linux.sh: Likewise.
531 * emulparams/h8300self_linux.sh: Likewise.
532 * emulparams/h8300sxelf_linux.sh: Likewise.
534 2015-02-23 Nick Clifton <nickc@redhat.com>
536 * lexsup.c (parse_args): Produce a more reasonable error message
537 when -ixxx or -rxxx is the last option on the linker command line.
539 2015-02-14 H.J. Lu <hongjiu.lu@intel.com>
542 * testplug2.c (allsymbolsread_silent): New.
543 (set_register_hook): Handle allsymbolsreadsilent.
544 (onall_symbols_read): Skip a message if allsymbolsread_silent is
547 2015-02-14 Alan Modra <amodra@gmail.com>
550 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
551 * ldlang.c (lang_process): Don't set loading_lto_outputs.
552 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
554 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
556 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
558 * NEWS: Mention support for LLVM plugin.
560 2015-02-13 Alan Modra <amodra@gmail.com>
562 * ld.texinfo (Options <--defsym>): Correct cross reference.
564 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
566 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
567 option compatibility.
569 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
571 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
572 "error:" for LDPL_FATAL and LDPL_ERROR.
573 * testplug2.c (parse_option): Handle fatal, error and warning.
575 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
577 * testplug2.c (dump_tv_tag): Removed.
578 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
580 * testplug3.c (dump_tv_tag): Removed.
581 (onclaim_file): Fix typo.
583 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
586 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
588 (libldtestplug2_la_SOURCES): New.
589 (libldtestplug2_la_CFLAGS): Likewise.
590 (libldtestplug2_la_LDFLAGS): Likewise.
591 (libldtestplug3_la_SOURCES): New.
592 (libldtestplug3_la_CFLAGS): Likewise.
593 (libldtestplug3_la_LDFLAGS): Likewise.
594 * Makefile.in: Regenerated.
595 * testplug2.c: New file.
596 * testplug3.c: Likewise.
598 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
601 * plugin.c: Include ../bfd/plugin.h.
602 (plugin_get_ir_dummy_bfd): Call bfd_create with
603 link_info.output_bfd instead of srctemplate. Copy BFD info
604 from srctemplate only if it doesn't use BFD plugin target
606 (plugin_load_plugins): Call register_ld_plugin_object_p with
608 (plugin_maybe_claim): Renamed to ...
609 (plugin_object_p): This. Return dummy BFD target vector if
610 input is calimed by plugin library, otherwise return NULL.
611 Update plugin_format and plugin_dummy_bfd.
612 (plugin_maybe_claim): New. Use plugin_object_p.
614 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
616 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
618 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
620 * plugin.c (plugin_input_file_t): Add use_mmap.
621 (plugin_pagesize): New.
622 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
623 (plugin_load_plugins): Initialize plugin_pagesize.
624 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
627 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
629 * plugin.c (get_view): Align offset passed to mmap.
631 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
633 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
634 if plugin isn't active or there is no thing more to claim.
636 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
638 * plugin.c (plugin_maybe_claim): Check format against bfd_object
641 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
643 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
646 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
648 * plugin.c: Include "libbfd.h".
649 (plugin_strdup): New.
650 (plugin_maybe_claim): Remove the argument of pointer to struct
651 ld_plugin_input_file. Open and handle input entry.
652 * plugin.h (plugin_maybe_claim): Updated.
653 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
654 without passing a pointer to struct ld_plugin_input_file.
655 * ldmain.c: Don't include "libbfd.h".
656 (add_archive_element): Call plugin_maybe_claim directly without
657 passing a pointer to struct ld_plugin_input_file.
659 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
661 * ld.texinfo: Document -z text, -z notext and -z textoff.
662 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
663 -z text, -z notext and -z textoff.
665 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
667 * configure.ac: Add AC_FUNC_MMAP.
668 * config.in: Regenerated.
669 * configure: Likewise.
670 * plugin.c: Include <sys/mman.h>.
671 (MAP_FAILED): New. Defined if not defined.
672 (PROT_READ): Likewise.
673 (MAP_PRIVATE): Likewise.
674 (view_buffer_t): New.
675 (plugin_input_file_t): Add view_buffer.
676 (get_view): Try mmap and cache the view buffer.
677 (plugin_maybe_claim): Initialize view_buffer.
679 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
681 * plugin.c (release_input_file): Set fd to -1 after closing it.
682 (plugin_maybe_claim): Close fd only if fd != -1.
684 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
687 * plugin.c: Include <errno.h>.
688 (errno): New. Declare if needed.
689 (plugin_input_file_t): New.
690 (get_input_file): Implemented.
691 (get_view): Likewise.
692 (release_input_file): Likewise.
693 (add_symbols): Updated.
694 (get_symbols): Likewise.
695 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
696 only for a bfd_object input.
698 2015-02-02 Alan Modra <amodra@gmail.com>
700 * emultempl/ppc64elf.em (toc_section_name): New var.
701 (ppc_after_open): Set it.
702 (ppc_before_allocation): Use it.
703 (gld${EMULATION_NAME}_after_allocation): Here too.
705 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
707 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
708 with link_info.lto_plugin_active.
709 * ldlang.c (lang_process): Likewise.
710 * ldmain.c (add_archive_element): Likewise.
711 * plugin.c (plugin_active_plugins_p): Removed.
712 * plugin.h (plugin_active_plugins_p): Likewise.
714 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
716 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
718 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
720 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
723 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
724 (get_view): New function.
725 (set_tv_header): Handle LDPT_GET_VIEW.
726 * testplug.c (tag_names): Add LDPT_GET_VIEW.
728 (dump_tv_tag): Handle LDPT_GET_VIEW.
729 (parse_tv_tag): Likewise.
731 2015-01-28 Alan Modra <amodra@gmail.com>
733 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
734 * emultempl/ppc64elf.em (params): Init new field.
735 (ppc_after_open): New function.
736 (LDEMUL_AFTER_OPEN): Define.
737 * ldlang.c (lang_final): Whitespace fix.
739 2015-01-28 James Bowman <james.bowman@ftdichip.com>
741 * Makefile.am: Add FT32 files.
742 * configure.tgt: Handle FT32 target.
743 * emulparams/elf32ft32.sh: New file.
744 * scripttempl/ft32.sc: New file.
745 * Makefile.in: Regenerate.
747 2015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
750 * ldexp.c (fold_name): Fold LENGTH only after
751 lang_first_phase_enum.
752 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
754 * ldlang.h (struct memory_region_struct): Add origin_exp and
756 * ldlang.c (lang_do_memory_regions): New.
757 (lang_memory_region_lookup): Initialize origin_exp and
759 (lang_process): Call lang_do_memory_regions.
761 2015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
763 * ldlang.c (print_assignment): Only evaluate the expression for a
764 PROVIDE'd assignment when the destination is being defined.
765 Display a special message for PROVIDE'd symbols that are not being
768 2015-01-20 Alan Modra <amodra@gmail.com>
770 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
771 (OTHER_BSS_SYMBOLS): ..this.
772 (OTHER_PLT_RELOC_SECTIONS): Don't define.
773 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
774 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
775 (OTHER_RELRO_SECTIONS_2): ..here.
776 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
778 2015-01-20 Alan Modra <amodra@gmail.com>
780 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
781 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
782 (OTHER_RELRO_SECTIONS_2): ..here.
783 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
784 PLT_BEFORE_GOT): Define.
785 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
786 PLT_BEFORE_GOT combination.
787 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
789 2015-01-20 Alan Modra <amodra@gmail.com>
791 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
792 (OTHER_RELRO_SECTIONS_2): ..here, new define.
793 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
795 2015-01-19 Alan Modra <amodra@gmail.com>
798 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
800 2015-01-14 Jiong Wang <jiong.wang@arm.com>
802 * ld-arm/elf32-reject.s: New testcase.
803 * ld-arm/elf32-reject.d: Likewise.
804 * ld-arm/elf32-reject-pie.s: Likewise.
805 * ld-arm/elf32-reject-pie.d: Likewise.
806 * ld-arm/arm-elf.exp: Run new testcases.
807 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
808 * ld-arm/ifunc-7.rd: Likewise.
809 * ld-arm/ifunc-7.gd: Likewise.
810 * ld-arm/ifunc-7.dd: Likewise.
811 * ld-arm/ifunc-8.s: Likewise.
812 * ld-arm/ifunc-8.rd: Likewise.
813 * ld-arm/ifunc-8.gd: Likewise.
814 * ld-arm/ifunc-8.dd: Likewise.
816 2015-01-01 Alan Modra <amodra@gmail.com>
818 * ldver.c (ldversion): Just print current year.
820 2015-01-01 Alan Modra <amodra@gmail.com>
822 Update year range in copyright notice of all files.
824 For older changes see ChangeLog-2014
826 Copyright (C) 2015 Free Software Foundation, Inc.
828 Copying and distribution of this file, with or without modification,
829 are permitted in any medium without royalty provided the copyright
830 notice and this notice are preserved.
836 version-control: never