]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
Add Guile frame-read-register command
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
82d8e420
L
12015-04-08 H.J. Lu <hongjiu.lu@intel.com>
2
3 * configure.ac (elf_list_options): Set to TRUE for
4 --enable-targets=all.
5 (elf_shlib_list_options): Likewise.
6 (elf_plt_unwind_list_options): Likewise.
7 * configure: Regenerated.
8
31b94bbb
L
92015-04-08 H.J. Lu <hongjiu.lu@intel.com>
10
11 * emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME.
12
c58212ea
L
132015-04-08 H.J. Lu <hongjiu.lu@intel.com>
14
15 * Makefile.am (ELF_CLFAGS): New.
16 (AM_CFLAGS): Add $(ELF_CLFAGS).
17 * configure.ac (elf_list_options): New. AC_SUBST.
18 (elf_shlib_list_options): Likewise.
19 (elf_plt_unwind_list_options): Likewise.
20 * lexsup.c (elf_shlib_list_options): New.
21 (elf_static_list_options): Likewise.
22 (elf_plt_unwind_list_options): Likewise.
23 (ld_list_options): Likewise.
24 (help): Call ld_list_options.
25 * Makefile.in: Regenerated.
26 * configure: Likewise.
27 * emulparams/plt_unwind.sh (PLT_UNWIND): New.
28 (PARSE_AND_LIST_OPTIONS): Removed.
29 * emultempl/elf32.em (gld_list_options): New.
30 (gld${EMULATION_NAME}_list_options): Define only if BNDPLT or
31 PARSE_AND_LIST_OPTIONS is defined.
32 (ld_${EMULATION_NAME}_emulation): Replace
33 gld${EMULATION_NAME}_list_options with ${gld_list_options.
34
0fad6e4b
AM
352015-04-07 Alan Modra <amodra@gmail.com>
36
37 PR ld/18176
38 * ldlang.c (lang_size_sections): Cast shift expression.
39
d3e454b9
AM
402015-04-07 Alan Modra <amodra@gmail.com>
41
42 * emultempl/ppc32elf.em: Handle --no-pic-fixup.
43 (params): Init new field.
44 (ppc_before_allocation): Enable relaxation for pic_fixup.
45
3ea60775
NC
462015-04-07 Nick Clifton <nickc@redhat.com>
47
48 * ld.h (struct ld_config_type): Add new field: warn_orphan.
49 * ldlex.h (enum option_values): Add OPTION_WARN_ORPHAN and
50 OPTION_NO_WARN_ORPHAN.
51 * lexsup.c (ld_options): Add --warn-orphan and --no-warn-orphan.
52 (parse_args): Handle the new options.
53 * ldemul.c (ldemul_place_orphan): If requested, generate a warning
54 message when an orphan section is placed in the output file.
55 * ld.texinfo: Document the new option.
56 * NEWS: Mention the new feature.
57
15c7659f
AT
582015-04-02 Andrew Turner <andrew@freebsd.org>
59
60 * Makefile.am: Add FreeBSD aarch64 files.
61 * Makefile.in: Regenerate.
62 * configure.tgt: Add aarch64-*-freebsd* target triple.
63 * emulparams/aarch64fbsd.sh: New file.
64 * emulparams/aarch64fbsdb.sh: New file.
65
a0bde398
L
662015-04-01 H.J. Lu <hongjiu.lu@intel.com>
67
68 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work
69 around a GCC uninitialized warning bug fixed in GCC 4.6.
70
4106101c
MS
712015-04-01 Tejas Belagod <tejas.belagod@arm.com>
72
73 * emultempl/aarch64elf.em
74 (aarch64_elf_create_output_section_statements): Add parameter in
75 bfd_elf${ELFSIZE}_aarch64_set_options call.
76 (OPTION_FIX_ERRATUM_843419): Define.
77 (PARSE_AND_LIST_LONGOPTS): Add fix-cortex-a53-843419.
78 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_FIX_ERRATUM_843419.
79
16c1c9d6
CG
802015-04-01 Chen Gang <gang.chen.5i5j@gmail.com>
81
82 * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for
83 relocating operation.
84
6c1aca3e
AM
852015-04-01 Alan Modra <amodra@gmail.com>
86
875b5b9d 87 PR ld/18176
6c1aca3e
AM
88 * ldlang.c (lang_size_sections): When alignment of sections
89 results in relro base adjustment being too large, don't go lower
90 than the initial value.
91 * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
92 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
93 alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
94
4a0bc59e
AM
952015-04-01 Alan Modra <amodra@gmail.com>
96
97 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
98 init ehdr_start_save.
99
42271ec5
AM
1002015-04-01 Alan Modra <amodra@gmail.com>
101
102 * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
103 ldemul-list.h.
104 (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
105 eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
106 eelf32ppcsim.c): Rearrange deps for consistency.
107 * Makefile.in: Regenerate.
108
4e791d0f
ES
1092015-04-01 Ed Schouten <ed@nuxi.nl>
110
111 * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
112 the ehdr_start_save variable.
113
6036f486
ES
1142015-03-31 Ed Schouten <ed@nuxi.nl>
115
116 * Makefile.am (ALL_64_EMULATION_SOURCES): Add
117 eelf_x86_64_cloudabi.c.
118 (eelf_x86_64_cloudabi.c): New.
119 * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
120 x86_64-*-cloudabi*.
121 * Makefile.in: Regenerated.
122 * emulparams/elf_x86_64_cloudabi.sh: New file.
123
f24173eb
L
1242015-03-31 H.J. Lu <hongjiu.lu@intel.com>
125
126 * configure.ac (AM_ZLIB): Removed.
127 * Makefile.in: Regenerated.
128 * config.in: Likewise.
129 * configure: Likewise.
130
d9ced15d
MS
1312015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
132
133 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
134 alignment to 2.
135
499c37b5
MS
1362015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
137
138 * emultempl/aarch64elf.em
139 (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
140
b3862264
CG
1412015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
142
143 * ldmain.c (main): Use %F instead of %X for einfo.
144
daf220f0
AM
1452015-03-02 Alan Modra <amodra@gmail.com>
146
147 * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
148
f0673d20
NC
1492015-02-27 Nick Clifton <nickc@redhat.com>
150
151 PR ld/17900
152 * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
153 sense of the following memory region attribute characters.
154
330b17b3
AM
1552015-02-27 Alan Modra <amodra@gmail.com>
156
157 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
158 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
159 eh8300sxelf_linux.c): Do not invoke genscripts here.
160 * Makefile.in: Regenerate.
161
685080f2
NC
1622015-02-24 Nick Clifton <nickc@redhat.com>
163
164 * Makefile.am (ev850.c): Add dependency upon
165 $(srcdir)/emultempl/v850elf.em.
166 (ev850_rh850.c): Likewise.
167 * Makefile.in: Regenerate.
168 * emultempl/v850elf.em: New file.
169 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
170 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
171 * scripttempl/v850.sc: Add .note.renesas section.
172 * scripttempl/v850_rh850.sc: Likewise.
173
cb072816
SKS
1742015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
175
176 * scripttempl/avr.sc: Add new user_signatures region. Define and
177 use symbols for all region lengths.
178 * scripttempl/avrtiny.sc: Define and use symbols for all region
179 lengths.
180
5518c738
YS
1812015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
182
183 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
184 * Makefile.in: Regenerate.
185 * configure.tgt: Add h8300-*-linux
186 * emulparams/h8300elf_linux.sh: Add new emulation.
187 * emulparams/h8300helf_linux.sh: Likewise.
188 * emulparams/h8300self_linux.sh: Likewise.
189 * emulparams/h8300sxelf_linux.sh: Likewise.
190
f971c12f
NC
1912015-02-23 Nick Clifton <nickc@redhat.com>
192
193 * lexsup.c (parse_args): Produce a more reasonable error message
194 when -ixxx or -rxxx is the last option on the linker command line.
195
f58926a6
L
1962015-02-14 H.J. Lu <hongjiu.lu@intel.com>
197
198 PR ld/17973
199 * testplug2.c (allsymbolsread_silent): New.
200 (set_register_hook): Handle allsymbolsreadsilent.
201 (onall_symbols_read): Skip a message if allsymbolsread_silent is
202 TRUE.
203
ce875075
AM
2042015-02-14 Alan Modra <amodra@gmail.com>
205
206 PR ld/17973
207 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
208 * ldlang.c (lang_process): Don't set loading_lto_outputs.
209 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
210 to bfd.
211 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
212
b0619670
L
2132015-02-13 H.J. Lu <hongjiu.lu@intel.com>
214
215 * NEWS: Mention support for LLVM plugin.
216
66bc8739
AM
2172015-02-13 Alan Modra <amodra@gmail.com>
218
219 * ld.texinfo (Options <--defsym>): Correct cross reference.
220
88b9e2eb
L
2212015-02-11 H.J. Lu <hongjiu.lu@intel.com>
222
223 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
224 option compatibility.
225
45e81354
L
2262015-02-11 H.J. Lu <hongjiu.lu@intel.com>
227
228 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
229 "error:" for LDPL_FATAL and LDPL_ERROR.
230 * testplug2.c (parse_option): Handle fatal, error and warning.
231
e3001fd9
L
2322015-02-11 H.J. Lu <hongjiu.lu@intel.com>
233
234 * testplug2.c (dump_tv_tag): Removed.
235 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
236 closed.
237 * testplug3.c (dump_tv_tag): Removed.
238 (onclaim_file): Fix typo.
239
7275e869
L
2402015-02-11 H.J. Lu <hongjiu.lu@intel.com>
241
242 PR ld/17878
243 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
244 libldtestplug3.la.
245 (libldtestplug2_la_SOURCES): New.
246 (libldtestplug2_la_CFLAGS): Likewise.
247 (libldtestplug2_la_LDFLAGS): Likewise.
248 (libldtestplug3_la_SOURCES): New.
249 (libldtestplug3_la_CFLAGS): Likewise.
250 (libldtestplug3_la_LDFLAGS): Likewise.
251 * Makefile.in: Regenerated.
252 * testplug2.c: New file.
253 * testplug3.c: Likewise.
254
b9dc5a87
L
2552015-02-11 H.J. Lu <hongjiu.lu@intel.com>
256
257 PR ld/17878
258 * plugin.c: Include ../bfd/plugin.h.
259 (plugin_get_ir_dummy_bfd): Call bfd_create with
260 link_info.output_bfd instead of srctemplate. Copy BFD info
261 from srctemplate only if it doesn't use BFD plugin target
262 vector.
263 (plugin_load_plugins): Call register_ld_plugin_object_p with
264 (plugin_object_p)
265 (plugin_maybe_claim): Renamed to ...
266 (plugin_object_p): This. Return dummy BFD target vector if
267 input is calimed by plugin library, otherwise return NULL.
268 Update plugin_format and plugin_dummy_bfd.
269 (plugin_maybe_claim): New. Use plugin_object_p.
270
d319a098
L
2712015-02-10 H.J. Lu <hongjiu.lu@intel.com>
272
273 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
274
38604796
L
2752015-02-10 H.J. Lu <hongjiu.lu@intel.com>
276
277 * plugin.c (plugin_input_file_t): Add use_mmap.
278 (plugin_pagesize): New.
279 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
280 (plugin_load_plugins): Initialize plugin_pagesize.
281 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
282 file.
283
fe905789
L
2842015-02-10 H.J. Lu <hongjiu.lu@intel.com>
285
286 * plugin.c (get_view): Align offset passed to mmap.
287
1d5b29cf
L
2882015-02-08 H.J. Lu <hongjiu.lu@intel.com>
289
290 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
291 if plugin isn't active or there is no thing more to claim.
292
e13419c4
L
2932015-02-08 H.J. Lu <hongjiu.lu@intel.com>
294
295 * plugin.c (plugin_maybe_claim): Check format against bfd_object
296 directly.
297
93843894
L
2982015-02-07 H.J. Lu <hongjiu.lu@intel.com>
299
300 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
301 ibfd.
302
35a1e5f3
L
3032015-02-07 H.J. Lu <hongjiu.lu@intel.com>
304
305 * plugin.c: Include "libbfd.h".
306 (plugin_strdup): New.
307 (plugin_maybe_claim): Remove the argument of pointer to struct
308 ld_plugin_input_file. Open and handle input entry.
309 * plugin.h (plugin_maybe_claim): Updated.
310 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
311 without passing a pointer to struct ld_plugin_input_file.
312 * ldmain.c: Don't include "libbfd.h".
313 (add_archive_element): Call plugin_maybe_claim directly without
314 passing a pointer to struct ld_plugin_input_file.
315
8dfef1bd
L
3162015-02-06 H.J. Lu <hongjiu.lu@intel.com>
317
318 * ld.texinfo: Document -z text, -z notext and -z textoff.
319 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
320 -z text, -z notext and -z textoff.
321
2aec968d
L
3222015-02-06 H.J. Lu <hongjiu.lu@intel.com>
323
324 * configure.ac: Add AC_FUNC_MMAP.
325 * config.in: Regenerated.
326 * configure: Likewise.
327 * plugin.c: Include <sys/mman.h>.
328 (MAP_FAILED): New. Defined if not defined.
329 (PROT_READ): Likewise.
330 (MAP_PRIVATE): Likewise.
331 (view_buffer_t): New.
332 (plugin_input_file_t): Add view_buffer.
333 (get_view): Try mmap and cache the view buffer.
334 (plugin_maybe_claim): Initialize view_buffer.
335
119d62ff
L
3362015-02-05 H.J. Lu <hongjiu.lu@intel.com>
337
338 * plugin.c (release_input_file): Set fd to -1 after closing it.
339 (plugin_maybe_claim): Close fd only if fd != -1.
340
f4b78d18
L
3412015-02-05 H.J. Lu <hongjiu.lu@intel.com>
342
343 PR ld/17878
344 * plugin.c: Include <errno.h>.
345 (errno): New. Declare if needed.
346 (plugin_input_file_t): New.
347 (get_input_file): Implemented.
348 (get_view): Likewise.
349 (release_input_file): Likewise.
350 (add_symbols): Updated.
351 (get_symbols): Likewise.
352 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
353 only for a bfd_object input.
354
6c2573b7
AM
3552015-02-02 Alan Modra <amodra@gmail.com>
356
357 * emultempl/ppc64elf.em (toc_section_name): New var.
358 (ppc_after_open): Set it.
359 (ppc_before_allocation): Use it.
360 (gld${EMULATION_NAME}_after_allocation): Here too.
361
716db898
L
3622015-01-29 H.J. Lu <hongjiu.lu@intel.com>
363
364 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
365 with link_info.lto_plugin_active.
366 * ldlang.c (lang_process): Likewise.
367 * ldmain.c (add_archive_element): Likewise.
368 * plugin.c (plugin_active_plugins_p): Removed.
369 * plugin.h (plugin_active_plugins_p): Likewise.
370
37a3056a
L
3712015-01-28 H.J. Lu <hongjiu.lu@intel.com>
372
373 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
374 ...
375 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
376
15f7a26b
L
3772015-01-28 H.J. Lu <hongjiu.lu@intel.com>
378
379 PR ld/17878
380 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
381 (get_view): New function.
382 (set_tv_header): Handle LDPT_GET_VIEW.
383 * testplug.c (tag_names): Add LDPT_GET_VIEW.
384 (tv_get_view): New.
385 (dump_tv_tag): Handle LDPT_GET_VIEW.
386 (parse_tv_tag): Likewise.
387
dbd1e97e
AM
3882015-01-28 Alan Modra <amodra@gmail.com>
389
390 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
391 * emultempl/ppc64elf.em (params): Init new field.
392 (ppc_after_open): New function.
393 (LDEMUL_AFTER_OPEN): Define.
394 * ldlang.c (lang_final): Whitespace fix.
395
3f8107ab
AM
3962015-01-28 James Bowman <james.bowman@ftdichip.com>
397
398 * Makefile.am: Add FT32 files.
399 * configure.tgt: Handle FT32 target.
400 * emulparams/elf32ft32.sh: New file.
401 * scripttempl/ft32.sc: New file.
402 * Makefile.in: Regenerate.
403
cc9ad334
SKS
4042015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
405
406 PR 4643
407 * ldexp.c (fold_name): Fold LENGTH only after
408 lang_first_phase_enum.
409 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
410 rightaway.
411 * ldlang.h (struct memory_region_struct): Add origin_exp and
412 length_exp fields.
413 * ldlang.c (lang_do_memory_regions): New.
414 (lang_memory_region_lookup): Initialize origin_exp and
415 length_exp fields.
416 (lang_process): Call lang_do_memory_regions.
417
c05b575a
AB
4182015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
419
420 * ldlang.c (print_assignment): Only evaluate the expression for a
421 PROVIDE'd assignment when the destination is being defined.
422 Display a special message for PROVIDE'd symbols that are not being
423 provided.
424
5ad18f16
AM
4252015-01-20 Alan Modra <amodra@gmail.com>
426
427 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
428 (OTHER_BSS_SYMBOLS): ..this.
429 (OTHER_PLT_RELOC_SECTIONS): Don't define.
430 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
431 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
432 (OTHER_RELRO_SECTIONS_2): ..here.
433 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
434
23283c1b
AM
4352015-01-20 Alan Modra <amodra@gmail.com>
436
437 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
438 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
439 (OTHER_RELRO_SECTIONS_2): ..here.
440 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
441 PLT_BEFORE_GOT): Define.
442 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
443 PLT_BEFORE_GOT combination.
444 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
445
3e2b0f31
AM
4462015-01-20 Alan Modra <amodra@gmail.com>
447
448 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
449 (OTHER_RELRO_SECTIONS_2): ..here, new define.
450 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
451
c4621b33
AM
4522015-01-19 Alan Modra <amodra@gmail.com>
453
3e2aa5bb 454 PR ld/17615
c4621b33
AM
455 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
456
52db4ec2
JW
4572015-01-14 Jiong Wang <jiong.wang@arm.com>
458
459 * ld-arm/elf32-reject.s: New testcase.
460 * ld-arm/elf32-reject.d: Likewise.
461 * ld-arm/elf32-reject-pie.s: Likewise.
462 * ld-arm/elf32-reject-pie.d: Likewise.
463 * ld-arm/arm-elf.exp: Run new testcases.
464 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
465 * ld-arm/ifunc-7.rd: Likewise.
466 * ld-arm/ifunc-7.gd: Likewise.
467 * ld-arm/ifunc-7.dd: Likewise.
468 * ld-arm/ifunc-8.s: Likewise.
469 * ld-arm/ifunc-8.rd: Likewise.
470 * ld-arm/ifunc-8.gd: Likewise.
471 * ld-arm/ifunc-8.dd: Likewise.
472
efd321f9
AM
4732015-01-01 Alan Modra <amodra@gmail.com>
474
475 * ldver.c (ldversion): Just print current year.
476
b90efa5b 4772015-01-01 Alan Modra <amodra@gmail.com>
ca0694ad 478
b90efa5b 479 Update year range in copyright notice of all files.
ca0694ad 480
b90efa5b 481For older changes see ChangeLog-2014
252b5132 482\f
b90efa5b 483Copyright (C) 2015 Free Software Foundation, Inc.
752937aa
NC
484
485Copying and distribution of this file, with or without modification,
486are permitted in any medium without royalty provided the copyright
487notice and this notice are preserved.
488
252b5132
RH
489Local Variables:
490mode: change-log
491left-margin: 8
492fill-column: 74
493version-control: never
494End: