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