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