1 2015-07-20 Alan Modra <amodra@gmail.com>
3 * scripttempl/elf.sc (.ldata, .bss): Align absolute value of dot.
4 * ldexp.c (is_align_conditional): Handle binary ALIGN.
5 (exp_fold_tree_1): Move code setting SEC_KEEP for assignments to
6 dot inside output sections. Handle absolute expressions.
8 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
10 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Make
11 --compress-debug-sections=zlib the same as
12 --compress-debug-sections=zlib-gabi.
13 * ld.texinfo: Change --compress-debug-sections=zlib to zlib-gabi.
15 2015-07-14 Nick Clifton <nickc@redhat.com>
17 * ld.texinfo (Options): Add missing period after @xref.
19 2015-07-10 Alan Modra <amodra@gmail.com>
21 * ldexp.c (align_dot_val): New function.
22 (fold_unary <ALIGN_K, NEXT>): Use it.
24 2015-07-03 Kai Tietz <ktietz@redhat.com>
27 * scripttempl/pep.sc: Mark .idata*, .CRT*, .tls*,
28 .rsrc*, .init, .ctor*, .dtor*, .fini, .jcr,
29 .eh_frame, .pdata. .xdata, and .gcc_except_table sections
31 * scripttempl/pe.sc: Likewise.
32 * ld.texinfo: Document that --gc-sections has experimental support
33 for COFF and PE targets.
34 * NEWS: Mention experimental support.
36 2015-07-03 Alan Modra <amodra@gmail.com>
38 * Makefile.am (eelf32or1k.c, eelf32or1k_linux.c): Depend on ELF_DEPS.
39 * Makefile.in: Regenerate.
41 2015-06-28 H.J. Lu <hongjiu.lu@intel.com>
43 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option):
44 Replace COMPRESS_DEBUG_ZLIB with COMPRESS_DEBUG_GNU_ZLIB.
46 2015-06-26 H.J. Lu <hongjiu.lu@intel.com>
48 * emulparams/elf_iamcu.sh (COMPILE_IN): New.
50 2015-06-15 Nick Clifton <nickc@redhat.com>
53 * emultempl/pe.em (pe_find_data_imports): Generate an error if a
54 symbol name is too long to handle.
55 * emultempl/pep.em (pep_find_data_imports): Likewise.
57 2015-06-12 Tristan Gingold <gingold@adacore.com>
59 * NEWS: Mention new option.
60 * lexsup.c (parse_args): Handle --print-memory-usage.
61 (ld_options): Add --print-memory-usage.
62 * ldmain.c (main): Call lang_print_memory_usage.
63 * ldlex.h (enum option_values): Add OPTION_PRINT_MEMORY_USAGE.
64 * ldlang.h: Add prototype of lang_print_memory_usage.
65 * ldlang.c (lang_print_memory_size, lang_print_memory_usage): New
67 * ld.texinfo (Options): Document --print-memory-usage.
68 * ld.h (args_type): Add print_memory_usage field.
70 2015-06-08 Nick Clifton <nickc@redhat.com>
72 * po/fr.po: Updated French Translation.
74 2015-05-28 Catherine Moore <clm@codesourcery.com>
75 Paul Brook <paul@codesourcery.com>
77 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
78 Add Compact EH support.
79 * scripttempl/elf.sc: Handle .eh_frame_entry and .gnu_extab
82 2015-05-17 Chung-Lin Tang <cltang@codesourcery.com>
84 * configure.ac (AC_PROG_GREP): Check for grep program.
85 (elf_list_options,elf_shlib_list_options,elf_plt_unwind_list_options):
86 Enable ELF option printing for emulations containing
87 'TEMPLATE_NAME=elf32'.
88 * configure: Regenerate.
90 2015-05-14 Nick Clifton <nickc@redhat.com>
92 * ld.texinfo (ASSERT): Describe the interaction with PROVIDEd
95 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
97 * configure.tgt: Support i[3-7]86-*-elfiamcu target.
99 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
101 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_iamcu.c.
103 * configure.tgt (targ_extra_emuls): Add elf_iamcu if elf_i386 is
105 * Makefile.in: Regenerated.
106 * emulparams/elf_iamcu.sh: New file.
108 2015-05-05 Nick Clifton <nickc@redhat.com>
110 * emulparams/msp430elf.sh (TEMPLATE_NAME): Change to msp430.
111 * scripttempl/msp430.sc (.text): Add .lower.text and .either.text.
112 (.data): Add .lower.data and .either.data.
113 (.bss): Add .lower.bss and .either.bss.
114 (.rodata): Add .lower.rodata and .either.rodata.
115 * emultempl/msp430.em: New file. Implements a new orphan
116 placement algorithm that divides sections between lower and upper
118 * Makefile.am (emsp430elf.c): Depend upon msp430.em.
119 *emsp430X.c): Likewise.
120 * Makefine.in: Regenerate.
122 2015-04-28 Andreas Schwab <schwab@linux-m68k.org>
125 * ldlex.l (INPUTLIST): Increment lineno on newline.
127 2015-04-24 Alan Modra <amodra@gmail.com>
129 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
130 Call gld${EMULATION_NAME}_map_segments regardless of need_laying_out.
132 2015-04-24 DJ Delorie <dj@redhat.com>
134 * Makefile.am (msp430): Rename primary emulation to msp430elf.
135 (emsp430.c): Rename to emsp430elf.c, update dependencies
136 (emsp430X.c): Update dependencies.
137 * Makefile.in: Likewise.
138 * configure.tgt (msp430-*-*): Rename primary emulation to msp430elf.
139 * emulparams/msp430.sh: Rename to msp430elf.sh.
140 * emulparams/msp430X.sh: Update.
142 2015-04-23 H.J. Lu <hongjiu.lu@intel.com>
145 * ldfile.c (ldfile_try_open_bfd): Set is_linker_input to 1.
147 2015-04-23 Alan Modra <amodra@gmail.com>
149 * emulparams/elf64ppc.sh (GOT): Align.
151 2015-04-22 Alan Modra <amodra@gmail.com>
153 * ldexp.h (struct ldexp_control): Delete dataseg.min_base. Add
154 data_seg.relro_offset.
155 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Don't set min_base.
156 (fold_binary <DATA_SEGMENT_RELRO_END>): Do set relro_offset.
157 * ldlang.c (lang_size_sections): Rewrite code adjusting relro
158 segment base to line up last section on page boundary.
160 2015-04-15 H.J. Lu <hongjiu.lu@intel.com>
163 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
165 2015-04-14 H.J. Lu <hongjiu.lu@intel.com>
167 * ld.texinfo: Document --compress-debug-sections=.
168 * ldmain.c (main): Set BFD_COMPRESS on output_bfd if
169 COMPRESS_DEBUG is set. Set BFD_COMPRESS_GABI on output_bfd
170 for COMPRESS_DEBUG_GABI_ZLIB.
171 * lexsup.c (elf_static_list_options): Add
172 --compress-debug-sections=.
173 * emultempl/elf32.em (OPTION_COMPRESS_DEBUG): New.
174 (xtra_long): Add "compress-debug-sections".
175 (gld${EMULATION_NAME}_handle_option): Handle
176 OPTION_COMPRESS_DEBUG.
178 2015-04-14 H.J. Lu <hongjiu.lu@intel.com>
181 * ld.texinfo: Document "-z noextern-protected-data".
182 * ldmain.c (main): Initialize link_info.extern_protected_data
184 * lexsup.c (elf_shlib_list_options): Add
185 "-z [no]extern-protected-data".
186 * emulparams/elf32_x86_64.sh: Source extern_protected_data.sh.
187 * emulparams/elf_i386.sh: Likewise.
188 * emulparams/elf_i386_be.sh: Likewise.
189 * emulparams/elf_i386_chaos.sh: Likewise.
190 * emulparams/elf_i386_ldso.sh: Likewise.
191 * emulparams/elf_i386_vxworks.sh: Likewise.
192 * emulparams/elf_k1om.sh: Likewise.
193 * emulparams/elf_l1om.sh: Likewise.
194 * emulparams/elf_x86_64.sh: Source extern_protected_data.sh.
195 (PARSE_AND_LIST_OPTIONS): Renamed to ...
196 (PARSE_AND_LIST_OPTIONS_BNDPLT): This.
197 (PARSE_AND_LIST_ARGS_CASE_Z): Renamed to ...
198 (PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT): This.
199 (PARSE_AND_LIST_OPTIONS): Append $PARSE_AND_LIST_OPTIONS_BNDPLT.
200 (PARSE_AND_LIST_ARGS_CASE_Z): Append
201 $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT.
202 * emulparams/extern_protected_data.sh: New file.
204 2015-04-11 H.J. Lu <hongjiu.lu@intel.com>
206 * plugin.c (plugin_load_plugins): Removed an extra ';'.
208 2015-04-10 Nick Clifton <nickc@redhat.com>
211 * ld.texinfo (--be8): Add a note about the interaction of this
212 option with the assembler's -EB option.
214 2015-04-10 Alan Modra <amodra@gmail.com>
216 * configure.ac: Set elf_list_options etc. in proper case.
217 * configure: Regenerate.
219 2015-04-10 Alan Modra <amodra@gmail.com>
222 * ldlang.c (lang_process): Add _init and _fini to gc_sym_list.
224 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
226 * emulparams/elf_x86_64.sh (BNDPLT): Removed.
227 (PARSE_AND_LIST_OPTIONS): New.
228 (PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
229 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Remove
230 BNDPLT check. Handle PARSE_AND_LIST_ARGS_CASE_Z.
231 (gld${EMULATION_NAME}_list_options): Remove BNDPLT check.
233 2015-04-09 Nick Clifton <nickc@redhat.com>
235 * po/fr.po: Updated French translation.
237 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
239 * configure.ac (elf_list_options): Set to TRUE for
240 --enable-targets=all.
241 (elf_shlib_list_options): Likewise.
242 (elf_plt_unwind_list_options): Likewise.
243 * configure: Regenerated.
245 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
247 * emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME.
249 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
251 * Makefile.am (ELF_CLFAGS): New.
252 (AM_CFLAGS): Add $(ELF_CLFAGS).
253 * configure.ac (elf_list_options): New. AC_SUBST.
254 (elf_shlib_list_options): Likewise.
255 (elf_plt_unwind_list_options): Likewise.
256 * lexsup.c (elf_shlib_list_options): New.
257 (elf_static_list_options): Likewise.
258 (elf_plt_unwind_list_options): Likewise.
259 (ld_list_options): Likewise.
260 (help): Call ld_list_options.
261 * Makefile.in: Regenerated.
262 * configure: Likewise.
263 * emulparams/plt_unwind.sh (PLT_UNWIND): New.
264 (PARSE_AND_LIST_OPTIONS): Removed.
265 * emultempl/elf32.em (gld_list_options): New.
266 (gld${EMULATION_NAME}_list_options): Define only if BNDPLT or
267 PARSE_AND_LIST_OPTIONS is defined.
268 (ld_${EMULATION_NAME}_emulation): Replace
269 gld${EMULATION_NAME}_list_options with ${gld_list_options.
271 2015-04-07 Alan Modra <amodra@gmail.com>
274 * ldlang.c (lang_size_sections): Cast shift expression.
276 2015-04-07 Alan Modra <amodra@gmail.com>
278 * emultempl/ppc32elf.em: Handle --no-pic-fixup.
279 (params): Init new field.
280 (ppc_before_allocation): Enable relaxation for pic_fixup.
282 2015-04-07 Nick Clifton <nickc@redhat.com>
284 * ld.h (struct ld_config_type): Add new field: warn_orphan.
285 * ldlex.h (enum option_values): Add OPTION_WARN_ORPHAN and
286 OPTION_NO_WARN_ORPHAN.
287 * lexsup.c (ld_options): Add --warn-orphan and --no-warn-orphan.
288 (parse_args): Handle the new options.
289 * ldemul.c (ldemul_place_orphan): If requested, generate a warning
290 message when an orphan section is placed in the output file.
291 * ld.texinfo: Document the new option.
292 * NEWS: Mention the new feature.
294 2015-04-02 Andrew Turner <andrew@freebsd.org>
296 * Makefile.am: Add FreeBSD aarch64 files.
297 * Makefile.in: Regenerate.
298 * configure.tgt: Add aarch64-*-freebsd* target triple.
299 * emulparams/aarch64fbsd.sh: New file.
300 * emulparams/aarch64fbsdb.sh: New file.
302 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
304 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work
305 around a GCC uninitialized warning bug fixed in GCC 4.6.
307 2015-04-01 Tejas Belagod <tejas.belagod@arm.com>
309 * emultempl/aarch64elf.em
310 (aarch64_elf_create_output_section_statements): Add parameter in
311 bfd_elf${ELFSIZE}_aarch64_set_options call.
312 (OPTION_FIX_ERRATUM_843419): Define.
313 (PARSE_AND_LIST_LONGOPTS): Add fix-cortex-a53-843419.
314 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_FIX_ERRATUM_843419.
316 2015-04-01 Chen Gang <gang.chen.5i5j@gmail.com>
318 * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for
319 relocating operation.
321 2015-04-01 Alan Modra <amodra@gmail.com>
324 * ldlang.c (lang_size_sections): When alignment of sections
325 results in relro base adjustment being too large, don't go lower
326 than the initial value.
327 * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
328 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
329 alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
331 2015-04-01 Alan Modra <amodra@gmail.com>
333 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
334 init ehdr_start_save.
336 2015-04-01 Alan Modra <amodra@gmail.com>
338 * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
340 (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
341 eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
342 eelf32ppcsim.c): Rearrange deps for consistency.
343 * Makefile.in: Regenerate.
345 2015-04-01 Ed Schouten <ed@nuxi.nl>
347 * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
348 the ehdr_start_save variable.
350 2015-03-31 Ed Schouten <ed@nuxi.nl>
352 * Makefile.am (ALL_64_EMULATION_SOURCES): Add
353 eelf_x86_64_cloudabi.c.
354 (eelf_x86_64_cloudabi.c): New.
355 * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
357 * Makefile.in: Regenerated.
358 * emulparams/elf_x86_64_cloudabi.sh: New file.
360 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
362 * configure.ac (AM_ZLIB): Removed.
363 * Makefile.in: Regenerated.
364 * config.in: Likewise.
365 * configure: Likewise.
367 2015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
369 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
372 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
374 * emultempl/aarch64elf.em
375 (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
377 2015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
379 * ldmain.c (main): Use %F instead of %X for einfo.
381 2015-03-02 Alan Modra <amodra@gmail.com>
383 * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
385 2015-02-27 Nick Clifton <nickc@redhat.com>
388 * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
389 sense of the following memory region attribute characters.
391 2015-02-27 Alan Modra <amodra@gmail.com>
393 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
394 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
395 eh8300sxelf_linux.c): Do not invoke genscripts here.
396 * Makefile.in: Regenerate.
398 2015-02-24 Nick Clifton <nickc@redhat.com>
400 * Makefile.am (ev850.c): Add dependency upon
401 $(srcdir)/emultempl/v850elf.em.
402 (ev850_rh850.c): Likewise.
403 * Makefile.in: Regenerate.
404 * emultempl/v850elf.em: New file.
405 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
406 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
407 * scripttempl/v850.sc: Add .note.renesas section.
408 * scripttempl/v850_rh850.sc: Likewise.
410 2015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
412 * scripttempl/avr.sc: Add new user_signatures region. Define and
413 use symbols for all region lengths.
414 * scripttempl/avrtiny.sc: Define and use symbols for all region
417 2015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
419 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
420 * Makefile.in: Regenerate.
421 * configure.tgt: Add h8300-*-linux
422 * emulparams/h8300elf_linux.sh: Add new emulation.
423 * emulparams/h8300helf_linux.sh: Likewise.
424 * emulparams/h8300self_linux.sh: Likewise.
425 * emulparams/h8300sxelf_linux.sh: Likewise.
427 2015-02-23 Nick Clifton <nickc@redhat.com>
429 * lexsup.c (parse_args): Produce a more reasonable error message
430 when -ixxx or -rxxx is the last option on the linker command line.
432 2015-02-14 H.J. Lu <hongjiu.lu@intel.com>
435 * testplug2.c (allsymbolsread_silent): New.
436 (set_register_hook): Handle allsymbolsreadsilent.
437 (onall_symbols_read): Skip a message if allsymbolsread_silent is
440 2015-02-14 Alan Modra <amodra@gmail.com>
443 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
444 * ldlang.c (lang_process): Don't set loading_lto_outputs.
445 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
447 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
449 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
451 * NEWS: Mention support for LLVM plugin.
453 2015-02-13 Alan Modra <amodra@gmail.com>
455 * ld.texinfo (Options <--defsym>): Correct cross reference.
457 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
459 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
460 option compatibility.
462 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
464 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
465 "error:" for LDPL_FATAL and LDPL_ERROR.
466 * testplug2.c (parse_option): Handle fatal, error and warning.
468 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
470 * testplug2.c (dump_tv_tag): Removed.
471 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
473 * testplug3.c (dump_tv_tag): Removed.
474 (onclaim_file): Fix typo.
476 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
479 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
481 (libldtestplug2_la_SOURCES): New.
482 (libldtestplug2_la_CFLAGS): Likewise.
483 (libldtestplug2_la_LDFLAGS): Likewise.
484 (libldtestplug3_la_SOURCES): New.
485 (libldtestplug3_la_CFLAGS): Likewise.
486 (libldtestplug3_la_LDFLAGS): Likewise.
487 * Makefile.in: Regenerated.
488 * testplug2.c: New file.
489 * testplug3.c: Likewise.
491 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
494 * plugin.c: Include ../bfd/plugin.h.
495 (plugin_get_ir_dummy_bfd): Call bfd_create with
496 link_info.output_bfd instead of srctemplate. Copy BFD info
497 from srctemplate only if it doesn't use BFD plugin target
499 (plugin_load_plugins): Call register_ld_plugin_object_p with
501 (plugin_maybe_claim): Renamed to ...
502 (plugin_object_p): This. Return dummy BFD target vector if
503 input is calimed by plugin library, otherwise return NULL.
504 Update plugin_format and plugin_dummy_bfd.
505 (plugin_maybe_claim): New. Use plugin_object_p.
507 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
509 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
511 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
513 * plugin.c (plugin_input_file_t): Add use_mmap.
514 (plugin_pagesize): New.
515 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
516 (plugin_load_plugins): Initialize plugin_pagesize.
517 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
520 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
522 * plugin.c (get_view): Align offset passed to mmap.
524 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
526 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
527 if plugin isn't active or there is no thing more to claim.
529 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
531 * plugin.c (plugin_maybe_claim): Check format against bfd_object
534 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
536 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
539 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
541 * plugin.c: Include "libbfd.h".
542 (plugin_strdup): New.
543 (plugin_maybe_claim): Remove the argument of pointer to struct
544 ld_plugin_input_file. Open and handle input entry.
545 * plugin.h (plugin_maybe_claim): Updated.
546 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
547 without passing a pointer to struct ld_plugin_input_file.
548 * ldmain.c: Don't include "libbfd.h".
549 (add_archive_element): Call plugin_maybe_claim directly without
550 passing a pointer to struct ld_plugin_input_file.
552 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
554 * ld.texinfo: Document -z text, -z notext and -z textoff.
555 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
556 -z text, -z notext and -z textoff.
558 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
560 * configure.ac: Add AC_FUNC_MMAP.
561 * config.in: Regenerated.
562 * configure: Likewise.
563 * plugin.c: Include <sys/mman.h>.
564 (MAP_FAILED): New. Defined if not defined.
565 (PROT_READ): Likewise.
566 (MAP_PRIVATE): Likewise.
567 (view_buffer_t): New.
568 (plugin_input_file_t): Add view_buffer.
569 (get_view): Try mmap and cache the view buffer.
570 (plugin_maybe_claim): Initialize view_buffer.
572 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
574 * plugin.c (release_input_file): Set fd to -1 after closing it.
575 (plugin_maybe_claim): Close fd only if fd != -1.
577 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
580 * plugin.c: Include <errno.h>.
581 (errno): New. Declare if needed.
582 (plugin_input_file_t): New.
583 (get_input_file): Implemented.
584 (get_view): Likewise.
585 (release_input_file): Likewise.
586 (add_symbols): Updated.
587 (get_symbols): Likewise.
588 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
589 only for a bfd_object input.
591 2015-02-02 Alan Modra <amodra@gmail.com>
593 * emultempl/ppc64elf.em (toc_section_name): New var.
594 (ppc_after_open): Set it.
595 (ppc_before_allocation): Use it.
596 (gld${EMULATION_NAME}_after_allocation): Here too.
598 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
600 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
601 with link_info.lto_plugin_active.
602 * ldlang.c (lang_process): Likewise.
603 * ldmain.c (add_archive_element): Likewise.
604 * plugin.c (plugin_active_plugins_p): Removed.
605 * plugin.h (plugin_active_plugins_p): Likewise.
607 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
609 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
611 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
613 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
616 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
617 (get_view): New function.
618 (set_tv_header): Handle LDPT_GET_VIEW.
619 * testplug.c (tag_names): Add LDPT_GET_VIEW.
621 (dump_tv_tag): Handle LDPT_GET_VIEW.
622 (parse_tv_tag): Likewise.
624 2015-01-28 Alan Modra <amodra@gmail.com>
626 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
627 * emultempl/ppc64elf.em (params): Init new field.
628 (ppc_after_open): New function.
629 (LDEMUL_AFTER_OPEN): Define.
630 * ldlang.c (lang_final): Whitespace fix.
632 2015-01-28 James Bowman <james.bowman@ftdichip.com>
634 * Makefile.am: Add FT32 files.
635 * configure.tgt: Handle FT32 target.
636 * emulparams/elf32ft32.sh: New file.
637 * scripttempl/ft32.sc: New file.
638 * Makefile.in: Regenerate.
640 2015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
643 * ldexp.c (fold_name): Fold LENGTH only after
644 lang_first_phase_enum.
645 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
647 * ldlang.h (struct memory_region_struct): Add origin_exp and
649 * ldlang.c (lang_do_memory_regions): New.
650 (lang_memory_region_lookup): Initialize origin_exp and
652 (lang_process): Call lang_do_memory_regions.
654 2015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
656 * ldlang.c (print_assignment): Only evaluate the expression for a
657 PROVIDE'd assignment when the destination is being defined.
658 Display a special message for PROVIDE'd symbols that are not being
661 2015-01-20 Alan Modra <amodra@gmail.com>
663 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
664 (OTHER_BSS_SYMBOLS): ..this.
665 (OTHER_PLT_RELOC_SECTIONS): Don't define.
666 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
667 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
668 (OTHER_RELRO_SECTIONS_2): ..here.
669 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
671 2015-01-20 Alan Modra <amodra@gmail.com>
673 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
674 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
675 (OTHER_RELRO_SECTIONS_2): ..here.
676 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
677 PLT_BEFORE_GOT): Define.
678 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
679 PLT_BEFORE_GOT combination.
680 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
682 2015-01-20 Alan Modra <amodra@gmail.com>
684 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
685 (OTHER_RELRO_SECTIONS_2): ..here, new define.
686 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
688 2015-01-19 Alan Modra <amodra@gmail.com>
691 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
693 2015-01-14 Jiong Wang <jiong.wang@arm.com>
695 * ld-arm/elf32-reject.s: New testcase.
696 * ld-arm/elf32-reject.d: Likewise.
697 * ld-arm/elf32-reject-pie.s: Likewise.
698 * ld-arm/elf32-reject-pie.d: Likewise.
699 * ld-arm/arm-elf.exp: Run new testcases.
700 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
701 * ld-arm/ifunc-7.rd: Likewise.
702 * ld-arm/ifunc-7.gd: Likewise.
703 * ld-arm/ifunc-7.dd: Likewise.
704 * ld-arm/ifunc-8.s: Likewise.
705 * ld-arm/ifunc-8.rd: Likewise.
706 * ld-arm/ifunc-8.gd: Likewise.
707 * ld-arm/ifunc-8.dd: Likewise.
709 2015-01-01 Alan Modra <amodra@gmail.com>
711 * ldver.c (ldversion): Just print current year.
713 2015-01-01 Alan Modra <amodra@gmail.com>
715 Update year range in copyright notice of all files.
717 For older changes see ChangeLog-2014
719 Copyright (C) 2015 Free Software Foundation, Inc.
721 Copying and distribution of this file, with or without modification,
722 are permitted in any medium without royalty provided the copyright
723 notice and this notice are preserved.
729 version-control: never