]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
sim: m32c: enable warnings & clean up a bunch
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
4a0bc59e
AM
12015-04-01 Alan Modra <amodra@gmail.com>
2
3 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
4 init ehdr_start_save.
5
42271ec5
AM
62015-04-01 Alan Modra <amodra@gmail.com>
7
8 * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
9 ldemul-list.h.
10 (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
11 eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
12 eelf32ppcsim.c): Rearrange deps for consistency.
13 * Makefile.in: Regenerate.
14
4e791d0f
ES
152015-04-01 Ed Schouten <ed@nuxi.nl>
16
17 * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
18 the ehdr_start_save variable.
19
6036f486
ES
202015-03-31 Ed Schouten <ed@nuxi.nl>
21
22 * Makefile.am (ALL_64_EMULATION_SOURCES): Add
23 eelf_x86_64_cloudabi.c.
24 (eelf_x86_64_cloudabi.c): New.
25 * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
26 x86_64-*-cloudabi*.
27 * Makefile.in: Regenerated.
28 * emulparams/elf_x86_64_cloudabi.sh: New file.
29
f24173eb
L
302015-03-31 H.J. Lu <hongjiu.lu@intel.com>
31
32 * configure.ac (AM_ZLIB): Removed.
33 * Makefile.in: Regenerated.
34 * config.in: Likewise.
35 * configure: Likewise.
36
d9ced15d
MS
372015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
38
39 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
40 alignment to 2.
41
499c37b5
MS
422015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
43
44 * emultempl/aarch64elf.em
45 (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
46
b3862264
CG
472015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
48
49 * ldmain.c (main): Use %F instead of %X for einfo.
50
daf220f0
AM
512015-03-02 Alan Modra <amodra@gmail.com>
52
53 * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
54
f0673d20
NC
552015-02-27 Nick Clifton <nickc@redhat.com>
56
57 PR ld/17900
58 * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
59 sense of the following memory region attribute characters.
60
330b17b3
AM
612015-02-27 Alan Modra <amodra@gmail.com>
62
63 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
64 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
65 eh8300sxelf_linux.c): Do not invoke genscripts here.
66 * Makefile.in: Regenerate.
67
685080f2
NC
682015-02-24 Nick Clifton <nickc@redhat.com>
69
70 * Makefile.am (ev850.c): Add dependency upon
71 $(srcdir)/emultempl/v850elf.em.
72 (ev850_rh850.c): Likewise.
73 * Makefile.in: Regenerate.
74 * emultempl/v850elf.em: New file.
75 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
76 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
77 * scripttempl/v850.sc: Add .note.renesas section.
78 * scripttempl/v850_rh850.sc: Likewise.
79
cb072816
SKS
802015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
81
82 * scripttempl/avr.sc: Add new user_signatures region. Define and
83 use symbols for all region lengths.
84 * scripttempl/avrtiny.sc: Define and use symbols for all region
85 lengths.
86
5518c738
YS
872015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
88
89 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
90 * Makefile.in: Regenerate.
91 * configure.tgt: Add h8300-*-linux
92 * emulparams/h8300elf_linux.sh: Add new emulation.
93 * emulparams/h8300helf_linux.sh: Likewise.
94 * emulparams/h8300self_linux.sh: Likewise.
95 * emulparams/h8300sxelf_linux.sh: Likewise.
96
f971c12f
NC
972015-02-23 Nick Clifton <nickc@redhat.com>
98
99 * lexsup.c (parse_args): Produce a more reasonable error message
100 when -ixxx or -rxxx is the last option on the linker command line.
101
f58926a6
L
1022015-02-14 H.J. Lu <hongjiu.lu@intel.com>
103
104 PR ld/17973
105 * testplug2.c (allsymbolsread_silent): New.
106 (set_register_hook): Handle allsymbolsreadsilent.
107 (onall_symbols_read): Skip a message if allsymbolsread_silent is
108 TRUE.
109
ce875075
AM
1102015-02-14 Alan Modra <amodra@gmail.com>
111
112 PR ld/17973
113 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
114 * ldlang.c (lang_process): Don't set loading_lto_outputs.
115 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
116 to bfd.
117 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
118
b0619670
L
1192015-02-13 H.J. Lu <hongjiu.lu@intel.com>
120
121 * NEWS: Mention support for LLVM plugin.
122
66bc8739
AM
1232015-02-13 Alan Modra <amodra@gmail.com>
124
125 * ld.texinfo (Options <--defsym>): Correct cross reference.
126
88b9e2eb
L
1272015-02-11 H.J. Lu <hongjiu.lu@intel.com>
128
129 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
130 option compatibility.
131
45e81354
L
1322015-02-11 H.J. Lu <hongjiu.lu@intel.com>
133
134 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
135 "error:" for LDPL_FATAL and LDPL_ERROR.
136 * testplug2.c (parse_option): Handle fatal, error and warning.
137
e3001fd9
L
1382015-02-11 H.J. Lu <hongjiu.lu@intel.com>
139
140 * testplug2.c (dump_tv_tag): Removed.
141 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
142 closed.
143 * testplug3.c (dump_tv_tag): Removed.
144 (onclaim_file): Fix typo.
145
7275e869
L
1462015-02-11 H.J. Lu <hongjiu.lu@intel.com>
147
148 PR ld/17878
149 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
150 libldtestplug3.la.
151 (libldtestplug2_la_SOURCES): New.
152 (libldtestplug2_la_CFLAGS): Likewise.
153 (libldtestplug2_la_LDFLAGS): Likewise.
154 (libldtestplug3_la_SOURCES): New.
155 (libldtestplug3_la_CFLAGS): Likewise.
156 (libldtestplug3_la_LDFLAGS): Likewise.
157 * Makefile.in: Regenerated.
158 * testplug2.c: New file.
159 * testplug3.c: Likewise.
160
b9dc5a87
L
1612015-02-11 H.J. Lu <hongjiu.lu@intel.com>
162
163 PR ld/17878
164 * plugin.c: Include ../bfd/plugin.h.
165 (plugin_get_ir_dummy_bfd): Call bfd_create with
166 link_info.output_bfd instead of srctemplate. Copy BFD info
167 from srctemplate only if it doesn't use BFD plugin target
168 vector.
169 (plugin_load_plugins): Call register_ld_plugin_object_p with
170 (plugin_object_p)
171 (plugin_maybe_claim): Renamed to ...
172 (plugin_object_p): This. Return dummy BFD target vector if
173 input is calimed by plugin library, otherwise return NULL.
174 Update plugin_format and plugin_dummy_bfd.
175 (plugin_maybe_claim): New. Use plugin_object_p.
176
d319a098
L
1772015-02-10 H.J. Lu <hongjiu.lu@intel.com>
178
179 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
180
38604796
L
1812015-02-10 H.J. Lu <hongjiu.lu@intel.com>
182
183 * plugin.c (plugin_input_file_t): Add use_mmap.
184 (plugin_pagesize): New.
185 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
186 (plugin_load_plugins): Initialize plugin_pagesize.
187 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
188 file.
189
fe905789
L
1902015-02-10 H.J. Lu <hongjiu.lu@intel.com>
191
192 * plugin.c (get_view): Align offset passed to mmap.
193
1d5b29cf
L
1942015-02-08 H.J. Lu <hongjiu.lu@intel.com>
195
196 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
197 if plugin isn't active or there is no thing more to claim.
198
e13419c4
L
1992015-02-08 H.J. Lu <hongjiu.lu@intel.com>
200
201 * plugin.c (plugin_maybe_claim): Check format against bfd_object
202 directly.
203
93843894
L
2042015-02-07 H.J. Lu <hongjiu.lu@intel.com>
205
206 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
207 ibfd.
208
35a1e5f3
L
2092015-02-07 H.J. Lu <hongjiu.lu@intel.com>
210
211 * plugin.c: Include "libbfd.h".
212 (plugin_strdup): New.
213 (plugin_maybe_claim): Remove the argument of pointer to struct
214 ld_plugin_input_file. Open and handle input entry.
215 * plugin.h (plugin_maybe_claim): Updated.
216 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
217 without passing a pointer to struct ld_plugin_input_file.
218 * ldmain.c: Don't include "libbfd.h".
219 (add_archive_element): Call plugin_maybe_claim directly without
220 passing a pointer to struct ld_plugin_input_file.
221
8dfef1bd
L
2222015-02-06 H.J. Lu <hongjiu.lu@intel.com>
223
224 * ld.texinfo: Document -z text, -z notext and -z textoff.
225 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
226 -z text, -z notext and -z textoff.
227
2aec968d
L
2282015-02-06 H.J. Lu <hongjiu.lu@intel.com>
229
230 * configure.ac: Add AC_FUNC_MMAP.
231 * config.in: Regenerated.
232 * configure: Likewise.
233 * plugin.c: Include <sys/mman.h>.
234 (MAP_FAILED): New. Defined if not defined.
235 (PROT_READ): Likewise.
236 (MAP_PRIVATE): Likewise.
237 (view_buffer_t): New.
238 (plugin_input_file_t): Add view_buffer.
239 (get_view): Try mmap and cache the view buffer.
240 (plugin_maybe_claim): Initialize view_buffer.
241
119d62ff
L
2422015-02-05 H.J. Lu <hongjiu.lu@intel.com>
243
244 * plugin.c (release_input_file): Set fd to -1 after closing it.
245 (plugin_maybe_claim): Close fd only if fd != -1.
246
f4b78d18
L
2472015-02-05 H.J. Lu <hongjiu.lu@intel.com>
248
249 PR ld/17878
250 * plugin.c: Include <errno.h>.
251 (errno): New. Declare if needed.
252 (plugin_input_file_t): New.
253 (get_input_file): Implemented.
254 (get_view): Likewise.
255 (release_input_file): Likewise.
256 (add_symbols): Updated.
257 (get_symbols): Likewise.
258 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
259 only for a bfd_object input.
260
6c2573b7
AM
2612015-02-02 Alan Modra <amodra@gmail.com>
262
263 * emultempl/ppc64elf.em (toc_section_name): New var.
264 (ppc_after_open): Set it.
265 (ppc_before_allocation): Use it.
266 (gld${EMULATION_NAME}_after_allocation): Here too.
267
716db898
L
2682015-01-29 H.J. Lu <hongjiu.lu@intel.com>
269
270 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
271 with link_info.lto_plugin_active.
272 * ldlang.c (lang_process): Likewise.
273 * ldmain.c (add_archive_element): Likewise.
274 * plugin.c (plugin_active_plugins_p): Removed.
275 * plugin.h (plugin_active_plugins_p): Likewise.
276
37a3056a
L
2772015-01-28 H.J. Lu <hongjiu.lu@intel.com>
278
279 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
280 ...
281 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
282
15f7a26b
L
2832015-01-28 H.J. Lu <hongjiu.lu@intel.com>
284
285 PR ld/17878
286 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
287 (get_view): New function.
288 (set_tv_header): Handle LDPT_GET_VIEW.
289 * testplug.c (tag_names): Add LDPT_GET_VIEW.
290 (tv_get_view): New.
291 (dump_tv_tag): Handle LDPT_GET_VIEW.
292 (parse_tv_tag): Likewise.
293
dbd1e97e
AM
2942015-01-28 Alan Modra <amodra@gmail.com>
295
296 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
297 * emultempl/ppc64elf.em (params): Init new field.
298 (ppc_after_open): New function.
299 (LDEMUL_AFTER_OPEN): Define.
300 * ldlang.c (lang_final): Whitespace fix.
301
3f8107ab
AM
3022015-01-28 James Bowman <james.bowman@ftdichip.com>
303
304 * Makefile.am: Add FT32 files.
305 * configure.tgt: Handle FT32 target.
306 * emulparams/elf32ft32.sh: New file.
307 * scripttempl/ft32.sc: New file.
308 * Makefile.in: Regenerate.
309
cc9ad334
SKS
3102015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
311
312 PR 4643
313 * ldexp.c (fold_name): Fold LENGTH only after
314 lang_first_phase_enum.
315 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
316 rightaway.
317 * ldlang.h (struct memory_region_struct): Add origin_exp and
318 length_exp fields.
319 * ldlang.c (lang_do_memory_regions): New.
320 (lang_memory_region_lookup): Initialize origin_exp and
321 length_exp fields.
322 (lang_process): Call lang_do_memory_regions.
323
c05b575a
AB
3242015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
325
326 * ldlang.c (print_assignment): Only evaluate the expression for a
327 PROVIDE'd assignment when the destination is being defined.
328 Display a special message for PROVIDE'd symbols that are not being
329 provided.
330
5ad18f16
AM
3312015-01-20 Alan Modra <amodra@gmail.com>
332
333 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
334 (OTHER_BSS_SYMBOLS): ..this.
335 (OTHER_PLT_RELOC_SECTIONS): Don't define.
336 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
337 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
338 (OTHER_RELRO_SECTIONS_2): ..here.
339 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
340
23283c1b
AM
3412015-01-20 Alan Modra <amodra@gmail.com>
342
343 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
344 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
345 (OTHER_RELRO_SECTIONS_2): ..here.
346 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
347 PLT_BEFORE_GOT): Define.
348 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
349 PLT_BEFORE_GOT combination.
350 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
351
3e2b0f31
AM
3522015-01-20 Alan Modra <amodra@gmail.com>
353
354 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
355 (OTHER_RELRO_SECTIONS_2): ..here, new define.
356 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
357
c4621b33
AM
3582015-01-19 Alan Modra <amodra@gmail.com>
359
3e2aa5bb 360 PR ld/17615
c4621b33
AM
361 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
362
52db4ec2
JW
3632015-01-14 Jiong Wang <jiong.wang@arm.com>
364
365 * ld-arm/elf32-reject.s: New testcase.
366 * ld-arm/elf32-reject.d: Likewise.
367 * ld-arm/elf32-reject-pie.s: Likewise.
368 * ld-arm/elf32-reject-pie.d: Likewise.
369 * ld-arm/arm-elf.exp: Run new testcases.
370 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
371 * ld-arm/ifunc-7.rd: Likewise.
372 * ld-arm/ifunc-7.gd: Likewise.
373 * ld-arm/ifunc-7.dd: Likewise.
374 * ld-arm/ifunc-8.s: Likewise.
375 * ld-arm/ifunc-8.rd: Likewise.
376 * ld-arm/ifunc-8.gd: Likewise.
377 * ld-arm/ifunc-8.dd: Likewise.
378
efd321f9
AM
3792015-01-01 Alan Modra <amodra@gmail.com>
380
381 * ldver.c (ldversion): Just print current year.
382
b90efa5b 3832015-01-01 Alan Modra <amodra@gmail.com>
ca0694ad 384
b90efa5b 385 Update year range in copyright notice of all files.
ca0694ad 386
b90efa5b 387For older changes see ChangeLog-2014
252b5132 388\f
b90efa5b 389Copyright (C) 2015 Free Software Foundation, Inc.
752937aa
NC
390
391Copying and distribution of this file, with or without modification,
392are permitted in any medium without royalty provided the copyright
393notice and this notice are preserved.
394
252b5132
RH
395Local Variables:
396mode: change-log
397left-margin: 8
398fill-column: 74
399version-control: never
400End: