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