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