Retrieve segment registers on Windows amd64
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2015-02-27 Alan Modra <amodra@gmail.com>
2
3 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
4 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
5 eh8300sxelf_linux.c): Do not invoke genscripts here.
6 * Makefile.in: Regenerate.
7
8 2015-02-24 Nick Clifton <nickc@redhat.com>
9
10 * Makefile.am (ev850.c): Add dependency upon
11 $(srcdir)/emultempl/v850elf.em.
12 (ev850_rh850.c): Likewise.
13 * Makefile.in: Regenerate.
14 * emultempl/v850elf.em: New file.
15 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
16 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
17 * scripttempl/v850.sc: Add .note.renesas section.
18 * scripttempl/v850_rh850.sc: Likewise.
19
20 2015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21
22 * scripttempl/avr.sc: Add new user_signatures region. Define and
23 use symbols for all region lengths.
24 * scripttempl/avrtiny.sc: Define and use symbols for all region
25 lengths.
26
27 2015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
28
29 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
30 * Makefile.in: Regenerate.
31 * configure.tgt: Add h8300-*-linux
32 * emulparams/h8300elf_linux.sh: Add new emulation.
33 * emulparams/h8300helf_linux.sh: Likewise.
34 * emulparams/h8300self_linux.sh: Likewise.
35 * emulparams/h8300sxelf_linux.sh: Likewise.
36
37 2015-02-23 Nick Clifton <nickc@redhat.com>
38
39 * lexsup.c (parse_args): Produce a more reasonable error message
40 when -ixxx or -rxxx is the last option on the linker command line.
41
42 2015-02-14 H.J. Lu <hongjiu.lu@intel.com>
43
44 PR ld/17973
45 * testplug2.c (allsymbolsread_silent): New.
46 (set_register_hook): Handle allsymbolsreadsilent.
47 (onall_symbols_read): Skip a message if allsymbolsread_silent is
48 TRUE.
49
50 2015-02-14 Alan Modra <amodra@gmail.com>
51
52 PR ld/17973
53 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
54 * ldlang.c (lang_process): Don't set loading_lto_outputs.
55 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
56 to bfd.
57 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
58
59 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
60
61 * NEWS: Mention support for LLVM plugin.
62
63 2015-02-13 Alan Modra <amodra@gmail.com>
64
65 * ld.texinfo (Options <--defsym>): Correct cross reference.
66
67 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
68
69 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
70 option compatibility.
71
72 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
73
74 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
75 "error:" for LDPL_FATAL and LDPL_ERROR.
76 * testplug2.c (parse_option): Handle fatal, error and warning.
77
78 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
79
80 * testplug2.c (dump_tv_tag): Removed.
81 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
82 closed.
83 * testplug3.c (dump_tv_tag): Removed.
84 (onclaim_file): Fix typo.
85
86 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
87
88 PR ld/17878
89 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
90 libldtestplug3.la.
91 (libldtestplug2_la_SOURCES): New.
92 (libldtestplug2_la_CFLAGS): Likewise.
93 (libldtestplug2_la_LDFLAGS): Likewise.
94 (libldtestplug3_la_SOURCES): New.
95 (libldtestplug3_la_CFLAGS): Likewise.
96 (libldtestplug3_la_LDFLAGS): Likewise.
97 * Makefile.in: Regenerated.
98 * testplug2.c: New file.
99 * testplug3.c: Likewise.
100
101 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
102
103 PR ld/17878
104 * plugin.c: Include ../bfd/plugin.h.
105 (plugin_get_ir_dummy_bfd): Call bfd_create with
106 link_info.output_bfd instead of srctemplate. Copy BFD info
107 from srctemplate only if it doesn't use BFD plugin target
108 vector.
109 (plugin_load_plugins): Call register_ld_plugin_object_p with
110 (plugin_object_p)
111 (plugin_maybe_claim): Renamed to ...
112 (plugin_object_p): This. Return dummy BFD target vector if
113 input is calimed by plugin library, otherwise return NULL.
114 Update plugin_format and plugin_dummy_bfd.
115 (plugin_maybe_claim): New. Use plugin_object_p.
116
117 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
118
119 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
120
121 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
122
123 * plugin.c (plugin_input_file_t): Add use_mmap.
124 (plugin_pagesize): New.
125 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
126 (plugin_load_plugins): Initialize plugin_pagesize.
127 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
128 file.
129
130 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
131
132 * plugin.c (get_view): Align offset passed to mmap.
133
134 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
135
136 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
137 if plugin isn't active or there is no thing more to claim.
138
139 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
140
141 * plugin.c (plugin_maybe_claim): Check format against bfd_object
142 directly.
143
144 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
145
146 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
147 ibfd.
148
149 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
150
151 * plugin.c: Include "libbfd.h".
152 (plugin_strdup): New.
153 (plugin_maybe_claim): Remove the argument of pointer to struct
154 ld_plugin_input_file. Open and handle input entry.
155 * plugin.h (plugin_maybe_claim): Updated.
156 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
157 without passing a pointer to struct ld_plugin_input_file.
158 * ldmain.c: Don't include "libbfd.h".
159 (add_archive_element): Call plugin_maybe_claim directly without
160 passing a pointer to struct ld_plugin_input_file.
161
162 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
163
164 * ld.texinfo: Document -z text, -z notext and -z textoff.
165 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
166 -z text, -z notext and -z textoff.
167
168 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
169
170 * configure.ac: Add AC_FUNC_MMAP.
171 * config.in: Regenerated.
172 * configure: Likewise.
173 * plugin.c: Include <sys/mman.h>.
174 (MAP_FAILED): New. Defined if not defined.
175 (PROT_READ): Likewise.
176 (MAP_PRIVATE): Likewise.
177 (view_buffer_t): New.
178 (plugin_input_file_t): Add view_buffer.
179 (get_view): Try mmap and cache the view buffer.
180 (plugin_maybe_claim): Initialize view_buffer.
181
182 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
183
184 * plugin.c (release_input_file): Set fd to -1 after closing it.
185 (plugin_maybe_claim): Close fd only if fd != -1.
186
187 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
188
189 PR ld/17878
190 * plugin.c: Include <errno.h>.
191 (errno): New. Declare if needed.
192 (plugin_input_file_t): New.
193 (get_input_file): Implemented.
194 (get_view): Likewise.
195 (release_input_file): Likewise.
196 (add_symbols): Updated.
197 (get_symbols): Likewise.
198 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
199 only for a bfd_object input.
200
201 2015-02-02 Alan Modra <amodra@gmail.com>
202
203 * emultempl/ppc64elf.em (toc_section_name): New var.
204 (ppc_after_open): Set it.
205 (ppc_before_allocation): Use it.
206 (gld${EMULATION_NAME}_after_allocation): Here too.
207
208 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
209
210 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
211 with link_info.lto_plugin_active.
212 * ldlang.c (lang_process): Likewise.
213 * ldmain.c (add_archive_element): Likewise.
214 * plugin.c (plugin_active_plugins_p): Removed.
215 * plugin.h (plugin_active_plugins_p): Likewise.
216
217 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
218
219 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
220 ...
221 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
222
223 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
224
225 PR ld/17878
226 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
227 (get_view): New function.
228 (set_tv_header): Handle LDPT_GET_VIEW.
229 * testplug.c (tag_names): Add LDPT_GET_VIEW.
230 (tv_get_view): New.
231 (dump_tv_tag): Handle LDPT_GET_VIEW.
232 (parse_tv_tag): Likewise.
233
234 2015-01-28 Alan Modra <amodra@gmail.com>
235
236 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
237 * emultempl/ppc64elf.em (params): Init new field.
238 (ppc_after_open): New function.
239 (LDEMUL_AFTER_OPEN): Define.
240 * ldlang.c (lang_final): Whitespace fix.
241
242 2015-01-28 James Bowman <james.bowman@ftdichip.com>
243
244 * Makefile.am: Add FT32 files.
245 * configure.tgt: Handle FT32 target.
246 * emulparams/elf32ft32.sh: New file.
247 * scripttempl/ft32.sc: New file.
248 * Makefile.in: Regenerate.
249
250 2015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
251
252 PR 4643
253 * ldexp.c (fold_name): Fold LENGTH only after
254 lang_first_phase_enum.
255 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
256 rightaway.
257 * ldlang.h (struct memory_region_struct): Add origin_exp and
258 length_exp fields.
259 * ldlang.c (lang_do_memory_regions): New.
260 (lang_memory_region_lookup): Initialize origin_exp and
261 length_exp fields.
262 (lang_process): Call lang_do_memory_regions.
263
264 2015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
265
266 * ldlang.c (print_assignment): Only evaluate the expression for a
267 PROVIDE'd assignment when the destination is being defined.
268 Display a special message for PROVIDE'd symbols that are not being
269 provided.
270
271 2015-01-20 Alan Modra <amodra@gmail.com>
272
273 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
274 (OTHER_BSS_SYMBOLS): ..this.
275 (OTHER_PLT_RELOC_SECTIONS): Don't define.
276 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
277 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
278 (OTHER_RELRO_SECTIONS_2): ..here.
279 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
280
281 2015-01-20 Alan Modra <amodra@gmail.com>
282
283 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
284 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
285 (OTHER_RELRO_SECTIONS_2): ..here.
286 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
287 PLT_BEFORE_GOT): Define.
288 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
289 PLT_BEFORE_GOT combination.
290 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
291
292 2015-01-20 Alan Modra <amodra@gmail.com>
293
294 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
295 (OTHER_RELRO_SECTIONS_2): ..here, new define.
296 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
297
298 2015-01-19 Alan Modra <amodra@gmail.com>
299
300 PR ld/17615
301 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
302
303 2015-01-14 Jiong Wang <jiong.wang@arm.com>
304
305 * ld-arm/elf32-reject.s: New testcase.
306 * ld-arm/elf32-reject.d: Likewise.
307 * ld-arm/elf32-reject-pie.s: Likewise.
308 * ld-arm/elf32-reject-pie.d: Likewise.
309 * ld-arm/arm-elf.exp: Run new testcases.
310 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
311 * ld-arm/ifunc-7.rd: Likewise.
312 * ld-arm/ifunc-7.gd: Likewise.
313 * ld-arm/ifunc-7.dd: Likewise.
314 * ld-arm/ifunc-8.s: Likewise.
315 * ld-arm/ifunc-8.rd: Likewise.
316 * ld-arm/ifunc-8.gd: Likewise.
317 * ld-arm/ifunc-8.dd: Likewise.
318
319 2015-01-01 Alan Modra <amodra@gmail.com>
320
321 * ldver.c (ldversion): Just print current year.
322
323 2015-01-01 Alan Modra <amodra@gmail.com>
324
325 Update year range in copyright notice of all files.
326
327 For older changes see ChangeLog-2014
328 \f
329 Copyright (C) 2015 Free Software Foundation, Inc.
330
331 Copying and distribution of this file, with or without modification,
332 are permitted in any medium without royalty provided the copyright
333 notice and this notice are preserved.
334
335 Local Variables:
336 mode: change-log
337 left-margin: 8
338 fill-column: 74
339 version-control: never
340 End:
This page took 0.039073 seconds and 4 git commands to generate.