1 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
3 * emultempl/aarch64elf.em
4 (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
6 2015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
8 * ldmain.c (main): Use %F instead of %X for einfo.
10 2015-03-02 Alan Modra <amodra@gmail.com>
12 * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
14 2015-02-27 Nick Clifton <nickc@redhat.com>
17 * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
18 sense of the following memory region attribute characters.
20 2015-02-27 Alan Modra <amodra@gmail.com>
22 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
23 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
24 eh8300sxelf_linux.c): Do not invoke genscripts here.
25 * Makefile.in: Regenerate.
27 2015-02-24 Nick Clifton <nickc@redhat.com>
29 * Makefile.am (ev850.c): Add dependency upon
30 $(srcdir)/emultempl/v850elf.em.
31 (ev850_rh850.c): Likewise.
32 * Makefile.in: Regenerate.
33 * emultempl/v850elf.em: New file.
34 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
35 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
36 * scripttempl/v850.sc: Add .note.renesas section.
37 * scripttempl/v850_rh850.sc: Likewise.
39 2015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
41 * scripttempl/avr.sc: Add new user_signatures region. Define and
42 use symbols for all region lengths.
43 * scripttempl/avrtiny.sc: Define and use symbols for all region
46 2015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
48 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
49 * Makefile.in: Regenerate.
50 * configure.tgt: Add h8300-*-linux
51 * emulparams/h8300elf_linux.sh: Add new emulation.
52 * emulparams/h8300helf_linux.sh: Likewise.
53 * emulparams/h8300self_linux.sh: Likewise.
54 * emulparams/h8300sxelf_linux.sh: Likewise.
56 2015-02-23 Nick Clifton <nickc@redhat.com>
58 * lexsup.c (parse_args): Produce a more reasonable error message
59 when -ixxx or -rxxx is the last option on the linker command line.
61 2015-02-14 H.J. Lu <hongjiu.lu@intel.com>
64 * testplug2.c (allsymbolsread_silent): New.
65 (set_register_hook): Handle allsymbolsreadsilent.
66 (onall_symbols_read): Skip a message if allsymbolsread_silent is
69 2015-02-14 Alan Modra <amodra@gmail.com>
72 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
73 * ldlang.c (lang_process): Don't set loading_lto_outputs.
74 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
76 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
78 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
80 * NEWS: Mention support for LLVM plugin.
82 2015-02-13 Alan Modra <amodra@gmail.com>
84 * ld.texinfo (Options <--defsym>): Correct cross reference.
86 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
88 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
91 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
93 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
94 "error:" for LDPL_FATAL and LDPL_ERROR.
95 * testplug2.c (parse_option): Handle fatal, error and warning.
97 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
99 * testplug2.c (dump_tv_tag): Removed.
100 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
102 * testplug3.c (dump_tv_tag): Removed.
103 (onclaim_file): Fix typo.
105 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
108 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
110 (libldtestplug2_la_SOURCES): New.
111 (libldtestplug2_la_CFLAGS): Likewise.
112 (libldtestplug2_la_LDFLAGS): Likewise.
113 (libldtestplug3_la_SOURCES): New.
114 (libldtestplug3_la_CFLAGS): Likewise.
115 (libldtestplug3_la_LDFLAGS): Likewise.
116 * Makefile.in: Regenerated.
117 * testplug2.c: New file.
118 * testplug3.c: Likewise.
120 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
123 * plugin.c: Include ../bfd/plugin.h.
124 (plugin_get_ir_dummy_bfd): Call bfd_create with
125 link_info.output_bfd instead of srctemplate. Copy BFD info
126 from srctemplate only if it doesn't use BFD plugin target
128 (plugin_load_plugins): Call register_ld_plugin_object_p with
130 (plugin_maybe_claim): Renamed to ...
131 (plugin_object_p): This. Return dummy BFD target vector if
132 input is calimed by plugin library, otherwise return NULL.
133 Update plugin_format and plugin_dummy_bfd.
134 (plugin_maybe_claim): New. Use plugin_object_p.
136 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
138 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
140 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
142 * plugin.c (plugin_input_file_t): Add use_mmap.
143 (plugin_pagesize): New.
144 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
145 (plugin_load_plugins): Initialize plugin_pagesize.
146 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
149 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
151 * plugin.c (get_view): Align offset passed to mmap.
153 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
155 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
156 if plugin isn't active or there is no thing more to claim.
158 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
160 * plugin.c (plugin_maybe_claim): Check format against bfd_object
163 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
165 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
168 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
170 * plugin.c: Include "libbfd.h".
171 (plugin_strdup): New.
172 (plugin_maybe_claim): Remove the argument of pointer to struct
173 ld_plugin_input_file. Open and handle input entry.
174 * plugin.h (plugin_maybe_claim): Updated.
175 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
176 without passing a pointer to struct ld_plugin_input_file.
177 * ldmain.c: Don't include "libbfd.h".
178 (add_archive_element): Call plugin_maybe_claim directly without
179 passing a pointer to struct ld_plugin_input_file.
181 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
183 * ld.texinfo: Document -z text, -z notext and -z textoff.
184 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
185 -z text, -z notext and -z textoff.
187 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
189 * configure.ac: Add AC_FUNC_MMAP.
190 * config.in: Regenerated.
191 * configure: Likewise.
192 * plugin.c: Include <sys/mman.h>.
193 (MAP_FAILED): New. Defined if not defined.
194 (PROT_READ): Likewise.
195 (MAP_PRIVATE): Likewise.
196 (view_buffer_t): New.
197 (plugin_input_file_t): Add view_buffer.
198 (get_view): Try mmap and cache the view buffer.
199 (plugin_maybe_claim): Initialize view_buffer.
201 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
203 * plugin.c (release_input_file): Set fd to -1 after closing it.
204 (plugin_maybe_claim): Close fd only if fd != -1.
206 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
209 * plugin.c: Include <errno.h>.
210 (errno): New. Declare if needed.
211 (plugin_input_file_t): New.
212 (get_input_file): Implemented.
213 (get_view): Likewise.
214 (release_input_file): Likewise.
215 (add_symbols): Updated.
216 (get_symbols): Likewise.
217 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
218 only for a bfd_object input.
220 2015-02-02 Alan Modra <amodra@gmail.com>
222 * emultempl/ppc64elf.em (toc_section_name): New var.
223 (ppc_after_open): Set it.
224 (ppc_before_allocation): Use it.
225 (gld${EMULATION_NAME}_after_allocation): Here too.
227 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
229 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
230 with link_info.lto_plugin_active.
231 * ldlang.c (lang_process): Likewise.
232 * ldmain.c (add_archive_element): Likewise.
233 * plugin.c (plugin_active_plugins_p): Removed.
234 * plugin.h (plugin_active_plugins_p): Likewise.
236 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
238 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
240 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
242 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
245 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
246 (get_view): New function.
247 (set_tv_header): Handle LDPT_GET_VIEW.
248 * testplug.c (tag_names): Add LDPT_GET_VIEW.
250 (dump_tv_tag): Handle LDPT_GET_VIEW.
251 (parse_tv_tag): Likewise.
253 2015-01-28 Alan Modra <amodra@gmail.com>
255 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
256 * emultempl/ppc64elf.em (params): Init new field.
257 (ppc_after_open): New function.
258 (LDEMUL_AFTER_OPEN): Define.
259 * ldlang.c (lang_final): Whitespace fix.
261 2015-01-28 James Bowman <james.bowman@ftdichip.com>
263 * Makefile.am: Add FT32 files.
264 * configure.tgt: Handle FT32 target.
265 * emulparams/elf32ft32.sh: New file.
266 * scripttempl/ft32.sc: New file.
267 * Makefile.in: Regenerate.
269 2015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
272 * ldexp.c (fold_name): Fold LENGTH only after
273 lang_first_phase_enum.
274 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
276 * ldlang.h (struct memory_region_struct): Add origin_exp and
278 * ldlang.c (lang_do_memory_regions): New.
279 (lang_memory_region_lookup): Initialize origin_exp and
281 (lang_process): Call lang_do_memory_regions.
283 2015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
285 * ldlang.c (print_assignment): Only evaluate the expression for a
286 PROVIDE'd assignment when the destination is being defined.
287 Display a special message for PROVIDE'd symbols that are not being
290 2015-01-20 Alan Modra <amodra@gmail.com>
292 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
293 (OTHER_BSS_SYMBOLS): ..this.
294 (OTHER_PLT_RELOC_SECTIONS): Don't define.
295 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
296 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
297 (OTHER_RELRO_SECTIONS_2): ..here.
298 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
300 2015-01-20 Alan Modra <amodra@gmail.com>
302 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
303 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
304 (OTHER_RELRO_SECTIONS_2): ..here.
305 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
306 PLT_BEFORE_GOT): Define.
307 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
308 PLT_BEFORE_GOT combination.
309 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
311 2015-01-20 Alan Modra <amodra@gmail.com>
313 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
314 (OTHER_RELRO_SECTIONS_2): ..here, new define.
315 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
317 2015-01-19 Alan Modra <amodra@gmail.com>
320 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
322 2015-01-14 Jiong Wang <jiong.wang@arm.com>
324 * ld-arm/elf32-reject.s: New testcase.
325 * ld-arm/elf32-reject.d: Likewise.
326 * ld-arm/elf32-reject-pie.s: Likewise.
327 * ld-arm/elf32-reject-pie.d: Likewise.
328 * ld-arm/arm-elf.exp: Run new testcases.
329 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
330 * ld-arm/ifunc-7.rd: Likewise.
331 * ld-arm/ifunc-7.gd: Likewise.
332 * ld-arm/ifunc-7.dd: Likewise.
333 * ld-arm/ifunc-8.s: Likewise.
334 * ld-arm/ifunc-8.rd: Likewise.
335 * ld-arm/ifunc-8.gd: Likewise.
336 * ld-arm/ifunc-8.dd: Likewise.
338 2015-01-01 Alan Modra <amodra@gmail.com>
340 * ldver.c (ldversion): Just print current year.
342 2015-01-01 Alan Modra <amodra@gmail.com>
344 Update year range in copyright notice of all files.
346 For older changes see ChangeLog-2014
348 Copyright (C) 2015 Free Software Foundation, Inc.
350 Copying and distribution of this file, with or without modification,
351 are permitted in any medium without royalty provided the copyright
352 notice and this notice are preserved.
358 version-control: never