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