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