1 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
3 * Makefile.am (ELF_CLFAGS): New.
4 (AM_CFLAGS): Add $(ELF_CLFAGS).
5 * configure.ac (elf_list_options): New. AC_SUBST.
6 (elf_shlib_list_options): Likewise.
7 (elf_plt_unwind_list_options): Likewise.
8 * lexsup.c (elf_shlib_list_options): New.
9 (elf_static_list_options): Likewise.
10 (elf_plt_unwind_list_options): Likewise.
11 (ld_list_options): Likewise.
12 (help): Call ld_list_options.
13 * Makefile.in: Regenerated.
14 * configure: Likewise.
15 * emulparams/plt_unwind.sh (PLT_UNWIND): New.
16 (PARSE_AND_LIST_OPTIONS): Removed.
17 * emultempl/elf32.em (gld_list_options): New.
18 (gld${EMULATION_NAME}_list_options): Define only if BNDPLT or
19 PARSE_AND_LIST_OPTIONS is defined.
20 (ld_${EMULATION_NAME}_emulation): Replace
21 gld${EMULATION_NAME}_list_options with ${gld_list_options.
23 2015-04-07 Alan Modra <amodra@gmail.com>
26 * ldlang.c (lang_size_sections): Cast shift expression.
28 2015-04-07 Alan Modra <amodra@gmail.com>
30 * emultempl/ppc32elf.em: Handle --no-pic-fixup.
31 (params): Init new field.
32 (ppc_before_allocation): Enable relaxation for pic_fixup.
34 2015-04-07 Nick Clifton <nickc@redhat.com>
36 * ld.h (struct ld_config_type): Add new field: warn_orphan.
37 * ldlex.h (enum option_values): Add OPTION_WARN_ORPHAN and
38 OPTION_NO_WARN_ORPHAN.
39 * lexsup.c (ld_options): Add --warn-orphan and --no-warn-orphan.
40 (parse_args): Handle the new options.
41 * ldemul.c (ldemul_place_orphan): If requested, generate a warning
42 message when an orphan section is placed in the output file.
43 * ld.texinfo: Document the new option.
44 * NEWS: Mention the new feature.
46 2015-04-02 Andrew Turner <andrew@freebsd.org>
48 * Makefile.am: Add FreeBSD aarch64 files.
49 * Makefile.in: Regenerate.
50 * configure.tgt: Add aarch64-*-freebsd* target triple.
51 * emulparams/aarch64fbsd.sh: New file.
52 * emulparams/aarch64fbsdb.sh: New file.
54 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
56 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work
57 around a GCC uninitialized warning bug fixed in GCC 4.6.
59 2015-04-01 Tejas Belagod <tejas.belagod@arm.com>
61 * emultempl/aarch64elf.em
62 (aarch64_elf_create_output_section_statements): Add parameter in
63 bfd_elf${ELFSIZE}_aarch64_set_options call.
64 (OPTION_FIX_ERRATUM_843419): Define.
65 (PARSE_AND_LIST_LONGOPTS): Add fix-cortex-a53-843419.
66 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_FIX_ERRATUM_843419.
68 2015-04-01 Chen Gang <gang.chen.5i5j@gmail.com>
70 * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for
73 2015-04-01 Alan Modra <amodra@gmail.com>
76 * ldlang.c (lang_size_sections): When alignment of sections
77 results in relro base adjustment being too large, don't go lower
78 than the initial value.
79 * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
80 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
81 alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
83 2015-04-01 Alan Modra <amodra@gmail.com>
85 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
88 2015-04-01 Alan Modra <amodra@gmail.com>
90 * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
92 (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
93 eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
94 eelf32ppcsim.c): Rearrange deps for consistency.
95 * Makefile.in: Regenerate.
97 2015-04-01 Ed Schouten <ed@nuxi.nl>
99 * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
100 the ehdr_start_save variable.
102 2015-03-31 Ed Schouten <ed@nuxi.nl>
104 * Makefile.am (ALL_64_EMULATION_SOURCES): Add
105 eelf_x86_64_cloudabi.c.
106 (eelf_x86_64_cloudabi.c): New.
107 * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
109 * Makefile.in: Regenerated.
110 * emulparams/elf_x86_64_cloudabi.sh: New file.
112 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
114 * configure.ac (AM_ZLIB): Removed.
115 * Makefile.in: Regenerated.
116 * config.in: Likewise.
117 * configure: Likewise.
119 2015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
121 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
124 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
126 * emultempl/aarch64elf.em
127 (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
129 2015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
131 * ldmain.c (main): Use %F instead of %X for einfo.
133 2015-03-02 Alan Modra <amodra@gmail.com>
135 * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
137 2015-02-27 Nick Clifton <nickc@redhat.com>
140 * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
141 sense of the following memory region attribute characters.
143 2015-02-27 Alan Modra <amodra@gmail.com>
145 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
146 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
147 eh8300sxelf_linux.c): Do not invoke genscripts here.
148 * Makefile.in: Regenerate.
150 2015-02-24 Nick Clifton <nickc@redhat.com>
152 * Makefile.am (ev850.c): Add dependency upon
153 $(srcdir)/emultempl/v850elf.em.
154 (ev850_rh850.c): Likewise.
155 * Makefile.in: Regenerate.
156 * emultempl/v850elf.em: New file.
157 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
158 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
159 * scripttempl/v850.sc: Add .note.renesas section.
160 * scripttempl/v850_rh850.sc: Likewise.
162 2015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
164 * scripttempl/avr.sc: Add new user_signatures region. Define and
165 use symbols for all region lengths.
166 * scripttempl/avrtiny.sc: Define and use symbols for all region
169 2015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
171 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
172 * Makefile.in: Regenerate.
173 * configure.tgt: Add h8300-*-linux
174 * emulparams/h8300elf_linux.sh: Add new emulation.
175 * emulparams/h8300helf_linux.sh: Likewise.
176 * emulparams/h8300self_linux.sh: Likewise.
177 * emulparams/h8300sxelf_linux.sh: Likewise.
179 2015-02-23 Nick Clifton <nickc@redhat.com>
181 * lexsup.c (parse_args): Produce a more reasonable error message
182 when -ixxx or -rxxx is the last option on the linker command line.
184 2015-02-14 H.J. Lu <hongjiu.lu@intel.com>
187 * testplug2.c (allsymbolsread_silent): New.
188 (set_register_hook): Handle allsymbolsreadsilent.
189 (onall_symbols_read): Skip a message if allsymbolsread_silent is
192 2015-02-14 Alan Modra <amodra@gmail.com>
195 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
196 * ldlang.c (lang_process): Don't set loading_lto_outputs.
197 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
199 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
201 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
203 * NEWS: Mention support for LLVM plugin.
205 2015-02-13 Alan Modra <amodra@gmail.com>
207 * ld.texinfo (Options <--defsym>): Correct cross reference.
209 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
211 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
212 option compatibility.
214 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
216 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
217 "error:" for LDPL_FATAL and LDPL_ERROR.
218 * testplug2.c (parse_option): Handle fatal, error and warning.
220 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
222 * testplug2.c (dump_tv_tag): Removed.
223 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
225 * testplug3.c (dump_tv_tag): Removed.
226 (onclaim_file): Fix typo.
228 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
231 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
233 (libldtestplug2_la_SOURCES): New.
234 (libldtestplug2_la_CFLAGS): Likewise.
235 (libldtestplug2_la_LDFLAGS): Likewise.
236 (libldtestplug3_la_SOURCES): New.
237 (libldtestplug3_la_CFLAGS): Likewise.
238 (libldtestplug3_la_LDFLAGS): Likewise.
239 * Makefile.in: Regenerated.
240 * testplug2.c: New file.
241 * testplug3.c: Likewise.
243 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
246 * plugin.c: Include ../bfd/plugin.h.
247 (plugin_get_ir_dummy_bfd): Call bfd_create with
248 link_info.output_bfd instead of srctemplate. Copy BFD info
249 from srctemplate only if it doesn't use BFD plugin target
251 (plugin_load_plugins): Call register_ld_plugin_object_p with
253 (plugin_maybe_claim): Renamed to ...
254 (plugin_object_p): This. Return dummy BFD target vector if
255 input is calimed by plugin library, otherwise return NULL.
256 Update plugin_format and plugin_dummy_bfd.
257 (plugin_maybe_claim): New. Use plugin_object_p.
259 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
261 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
263 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
265 * plugin.c (plugin_input_file_t): Add use_mmap.
266 (plugin_pagesize): New.
267 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
268 (plugin_load_plugins): Initialize plugin_pagesize.
269 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
272 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
274 * plugin.c (get_view): Align offset passed to mmap.
276 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
278 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
279 if plugin isn't active or there is no thing more to claim.
281 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
283 * plugin.c (plugin_maybe_claim): Check format against bfd_object
286 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
288 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
291 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
293 * plugin.c: Include "libbfd.h".
294 (plugin_strdup): New.
295 (plugin_maybe_claim): Remove the argument of pointer to struct
296 ld_plugin_input_file. Open and handle input entry.
297 * plugin.h (plugin_maybe_claim): Updated.
298 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
299 without passing a pointer to struct ld_plugin_input_file.
300 * ldmain.c: Don't include "libbfd.h".
301 (add_archive_element): Call plugin_maybe_claim directly without
302 passing a pointer to struct ld_plugin_input_file.
304 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
306 * ld.texinfo: Document -z text, -z notext and -z textoff.
307 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
308 -z text, -z notext and -z textoff.
310 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
312 * configure.ac: Add AC_FUNC_MMAP.
313 * config.in: Regenerated.
314 * configure: Likewise.
315 * plugin.c: Include <sys/mman.h>.
316 (MAP_FAILED): New. Defined if not defined.
317 (PROT_READ): Likewise.
318 (MAP_PRIVATE): Likewise.
319 (view_buffer_t): New.
320 (plugin_input_file_t): Add view_buffer.
321 (get_view): Try mmap and cache the view buffer.
322 (plugin_maybe_claim): Initialize view_buffer.
324 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
326 * plugin.c (release_input_file): Set fd to -1 after closing it.
327 (plugin_maybe_claim): Close fd only if fd != -1.
329 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
332 * plugin.c: Include <errno.h>.
333 (errno): New. Declare if needed.
334 (plugin_input_file_t): New.
335 (get_input_file): Implemented.
336 (get_view): Likewise.
337 (release_input_file): Likewise.
338 (add_symbols): Updated.
339 (get_symbols): Likewise.
340 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
341 only for a bfd_object input.
343 2015-02-02 Alan Modra <amodra@gmail.com>
345 * emultempl/ppc64elf.em (toc_section_name): New var.
346 (ppc_after_open): Set it.
347 (ppc_before_allocation): Use it.
348 (gld${EMULATION_NAME}_after_allocation): Here too.
350 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
352 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
353 with link_info.lto_plugin_active.
354 * ldlang.c (lang_process): Likewise.
355 * ldmain.c (add_archive_element): Likewise.
356 * plugin.c (plugin_active_plugins_p): Removed.
357 * plugin.h (plugin_active_plugins_p): Likewise.
359 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
361 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
363 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
365 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
368 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
369 (get_view): New function.
370 (set_tv_header): Handle LDPT_GET_VIEW.
371 * testplug.c (tag_names): Add LDPT_GET_VIEW.
373 (dump_tv_tag): Handle LDPT_GET_VIEW.
374 (parse_tv_tag): Likewise.
376 2015-01-28 Alan Modra <amodra@gmail.com>
378 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
379 * emultempl/ppc64elf.em (params): Init new field.
380 (ppc_after_open): New function.
381 (LDEMUL_AFTER_OPEN): Define.
382 * ldlang.c (lang_final): Whitespace fix.
384 2015-01-28 James Bowman <james.bowman@ftdichip.com>
386 * Makefile.am: Add FT32 files.
387 * configure.tgt: Handle FT32 target.
388 * emulparams/elf32ft32.sh: New file.
389 * scripttempl/ft32.sc: New file.
390 * Makefile.in: Regenerate.
392 2015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
395 * ldexp.c (fold_name): Fold LENGTH only after
396 lang_first_phase_enum.
397 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
399 * ldlang.h (struct memory_region_struct): Add origin_exp and
401 * ldlang.c (lang_do_memory_regions): New.
402 (lang_memory_region_lookup): Initialize origin_exp and
404 (lang_process): Call lang_do_memory_regions.
406 2015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
408 * ldlang.c (print_assignment): Only evaluate the expression for a
409 PROVIDE'd assignment when the destination is being defined.
410 Display a special message for PROVIDE'd symbols that are not being
413 2015-01-20 Alan Modra <amodra@gmail.com>
415 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
416 (OTHER_BSS_SYMBOLS): ..this.
417 (OTHER_PLT_RELOC_SECTIONS): Don't define.
418 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
419 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
420 (OTHER_RELRO_SECTIONS_2): ..here.
421 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
423 2015-01-20 Alan Modra <amodra@gmail.com>
425 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
426 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
427 (OTHER_RELRO_SECTIONS_2): ..here.
428 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
429 PLT_BEFORE_GOT): Define.
430 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
431 PLT_BEFORE_GOT combination.
432 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
434 2015-01-20 Alan Modra <amodra@gmail.com>
436 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
437 (OTHER_RELRO_SECTIONS_2): ..here, new define.
438 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
440 2015-01-19 Alan Modra <amodra@gmail.com>
443 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
445 2015-01-14 Jiong Wang <jiong.wang@arm.com>
447 * ld-arm/elf32-reject.s: New testcase.
448 * ld-arm/elf32-reject.d: Likewise.
449 * ld-arm/elf32-reject-pie.s: Likewise.
450 * ld-arm/elf32-reject-pie.d: Likewise.
451 * ld-arm/arm-elf.exp: Run new testcases.
452 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
453 * ld-arm/ifunc-7.rd: Likewise.
454 * ld-arm/ifunc-7.gd: Likewise.
455 * ld-arm/ifunc-7.dd: Likewise.
456 * ld-arm/ifunc-8.s: Likewise.
457 * ld-arm/ifunc-8.rd: Likewise.
458 * ld-arm/ifunc-8.gd: Likewise.
459 * ld-arm/ifunc-8.dd: Likewise.
461 2015-01-01 Alan Modra <amodra@gmail.com>
463 * ldver.c (ldversion): Just print current year.
465 2015-01-01 Alan Modra <amodra@gmail.com>
467 Update year range in copyright notice of all files.
469 For older changes see ChangeLog-2014
471 Copyright (C) 2015 Free Software Foundation, Inc.
473 Copying and distribution of this file, with or without modification,
474 are permitted in any medium without royalty provided the copyright
475 notice and this notice are preserved.
481 version-control: never