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