]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
Allow any size enum in gdb.cp/var-tag.exp.
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
b6518b38
NC
12015-09-23 Nick Clifton <nickc@redhat.com>
2
3 * emultempl/elf32.em (ehdr_start_empty): New static variable.
4 (before_allocation): Use it to initialise ehdr_start_save.
5 * emultempl/pe.em (write_build_id): Remove useless double
6 parenthesis.
7 * emultempl/pep.em (write_build_id): Likewise.
8
5fe2850d
L
92015-09-22 H.J. Lu <hongjiu.lu@intel.com>
10
11 * emultempl/alphaelf.em (alpha_after_parse): Call
12 gld${EMULATION_NAME}_after_parse instead of
13 after_parse_default.
14 * emultempl/cr16elf.em (cr16elf_after_parse): Likewise.
15 * emultempl/crxelf.em (crxelf_after_parse); Likewise.
16 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
17 * emultempl/mipself.em (mips_after_parse): Likewise.
18 * emultempl/nds32elf.em (nds32_elf_after_parse): Likewise.
19 * emultempl/elf32.em: Don't include ldlex.h.
20 (gld${EMULATION_NAME}_after_parse): New function.
21 (gld${EMULATION_NAME}_handle_option) [GENERATE_PIE_SCRIPT]
22 <OPTION_PIE>: Removed.
23 (ld_${EMULATION_NAME}_emulation): Replace after_parse_default
24 with gld${EMULATION_NAME}_after_parse.
25 * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse):
26 Renamed to ...
27 (ia64elf_after_parse): This. Call
28 gld${EMULATION_NAME}_after_parse instead of after_parse_default.
29 (LDEMUL_AFTER_PARSE): Replace gld${EMULATION_NAME}_after_parse
30 with ia64elf_after_parse.
31
5c383f02
RO
322015-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33
34 * emulparams/solaris2.sh (GENERATE_PIE_SCRIPT): Set to yes.
35
36 * emultempl/elf32.em: Include ldlex.h.
37 (gld${EMULATION_NAME}_handle_option) [GENERATE_PIE_SCRIPT]
38 <OPTION_PIE>: Set DF_1_PIE.
39
95421fb9
AM
402015-09-22 Alan Modra <amodra@gmail.com>
41
42 * ld.texinfo: Put --dotsyms/--no-dotsyms on separate lines.
43 Ditto for --save-restore-funcs and --tls-get-addr-optimize.
44
9b8b325a
RF
452015-09-20 Rich Felker <dalias@libc.org>
46
47 * ld.texinfo (--no-dynamic-linker): Document.
48 * ldlex.h (enum option_values): Add OPTION_NO_DYNAMIC_LINKER.
49 * lexsup.c (ld_options, parse_args): Handle --no-dynamic-linker.
50
7ae4ea7d
AM
512015-09-18 Alan Modra <amodra@gmail.com>
52
53 * ld.texinfo: Document PowerPC64 --{no-,}save-restore-funcs.
54
7c9cf415
AM
552015-09-18 Alan Modra <amodra@gmail.com>
56
57 * emultempl/ppc64elf.em (params): Init tls_get_addr_opt field to -1.
58 (OPTION_TLS_GET_ADDR_OPT): Define.
59 (PARSE_AND_LIST_LONGOPTS): Handle --tls-get-addr-opt.
60 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
61 * ld.texinfo: Document --tls-get-addr-optimize and
62 --no-tls-get-addr-optimize.
63
975f8a9e
AM
642015-09-18 Alan Modra <amodra@gmail.com>
65
66 PR ld/18963
67 * ldexp.h (struct ldexp_control): Add rel_from_abs.
68 (ldexp_finalize_syms): Declare.
69 * ldexp.c (new_rel_from_abs): Keep absolute for expressions
70 outside of output section statements. Set rel_from_abs.
71 (make_abs, exp_fold_tree, exp_fold_tree_no_dot): Clear rel_from_abs.
72 (struct definedness_hash_entry): Add final_sec, and comment.
73 (update_definedness): Set final_sec.
74 (set_sym_sections, ldexp_finalize_syms): New functions.
75 * ldlang.c (lang_process): Call ldexp_finalize_syms.
76
64597d82
NC
772015-09-10 Nick Clifton <nickc@redhat.com>
78
79 * po/zh_CN.po: Updated simplified Chinese translation.
80
ea4a7f99 812015-09-09 James Bowman <james.bowman@ftdichip.com>
82
83 * scripttempl/ft32.sc: default linker script RAM and
84 FLASH size symbols
85
081bb924
NC
862015-09-09 Nick Clifton <nickc@redhat.com>
87
88 * po/zh_CN.po: Updated simplified Chinese translation.
89
5707d2ad
NC
902015-09-08 Nick Clifton <nickc@redhat.com>
91
92 * ld.texinfo (Source Code Reference): Extend description to
93 include an example using arrays.
94
c005eb9e
AB
952015-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
96
97 * ld.h (enum orphan_handling_enum): New.
98 (ld_config_type): Remove warn_orphan, add orphan_handling.
99 * ldemul.c (ldemul_place_orphan): Remove warning about orphan
100 sections.
101 * ldlang.c (ldlang_place_orphan): New function.
102 (lang_place_orphans): Call ldlang_place_orphan.
103 * ldlex.h (enum option_values): Remove OPTION_WARN_ORPHAN and
104 OPTION_NO_WARN_ORPHAN, add OPTION_ORPHAN_HANDLING.
105 * lexsup.c (ld_options): Remove 'warn-orphan' and
106 'no-warn-orphan', add 'orphan-handling'.
107 (parse_args): Remove handling for OPTION_WARN_ORPHAN and
108 OPTION_NO_WARN_ORPHAN, add handling for OPTION_ORPHAN_HANDLING.
109 * NEWS: Replace text about --warn-orphan with --orphan-handling.
110 * ld.texinfo (Options): Remove --warn-orphan entry and add
111 entry on --orphan-handling.
112 (Orphan Sections): Add reference to relevant command line options.
113
6033bf41
NC
1142015-09-03 Nick Clifton <nickc@redhat.com>
115
116 * ld.texinfo (--build-id): Fix typo. The COFF/PE build-id section
117 is called .buildid not .build-id.
118
a5e406b5
NC
1192015-09-03 Nick Clifton <nickc@redhat.com>
120
121 (Source Code Reference): Fix off-by-one typo in example of how to
122 use linker script symbols in C source code.
123
64d94ba0
AM
1242015-08-19 Alan Modra <amodra@gmail.com>
125
126 * emultempl/aix.em: Don't set link_info.pic.
127 * emultempl/pe.em: Likewise.
128 * emultempl/pep.em: Likewise.
129 * emultempl/sunos.em: Likewise.
130 * lexsup.c (parse_args): Likewise. Set type_pie for -pie.
131 * plugin.c (set_tv_header <LDPT_LINKER_OUTPUT>): Simplify.
132
0e1862bb
L
1332015-08-18 H.J. Lu <hongjiu.lu@intel.com>
134
135 * ld/ldctor.c: Replace shared, executable, relocatable and pie
136 fields with bfd_link_executable, bfd_link_dll,
137 bfd_link_relocatable, bfd_link_pic and bfd_link_pie.
138 * ld/ldemul.c: Likewise.
139 * ld/ldfile.c: Likewise.
140 * ld/ldlang.c: Likewise.
141 * ld/ldmain.c: Likewise.
142 * ld/ldwrite.c: Likewise.
143 * ld/lexsup.c: Likewise.
144 * ld/pe-dll.c: Likewise.
145 * ld/plugin.c: Likewise.
146 * ld/emultempl/aarch64elf.em: Likewise.
147 * ld/emultempl/aix.em: Likewise.
148 * ld/emultempl/alphaelf.em: Likewise.
149 * ld/emultempl/armcoff.em: Likewise.
150 * ld/emultempl/armelf.em: Likewise.
151 * ld/emultempl/avrelf.em: Likewise.
152 * ld/emultempl/beos.em: Likewise.
153 * ld/emultempl/cr16elf.em: Likewise.
154 * ld/emultempl/elf-generic.em: Likewise.
155 * ld/emultempl/elf32.em: Likewise.
156 * ld/emultempl/genelf.em: Likewise.
157 * ld/emultempl/generic.em: Likewise.
158 * ld/emultempl/gld960.em: Likewise.
159 * ld/emultempl/gld960c.em: Likewise.
160 * ld/emultempl/hppaelf.em: Likewise.
161 * ld/emultempl/irix.em: Likewise.
162 * ld/emultempl/linux.em: Likewise.
163 * ld/emultempl/lnk960.em: Likewise.
164 * ld/emultempl/m68hc1xelf.em: Likewise.
165 * ld/emultempl/m68kcoff.em: Likewise.
166 * ld/emultempl/m68kelf.em: Likewise.
167 * ld/emultempl/metagelf.em: Likewise.
168 * ld/emultempl/mipself.em: Likewise.
169 * ld/emultempl/mmo.em: Likewise.
170 * ld/emultempl/msp430.em: Likewise.
171 * ld/emultempl/nds32elf.em: Likewise.
172 * ld/emultempl/needrelax.em: Likewise.
173 * ld/emultempl/nios2elf.em: Likewise.
174 * ld/emultempl/pe.em: Likewise.
175 * ld/emultempl/pep.em: Likewise.
176 * ld/emultempl/ppc32elf.em: Likewise.
177 * ld/emultempl/ppc64elf.em: Likewise.
178 * ld/emultempl/sh64elf.em: Likewise.
179 * ld/emultempl/solaris2.em: Likewise.
180 * ld/emultempl/spuelf.em: Likewise.
181 * ld/emultempl/sunos.em: Likewise.
182 * ld/emultempl/tic6xdsbt.em: Likewise.
183 * ld/emultempl/ticoff.em: Likewise.
184 * ld/emultempl/v850elf.em: Likewise.
185 * ld/emultempl/vms.em: Likewise.
186 * ld/emultempl/vxworks.em: Likewise.
187
43417696
AM
1882015-08-18 Alan Modra <amodra@gmail.com>
189
190 * ldexp.c (exp_fold_tree_1): Clear linker_def on symbol assignment.
191
e0a3af22
AM
1922015-08-06 Alan Modra <amodra@gmail.com>
193
194 * ldexp.c (align_dot_val): Delete.
195 (fold_unary <ALIGN_K, NEXT>): Revert 2015-07-10 change.
196 (is_align_conditional): Revert 2015-07-20 change.
197 (exp_fold_tree_1): Likewise, but keep expanded comment.
198 * scripttempl/elf.sc (.ldata, .bss): Revert 2015-07-20 change.
199 * ld.texinfo (<ALIGN>): Correct description.
200
0a618243
AB
2012015-08-04 Andrew Burgess <andrew.burgess@embecosm.com>
202
203 * ld.texinfo (Options): Document --require-defined option.
204 * ldlang.c (struct require_defined_symbol): New structure.
205 (require_defined_symbol_list): New variable.
206 (ldlang_add_require_defined): New function.
207 (ldlang_check_require_defined_symbols): New function.
208 (lang_process): Check required symbols are defined.
209 * ldlang.h (ldlang_add_require_defined): Declare.
210 * ldlex.h (enum option_values): Add OPTION_REQUIRE_DEFINED_SYMBOL.
211 * lexsup.c (ld_options): Add '--require-defined' entry.
212 (parse_args): Handle '--requre-defined' entry.
213 * NEWS: Mention new '--require-defined' option.
214
127fcdff
AB
2152015-08-03 Andrew Burgess <andrew.burgess@embecosm.com>
216
217 * ld.texinfo (MEMORY): Explain that multiple MEMORY commands are
218 acceptable.
219
e77e648e
L
2202015-07-29 H.J. Lu <hongjiu.lu@intel.com>
221
222 * lexsup.c (parse_args): Don't set link_info.executable to
223 TRUE for link_info.relocatable.
224
37a42ee9
L
2252015-07-27 H.J. Lu <hongjiu.lu@intel.com>
226
227 * configure: Regenerated.
228
aff1a65e
NC
2292015-07-24 Nick Clifton <nickc@redhat.com>
230
231 * emulparams/elf32rl78.sh (OTHER_SECTIONS): Provide a value for
232 the _-rl78_abs__ symbol.
233
d9d11c36
AM
2342015-07-20 Alan Modra <amodra@gmail.com>
235
236 * emulparams/criself.sh (INIT_ADDR, FINI_ADDR): Define.
237 (INIT_START, FINI_START): Don't ALIGN.
238 * scriptempl/elf.sc (.init, .fini): Apply INIT_ADDR/FINI_ADDR.
239
e474ab13
AM
2402015-07-20 Alan Modra <amodra@gmail.com>
241
242 * scripttempl/elf.sc (.ldata, .bss): Align absolute value of dot.
243 * ldexp.c (is_align_conditional): Handle binary ALIGN.
244 (exp_fold_tree_1): Move code setting SEC_KEEP for assignments to
245 dot inside output sections. Handle absolute expressions.
246
19a7fe52
L
2472015-07-14 H.J. Lu <hongjiu.lu@intel.com>
248
249 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Make
250 --compress-debug-sections=zlib the same as
251 --compress-debug-sections=zlib-gabi.
252 * ld.texinfo: Change --compress-debug-sections=zlib to zlib-gabi.
253
1f0d470a
NC
2542015-07-14 Nick Clifton <nickc@redhat.com>
255
256 * ld.texinfo (Options): Add missing period after @xref.
257
a2c59f28
AM
2582015-07-10 Alan Modra <amodra@gmail.com>
259
260 * ldexp.c (align_dot_val): New function.
261 (fold_unary <ALIGN_K, NEXT>): Use it.
262
0f088b2a
KT
2632015-07-03 Kai Tietz <ktietz@redhat.com>
264
265 PR ld/11539
266 * scripttempl/pep.sc: Mark .idata*, .CRT*, .tls*,
267 .rsrc*, .init, .ctor*, .dtor*, .fini, .jcr,
268 .eh_frame, .pdata. .xdata, and .gcc_except_table sections
269 as KEEP.
270 * scripttempl/pe.sc: Likewise.
271 * ld.texinfo: Document that --gc-sections has experimental support
272 for COFF and PE targets.
273 * NEWS: Mention experimental support.
274
b6b3dd8f
AM
2752015-07-03 Alan Modra <amodra@gmail.com>
276
277 * Makefile.am (eelf32or1k.c, eelf32or1k_linux.c): Depend on ELF_DEPS.
278 * Makefile.in: Regenerate.
279
ee0c0c50
L
2802015-06-28 H.J. Lu <hongjiu.lu@intel.com>
281
282 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option):
283 Replace COMPRESS_DEBUG_ZLIB with COMPRESS_DEBUG_GNU_ZLIB.
284
c742574f
L
2852015-06-26 H.J. Lu <hongjiu.lu@intel.com>
286
287 * emulparams/elf_iamcu.sh (COMPILE_IN): New.
288
a2a4d60d
NC
2892015-06-15 Nick Clifton <nickc@redhat.com>
290
291 PR ld/18466
292 * emultempl/pe.em (pe_find_data_imports): Generate an error if a
293 symbol name is too long to handle.
294 * emultempl/pep.em (pep_find_data_imports): Likewise.
295
3604cb1f
TG
2962015-06-12 Tristan Gingold <gingold@adacore.com>
297
298 * NEWS: Mention new option.
299 * lexsup.c (parse_args): Handle --print-memory-usage.
300 (ld_options): Add --print-memory-usage.
301 * ldmain.c (main): Call lang_print_memory_usage.
302 * ldlex.h (enum option_values): Add OPTION_PRINT_MEMORY_USAGE.
303 * ldlang.h: Add prototype of lang_print_memory_usage.
304 * ldlang.c (lang_print_memory_size, lang_print_memory_usage): New
305 functions.
306 * ld.texinfo (Options): Document --print-memory-usage.
307 * ld.h (args_type): Add print_memory_usage field.
308
1e1b2efc
NC
3092015-06-08 Nick Clifton <nickc@redhat.com>
310
311 * po/fr.po: Updated French Translation.
312
2f0c68f2
CM
3132015-05-28 Catherine Moore <clm@codesourcery.com>
314 Paul Brook <paul@codesourcery.com>
315
2f0c68f2
CM
316 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
317 Add Compact EH support.
318 * scripttempl/elf.sc: Handle .eh_frame_entry and .gnu_extab
319 sections.
320
68880f31
CLT
3212015-05-17 Chung-Lin Tang <cltang@codesourcery.com>
322
323 * configure.ac (AC_PROG_GREP): Check for grep program.
324 (elf_list_options,elf_shlib_list_options,elf_plt_unwind_list_options):
325 Enable ELF option printing for emulations containing
326 'TEMPLATE_NAME=elf32'.
327 * configure: Regenerate.
328
fd1c4238
NC
3292015-05-14 Nick Clifton <nickc@redhat.com>
330
331 * ld.texinfo (ASSERT): Describe the interaction with PROVIDEd
332 symbols.
333
5197d474
L
3342015-05-11 H.J. Lu <hongjiu.lu@intel.com>
335
336 * configure.tgt: Support i[3-7]86-*-elfiamcu target.
337
7e0a8112
L
3382015-05-11 H.J. Lu <hongjiu.lu@intel.com>
339
340 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_iamcu.c.
341 (eelf_iamcu.c): New.
342 * configure.tgt (targ_extra_emuls): Add elf_iamcu if elf_i386 is
343 enabled in BFD.
344 * Makefile.in: Regenerated.
345 * emulparams/elf_iamcu.sh: New file.
346
837a17b3
NC
3472015-05-05 Nick Clifton <nickc@redhat.com>
348
349 * emulparams/msp430elf.sh (TEMPLATE_NAME): Change to msp430.
350 * scripttempl/msp430.sc (.text): Add .lower.text and .either.text.
351 (.data): Add .lower.data and .either.data.
352 (.bss): Add .lower.bss and .either.bss.
353 (.rodata): Add .lower.rodata and .either.rodata.
354 * emultempl/msp430.em: New file. Implements a new orphan
355 placement algorithm that divides sections between lower and upper
356 memory regions.
357 * Makefile.am (emsp430elf.c): Depend upon msp430.em.
358 *emsp430X.c): Likewise.
359 * Makefine.in: Regenerate.
360
a13eab06
AS
3612015-04-28 Andreas Schwab <schwab@linux-m68k.org>
362
363 PR ld/18344
364 * ldlex.l (INPUTLIST): Increment lineno on newline.
365
44bd1acd
AM
3662015-04-24 Alan Modra <amodra@gmail.com>
367
368 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
369 Call gld${EMULATION_NAME}_map_segments regardless of need_laying_out.
370
08e2f2bb
DD
3712015-04-24 DJ Delorie <dj@redhat.com>
372
373 * Makefile.am (msp430): Rename primary emulation to msp430elf.
374 (emsp430.c): Rename to emsp430elf.c, update dependencies
375 (emsp430X.c): Update dependencies.
376 * Makefile.in: Likewise.
377 * configure.tgt (msp430-*-*): Rename primary emulation to msp430elf.
d9e88e90 378 * emulparams/msp430.sh: Rename to msp430elf.sh.
08e2f2bb
DD
379 * emulparams/msp430X.sh: Update.
380
f6fe1ccd
L
3812015-04-23 H.J. Lu <hongjiu.lu@intel.com>
382
383 PR binutils/18209
384 * ldfile.c (ldfile_try_open_bfd): Set is_linker_input to 1.
385
a27e685f
AM
3862015-04-23 Alan Modra <amodra@gmail.com>
387
388 * emulparams/elf64ppc.sh (GOT): Align.
389
0e5fabeb
AM
3902015-04-22 Alan Modra <amodra@gmail.com>
391
392 * ldexp.h (struct ldexp_control): Delete dataseg.min_base. Add
393 data_seg.relro_offset.
394 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Don't set min_base.
395 (fold_binary <DATA_SEGMENT_RELRO_END>): Do set relro_offset.
396 * ldlang.c (lang_size_sections): Rewrite code adjusting relro
397 segment base to line up last section on page boundary.
398
ea556d25
L
3992015-04-15 H.J. Lu <hongjiu.lu@intel.com>
400
401 * NEWS: Mention
402 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
403
0ce398f1
L
4042015-04-14 H.J. Lu <hongjiu.lu@intel.com>
405
406 * ld.texinfo: Document --compress-debug-sections=.
407 * ldmain.c (main): Set BFD_COMPRESS on output_bfd if
408 COMPRESS_DEBUG is set. Set BFD_COMPRESS_GABI on output_bfd
409 for COMPRESS_DEBUG_GABI_ZLIB.
410 * lexsup.c (elf_static_list_options): Add
411 --compress-debug-sections=.
412 * emultempl/elf32.em (OPTION_COMPRESS_DEBUG): New.
413 (xtra_long): Add "compress-debug-sections".
414 (gld${EMULATION_NAME}_handle_option): Handle
415 OPTION_COMPRESS_DEBUG.
416
889c2a67
L
4172015-04-14 H.J. Lu <hongjiu.lu@intel.com>
418
419 PR ld/pr17709
420 * ld.texinfo: Document "-z noextern-protected-data".
421 * ldmain.c (main): Initialize link_info.extern_protected_data
422 to -1.
423 * lexsup.c (elf_shlib_list_options): Add
424 "-z [no]extern-protected-data".
425 * emulparams/elf32_x86_64.sh: Source extern_protected_data.sh.
426 * emulparams/elf_i386.sh: Likewise.
427 * emulparams/elf_i386_be.sh: Likewise.
428 * emulparams/elf_i386_chaos.sh: Likewise.
429 * emulparams/elf_i386_ldso.sh: Likewise.
430 * emulparams/elf_i386_vxworks.sh: Likewise.
431 * emulparams/elf_k1om.sh: Likewise.
432 * emulparams/elf_l1om.sh: Likewise.
433 * emulparams/elf_x86_64.sh: Source extern_protected_data.sh.
434 (PARSE_AND_LIST_OPTIONS): Renamed to ...
435 (PARSE_AND_LIST_OPTIONS_BNDPLT): This.
436 (PARSE_AND_LIST_ARGS_CASE_Z): Renamed to ...
437 (PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT): This.
438 (PARSE_AND_LIST_OPTIONS): Append $PARSE_AND_LIST_OPTIONS_BNDPLT.
439 (PARSE_AND_LIST_ARGS_CASE_Z): Append
440 $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT.
441 * emulparams/extern_protected_data.sh: New file.
442
fd5a1509
L
4432015-04-11 H.J. Lu <hongjiu.lu@intel.com>
444
445 * plugin.c (plugin_load_plugins): Removed an extra ';'.
446
080bb7bb
NC
4472015-04-10 Nick Clifton <nickc@redhat.com>
448
449 PR binutils/18198
450 * ld.texinfo (--be8): Add a note about the interaction of this
451 option with the assembler's -EB option.
452
8c3fff59
AM
4532015-04-10 Alan Modra <amodra@gmail.com>
454
455 * configure.ac: Set elf_list_options etc. in proper case.
456 * configure: Regenerate.
457
6166ed93
AM
4582015-04-10 Alan Modra <amodra@gmail.com>
459
460 PR ld/18223
461 * ldlang.c (lang_process): Add _init and _fini to gc_sym_list.
462
eba27bd7
L
4632015-04-09 H.J. Lu <hongjiu.lu@intel.com>
464
465 * emulparams/elf_x86_64.sh (BNDPLT): Removed.
466 (PARSE_AND_LIST_OPTIONS): New.
467 (PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
468 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Remove
469 BNDPLT check. Handle PARSE_AND_LIST_ARGS_CASE_Z.
470 (gld${EMULATION_NAME}_list_options): Remove BNDPLT check.
471
233723a4
NC
4722015-04-09 Nick Clifton <nickc@redhat.com>
473
474 * po/fr.po: Updated French translation.
475
82d8e420
L
4762015-04-08 H.J. Lu <hongjiu.lu@intel.com>
477
478 * configure.ac (elf_list_options): Set to TRUE for
479 --enable-targets=all.
480 (elf_shlib_list_options): Likewise.
481 (elf_plt_unwind_list_options): Likewise.
482 * configure: Regenerated.
483
31b94bbb
L
4842015-04-08 H.J. Lu <hongjiu.lu@intel.com>
485
486 * emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME.
487
c58212ea
L
4882015-04-08 H.J. Lu <hongjiu.lu@intel.com>
489
490 * Makefile.am (ELF_CLFAGS): New.
491 (AM_CFLAGS): Add $(ELF_CLFAGS).
492 * configure.ac (elf_list_options): New. AC_SUBST.
493 (elf_shlib_list_options): Likewise.
494 (elf_plt_unwind_list_options): Likewise.
495 * lexsup.c (elf_shlib_list_options): New.
496 (elf_static_list_options): Likewise.
497 (elf_plt_unwind_list_options): Likewise.
498 (ld_list_options): Likewise.
499 (help): Call ld_list_options.
500 * Makefile.in: Regenerated.
501 * configure: Likewise.
502 * emulparams/plt_unwind.sh (PLT_UNWIND): New.
503 (PARSE_AND_LIST_OPTIONS): Removed.
504 * emultempl/elf32.em (gld_list_options): New.
505 (gld${EMULATION_NAME}_list_options): Define only if BNDPLT or
506 PARSE_AND_LIST_OPTIONS is defined.
507 (ld_${EMULATION_NAME}_emulation): Replace
508 gld${EMULATION_NAME}_list_options with ${gld_list_options.
509
0fad6e4b
AM
5102015-04-07 Alan Modra <amodra@gmail.com>
511
512 PR ld/18176
513 * ldlang.c (lang_size_sections): Cast shift expression.
514
d3e454b9
AM
5152015-04-07 Alan Modra <amodra@gmail.com>
516
517 * emultempl/ppc32elf.em: Handle --no-pic-fixup.
518 (params): Init new field.
519 (ppc_before_allocation): Enable relaxation for pic_fixup.
520
3ea60775
NC
5212015-04-07 Nick Clifton <nickc@redhat.com>
522
523 * ld.h (struct ld_config_type): Add new field: warn_orphan.
524 * ldlex.h (enum option_values): Add OPTION_WARN_ORPHAN and
525 OPTION_NO_WARN_ORPHAN.
526 * lexsup.c (ld_options): Add --warn-orphan and --no-warn-orphan.
527 (parse_args): Handle the new options.
528 * ldemul.c (ldemul_place_orphan): If requested, generate a warning
529 message when an orphan section is placed in the output file.
530 * ld.texinfo: Document the new option.
531 * NEWS: Mention the new feature.
532
15c7659f
AT
5332015-04-02 Andrew Turner <andrew@freebsd.org>
534
535 * Makefile.am: Add FreeBSD aarch64 files.
536 * Makefile.in: Regenerate.
537 * configure.tgt: Add aarch64-*-freebsd* target triple.
538 * emulparams/aarch64fbsd.sh: New file.
539 * emulparams/aarch64fbsdb.sh: New file.
540
a0bde398
L
5412015-04-01 H.J. Lu <hongjiu.lu@intel.com>
542
543 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work
544 around a GCC uninitialized warning bug fixed in GCC 4.6.
545
4106101c
MS
5462015-04-01 Tejas Belagod <tejas.belagod@arm.com>
547
548 * emultempl/aarch64elf.em
549 (aarch64_elf_create_output_section_statements): Add parameter in
550 bfd_elf${ELFSIZE}_aarch64_set_options call.
551 (OPTION_FIX_ERRATUM_843419): Define.
552 (PARSE_AND_LIST_LONGOPTS): Add fix-cortex-a53-843419.
553 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_FIX_ERRATUM_843419.
554
16c1c9d6
CG
5552015-04-01 Chen Gang <gang.chen.5i5j@gmail.com>
556
557 * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for
558 relocating operation.
559
6c1aca3e
AM
5602015-04-01 Alan Modra <amodra@gmail.com>
561
875b5b9d 562 PR ld/18176
6c1aca3e
AM
563 * ldlang.c (lang_size_sections): When alignment of sections
564 results in relro base adjustment being too large, don't go lower
565 than the initial value.
566 * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
567 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
568 alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
569
4a0bc59e
AM
5702015-04-01 Alan Modra <amodra@gmail.com>
571
572 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
573 init ehdr_start_save.
574
42271ec5
AM
5752015-04-01 Alan Modra <amodra@gmail.com>
576
577 * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
578 ldemul-list.h.
579 (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
580 eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
581 eelf32ppcsim.c): Rearrange deps for consistency.
582 * Makefile.in: Regenerate.
583
4e791d0f
ES
5842015-04-01 Ed Schouten <ed@nuxi.nl>
585
586 * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
587 the ehdr_start_save variable.
588
6036f486
ES
5892015-03-31 Ed Schouten <ed@nuxi.nl>
590
591 * Makefile.am (ALL_64_EMULATION_SOURCES): Add
592 eelf_x86_64_cloudabi.c.
593 (eelf_x86_64_cloudabi.c): New.
594 * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
595 x86_64-*-cloudabi*.
596 * Makefile.in: Regenerated.
597 * emulparams/elf_x86_64_cloudabi.sh: New file.
598
f24173eb
L
5992015-03-31 H.J. Lu <hongjiu.lu@intel.com>
600
601 * configure.ac (AM_ZLIB): Removed.
602 * Makefile.in: Regenerated.
603 * config.in: Likewise.
604 * configure: Likewise.
605
d9ced15d
MS
6062015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
607
608 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
609 alignment to 2.
610
499c37b5
MS
6112015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
612
613 * emultempl/aarch64elf.em
614 (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
615
b3862264
CG
6162015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
617
618 * ldmain.c (main): Use %F instead of %X for einfo.
619
daf220f0
AM
6202015-03-02 Alan Modra <amodra@gmail.com>
621
622 * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
623
f0673d20
NC
6242015-02-27 Nick Clifton <nickc@redhat.com>
625
626 PR ld/17900
627 * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
628 sense of the following memory region attribute characters.
629
330b17b3
AM
6302015-02-27 Alan Modra <amodra@gmail.com>
631
632 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
633 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
634 eh8300sxelf_linux.c): Do not invoke genscripts here.
635 * Makefile.in: Regenerate.
636
685080f2
NC
6372015-02-24 Nick Clifton <nickc@redhat.com>
638
639 * Makefile.am (ev850.c): Add dependency upon
640 $(srcdir)/emultempl/v850elf.em.
641 (ev850_rh850.c): Likewise.
642 * Makefile.in: Regenerate.
643 * emultempl/v850elf.em: New file.
644 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
645 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
646 * scripttempl/v850.sc: Add .note.renesas section.
647 * scripttempl/v850_rh850.sc: Likewise.
648
cb072816
SKS
6492015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
650
651 * scripttempl/avr.sc: Add new user_signatures region. Define and
652 use symbols for all region lengths.
653 * scripttempl/avrtiny.sc: Define and use symbols for all region
654 lengths.
655
5518c738
YS
6562015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
657
658 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
659 * Makefile.in: Regenerate.
660 * configure.tgt: Add h8300-*-linux
661 * emulparams/h8300elf_linux.sh: Add new emulation.
662 * emulparams/h8300helf_linux.sh: Likewise.
663 * emulparams/h8300self_linux.sh: Likewise.
664 * emulparams/h8300sxelf_linux.sh: Likewise.
665
f971c12f
NC
6662015-02-23 Nick Clifton <nickc@redhat.com>
667
668 * lexsup.c (parse_args): Produce a more reasonable error message
669 when -ixxx or -rxxx is the last option on the linker command line.
670
f58926a6
L
6712015-02-14 H.J. Lu <hongjiu.lu@intel.com>
672
673 PR ld/17973
674 * testplug2.c (allsymbolsread_silent): New.
675 (set_register_hook): Handle allsymbolsreadsilent.
676 (onall_symbols_read): Skip a message if allsymbolsread_silent is
677 TRUE.
678
ce875075
AM
6792015-02-14 Alan Modra <amodra@gmail.com>
680
681 PR ld/17973
682 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
683 * ldlang.c (lang_process): Don't set loading_lto_outputs.
684 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
685 to bfd.
686 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
687
b0619670
L
6882015-02-13 H.J. Lu <hongjiu.lu@intel.com>
689
690 * NEWS: Mention support for LLVM plugin.
691
66bc8739
AM
6922015-02-13 Alan Modra <amodra@gmail.com>
693
694 * ld.texinfo (Options <--defsym>): Correct cross reference.
695
88b9e2eb
L
6962015-02-11 H.J. Lu <hongjiu.lu@intel.com>
697
698 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
699 option compatibility.
700
45e81354
L
7012015-02-11 H.J. Lu <hongjiu.lu@intel.com>
702
703 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
704 "error:" for LDPL_FATAL and LDPL_ERROR.
705 * testplug2.c (parse_option): Handle fatal, error and warning.
706
e3001fd9
L
7072015-02-11 H.J. Lu <hongjiu.lu@intel.com>
708
709 * testplug2.c (dump_tv_tag): Removed.
710 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
711 closed.
712 * testplug3.c (dump_tv_tag): Removed.
713 (onclaim_file): Fix typo.
714
7275e869
L
7152015-02-11 H.J. Lu <hongjiu.lu@intel.com>
716
717 PR ld/17878
718 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
719 libldtestplug3.la.
720 (libldtestplug2_la_SOURCES): New.
721 (libldtestplug2_la_CFLAGS): Likewise.
722 (libldtestplug2_la_LDFLAGS): Likewise.
723 (libldtestplug3_la_SOURCES): New.
724 (libldtestplug3_la_CFLAGS): Likewise.
725 (libldtestplug3_la_LDFLAGS): Likewise.
726 * Makefile.in: Regenerated.
727 * testplug2.c: New file.
728 * testplug3.c: Likewise.
729
b9dc5a87
L
7302015-02-11 H.J. Lu <hongjiu.lu@intel.com>
731
732 PR ld/17878
733 * plugin.c: Include ../bfd/plugin.h.
734 (plugin_get_ir_dummy_bfd): Call bfd_create with
735 link_info.output_bfd instead of srctemplate. Copy BFD info
736 from srctemplate only if it doesn't use BFD plugin target
737 vector.
738 (plugin_load_plugins): Call register_ld_plugin_object_p with
739 (plugin_object_p)
740 (plugin_maybe_claim): Renamed to ...
741 (plugin_object_p): This. Return dummy BFD target vector if
742 input is calimed by plugin library, otherwise return NULL.
743 Update plugin_format and plugin_dummy_bfd.
744 (plugin_maybe_claim): New. Use plugin_object_p.
745
d319a098
L
7462015-02-10 H.J. Lu <hongjiu.lu@intel.com>
747
748 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
749
38604796
L
7502015-02-10 H.J. Lu <hongjiu.lu@intel.com>
751
752 * plugin.c (plugin_input_file_t): Add use_mmap.
753 (plugin_pagesize): New.
754 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
755 (plugin_load_plugins): Initialize plugin_pagesize.
756 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
757 file.
758
fe905789
L
7592015-02-10 H.J. Lu <hongjiu.lu@intel.com>
760
761 * plugin.c (get_view): Align offset passed to mmap.
762
1d5b29cf
L
7632015-02-08 H.J. Lu <hongjiu.lu@intel.com>
764
765 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
766 if plugin isn't active or there is no thing more to claim.
767
e13419c4
L
7682015-02-08 H.J. Lu <hongjiu.lu@intel.com>
769
770 * plugin.c (plugin_maybe_claim): Check format against bfd_object
771 directly.
772
93843894
L
7732015-02-07 H.J. Lu <hongjiu.lu@intel.com>
774
775 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
776 ibfd.
777
35a1e5f3
L
7782015-02-07 H.J. Lu <hongjiu.lu@intel.com>
779
780 * plugin.c: Include "libbfd.h".
781 (plugin_strdup): New.
782 (plugin_maybe_claim): Remove the argument of pointer to struct
783 ld_plugin_input_file. Open and handle input entry.
784 * plugin.h (plugin_maybe_claim): Updated.
785 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
786 without passing a pointer to struct ld_plugin_input_file.
787 * ldmain.c: Don't include "libbfd.h".
788 (add_archive_element): Call plugin_maybe_claim directly without
789 passing a pointer to struct ld_plugin_input_file.
790
8dfef1bd
L
7912015-02-06 H.J. Lu <hongjiu.lu@intel.com>
792
793 * ld.texinfo: Document -z text, -z notext and -z textoff.
794 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
795 -z text, -z notext and -z textoff.
796
2aec968d
L
7972015-02-06 H.J. Lu <hongjiu.lu@intel.com>
798
799 * configure.ac: Add AC_FUNC_MMAP.
800 * config.in: Regenerated.
801 * configure: Likewise.
802 * plugin.c: Include <sys/mman.h>.
803 (MAP_FAILED): New. Defined if not defined.
804 (PROT_READ): Likewise.
805 (MAP_PRIVATE): Likewise.
806 (view_buffer_t): New.
807 (plugin_input_file_t): Add view_buffer.
808 (get_view): Try mmap and cache the view buffer.
809 (plugin_maybe_claim): Initialize view_buffer.
810
119d62ff
L
8112015-02-05 H.J. Lu <hongjiu.lu@intel.com>
812
813 * plugin.c (release_input_file): Set fd to -1 after closing it.
814 (plugin_maybe_claim): Close fd only if fd != -1.
815
f4b78d18
L
8162015-02-05 H.J. Lu <hongjiu.lu@intel.com>
817
818 PR ld/17878
819 * plugin.c: Include <errno.h>.
820 (errno): New. Declare if needed.
821 (plugin_input_file_t): New.
822 (get_input_file): Implemented.
823 (get_view): Likewise.
824 (release_input_file): Likewise.
825 (add_symbols): Updated.
826 (get_symbols): Likewise.
827 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
828 only for a bfd_object input.
829
6c2573b7
AM
8302015-02-02 Alan Modra <amodra@gmail.com>
831
832 * emultempl/ppc64elf.em (toc_section_name): New var.
833 (ppc_after_open): Set it.
834 (ppc_before_allocation): Use it.
835 (gld${EMULATION_NAME}_after_allocation): Here too.
836
716db898
L
8372015-01-29 H.J. Lu <hongjiu.lu@intel.com>
838
839 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
840 with link_info.lto_plugin_active.
841 * ldlang.c (lang_process): Likewise.
842 * ldmain.c (add_archive_element): Likewise.
843 * plugin.c (plugin_active_plugins_p): Removed.
844 * plugin.h (plugin_active_plugins_p): Likewise.
845
37a3056a
L
8462015-01-28 H.J. Lu <hongjiu.lu@intel.com>
847
848 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
849 ...
850 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
851
15f7a26b
L
8522015-01-28 H.J. Lu <hongjiu.lu@intel.com>
853
854 PR ld/17878
855 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
856 (get_view): New function.
857 (set_tv_header): Handle LDPT_GET_VIEW.
858 * testplug.c (tag_names): Add LDPT_GET_VIEW.
859 (tv_get_view): New.
860 (dump_tv_tag): Handle LDPT_GET_VIEW.
861 (parse_tv_tag): Likewise.
862
dbd1e97e
AM
8632015-01-28 Alan Modra <amodra@gmail.com>
864
865 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
866 * emultempl/ppc64elf.em (params): Init new field.
867 (ppc_after_open): New function.
868 (LDEMUL_AFTER_OPEN): Define.
869 * ldlang.c (lang_final): Whitespace fix.
870
3f8107ab
AM
8712015-01-28 James Bowman <james.bowman@ftdichip.com>
872
873 * Makefile.am: Add FT32 files.
874 * configure.tgt: Handle FT32 target.
875 * emulparams/elf32ft32.sh: New file.
876 * scripttempl/ft32.sc: New file.
877 * Makefile.in: Regenerate.
878
cc9ad334
SKS
8792015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
880
881 PR 4643
882 * ldexp.c (fold_name): Fold LENGTH only after
883 lang_first_phase_enum.
884 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
885 rightaway.
886 * ldlang.h (struct memory_region_struct): Add origin_exp and
887 length_exp fields.
888 * ldlang.c (lang_do_memory_regions): New.
889 (lang_memory_region_lookup): Initialize origin_exp and
890 length_exp fields.
891 (lang_process): Call lang_do_memory_regions.
892
c05b575a
AB
8932015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
894
895 * ldlang.c (print_assignment): Only evaluate the expression for a
896 PROVIDE'd assignment when the destination is being defined.
897 Display a special message for PROVIDE'd symbols that are not being
898 provided.
899
5ad18f16
AM
9002015-01-20 Alan Modra <amodra@gmail.com>
901
902 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
903 (OTHER_BSS_SYMBOLS): ..this.
904 (OTHER_PLT_RELOC_SECTIONS): Don't define.
905 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
906 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
907 (OTHER_RELRO_SECTIONS_2): ..here.
908 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
909
23283c1b
AM
9102015-01-20 Alan Modra <amodra@gmail.com>
911
912 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
913 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
914 (OTHER_RELRO_SECTIONS_2): ..here.
915 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
916 PLT_BEFORE_GOT): Define.
917 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
918 PLT_BEFORE_GOT combination.
919 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
920
3e2b0f31
AM
9212015-01-20 Alan Modra <amodra@gmail.com>
922
923 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
924 (OTHER_RELRO_SECTIONS_2): ..here, new define.
925 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
926
c4621b33
AM
9272015-01-19 Alan Modra <amodra@gmail.com>
928
3e2aa5bb 929 PR ld/17615
c4621b33
AM
930 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
931
52db4ec2
JW
9322015-01-14 Jiong Wang <jiong.wang@arm.com>
933
934 * ld-arm/elf32-reject.s: New testcase.
935 * ld-arm/elf32-reject.d: Likewise.
936 * ld-arm/elf32-reject-pie.s: Likewise.
937 * ld-arm/elf32-reject-pie.d: Likewise.
938 * ld-arm/arm-elf.exp: Run new testcases.
939 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
940 * ld-arm/ifunc-7.rd: Likewise.
941 * ld-arm/ifunc-7.gd: Likewise.
942 * ld-arm/ifunc-7.dd: Likewise.
943 * ld-arm/ifunc-8.s: Likewise.
944 * ld-arm/ifunc-8.rd: Likewise.
945 * ld-arm/ifunc-8.gd: Likewise.
946 * ld-arm/ifunc-8.dd: Likewise.
947
efd321f9
AM
9482015-01-01 Alan Modra <amodra@gmail.com>
949
950 * ldver.c (ldversion): Just print current year.
951
b90efa5b 9522015-01-01 Alan Modra <amodra@gmail.com>
ca0694ad 953
b90efa5b 954 Update year range in copyright notice of all files.
ca0694ad 955
b90efa5b 956For older changes see ChangeLog-2014
252b5132 957\f
b90efa5b 958Copyright (C) 2015 Free Software Foundation, Inc.
752937aa
NC
959
960Copying and distribution of this file, with or without modification,
961are permitted in any medium without royalty provided the copyright
962notice and this notice are preserved.
963
252b5132
RH
964Local Variables:
965mode: change-log
966left-margin: 8
967fill-column: 74
968version-control: never
969End: