Add experimental support for --gc-sections with COFF and PE based targets.
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2015-07-03 Kai Tietz <ktietz@redhat.com>
2
3 PR ld/11539
4 * scripttempl/pep.sc: Mark .idata*, .CRT*, .tls*,
5 .rsrc*, .init, .ctor*, .dtor*, .fini, .jcr,
6 .eh_frame, .pdata. .xdata, and .gcc_except_table sections
7 as KEEP.
8 * scripttempl/pe.sc: Likewise.
9 * ld.texinfo: Document that --gc-sections has experimental support
10 for COFF and PE targets.
11 * NEWS: Mention experimental support.
12
13 2015-07-03 Alan Modra <amodra@gmail.com>
14
15 * Makefile.am (eelf32or1k.c, eelf32or1k_linux.c): Depend on ELF_DEPS.
16 * Makefile.in: Regenerate.
17
18 2015-06-28 H.J. Lu <hongjiu.lu@intel.com>
19
20 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option):
21 Replace COMPRESS_DEBUG_ZLIB with COMPRESS_DEBUG_GNU_ZLIB.
22
23 2015-06-26 H.J. Lu <hongjiu.lu@intel.com>
24
25 * emulparams/elf_iamcu.sh (COMPILE_IN): New.
26
27 2015-06-15 Nick Clifton <nickc@redhat.com>
28
29 PR ld/18466
30 * emultempl/pe.em (pe_find_data_imports): Generate an error if a
31 symbol name is too long to handle.
32 * emultempl/pep.em (pep_find_data_imports): Likewise.
33
34 2015-06-12 Tristan Gingold <gingold@adacore.com>
35
36 * NEWS: Mention new option.
37 * lexsup.c (parse_args): Handle --print-memory-usage.
38 (ld_options): Add --print-memory-usage.
39 * ldmain.c (main): Call lang_print_memory_usage.
40 * ldlex.h (enum option_values): Add OPTION_PRINT_MEMORY_USAGE.
41 * ldlang.h: Add prototype of lang_print_memory_usage.
42 * ldlang.c (lang_print_memory_size, lang_print_memory_usage): New
43 functions.
44 * ld.texinfo (Options): Document --print-memory-usage.
45 * ld.h (args_type): Add print_memory_usage field.
46
47 2015-06-08 Nick Clifton <nickc@redhat.com>
48
49 * po/fr.po: Updated French Translation.
50
51 2015-05-28 Catherine Moore <clm@codesourcery.com>
52 Paul Brook <paul@codesourcery.com>
53
54 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
55 Add Compact EH support.
56 * scripttempl/elf.sc: Handle .eh_frame_entry and .gnu_extab
57 sections.
58
59 2015-05-17 Chung-Lin Tang <cltang@codesourcery.com>
60
61 * configure.ac (AC_PROG_GREP): Check for grep program.
62 (elf_list_options,elf_shlib_list_options,elf_plt_unwind_list_options):
63 Enable ELF option printing for emulations containing
64 'TEMPLATE_NAME=elf32'.
65 * configure: Regenerate.
66
67 2015-05-14 Nick Clifton <nickc@redhat.com>
68
69 * ld.texinfo (ASSERT): Describe the interaction with PROVIDEd
70 symbols.
71
72 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
73
74 * configure.tgt: Support i[3-7]86-*-elfiamcu target.
75
76 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
77
78 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_iamcu.c.
79 (eelf_iamcu.c): New.
80 * configure.tgt (targ_extra_emuls): Add elf_iamcu if elf_i386 is
81 enabled in BFD.
82 * Makefile.in: Regenerated.
83 * emulparams/elf_iamcu.sh: New file.
84
85 2015-05-05 Nick Clifton <nickc@redhat.com>
86
87 * emulparams/msp430elf.sh (TEMPLATE_NAME): Change to msp430.
88 * scripttempl/msp430.sc (.text): Add .lower.text and .either.text.
89 (.data): Add .lower.data and .either.data.
90 (.bss): Add .lower.bss and .either.bss.
91 (.rodata): Add .lower.rodata and .either.rodata.
92 * emultempl/msp430.em: New file. Implements a new orphan
93 placement algorithm that divides sections between lower and upper
94 memory regions.
95 * Makefile.am (emsp430elf.c): Depend upon msp430.em.
96 *emsp430X.c): Likewise.
97 * Makefine.in: Regenerate.
98
99 2015-04-28 Andreas Schwab <schwab@linux-m68k.org>
100
101 PR ld/18344
102 * ldlex.l (INPUTLIST): Increment lineno on newline.
103
104 2015-04-24 Alan Modra <amodra@gmail.com>
105
106 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
107 Call gld${EMULATION_NAME}_map_segments regardless of need_laying_out.
108
109 2015-04-24 DJ Delorie <dj@redhat.com>
110
111 * Makefile.am (msp430): Rename primary emulation to msp430elf.
112 (emsp430.c): Rename to emsp430elf.c, update dependencies
113 (emsp430X.c): Update dependencies.
114 * Makefile.in: Likewise.
115 * configure.tgt (msp430-*-*): Rename primary emulation to msp430elf.
116 * emulparams/msp430.sh: Rename to msp430elf.sh.
117 * emulparams/msp430X.sh: Update.
118
119 2015-04-23 H.J. Lu <hongjiu.lu@intel.com>
120
121 PR binutils/18209
122 * ldfile.c (ldfile_try_open_bfd): Set is_linker_input to 1.
123
124 2015-04-23 Alan Modra <amodra@gmail.com>
125
126 * emulparams/elf64ppc.sh (GOT): Align.
127
128 2015-04-22 Alan Modra <amodra@gmail.com>
129
130 * ldexp.h (struct ldexp_control): Delete dataseg.min_base. Add
131 data_seg.relro_offset.
132 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Don't set min_base.
133 (fold_binary <DATA_SEGMENT_RELRO_END>): Do set relro_offset.
134 * ldlang.c (lang_size_sections): Rewrite code adjusting relro
135 segment base to line up last section on page boundary.
136
137 2015-04-15 H.J. Lu <hongjiu.lu@intel.com>
138
139 * NEWS: Mention
140 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
141
142 2015-04-14 H.J. Lu <hongjiu.lu@intel.com>
143
144 * ld.texinfo: Document --compress-debug-sections=.
145 * ldmain.c (main): Set BFD_COMPRESS on output_bfd if
146 COMPRESS_DEBUG is set. Set BFD_COMPRESS_GABI on output_bfd
147 for COMPRESS_DEBUG_GABI_ZLIB.
148 * lexsup.c (elf_static_list_options): Add
149 --compress-debug-sections=.
150 * emultempl/elf32.em (OPTION_COMPRESS_DEBUG): New.
151 (xtra_long): Add "compress-debug-sections".
152 (gld${EMULATION_NAME}_handle_option): Handle
153 OPTION_COMPRESS_DEBUG.
154
155 2015-04-14 H.J. Lu <hongjiu.lu@intel.com>
156
157 PR ld/pr17709
158 * ld.texinfo: Document "-z noextern-protected-data".
159 * ldmain.c (main): Initialize link_info.extern_protected_data
160 to -1.
161 * lexsup.c (elf_shlib_list_options): Add
162 "-z [no]extern-protected-data".
163 * emulparams/elf32_x86_64.sh: Source extern_protected_data.sh.
164 * emulparams/elf_i386.sh: Likewise.
165 * emulparams/elf_i386_be.sh: Likewise.
166 * emulparams/elf_i386_chaos.sh: Likewise.
167 * emulparams/elf_i386_ldso.sh: Likewise.
168 * emulparams/elf_i386_vxworks.sh: Likewise.
169 * emulparams/elf_k1om.sh: Likewise.
170 * emulparams/elf_l1om.sh: Likewise.
171 * emulparams/elf_x86_64.sh: Source extern_protected_data.sh.
172 (PARSE_AND_LIST_OPTIONS): Renamed to ...
173 (PARSE_AND_LIST_OPTIONS_BNDPLT): This.
174 (PARSE_AND_LIST_ARGS_CASE_Z): Renamed to ...
175 (PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT): This.
176 (PARSE_AND_LIST_OPTIONS): Append $PARSE_AND_LIST_OPTIONS_BNDPLT.
177 (PARSE_AND_LIST_ARGS_CASE_Z): Append
178 $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT.
179 * emulparams/extern_protected_data.sh: New file.
180
181 2015-04-11 H.J. Lu <hongjiu.lu@intel.com>
182
183 * plugin.c (plugin_load_plugins): Removed an extra ';'.
184
185 2015-04-10 Nick Clifton <nickc@redhat.com>
186
187 PR binutils/18198
188 * ld.texinfo (--be8): Add a note about the interaction of this
189 option with the assembler's -EB option.
190
191 2015-04-10 Alan Modra <amodra@gmail.com>
192
193 * configure.ac: Set elf_list_options etc. in proper case.
194 * configure: Regenerate.
195
196 2015-04-10 Alan Modra <amodra@gmail.com>
197
198 PR ld/18223
199 * ldlang.c (lang_process): Add _init and _fini to gc_sym_list.
200
201 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
202
203 * emulparams/elf_x86_64.sh (BNDPLT): Removed.
204 (PARSE_AND_LIST_OPTIONS): New.
205 (PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
206 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Remove
207 BNDPLT check. Handle PARSE_AND_LIST_ARGS_CASE_Z.
208 (gld${EMULATION_NAME}_list_options): Remove BNDPLT check.
209
210 2015-04-09 Nick Clifton <nickc@redhat.com>
211
212 * po/fr.po: Updated French translation.
213
214 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
215
216 * configure.ac (elf_list_options): Set to TRUE for
217 --enable-targets=all.
218 (elf_shlib_list_options): Likewise.
219 (elf_plt_unwind_list_options): Likewise.
220 * configure: Regenerated.
221
222 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
223
224 * emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME.
225
226 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
227
228 * Makefile.am (ELF_CLFAGS): New.
229 (AM_CFLAGS): Add $(ELF_CLFAGS).
230 * configure.ac (elf_list_options): New. AC_SUBST.
231 (elf_shlib_list_options): Likewise.
232 (elf_plt_unwind_list_options): Likewise.
233 * lexsup.c (elf_shlib_list_options): New.
234 (elf_static_list_options): Likewise.
235 (elf_plt_unwind_list_options): Likewise.
236 (ld_list_options): Likewise.
237 (help): Call ld_list_options.
238 * Makefile.in: Regenerated.
239 * configure: Likewise.
240 * emulparams/plt_unwind.sh (PLT_UNWIND): New.
241 (PARSE_AND_LIST_OPTIONS): Removed.
242 * emultempl/elf32.em (gld_list_options): New.
243 (gld${EMULATION_NAME}_list_options): Define only if BNDPLT or
244 PARSE_AND_LIST_OPTIONS is defined.
245 (ld_${EMULATION_NAME}_emulation): Replace
246 gld${EMULATION_NAME}_list_options with ${gld_list_options.
247
248 2015-04-07 Alan Modra <amodra@gmail.com>
249
250 PR ld/18176
251 * ldlang.c (lang_size_sections): Cast shift expression.
252
253 2015-04-07 Alan Modra <amodra@gmail.com>
254
255 * emultempl/ppc32elf.em: Handle --no-pic-fixup.
256 (params): Init new field.
257 (ppc_before_allocation): Enable relaxation for pic_fixup.
258
259 2015-04-07 Nick Clifton <nickc@redhat.com>
260
261 * ld.h (struct ld_config_type): Add new field: warn_orphan.
262 * ldlex.h (enum option_values): Add OPTION_WARN_ORPHAN and
263 OPTION_NO_WARN_ORPHAN.
264 * lexsup.c (ld_options): Add --warn-orphan and --no-warn-orphan.
265 (parse_args): Handle the new options.
266 * ldemul.c (ldemul_place_orphan): If requested, generate a warning
267 message when an orphan section is placed in the output file.
268 * ld.texinfo: Document the new option.
269 * NEWS: Mention the new feature.
270
271 2015-04-02 Andrew Turner <andrew@freebsd.org>
272
273 * Makefile.am: Add FreeBSD aarch64 files.
274 * Makefile.in: Regenerate.
275 * configure.tgt: Add aarch64-*-freebsd* target triple.
276 * emulparams/aarch64fbsd.sh: New file.
277 * emulparams/aarch64fbsdb.sh: New file.
278
279 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
280
281 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work
282 around a GCC uninitialized warning bug fixed in GCC 4.6.
283
284 2015-04-01 Tejas Belagod <tejas.belagod@arm.com>
285
286 * emultempl/aarch64elf.em
287 (aarch64_elf_create_output_section_statements): Add parameter in
288 bfd_elf${ELFSIZE}_aarch64_set_options call.
289 (OPTION_FIX_ERRATUM_843419): Define.
290 (PARSE_AND_LIST_LONGOPTS): Add fix-cortex-a53-843419.
291 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_FIX_ERRATUM_843419.
292
293 2015-04-01 Chen Gang <gang.chen.5i5j@gmail.com>
294
295 * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for
296 relocating operation.
297
298 2015-04-01 Alan Modra <amodra@gmail.com>
299
300 PR ld/18176
301 * ldlang.c (lang_size_sections): When alignment of sections
302 results in relro base adjustment being too large, don't go lower
303 than the initial value.
304 * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
305 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
306 alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
307
308 2015-04-01 Alan Modra <amodra@gmail.com>
309
310 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
311 init ehdr_start_save.
312
313 2015-04-01 Alan Modra <amodra@gmail.com>
314
315 * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
316 ldemul-list.h.
317 (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
318 eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
319 eelf32ppcsim.c): Rearrange deps for consistency.
320 * Makefile.in: Regenerate.
321
322 2015-04-01 Ed Schouten <ed@nuxi.nl>
323
324 * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
325 the ehdr_start_save variable.
326
327 2015-03-31 Ed Schouten <ed@nuxi.nl>
328
329 * Makefile.am (ALL_64_EMULATION_SOURCES): Add
330 eelf_x86_64_cloudabi.c.
331 (eelf_x86_64_cloudabi.c): New.
332 * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
333 x86_64-*-cloudabi*.
334 * Makefile.in: Regenerated.
335 * emulparams/elf_x86_64_cloudabi.sh: New file.
336
337 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
338
339 * configure.ac (AM_ZLIB): Removed.
340 * Makefile.in: Regenerated.
341 * config.in: Likewise.
342 * configure: Likewise.
343
344 2015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
345
346 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
347 alignment to 2.
348
349 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
350
351 * emultempl/aarch64elf.em
352 (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
353
354 2015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
355
356 * ldmain.c (main): Use %F instead of %X for einfo.
357
358 2015-03-02 Alan Modra <amodra@gmail.com>
359
360 * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
361
362 2015-02-27 Nick Clifton <nickc@redhat.com>
363
364 PR ld/17900
365 * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
366 sense of the following memory region attribute characters.
367
368 2015-02-27 Alan Modra <amodra@gmail.com>
369
370 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
371 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
372 eh8300sxelf_linux.c): Do not invoke genscripts here.
373 * Makefile.in: Regenerate.
374
375 2015-02-24 Nick Clifton <nickc@redhat.com>
376
377 * Makefile.am (ev850.c): Add dependency upon
378 $(srcdir)/emultempl/v850elf.em.
379 (ev850_rh850.c): Likewise.
380 * Makefile.in: Regenerate.
381 * emultempl/v850elf.em: New file.
382 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
383 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
384 * scripttempl/v850.sc: Add .note.renesas section.
385 * scripttempl/v850_rh850.sc: Likewise.
386
387 2015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
388
389 * scripttempl/avr.sc: Add new user_signatures region. Define and
390 use symbols for all region lengths.
391 * scripttempl/avrtiny.sc: Define and use symbols for all region
392 lengths.
393
394 2015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
395
396 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
397 * Makefile.in: Regenerate.
398 * configure.tgt: Add h8300-*-linux
399 * emulparams/h8300elf_linux.sh: Add new emulation.
400 * emulparams/h8300helf_linux.sh: Likewise.
401 * emulparams/h8300self_linux.sh: Likewise.
402 * emulparams/h8300sxelf_linux.sh: Likewise.
403
404 2015-02-23 Nick Clifton <nickc@redhat.com>
405
406 * lexsup.c (parse_args): Produce a more reasonable error message
407 when -ixxx or -rxxx is the last option on the linker command line.
408
409 2015-02-14 H.J. Lu <hongjiu.lu@intel.com>
410
411 PR ld/17973
412 * testplug2.c (allsymbolsread_silent): New.
413 (set_register_hook): Handle allsymbolsreadsilent.
414 (onall_symbols_read): Skip a message if allsymbolsread_silent is
415 TRUE.
416
417 2015-02-14 Alan Modra <amodra@gmail.com>
418
419 PR ld/17973
420 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
421 * ldlang.c (lang_process): Don't set loading_lto_outputs.
422 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
423 to bfd.
424 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
425
426 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
427
428 * NEWS: Mention support for LLVM plugin.
429
430 2015-02-13 Alan Modra <amodra@gmail.com>
431
432 * ld.texinfo (Options <--defsym>): Correct cross reference.
433
434 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
435
436 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
437 option compatibility.
438
439 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
440
441 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
442 "error:" for LDPL_FATAL and LDPL_ERROR.
443 * testplug2.c (parse_option): Handle fatal, error and warning.
444
445 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
446
447 * testplug2.c (dump_tv_tag): Removed.
448 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
449 closed.
450 * testplug3.c (dump_tv_tag): Removed.
451 (onclaim_file): Fix typo.
452
453 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
454
455 PR ld/17878
456 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
457 libldtestplug3.la.
458 (libldtestplug2_la_SOURCES): New.
459 (libldtestplug2_la_CFLAGS): Likewise.
460 (libldtestplug2_la_LDFLAGS): Likewise.
461 (libldtestplug3_la_SOURCES): New.
462 (libldtestplug3_la_CFLAGS): Likewise.
463 (libldtestplug3_la_LDFLAGS): Likewise.
464 * Makefile.in: Regenerated.
465 * testplug2.c: New file.
466 * testplug3.c: Likewise.
467
468 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
469
470 PR ld/17878
471 * plugin.c: Include ../bfd/plugin.h.
472 (plugin_get_ir_dummy_bfd): Call bfd_create with
473 link_info.output_bfd instead of srctemplate. Copy BFD info
474 from srctemplate only if it doesn't use BFD plugin target
475 vector.
476 (plugin_load_plugins): Call register_ld_plugin_object_p with
477 (plugin_object_p)
478 (plugin_maybe_claim): Renamed to ...
479 (plugin_object_p): This. Return dummy BFD target vector if
480 input is calimed by plugin library, otherwise return NULL.
481 Update plugin_format and plugin_dummy_bfd.
482 (plugin_maybe_claim): New. Use plugin_object_p.
483
484 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
485
486 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
487
488 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
489
490 * plugin.c (plugin_input_file_t): Add use_mmap.
491 (plugin_pagesize): New.
492 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
493 (plugin_load_plugins): Initialize plugin_pagesize.
494 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
495 file.
496
497 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
498
499 * plugin.c (get_view): Align offset passed to mmap.
500
501 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
502
503 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
504 if plugin isn't active or there is no thing more to claim.
505
506 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
507
508 * plugin.c (plugin_maybe_claim): Check format against bfd_object
509 directly.
510
511 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
512
513 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
514 ibfd.
515
516 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
517
518 * plugin.c: Include "libbfd.h".
519 (plugin_strdup): New.
520 (plugin_maybe_claim): Remove the argument of pointer to struct
521 ld_plugin_input_file. Open and handle input entry.
522 * plugin.h (plugin_maybe_claim): Updated.
523 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
524 without passing a pointer to struct ld_plugin_input_file.
525 * ldmain.c: Don't include "libbfd.h".
526 (add_archive_element): Call plugin_maybe_claim directly without
527 passing a pointer to struct ld_plugin_input_file.
528
529 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
530
531 * ld.texinfo: Document -z text, -z notext and -z textoff.
532 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
533 -z text, -z notext and -z textoff.
534
535 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
536
537 * configure.ac: Add AC_FUNC_MMAP.
538 * config.in: Regenerated.
539 * configure: Likewise.
540 * plugin.c: Include <sys/mman.h>.
541 (MAP_FAILED): New. Defined if not defined.
542 (PROT_READ): Likewise.
543 (MAP_PRIVATE): Likewise.
544 (view_buffer_t): New.
545 (plugin_input_file_t): Add view_buffer.
546 (get_view): Try mmap and cache the view buffer.
547 (plugin_maybe_claim): Initialize view_buffer.
548
549 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
550
551 * plugin.c (release_input_file): Set fd to -1 after closing it.
552 (plugin_maybe_claim): Close fd only if fd != -1.
553
554 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
555
556 PR ld/17878
557 * plugin.c: Include <errno.h>.
558 (errno): New. Declare if needed.
559 (plugin_input_file_t): New.
560 (get_input_file): Implemented.
561 (get_view): Likewise.
562 (release_input_file): Likewise.
563 (add_symbols): Updated.
564 (get_symbols): Likewise.
565 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
566 only for a bfd_object input.
567
568 2015-02-02 Alan Modra <amodra@gmail.com>
569
570 * emultempl/ppc64elf.em (toc_section_name): New var.
571 (ppc_after_open): Set it.
572 (ppc_before_allocation): Use it.
573 (gld${EMULATION_NAME}_after_allocation): Here too.
574
575 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
576
577 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
578 with link_info.lto_plugin_active.
579 * ldlang.c (lang_process): Likewise.
580 * ldmain.c (add_archive_element): Likewise.
581 * plugin.c (plugin_active_plugins_p): Removed.
582 * plugin.h (plugin_active_plugins_p): Likewise.
583
584 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
585
586 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
587 ...
588 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
589
590 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
591
592 PR ld/17878
593 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
594 (get_view): New function.
595 (set_tv_header): Handle LDPT_GET_VIEW.
596 * testplug.c (tag_names): Add LDPT_GET_VIEW.
597 (tv_get_view): New.
598 (dump_tv_tag): Handle LDPT_GET_VIEW.
599 (parse_tv_tag): Likewise.
600
601 2015-01-28 Alan Modra <amodra@gmail.com>
602
603 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
604 * emultempl/ppc64elf.em (params): Init new field.
605 (ppc_after_open): New function.
606 (LDEMUL_AFTER_OPEN): Define.
607 * ldlang.c (lang_final): Whitespace fix.
608
609 2015-01-28 James Bowman <james.bowman@ftdichip.com>
610
611 * Makefile.am: Add FT32 files.
612 * configure.tgt: Handle FT32 target.
613 * emulparams/elf32ft32.sh: New file.
614 * scripttempl/ft32.sc: New file.
615 * Makefile.in: Regenerate.
616
617 2015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
618
619 PR 4643
620 * ldexp.c (fold_name): Fold LENGTH only after
621 lang_first_phase_enum.
622 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
623 rightaway.
624 * ldlang.h (struct memory_region_struct): Add origin_exp and
625 length_exp fields.
626 * ldlang.c (lang_do_memory_regions): New.
627 (lang_memory_region_lookup): Initialize origin_exp and
628 length_exp fields.
629 (lang_process): Call lang_do_memory_regions.
630
631 2015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
632
633 * ldlang.c (print_assignment): Only evaluate the expression for a
634 PROVIDE'd assignment when the destination is being defined.
635 Display a special message for PROVIDE'd symbols that are not being
636 provided.
637
638 2015-01-20 Alan Modra <amodra@gmail.com>
639
640 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
641 (OTHER_BSS_SYMBOLS): ..this.
642 (OTHER_PLT_RELOC_SECTIONS): Don't define.
643 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
644 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
645 (OTHER_RELRO_SECTIONS_2): ..here.
646 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
647
648 2015-01-20 Alan Modra <amodra@gmail.com>
649
650 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
651 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
652 (OTHER_RELRO_SECTIONS_2): ..here.
653 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
654 PLT_BEFORE_GOT): Define.
655 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
656 PLT_BEFORE_GOT combination.
657 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
658
659 2015-01-20 Alan Modra <amodra@gmail.com>
660
661 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
662 (OTHER_RELRO_SECTIONS_2): ..here, new define.
663 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
664
665 2015-01-19 Alan Modra <amodra@gmail.com>
666
667 PR ld/17615
668 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
669
670 2015-01-14 Jiong Wang <jiong.wang@arm.com>
671
672 * ld-arm/elf32-reject.s: New testcase.
673 * ld-arm/elf32-reject.d: Likewise.
674 * ld-arm/elf32-reject-pie.s: Likewise.
675 * ld-arm/elf32-reject-pie.d: Likewise.
676 * ld-arm/arm-elf.exp: Run new testcases.
677 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
678 * ld-arm/ifunc-7.rd: Likewise.
679 * ld-arm/ifunc-7.gd: Likewise.
680 * ld-arm/ifunc-7.dd: Likewise.
681 * ld-arm/ifunc-8.s: Likewise.
682 * ld-arm/ifunc-8.rd: Likewise.
683 * ld-arm/ifunc-8.gd: Likewise.
684 * ld-arm/ifunc-8.dd: Likewise.
685
686 2015-01-01 Alan Modra <amodra@gmail.com>
687
688 * ldver.c (ldversion): Just print current year.
689
690 2015-01-01 Alan Modra <amodra@gmail.com>
691
692 Update year range in copyright notice of all files.
693
694 For older changes see ChangeLog-2014
695 \f
696 Copyright (C) 2015 Free Software Foundation, Inc.
697
698 Copying and distribution of this file, with or without modification,
699 are permitted in any medium without royalty provided the copyright
700 notice and this notice are preserved.
701
702 Local Variables:
703 mode: change-log
704 left-margin: 8
705 fill-column: 74
706 version-control: never
707 End:
This page took 0.054467 seconds and 4 git commands to generate.