1 2015-08-18 Alan Modra <amodra@gmail.com>
3 * ldexp.c (exp_fold_tree_1): Clear linker_def on symbol assignment.
5 2015-08-06 Alan Modra <amodra@gmail.com>
7 * ldexp.c (align_dot_val): Delete.
8 (fold_unary <ALIGN_K, NEXT>): Revert 2015-07-10 change.
9 (is_align_conditional): Revert 2015-07-20 change.
10 (exp_fold_tree_1): Likewise, but keep expanded comment.
11 * scripttempl/elf.sc (.ldata, .bss): Revert 2015-07-20 change.
12 * ld.texinfo (<ALIGN>): Correct description.
14 2015-08-04 Andrew Burgess <andrew.burgess@embecosm.com>
16 * ld.texinfo (Options): Document --require-defined option.
17 * ldlang.c (struct require_defined_symbol): New structure.
18 (require_defined_symbol_list): New variable.
19 (ldlang_add_require_defined): New function.
20 (ldlang_check_require_defined_symbols): New function.
21 (lang_process): Check required symbols are defined.
22 * ldlang.h (ldlang_add_require_defined): Declare.
23 * ldlex.h (enum option_values): Add OPTION_REQUIRE_DEFINED_SYMBOL.
24 * lexsup.c (ld_options): Add '--require-defined' entry.
25 (parse_args): Handle '--requre-defined' entry.
26 * NEWS: Mention new '--require-defined' option.
28 2015-08-03 Andrew Burgess <andrew.burgess@embecosm.com>
30 * ld.texinfo (MEMORY): Explain that multiple MEMORY commands are
33 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
35 * lexsup.c (parse_args): Don't set link_info.executable to
36 TRUE for link_info.relocatable.
38 2015-07-27 H.J. Lu <hongjiu.lu@intel.com>
40 * configure: Regenerated.
42 2015-07-24 Nick Clifton <nickc@redhat.com>
44 * emulparams/elf32rl78.sh (OTHER_SECTIONS): Provide a value for
45 the _-rl78_abs__ symbol.
47 2015-07-20 Alan Modra <amodra@gmail.com>
49 * emulparams/criself.sh (INIT_ADDR, FINI_ADDR): Define.
50 (INIT_START, FINI_START): Don't ALIGN.
51 * scriptempl/elf.sc (.init, .fini): Apply INIT_ADDR/FINI_ADDR.
53 2015-07-20 Alan Modra <amodra@gmail.com>
55 * scripttempl/elf.sc (.ldata, .bss): Align absolute value of dot.
56 * ldexp.c (is_align_conditional): Handle binary ALIGN.
57 (exp_fold_tree_1): Move code setting SEC_KEEP for assignments to
58 dot inside output sections. Handle absolute expressions.
60 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
62 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Make
63 --compress-debug-sections=zlib the same as
64 --compress-debug-sections=zlib-gabi.
65 * ld.texinfo: Change --compress-debug-sections=zlib to zlib-gabi.
67 2015-07-14 Nick Clifton <nickc@redhat.com>
69 * ld.texinfo (Options): Add missing period after @xref.
71 2015-07-10 Alan Modra <amodra@gmail.com>
73 * ldexp.c (align_dot_val): New function.
74 (fold_unary <ALIGN_K, NEXT>): Use it.
76 2015-07-03 Kai Tietz <ktietz@redhat.com>
79 * scripttempl/pep.sc: Mark .idata*, .CRT*, .tls*,
80 .rsrc*, .init, .ctor*, .dtor*, .fini, .jcr,
81 .eh_frame, .pdata. .xdata, and .gcc_except_table sections
83 * scripttempl/pe.sc: Likewise.
84 * ld.texinfo: Document that --gc-sections has experimental support
85 for COFF and PE targets.
86 * NEWS: Mention experimental support.
88 2015-07-03 Alan Modra <amodra@gmail.com>
90 * Makefile.am (eelf32or1k.c, eelf32or1k_linux.c): Depend on ELF_DEPS.
91 * Makefile.in: Regenerate.
93 2015-06-28 H.J. Lu <hongjiu.lu@intel.com>
95 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option):
96 Replace COMPRESS_DEBUG_ZLIB with COMPRESS_DEBUG_GNU_ZLIB.
98 2015-06-26 H.J. Lu <hongjiu.lu@intel.com>
100 * emulparams/elf_iamcu.sh (COMPILE_IN): New.
102 2015-06-15 Nick Clifton <nickc@redhat.com>
105 * emultempl/pe.em (pe_find_data_imports): Generate an error if a
106 symbol name is too long to handle.
107 * emultempl/pep.em (pep_find_data_imports): Likewise.
109 2015-06-12 Tristan Gingold <gingold@adacore.com>
111 * NEWS: Mention new option.
112 * lexsup.c (parse_args): Handle --print-memory-usage.
113 (ld_options): Add --print-memory-usage.
114 * ldmain.c (main): Call lang_print_memory_usage.
115 * ldlex.h (enum option_values): Add OPTION_PRINT_MEMORY_USAGE.
116 * ldlang.h: Add prototype of lang_print_memory_usage.
117 * ldlang.c (lang_print_memory_size, lang_print_memory_usage): New
119 * ld.texinfo (Options): Document --print-memory-usage.
120 * ld.h (args_type): Add print_memory_usage field.
122 2015-06-08 Nick Clifton <nickc@redhat.com>
124 * po/fr.po: Updated French Translation.
126 2015-05-28 Catherine Moore <clm@codesourcery.com>
127 Paul Brook <paul@codesourcery.com>
129 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
130 Add Compact EH support.
131 * scripttempl/elf.sc: Handle .eh_frame_entry and .gnu_extab
134 2015-05-17 Chung-Lin Tang <cltang@codesourcery.com>
136 * configure.ac (AC_PROG_GREP): Check for grep program.
137 (elf_list_options,elf_shlib_list_options,elf_plt_unwind_list_options):
138 Enable ELF option printing for emulations containing
139 'TEMPLATE_NAME=elf32'.
140 * configure: Regenerate.
142 2015-05-14 Nick Clifton <nickc@redhat.com>
144 * ld.texinfo (ASSERT): Describe the interaction with PROVIDEd
147 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
149 * configure.tgt: Support i[3-7]86-*-elfiamcu target.
151 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
153 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_iamcu.c.
155 * configure.tgt (targ_extra_emuls): Add elf_iamcu if elf_i386 is
157 * Makefile.in: Regenerated.
158 * emulparams/elf_iamcu.sh: New file.
160 2015-05-05 Nick Clifton <nickc@redhat.com>
162 * emulparams/msp430elf.sh (TEMPLATE_NAME): Change to msp430.
163 * scripttempl/msp430.sc (.text): Add .lower.text and .either.text.
164 (.data): Add .lower.data and .either.data.
165 (.bss): Add .lower.bss and .either.bss.
166 (.rodata): Add .lower.rodata and .either.rodata.
167 * emultempl/msp430.em: New file. Implements a new orphan
168 placement algorithm that divides sections between lower and upper
170 * Makefile.am (emsp430elf.c): Depend upon msp430.em.
171 *emsp430X.c): Likewise.
172 * Makefine.in: Regenerate.
174 2015-04-28 Andreas Schwab <schwab@linux-m68k.org>
177 * ldlex.l (INPUTLIST): Increment lineno on newline.
179 2015-04-24 Alan Modra <amodra@gmail.com>
181 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
182 Call gld${EMULATION_NAME}_map_segments regardless of need_laying_out.
184 2015-04-24 DJ Delorie <dj@redhat.com>
186 * Makefile.am (msp430): Rename primary emulation to msp430elf.
187 (emsp430.c): Rename to emsp430elf.c, update dependencies
188 (emsp430X.c): Update dependencies.
189 * Makefile.in: Likewise.
190 * configure.tgt (msp430-*-*): Rename primary emulation to msp430elf.
191 * emulparams/msp430.sh: Rename to msp430elf.sh.
192 * emulparams/msp430X.sh: Update.
194 2015-04-23 H.J. Lu <hongjiu.lu@intel.com>
197 * ldfile.c (ldfile_try_open_bfd): Set is_linker_input to 1.
199 2015-04-23 Alan Modra <amodra@gmail.com>
201 * emulparams/elf64ppc.sh (GOT): Align.
203 2015-04-22 Alan Modra <amodra@gmail.com>
205 * ldexp.h (struct ldexp_control): Delete dataseg.min_base. Add
206 data_seg.relro_offset.
207 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Don't set min_base.
208 (fold_binary <DATA_SEGMENT_RELRO_END>): Do set relro_offset.
209 * ldlang.c (lang_size_sections): Rewrite code adjusting relro
210 segment base to line up last section on page boundary.
212 2015-04-15 H.J. Lu <hongjiu.lu@intel.com>
215 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
217 2015-04-14 H.J. Lu <hongjiu.lu@intel.com>
219 * ld.texinfo: Document --compress-debug-sections=.
220 * ldmain.c (main): Set BFD_COMPRESS on output_bfd if
221 COMPRESS_DEBUG is set. Set BFD_COMPRESS_GABI on output_bfd
222 for COMPRESS_DEBUG_GABI_ZLIB.
223 * lexsup.c (elf_static_list_options): Add
224 --compress-debug-sections=.
225 * emultempl/elf32.em (OPTION_COMPRESS_DEBUG): New.
226 (xtra_long): Add "compress-debug-sections".
227 (gld${EMULATION_NAME}_handle_option): Handle
228 OPTION_COMPRESS_DEBUG.
230 2015-04-14 H.J. Lu <hongjiu.lu@intel.com>
233 * ld.texinfo: Document "-z noextern-protected-data".
234 * ldmain.c (main): Initialize link_info.extern_protected_data
236 * lexsup.c (elf_shlib_list_options): Add
237 "-z [no]extern-protected-data".
238 * emulparams/elf32_x86_64.sh: Source extern_protected_data.sh.
239 * emulparams/elf_i386.sh: Likewise.
240 * emulparams/elf_i386_be.sh: Likewise.
241 * emulparams/elf_i386_chaos.sh: Likewise.
242 * emulparams/elf_i386_ldso.sh: Likewise.
243 * emulparams/elf_i386_vxworks.sh: Likewise.
244 * emulparams/elf_k1om.sh: Likewise.
245 * emulparams/elf_l1om.sh: Likewise.
246 * emulparams/elf_x86_64.sh: Source extern_protected_data.sh.
247 (PARSE_AND_LIST_OPTIONS): Renamed to ...
248 (PARSE_AND_LIST_OPTIONS_BNDPLT): This.
249 (PARSE_AND_LIST_ARGS_CASE_Z): Renamed to ...
250 (PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT): This.
251 (PARSE_AND_LIST_OPTIONS): Append $PARSE_AND_LIST_OPTIONS_BNDPLT.
252 (PARSE_AND_LIST_ARGS_CASE_Z): Append
253 $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT.
254 * emulparams/extern_protected_data.sh: New file.
256 2015-04-11 H.J. Lu <hongjiu.lu@intel.com>
258 * plugin.c (plugin_load_plugins): Removed an extra ';'.
260 2015-04-10 Nick Clifton <nickc@redhat.com>
263 * ld.texinfo (--be8): Add a note about the interaction of this
264 option with the assembler's -EB option.
266 2015-04-10 Alan Modra <amodra@gmail.com>
268 * configure.ac: Set elf_list_options etc. in proper case.
269 * configure: Regenerate.
271 2015-04-10 Alan Modra <amodra@gmail.com>
274 * ldlang.c (lang_process): Add _init and _fini to gc_sym_list.
276 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
278 * emulparams/elf_x86_64.sh (BNDPLT): Removed.
279 (PARSE_AND_LIST_OPTIONS): New.
280 (PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
281 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Remove
282 BNDPLT check. Handle PARSE_AND_LIST_ARGS_CASE_Z.
283 (gld${EMULATION_NAME}_list_options): Remove BNDPLT check.
285 2015-04-09 Nick Clifton <nickc@redhat.com>
287 * po/fr.po: Updated French translation.
289 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
291 * configure.ac (elf_list_options): Set to TRUE for
292 --enable-targets=all.
293 (elf_shlib_list_options): Likewise.
294 (elf_plt_unwind_list_options): Likewise.
295 * configure: Regenerated.
297 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
299 * emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME.
301 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
303 * Makefile.am (ELF_CLFAGS): New.
304 (AM_CFLAGS): Add $(ELF_CLFAGS).
305 * configure.ac (elf_list_options): New. AC_SUBST.
306 (elf_shlib_list_options): Likewise.
307 (elf_plt_unwind_list_options): Likewise.
308 * lexsup.c (elf_shlib_list_options): New.
309 (elf_static_list_options): Likewise.
310 (elf_plt_unwind_list_options): Likewise.
311 (ld_list_options): Likewise.
312 (help): Call ld_list_options.
313 * Makefile.in: Regenerated.
314 * configure: Likewise.
315 * emulparams/plt_unwind.sh (PLT_UNWIND): New.
316 (PARSE_AND_LIST_OPTIONS): Removed.
317 * emultempl/elf32.em (gld_list_options): New.
318 (gld${EMULATION_NAME}_list_options): Define only if BNDPLT or
319 PARSE_AND_LIST_OPTIONS is defined.
320 (ld_${EMULATION_NAME}_emulation): Replace
321 gld${EMULATION_NAME}_list_options with ${gld_list_options.
323 2015-04-07 Alan Modra <amodra@gmail.com>
326 * ldlang.c (lang_size_sections): Cast shift expression.
328 2015-04-07 Alan Modra <amodra@gmail.com>
330 * emultempl/ppc32elf.em: Handle --no-pic-fixup.
331 (params): Init new field.
332 (ppc_before_allocation): Enable relaxation for pic_fixup.
334 2015-04-07 Nick Clifton <nickc@redhat.com>
336 * ld.h (struct ld_config_type): Add new field: warn_orphan.
337 * ldlex.h (enum option_values): Add OPTION_WARN_ORPHAN and
338 OPTION_NO_WARN_ORPHAN.
339 * lexsup.c (ld_options): Add --warn-orphan and --no-warn-orphan.
340 (parse_args): Handle the new options.
341 * ldemul.c (ldemul_place_orphan): If requested, generate a warning
342 message when an orphan section is placed in the output file.
343 * ld.texinfo: Document the new option.
344 * NEWS: Mention the new feature.
346 2015-04-02 Andrew Turner <andrew@freebsd.org>
348 * Makefile.am: Add FreeBSD aarch64 files.
349 * Makefile.in: Regenerate.
350 * configure.tgt: Add aarch64-*-freebsd* target triple.
351 * emulparams/aarch64fbsd.sh: New file.
352 * emulparams/aarch64fbsdb.sh: New file.
354 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
356 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work
357 around a GCC uninitialized warning bug fixed in GCC 4.6.
359 2015-04-01 Tejas Belagod <tejas.belagod@arm.com>
361 * emultempl/aarch64elf.em
362 (aarch64_elf_create_output_section_statements): Add parameter in
363 bfd_elf${ELFSIZE}_aarch64_set_options call.
364 (OPTION_FIX_ERRATUM_843419): Define.
365 (PARSE_AND_LIST_LONGOPTS): Add fix-cortex-a53-843419.
366 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_FIX_ERRATUM_843419.
368 2015-04-01 Chen Gang <gang.chen.5i5j@gmail.com>
370 * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for
371 relocating operation.
373 2015-04-01 Alan Modra <amodra@gmail.com>
376 * ldlang.c (lang_size_sections): When alignment of sections
377 results in relro base adjustment being too large, don't go lower
378 than the initial value.
379 * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
380 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
381 alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
383 2015-04-01 Alan Modra <amodra@gmail.com>
385 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
386 init ehdr_start_save.
388 2015-04-01 Alan Modra <amodra@gmail.com>
390 * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
392 (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
393 eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
394 eelf32ppcsim.c): Rearrange deps for consistency.
395 * Makefile.in: Regenerate.
397 2015-04-01 Ed Schouten <ed@nuxi.nl>
399 * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
400 the ehdr_start_save variable.
402 2015-03-31 Ed Schouten <ed@nuxi.nl>
404 * Makefile.am (ALL_64_EMULATION_SOURCES): Add
405 eelf_x86_64_cloudabi.c.
406 (eelf_x86_64_cloudabi.c): New.
407 * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
409 * Makefile.in: Regenerated.
410 * emulparams/elf_x86_64_cloudabi.sh: New file.
412 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
414 * configure.ac (AM_ZLIB): Removed.
415 * Makefile.in: Regenerated.
416 * config.in: Likewise.
417 * configure: Likewise.
419 2015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
421 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
424 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
426 * emultempl/aarch64elf.em
427 (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
429 2015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
431 * ldmain.c (main): Use %F instead of %X for einfo.
433 2015-03-02 Alan Modra <amodra@gmail.com>
435 * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
437 2015-02-27 Nick Clifton <nickc@redhat.com>
440 * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
441 sense of the following memory region attribute characters.
443 2015-02-27 Alan Modra <amodra@gmail.com>
445 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
446 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
447 eh8300sxelf_linux.c): Do not invoke genscripts here.
448 * Makefile.in: Regenerate.
450 2015-02-24 Nick Clifton <nickc@redhat.com>
452 * Makefile.am (ev850.c): Add dependency upon
453 $(srcdir)/emultempl/v850elf.em.
454 (ev850_rh850.c): Likewise.
455 * Makefile.in: Regenerate.
456 * emultempl/v850elf.em: New file.
457 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
458 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
459 * scripttempl/v850.sc: Add .note.renesas section.
460 * scripttempl/v850_rh850.sc: Likewise.
462 2015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
464 * scripttempl/avr.sc: Add new user_signatures region. Define and
465 use symbols for all region lengths.
466 * scripttempl/avrtiny.sc: Define and use symbols for all region
469 2015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
471 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
472 * Makefile.in: Regenerate.
473 * configure.tgt: Add h8300-*-linux
474 * emulparams/h8300elf_linux.sh: Add new emulation.
475 * emulparams/h8300helf_linux.sh: Likewise.
476 * emulparams/h8300self_linux.sh: Likewise.
477 * emulparams/h8300sxelf_linux.sh: Likewise.
479 2015-02-23 Nick Clifton <nickc@redhat.com>
481 * lexsup.c (parse_args): Produce a more reasonable error message
482 when -ixxx or -rxxx is the last option on the linker command line.
484 2015-02-14 H.J. Lu <hongjiu.lu@intel.com>
487 * testplug2.c (allsymbolsread_silent): New.
488 (set_register_hook): Handle allsymbolsreadsilent.
489 (onall_symbols_read): Skip a message if allsymbolsread_silent is
492 2015-02-14 Alan Modra <amodra@gmail.com>
495 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
496 * ldlang.c (lang_process): Don't set loading_lto_outputs.
497 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
499 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
501 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
503 * NEWS: Mention support for LLVM plugin.
505 2015-02-13 Alan Modra <amodra@gmail.com>
507 * ld.texinfo (Options <--defsym>): Correct cross reference.
509 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
511 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
512 option compatibility.
514 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
516 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
517 "error:" for LDPL_FATAL and LDPL_ERROR.
518 * testplug2.c (parse_option): Handle fatal, error and warning.
520 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
522 * testplug2.c (dump_tv_tag): Removed.
523 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
525 * testplug3.c (dump_tv_tag): Removed.
526 (onclaim_file): Fix typo.
528 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
531 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
533 (libldtestplug2_la_SOURCES): New.
534 (libldtestplug2_la_CFLAGS): Likewise.
535 (libldtestplug2_la_LDFLAGS): Likewise.
536 (libldtestplug3_la_SOURCES): New.
537 (libldtestplug3_la_CFLAGS): Likewise.
538 (libldtestplug3_la_LDFLAGS): Likewise.
539 * Makefile.in: Regenerated.
540 * testplug2.c: New file.
541 * testplug3.c: Likewise.
543 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
546 * plugin.c: Include ../bfd/plugin.h.
547 (plugin_get_ir_dummy_bfd): Call bfd_create with
548 link_info.output_bfd instead of srctemplate. Copy BFD info
549 from srctemplate only if it doesn't use BFD plugin target
551 (plugin_load_plugins): Call register_ld_plugin_object_p with
553 (plugin_maybe_claim): Renamed to ...
554 (plugin_object_p): This. Return dummy BFD target vector if
555 input is calimed by plugin library, otherwise return NULL.
556 Update plugin_format and plugin_dummy_bfd.
557 (plugin_maybe_claim): New. Use plugin_object_p.
559 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
561 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
563 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
565 * plugin.c (plugin_input_file_t): Add use_mmap.
566 (plugin_pagesize): New.
567 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
568 (plugin_load_plugins): Initialize plugin_pagesize.
569 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
572 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
574 * plugin.c (get_view): Align offset passed to mmap.
576 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
578 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
579 if plugin isn't active or there is no thing more to claim.
581 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
583 * plugin.c (plugin_maybe_claim): Check format against bfd_object
586 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
588 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
591 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
593 * plugin.c: Include "libbfd.h".
594 (plugin_strdup): New.
595 (plugin_maybe_claim): Remove the argument of pointer to struct
596 ld_plugin_input_file. Open and handle input entry.
597 * plugin.h (plugin_maybe_claim): Updated.
598 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
599 without passing a pointer to struct ld_plugin_input_file.
600 * ldmain.c: Don't include "libbfd.h".
601 (add_archive_element): Call plugin_maybe_claim directly without
602 passing a pointer to struct ld_plugin_input_file.
604 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
606 * ld.texinfo: Document -z text, -z notext and -z textoff.
607 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
608 -z text, -z notext and -z textoff.
610 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
612 * configure.ac: Add AC_FUNC_MMAP.
613 * config.in: Regenerated.
614 * configure: Likewise.
615 * plugin.c: Include <sys/mman.h>.
616 (MAP_FAILED): New. Defined if not defined.
617 (PROT_READ): Likewise.
618 (MAP_PRIVATE): Likewise.
619 (view_buffer_t): New.
620 (plugin_input_file_t): Add view_buffer.
621 (get_view): Try mmap and cache the view buffer.
622 (plugin_maybe_claim): Initialize view_buffer.
624 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
626 * plugin.c (release_input_file): Set fd to -1 after closing it.
627 (plugin_maybe_claim): Close fd only if fd != -1.
629 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
632 * plugin.c: Include <errno.h>.
633 (errno): New. Declare if needed.
634 (plugin_input_file_t): New.
635 (get_input_file): Implemented.
636 (get_view): Likewise.
637 (release_input_file): Likewise.
638 (add_symbols): Updated.
639 (get_symbols): Likewise.
640 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
641 only for a bfd_object input.
643 2015-02-02 Alan Modra <amodra@gmail.com>
645 * emultempl/ppc64elf.em (toc_section_name): New var.
646 (ppc_after_open): Set it.
647 (ppc_before_allocation): Use it.
648 (gld${EMULATION_NAME}_after_allocation): Here too.
650 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
652 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
653 with link_info.lto_plugin_active.
654 * ldlang.c (lang_process): Likewise.
655 * ldmain.c (add_archive_element): Likewise.
656 * plugin.c (plugin_active_plugins_p): Removed.
657 * plugin.h (plugin_active_plugins_p): Likewise.
659 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
661 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
663 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
665 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
668 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
669 (get_view): New function.
670 (set_tv_header): Handle LDPT_GET_VIEW.
671 * testplug.c (tag_names): Add LDPT_GET_VIEW.
673 (dump_tv_tag): Handle LDPT_GET_VIEW.
674 (parse_tv_tag): Likewise.
676 2015-01-28 Alan Modra <amodra@gmail.com>
678 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
679 * emultempl/ppc64elf.em (params): Init new field.
680 (ppc_after_open): New function.
681 (LDEMUL_AFTER_OPEN): Define.
682 * ldlang.c (lang_final): Whitespace fix.
684 2015-01-28 James Bowman <james.bowman@ftdichip.com>
686 * Makefile.am: Add FT32 files.
687 * configure.tgt: Handle FT32 target.
688 * emulparams/elf32ft32.sh: New file.
689 * scripttempl/ft32.sc: New file.
690 * Makefile.in: Regenerate.
692 2015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
695 * ldexp.c (fold_name): Fold LENGTH only after
696 lang_first_phase_enum.
697 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
699 * ldlang.h (struct memory_region_struct): Add origin_exp and
701 * ldlang.c (lang_do_memory_regions): New.
702 (lang_memory_region_lookup): Initialize origin_exp and
704 (lang_process): Call lang_do_memory_regions.
706 2015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
708 * ldlang.c (print_assignment): Only evaluate the expression for a
709 PROVIDE'd assignment when the destination is being defined.
710 Display a special message for PROVIDE'd symbols that are not being
713 2015-01-20 Alan Modra <amodra@gmail.com>
715 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
716 (OTHER_BSS_SYMBOLS): ..this.
717 (OTHER_PLT_RELOC_SECTIONS): Don't define.
718 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
719 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
720 (OTHER_RELRO_SECTIONS_2): ..here.
721 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
723 2015-01-20 Alan Modra <amodra@gmail.com>
725 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
726 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
727 (OTHER_RELRO_SECTIONS_2): ..here.
728 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
729 PLT_BEFORE_GOT): Define.
730 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
731 PLT_BEFORE_GOT combination.
732 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
734 2015-01-20 Alan Modra <amodra@gmail.com>
736 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
737 (OTHER_RELRO_SECTIONS_2): ..here, new define.
738 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
740 2015-01-19 Alan Modra <amodra@gmail.com>
743 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
745 2015-01-14 Jiong Wang <jiong.wang@arm.com>
747 * ld-arm/elf32-reject.s: New testcase.
748 * ld-arm/elf32-reject.d: Likewise.
749 * ld-arm/elf32-reject-pie.s: Likewise.
750 * ld-arm/elf32-reject-pie.d: Likewise.
751 * ld-arm/arm-elf.exp: Run new testcases.
752 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
753 * ld-arm/ifunc-7.rd: Likewise.
754 * ld-arm/ifunc-7.gd: Likewise.
755 * ld-arm/ifunc-7.dd: Likewise.
756 * ld-arm/ifunc-8.s: Likewise.
757 * ld-arm/ifunc-8.rd: Likewise.
758 * ld-arm/ifunc-8.gd: Likewise.
759 * ld-arm/ifunc-8.dd: Likewise.
761 2015-01-01 Alan Modra <amodra@gmail.com>
763 * ldver.c (ldversion): Just print current year.
765 2015-01-01 Alan Modra <amodra@gmail.com>
767 Update year range in copyright notice of all files.
769 For older changes see ChangeLog-2014
771 Copyright (C) 2015 Free Software Foundation, Inc.
773 Copying and distribution of this file, with or without modification,
774 are permitted in any medium without royalty provided the copyright
775 notice and this notice are preserved.
781 version-control: never