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