1 2015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3 * scripttempl/avr.sc: Add new user_signatures region. Define and
4 use symbols for all region lengths.
5 * scripttempl/avrtiny.sc: Define and use symbols for all region
8 2015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
10 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
11 * Makefile.in: Regenerate.
12 * configure.tgt: Add h8300-*-linux
13 * emulparams/h8300elf_linux.sh: Add new emulation.
14 * emulparams/h8300helf_linux.sh: Likewise.
15 * emulparams/h8300self_linux.sh: Likewise.
16 * emulparams/h8300sxelf_linux.sh: Likewise.
18 2015-02-23 Nick Clifton <nickc@redhat.com>
20 * lexsup.c (parse_args): Produce a more reasonable error message
21 when -ixxx or -rxxx is the last option on the linker command line.
23 2015-02-14 H.J. Lu <hongjiu.lu@intel.com>
26 * testplug2.c (allsymbolsread_silent): New.
27 (set_register_hook): Handle allsymbolsreadsilent.
28 (onall_symbols_read): Skip a message if allsymbolsread_silent is
31 2015-02-14 Alan Modra <amodra@gmail.com>
34 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
35 * ldlang.c (lang_process): Don't set loading_lto_outputs.
36 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
38 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
40 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
42 * NEWS: Mention support for LLVM plugin.
44 2015-02-13 Alan Modra <amodra@gmail.com>
46 * ld.texinfo (Options <--defsym>): Correct cross reference.
48 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
50 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
53 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
55 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
56 "error:" for LDPL_FATAL and LDPL_ERROR.
57 * testplug2.c (parse_option): Handle fatal, error and warning.
59 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
61 * testplug2.c (dump_tv_tag): Removed.
62 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
64 * testplug3.c (dump_tv_tag): Removed.
65 (onclaim_file): Fix typo.
67 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
70 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
72 (libldtestplug2_la_SOURCES): New.
73 (libldtestplug2_la_CFLAGS): Likewise.
74 (libldtestplug2_la_LDFLAGS): Likewise.
75 (libldtestplug3_la_SOURCES): New.
76 (libldtestplug3_la_CFLAGS): Likewise.
77 (libldtestplug3_la_LDFLAGS): Likewise.
78 * Makefile.in: Regenerated.
79 * testplug2.c: New file.
80 * testplug3.c: Likewise.
82 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
85 * plugin.c: Include ../bfd/plugin.h.
86 (plugin_get_ir_dummy_bfd): Call bfd_create with
87 link_info.output_bfd instead of srctemplate. Copy BFD info
88 from srctemplate only if it doesn't use BFD plugin target
90 (plugin_load_plugins): Call register_ld_plugin_object_p with
92 (plugin_maybe_claim): Renamed to ...
93 (plugin_object_p): This. Return dummy BFD target vector if
94 input is calimed by plugin library, otherwise return NULL.
95 Update plugin_format and plugin_dummy_bfd.
96 (plugin_maybe_claim): New. Use plugin_object_p.
98 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
100 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
102 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
104 * plugin.c (plugin_input_file_t): Add use_mmap.
105 (plugin_pagesize): New.
106 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
107 (plugin_load_plugins): Initialize plugin_pagesize.
108 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
111 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
113 * plugin.c (get_view): Align offset passed to mmap.
115 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
117 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
118 if plugin isn't active or there is no thing more to claim.
120 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
122 * plugin.c (plugin_maybe_claim): Check format against bfd_object
125 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
127 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
130 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
132 * plugin.c: Include "libbfd.h".
133 (plugin_strdup): New.
134 (plugin_maybe_claim): Remove the argument of pointer to struct
135 ld_plugin_input_file. Open and handle input entry.
136 * plugin.h (plugin_maybe_claim): Updated.
137 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
138 without passing a pointer to struct ld_plugin_input_file.
139 * ldmain.c: Don't include "libbfd.h".
140 (add_archive_element): Call plugin_maybe_claim directly without
141 passing a pointer to struct ld_plugin_input_file.
143 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
145 * ld.texinfo: Document -z text, -z notext and -z textoff.
146 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
147 -z text, -z notext and -z textoff.
149 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
151 * configure.ac: Add AC_FUNC_MMAP.
152 * config.in: Regenerated.
153 * configure: Likewise.
154 * plugin.c: Include <sys/mman.h>.
155 (MAP_FAILED): New. Defined if not defined.
156 (PROT_READ): Likewise.
157 (MAP_PRIVATE): Likewise.
158 (view_buffer_t): New.
159 (plugin_input_file_t): Add view_buffer.
160 (get_view): Try mmap and cache the view buffer.
161 (plugin_maybe_claim): Initialize view_buffer.
163 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
165 * plugin.c (release_input_file): Set fd to -1 after closing it.
166 (plugin_maybe_claim): Close fd only if fd != -1.
168 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
171 * plugin.c: Include <errno.h>.
172 (errno): New. Declare if needed.
173 (plugin_input_file_t): New.
174 (get_input_file): Implemented.
175 (get_view): Likewise.
176 (release_input_file): Likewise.
177 (add_symbols): Updated.
178 (get_symbols): Likewise.
179 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
180 only for a bfd_object input.
182 2015-02-02 Alan Modra <amodra@gmail.com>
184 * emultempl/ppc64elf.em (toc_section_name): New var.
185 (ppc_after_open): Set it.
186 (ppc_before_allocation): Use it.
187 (gld${EMULATION_NAME}_after_allocation): Here too.
189 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
191 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
192 with link_info.lto_plugin_active.
193 * ldlang.c (lang_process): Likewise.
194 * ldmain.c (add_archive_element): Likewise.
195 * plugin.c (plugin_active_plugins_p): Removed.
196 * plugin.h (plugin_active_plugins_p): Likewise.
198 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
200 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
202 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
204 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
207 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
208 (get_view): New function.
209 (set_tv_header): Handle LDPT_GET_VIEW.
210 * testplug.c (tag_names): Add LDPT_GET_VIEW.
212 (dump_tv_tag): Handle LDPT_GET_VIEW.
213 (parse_tv_tag): Likewise.
215 2015-01-28 Alan Modra <amodra@gmail.com>
217 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
218 * emultempl/ppc64elf.em (params): Init new field.
219 (ppc_after_open): New function.
220 (LDEMUL_AFTER_OPEN): Define.
221 * ldlang.c (lang_final): Whitespace fix.
223 2015-01-28 James Bowman <james.bowman@ftdichip.com>
225 * Makefile.am: Add FT32 files.
226 * configure.tgt: Handle FT32 target.
227 * emulparams/elf32ft32.sh: New file.
228 * scripttempl/ft32.sc: New file.
229 * Makefile.in: Regenerate.
231 2015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
234 * ldexp.c (fold_name): Fold LENGTH only after
235 lang_first_phase_enum.
236 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
238 * ldlang.h (struct memory_region_struct): Add origin_exp and
240 * ldlang.c (lang_do_memory_regions): New.
241 (lang_memory_region_lookup): Initialize origin_exp and
243 (lang_process): Call lang_do_memory_regions.
245 2015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
247 * ldlang.c (print_assignment): Only evaluate the expression for a
248 PROVIDE'd assignment when the destination is being defined.
249 Display a special message for PROVIDE'd symbols that are not being
252 2015-01-20 Alan Modra <amodra@gmail.com>
254 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
255 (OTHER_BSS_SYMBOLS): ..this.
256 (OTHER_PLT_RELOC_SECTIONS): Don't define.
257 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
258 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
259 (OTHER_RELRO_SECTIONS_2): ..here.
260 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
262 2015-01-20 Alan Modra <amodra@gmail.com>
264 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
265 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
266 (OTHER_RELRO_SECTIONS_2): ..here.
267 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
268 PLT_BEFORE_GOT): Define.
269 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
270 PLT_BEFORE_GOT combination.
271 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
273 2015-01-20 Alan Modra <amodra@gmail.com>
275 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
276 (OTHER_RELRO_SECTIONS_2): ..here, new define.
277 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
279 2015-01-19 Alan Modra <amodra@gmail.com>
282 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
284 2015-01-14 Jiong Wang <jiong.wang@arm.com>
286 * ld-arm/elf32-reject.s: New testcase.
287 * ld-arm/elf32-reject.d: Likewise.
288 * ld-arm/elf32-reject-pie.s: Likewise.
289 * ld-arm/elf32-reject-pie.d: Likewise.
290 * ld-arm/arm-elf.exp: Run new testcases.
291 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
292 * ld-arm/ifunc-7.rd: Likewise.
293 * ld-arm/ifunc-7.gd: Likewise.
294 * ld-arm/ifunc-7.dd: Likewise.
295 * ld-arm/ifunc-8.s: Likewise.
296 * ld-arm/ifunc-8.rd: Likewise.
297 * ld-arm/ifunc-8.gd: Likewise.
298 * ld-arm/ifunc-8.dd: Likewise.
300 2015-01-01 Alan Modra <amodra@gmail.com>
302 * ldver.c (ldversion): Just print current year.
304 2015-01-01 Alan Modra <amodra@gmail.com>
306 Update year range in copyright notice of all files.
308 For older changes see ChangeLog-2014
310 Copyright (C) 2015 Free Software Foundation, Inc.
312 Copying and distribution of this file, with or without modification,
313 are permitted in any medium without royalty provided the copyright
314 notice and this notice are preserved.
320 version-control: never