Allow "unlimited" abbreviations
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
c1b00498
MR
12019-06-07 Maciej W. Rozycki <macro@wdc.com>
2
3 * ld.texi (Options): Also document `-rpath' option restrictions
4 in the description of the option itself.
5
237df8fe
SD
62019-06-06 Sudakshina Das <sudi.das@arm.com>
7
8 * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
9 * testsuite/ld-aarch64/property-bti-pac4-a.d: New test.
10 * testsuite/ld-aarch64/property-bti-pac4-b.d: New test.
11 * testsuite/ld-aarch64/property-bti-pac4.s: New test.
12
8bf6d176
SD
132019-06-06 Sudakshina Das <sudi.das@arm.com>
14
15 * NEWS: Update options names.
16 * emultempl/aarch64elf.em (OPTION_FORCE_BTI, OPTION_PAC_PLT): Remove.
17 (PARSE_AND_LIST_LONGOPTS): Remove force-bti and pac-plt.
18 (PARSE_AND_LIST_OPTIONS): Update to -z.
19 (PARSE_AND_LIST_ARGS_CASE_Z_AARCH64): New.
20 (PARSE_AND_LIST_ARGS_CASE_Z): Add PARSE_AND_LIST_ARGS_CASE_Z_AARCH64.
21 (PARSE_AND_LIST_ARGS_CASES): Move cases for these options.
22 * testsuite/ld-aarch64/bti-pac-plt-1.d: Update option.
23 * testsuite/ld-aarch64/bti-pac-plt-2.d: Likewise.
24 * testsuite/ld-aarch64/bti-plt-1.d: Likewise.
25 * testsuite/ld-aarch64/bti-plt-2.d: Likewise.
26 * testsuite/ld-aarch64/bti-plt-3.d: Likewise.
27 * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
28 * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
29 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
30 * testsuite/ld-aarch64/bti-warn.d: Likewise.
31 * testsuite/ld-aarch64/pac-plt-1.d: Likewise.
32 * testsuite/ld-aarch64/pac-plt-2.d: Likewise.
33
ae9ac79e
NC
342019-05-30 Nick Clifton <nickc@redhat.com>
35
36 PR 24627
37 * testsuite/ld-elf/ver_def.vd: Update expected output.
38
6ff185b8
AM
392019-05-30 Alan Modra <amodra@gmail.com>
40
41 PR 24596
42 * emulparams/m9s12zelf.sh (TEMPLATE_NAME): Set to generic.
43 (EXTRA_EM_FILE): Define to genelf.
44 * testsuite/lib/ld-lib.exp (uses_genelf): Add s12z.
45
1336939d
AM
462019-05-30 Alan Modra <amodra@gmail.com>
47
48 * testsuite/lib/ld-lib.exp (run_ld_link_tests): Support procedure
49 calls in optional "xfail" args.
50 (run_ld_link_exec_tests): Likewise.
51 (is_generic): New.
52 (uses_genelf): Rename from is_generic_elf. Delete bogus semicolons.
53 * testsuite/ld-scripts/align.exp: Rename is_generic_elf call.
54 * testsuite/ld-elf/elf.exp: Use is_generic and uses_genelf. Delete
55 xfail_implib var.
56 * testsuite/ld-elf/sec64k.exp: Use is_generic.
57 * testsuite/ld-elf/shared.exp: Likewise.
58 * testsuite/ld-discard/extern.d: Use is_generic in xfail.
59 * testsuite/ld-discard/start.d: Likewise.
60 * testsuite/ld-discard/static.d: Likewise.
61 * testsuite/ld-elf/attributes.d: Likewise.
62 * testsuite/ld-elf/group1.d: Likewise.
63 * testsuite/ld-elf/group3b.d: Likewise.
64 * testsuite/ld-elf/group8a.d: Likewise.
65 * testsuite/ld-elf/group8b.d: Likewise.
66 * testsuite/ld-elf/group9a.d: Likewise.
67 * testsuite/ld-elf/group9b.d: Likewise.
68 * testsuite/ld-elf/linkonce2.d: Likewise.
69 * testsuite/ld-elf/merge2.d: Likewise.
70 * testsuite/ld-elf/merge3.d: Likewise.
71 * testsuite/ld-elf/pr12851.d: Likewise.
72 * testsuite/ld-elf/pr12975.d: Likewise.
73 * testsuite/ld-elf/pr13177.d: Likewise.
74 * testsuite/ld-elf/pr13195.d: Likewise.
75 * testsuite/ld-elf/pr17550c.d: Likewise.
76 * testsuite/ld-elf/pr17550d.d: Likewise.
77 * testsuite/ld-elf/pr17615.d: Likewise.
78 * testsuite/ld-elf/pr21562a.d: Likewise.
79 * testsuite/ld-elf/pr21562b.d: Likewise.
80 * testsuite/ld-elf/pr21562c.d: Likewise.
81 * testsuite/ld-elf/pr21562d.d: Likewise.
82 * testsuite/ld-elf/pr21562i.d: Likewise.
83 * testsuite/ld-elf/pr21562j.d: Likewise.
84 * testsuite/ld-elf/pr21562k.d: Likewise.
85 * testsuite/ld-elf/pr21562l.d: Likewise.
86 * testsuite/ld-elf/pr21562m.d: Likewise.
87 * testsuite/ld-elf/pr21562n.d: Likewise.
88 * testsuite/ld-elf/pr22677.d: Likewise.
89 * testsuite/ld-elf/pr22836-1a.d: Likewise.
90 * testsuite/ld-elf/pr22836-1b.d: Likewise.
91 * testsuite/ld-elf/warn3.d: Likewise.
92 * testsuite/ld-elf/warn1.d: Likewise and xfail sparc solaris
93 targets rather than notarget.
94 * testsuite/ld-elf/compressed1d.d: Use uses_genelf in xfail.
95 * testsuite/ld-elf/orphan-10.d: Likewise.
96 * testsuite/ld-elf/orphan-9.d: Likewise.
97 * testsuite/ld-elf/orphan-region.d: Likewise.
98 * testsuite/ld-elf/orphan.d: Likewise.
99 * testsuite/ld-elf/orphan3.d: Likewise.
100 * testsuite/ld-elf/pr20528a.d: Likewise.
101 * testsuite/ld-elf/pr20528b.d: Likewise.
102 * testsuite/ld-elf/pr23658-1a.d: Likewise.
103 * testsuite/ld-elf/pr23658-1b.d: Likewise.
104 * testsuite/ld-elf/pr349.d: Likewise.
105 * testsuite/ld-elf/warn2.d: Likewise and xfail sparc solaris
106 targets rather than notarget.
107 * testsuite/ld-elf/merge.d: Correct ms1-*-* to mt-*-*.
108
1e129bbe
FS
1092019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
110
111 * testsuite/ld-mips-elf/undefweak-overflow.s: Remove test case
112 for pcrel_hi/pcrel_lo.
113 * testsuite/ld-mips-elf/undefweak-overflow.d: Update to match.
114 * testsuite/ld-mips-elf/reloc-pcrel-r6.s: New test source.
115 * testsuite/ld-mips-elf/reloc-pcrel-r6.d: New test linker script.
116 * testsuite/ld-mips-elf/reloc-pcrel-r6.ld: New test.
117 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
118
eabf307f
AM
1192019-05-28 Alan Modra <amodra@gmail.com>
120
121 PR 24596
122 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Check that
123 the output is coff before accessing coff tdata.
124 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
125
65f381e7
SN
1262019-05-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
127
128 * testsuite/ld-aarch64/variant_pcs-now.d: Use --hash-style=sysv.
129 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
130
3d7d6a6f
AM
1312019-05-27 Alan Modra <amodra@gmail.com>
132
133 PR 24596
134 * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): Set
135 BFS_KEEP on group signature symbol.
136
823710d5
SN
1372019-04-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
138
139 * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
140 * testsuite/ld-aarch64/variant_pcs-1.s: New asm for tests.
141 * testsuite/ld-aarch64/variant_pcs-2.s: New asm for tests.
142 * testsuite/ld-aarch64/variant_pcs-now.d: New test.
143 * testsuite/ld-aarch64/variant_pcs-r.d: New test.
144 * testsuite/ld-aarch64/variant_pcs-shared.d: New test.
145 * testsuite/ld-aarch64/variant_pcs.ld: New linker script for tests.
146
405b5bd8
AM
1472019-05-24 Alan Modra <amodra@gmail.com>
148
149 * po/BLD-POTFILES.in: Regenerate.
150
04bdff6a
AM
1512019-05-24 Alan Modra <amodra@gmail.com>
152
153 * testsuite/ld-powerpc/notoc2.d,
154 * testsuite/ld-powerpc/notoc2.s: New test.
155 * testsuite/ld-powerpc/powerpc.exp: Run it.
156
4a421c53
AM
1572019-05-24 Alan Modra <amodra@gmail.com>
158
159 * testsuite/ld-powerpc/pcrelopt.s,
160 * testsuite/ld-powerpc/pcrelopt.d,
161 * testsuite/ld-powerpc/pcrelopt.sec: New test.
162 * testsuite/ld-powerpc/powerpc.exp: Run it.
163
8376927b
JM
1642019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
165
166 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64bpf.c.
167 * Makefile.in (prefix): Regenerate.
168 * configure.tgt (targ_extra_ofiles): Add case for bpf-*-* targets.
169 * emulparams/elf64bpf.sh: New file.
170 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
171 bpf-*-* to the list of targets not supporting gc-sections.
172 * testsuite/ld-bpf/bar.s: New file.
173 * testsuite/ld-bpf/jump-1.d: Likewise.
174 * testsuite/ld-bpf/foo.s: Likewise.
175 * testsuite/ld-bpf/call-1.d: Likewise.
176 * testsuite/ld-bpf/bpf.exp: Likewise.
177 * testsuite/ld-bpf/baz.s: Likewise.
178
82d7a6f4
AM
1792019-05-23 Alan Modra <amodra@gmail.com>
180
181 PR 24576
182 * ldfile.c (enum script_open_style): New.
183 (struct script_name_list): New.
184 (ldfile_open_command_file_1): Take a script_open_style param
185 rather than booleans. Adjust callers. Only fail when -T or
186 default -T script is invoked twice.
187 (ldfile_try_open_bfd): Revert last change.
188
6ec6968b
NC
1892019-05-22 Julius Werner <jwerner@chromium.org>
190 Nick Clifton <nickc@redhat.com>
191
192 PR 24576
193 * ld/ldfile.c: (ldfile_open_command_file_1): Add new parameter -
194 is_script. If true check that the file has not already been
195 parsed as a linker script.
196 (ldfile_open_script_file): New function.
197 (ldfile_try_open_bfd): Use the new function in place of
198 ldfile_open_command_line.
199 * ldmain.c (main): Likewise.
200 * lexsup.c (parse_args): Use the new function for opening linker
201 scripts with the -T option.
202 * ldfile.h (ldfile_open_script_file): Add prototype.
203
b474a202
FS
2042019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
205
206 * testsuite/ld-mips-elf/pic-reloc-5.s: Add tests for
207 %tprel_hi and %tprel_lo relocations.
208 * testsuite/ld-mips-elf/pic-reloc-6.s: Likewise.
209 * testsuite/ld-mips-elf/pic-reloc-5.d: Update accordingly.
210 * testsuite/ld-mips-elf/pic-reloc-6.d: Likewise.
211 * testsuite/ld-mips-elf/pic-reloc-tls.ld: New test linker
212 script file.
213
304f09d0
FS
2142019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
215
216 * testsuite/ld-mips-elf/pic-reloc-5.d: New test.
217 * testsuite/ld-mips-elf/pic-reloc-6.d: New test.
218 * testsuite/ld-mips-elf/pic-reloc-7.d: New test.
219 * testsuite/ld-mips-elf/pic-reloc-5.s: New test source.
220 * testsuite/ld-mips-elf/pic-reloc-6.s: New test source.
221 * testsuite/ld-mips-elf/pic-reloc-7.s: New test source.
222 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
223
3734320d
MF
2242019-05-21 Matthew Fortune <matthew.fortune@mips.com>
225 Faraz Shahbazker <fshahbazker@wavecomp.com>
226
227 * emultempl/mipself.em (compact_branches): New static variable.
228 (mips_create_output_section_statements): Call
229 _bfd_mips_elf_compact_branches.
230 (PARSE_AND_LIST_PROLOGUE): Add OPTION_COMPACT_BRANCHES and
231 OPTION_NO_COMPACT_BRANCHES.
232 (PARSE_AND_LIST_LONGOPTS): Add compact-branches,
233 no-compact-branches.
234 (PARSE_AND_LIST_OPTIONS): Add --compact-branches,
235 --no-compact-branches.
236 (PARSE_AND_LIST_ARGS_CASES): Handle the above.
237 * ld.texinfo: Document --compact-branches, --no-compact-branches.
238 * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.dd: New test.
239 * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.nd: New test.
240 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.dd: New test.
241 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.gd: New test.
242 * testsuite/ld-mips-elf/pic-and-nonpic-1a-r6.s: New test source.
243 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.s: New test source.
244 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
245
e6f65e75
AV
2462019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
247
248 * testsuite/ld-arm/arm-elf.exp: Add tests
249 * testsuite/ld-arm/bfs-0.s: New test.
250 * testsuite/ld-arm/bfs-1.s: New test.
251 * testsuite/ld-arm/branch-futures.d: New test.
252
739b5c9c
TC
2532019-05-21 Tamar Christina <tamar.christina@arm.com>
254
255 PR ld/24373
256 * emultempl/aarch64elf.em (PARSE_AND_LIST_LONGOPTS): Add optional args
257 to flags.
258 * NEWS: Add changes to flag.
259 (PARSE_AND_LIST_OPTIONS): Update help descriptions.
260 (PARSE_AND_LIST_ARGS_CASES): Add new options to parser.
261 * testsuite/ld-aarch64/aarch64-elf.exp: Add new run_dump_tests.
262 * testsuite/ld-aarch64/erratum843419-adr.d: New test.
263 * testsuite/ld-aarch64/erratum843419-adrp.d: New test.
264 * testsuite/ld-aarch64/erratum843419-far-adr.d: New test.
265 * testsuite/ld-aarch64/erratum843419-far-full.d: New test.
266 * testsuite/ld-aarch64/erratum843419-far.s: New test.
267 * testsuite/ld-aarch64/erratum843419-full.d: New test.
268 * testsuite/ld-aarch64/erratum843419-near.s: New test.
269 * testsuite/ld-aarch64/erratum843419-no-args.d: New test.
270
7622049e
SKS
2712019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
272
273 PR ld/24571
274 * ld/testsuite/ld-avr/relax-insn-at-range-boundary.d: New test.
275 * ld/testsuite/ld-avr/relax-insn-at-range-boundary.s: New test.
276
338ba755
SKS
2772019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
278
279 PR ld/24564
280 * testsuite/ld-avr/wraparound-range-boundary.d: New test.
281 * testsuite/ld-avr/wraparound-range-boundary.s: New test.
282
d8734380
FS
2832019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
284
285 PR 14798
286 * testsuite/ld-mips-elf/reloc-6a.s: Specify .text section for
287 global code symbols.
288 * testsuite/ld-mips-elf/reloc-6b.s: Likewise.
289
af4fa23f
AM
2902019-05-17 Alan Modra <amodra@gmail.com>
291
292 PR 24567
293 * plugin.c (plugin_notice): Do not let a common symbol override
294 a non-common definition in IR.
295
dd318999
DD
2962019-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
297
298 * scripttempl/pru.sc (__init_array_begin, __init_array_begin):
299 Rename.
300
46752c37
PS
3012019-05-08 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
302
303 PR 24536
304 * ldbuildid.c (generate_build_id): Cast return value from
305 GetProcAddress in order to avoid a compile time warning.
306
e1cbf07a
AM
3072019-05-06 Alan Modra <amodra@gmail.com>
308
309 * testsuite/ld-undefined/weak-undef.exp: Don't xfail pj.
310
27cdfa03
AM
3112019-05-04 Alan Modra <amodra@gmail.com>
312
313 * testsuite/ld-scripts/fill.d: Don't xfail m32c
314 * testsuite/ld-scripts/fill16.d: Likewise.
315
a288c270
AM
3162019-05-04 Alan Modra <amodra@gmail.com>
317
318 PR 24511
319 * testsuite/ld-elf/pr14156a.d: Allow for .init/.fini being a
320 data section on hppa64.
321 * testsuite/ld-elf/pr14156b.d: Likewise.
322 * testsuite/ld-scripts/pr18963.t: Map standard sections to set
323 output section flags.
324 * testsuite/ld-scripts/sane1.t: Likewise.
325 * testsuite/ld-elf/init-fini-arrays.s: Reference __init_array_start
326 and __fini_array_start. Define __start et al.
327 * testsuite/ld-elf/pr24511.d: New test.
328
066f4018
AM
3292019-04-30 Alan Modra <amodra@gmail.com>
330
331 * testsuite/ld-powerpc/elfv2exe.d: Update.
332 * testsuite/ld-powerpc/elfv2so.d: Update.
333 * testsuite/ld-powerpc/tocopt.d: Update.
334 * testsuite/ld-powerpc/tocopt.s: Update.
335 * testsuite/ld-powerpc/tocopt5.d: Update.
336 * testsuite/ld-powerpc/tocopt5.s: Update.
337 * testsuite/ld-powerpc/tocopt7.d: Update.
338 * testsuite/ld-powerpc/tocopt7.s: Update.
339 * testsuite/ld-powerpc/tocopt8.d: Update.
340 * testsuite/ld-powerpc/tocopt8.s: Update.
341
06ddcada
AM
3422019-04-30 Alan Modra <amodra@gmail.com>
343
344 * ld.texi (How GNU properties are merged): Avoid pod2man error.
345 Correct example.
346
c54f1524
L
3472019-04-26 H.J. Lu <hongjiu.lu@intel.com>
348
349 PR ld/24486
350 * testsuite/ld-plugin/lto.exp: Run PR ld/24486 tests.
351 * testsuite/ld-plugin/pr24486a.c: New file.
352 * testsuite/ld-plugin/pr24486b.c: Likewise.
353 * testsuite/ld-plugin/pr24486c.c: Likewise.
354
8e1920d6
NC
3552019-04-26 Nick Clifton <nickc@redhat.com>
356
357 * po/ru.po: Updated Russian translation.
358
a094d01f
CY
3592019-04-26 Christopher Yeleighton <giecrilj@stegny.2a.pl>
360
361 * ld.texi: Properly hyphenate the word "specific".
362
6fe014bc
L
3632019-04-25 H.J. Lu <hongjiu.lu@intel.com>
364
365 PR ld/24406
366 * ld.texi: Remove LTO warning from --wrap.
367 * plugin.c (get_symbols): Update resolution for wrapper and
368 wrapped symbols.
369 * testsuite/ld-plugin/lto.exp: Run ld/24406 tests.
370 * testsuite/ld-plugin/pr24406-1.c: New file.
371 * testsuite/ld-plugin/pr24406-2a.c: Likewise.
372 * testsuite/ld-plugin/pr24406-2b.c: Likewise.
373
68bb0359
SD
3742019-04-25 Sudakshina Das <sudi.das@arm.com>
375
376 * testsuite/ld-aarch64/bti-pac-plt-1.d: Update.
377 * testsuite/ld-aarch64/bti-pac-plt-2.d: Update.
378 * testsuite/ld-aarch64/bti-plt-1.d: Update.
379 * testsuite/ld-aarch64/bti-plt-3.d: Update.
380 * testsuite/ld-aarch64/bti-plt-5.d: Update.
381 * testsuite/ld-aarch64/pac-plt-1.d: Update.
382 * testsuite/ld-aarch64/pac-plt-2.d: Update.
383
44ed8092
SL
3842019-04-24 Sandra Loosemore <sandra@codesourcery.com>
385
386 * testsuite/config/default.exp: Use [check_compiler_available]
387 instead of [which $CC].
388 * testsuite/ld-auto-import/auto-import.exp: Likewise.
389 * testsuite/ld-cygwin/exe-export.exp: Likewise.
390 * testsuite/ld-elf/audit.exp: Likewise.
391 * testsuite/ld-elf/compress.exp: Likewise.
392 * testsuite/ld-elf/dwarf.exp: Likewise.
393 * testsuite/ld-elf/elf.exp: Likewise.
394 * testsuite/ld-elf/indirect.exp: Likewise.
395 * testsuite/ld-elf/linux-x86.exp: Likewise.
396 * testsuite/ld-elf/shared.exp: Likewise.
397 * testsuite/ld-elf/tls.exp: Likewise.
398 * testsuite/ld-elf/wrap.exp: Likewise.
399 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
400 * testsuite/ld-elfvers/vers.exp: Likewise.
401 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
402 * testsuite/ld-elfweak/elfweak.exp: Likewise.
403 * testsuite/ld-gc/gc.exp: Likewise.
404 * testsuite/ld-i386/i386.exp: Likewise.
405 * testsuite/ld-i386/no-plt.exp: Likewise.
406 * testsuite/ld-i386/tls.exp: Likewise.
407 * testsuite/ld-ifunc/ifunc.exp: Likewise.
408 * testsuite/ld-mn10300/mn10300.exp: Likewise.
409 * testsuite/ld-pe/pe-compile.exp: Likewise.
410 * testsuite/ld-pe/pe-run.exp: Likewise.
411 * testsuite/ld-pe/pe-run2.exp: Likewise.
412 * testsuite/ld-pie/pie.exp: Likewise.
413 * testsuite/ld-plugin/lto.exp: Likewise.
414 * testsuite/ld-plugin/plugin.exp: Likewise.
415 * testsuite/ld-scripts/crossref.exp: Likewise.
416 * testsuite/ld-sh/sh.exp: Likewise.
417 * testsuite/ld-shared/shared.exp: Likewise.
418 * testsuite/ld-size/size.exp: Likewise.
419 * testsuite/ld-srec/srec.exp: Likewise.
420 * testsuite/ld-undefined/undefined.exp: Likewise.
421 * testsuite/ld-unique/unique.exp: Likewise.
422 * testsuite/ld-x86-64/mpx.exp: Likewise.
423 * testsuite/ld-x86-64/no-plt.exp: Likewise.
424 * testsuite/ld-x86-64/tls.exp: Likewise.
425 * testsuite/ld-x86-64/x86-64.exp: Likewise.
426 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Call
427 check_compiler_available before trying to use the compiler.
428 (run_cc_link_tests): Likewise.
429 (check_compiler_available): New. Use it instead of [which $CC].
430
cc9519e7
AM
4312019-04-23 Alan Modra <amodra@gmail.com>
432
433 * Makefile.am (GENDEPDIR): New var, used..
434 (GENSCRIPTS): ..here.
435 * Makefile.in: Regenerate.
436 * genscripts.sh: Test for $DEPDIR set before every use.
437
6f38008b
MF
4382019-04-22 Matthew Fortune <matthew.fortune@mips.com>
439
440 * testsuite/ld-mips-elf/mips-elf-flags.exp: Fix expected ASEs
441 for M5100.
442
fce97736
AM
4432019-04-19 Alan Modra <amodra@gmail.com>
444
445 * testsuite/ld-gc/skip-map-discarded.s: Add section attributes.
446 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
447 s12z to list of targets not supporting --gc-sections.
448
9a7f0679
L
4492019-04-17 H.J. Lu <hongjiu.lu@intel.com>
450
451 * testsuite/ld-i386/i386.exp: Run pr18801a and pr18801b instead
452 of pr18801.
453 * testsuite/ld-x86-64/x86-64.exp: Likewise.
454 * testsuite/ld-i386/pr18801.d: Removed.
455 * testsuite/ld-x86-64/pr18801.d: Likewise.
456 * testsuite/ld-i386/pr18801a.d: New file.
457 * testsuite/ld-i386/pr18801b.d: Likewise.
458 * testsuite/ld-x86-64/pr18801a.d: Likewise.
459 * testsuite/ld-x86-64/pr18801b.d: Likewise.
460 * testsuite/ld-x86-64/pie2.d: Suggest -fPIE instead of -fPIC.
461 * testsuite/ld-x86-64/pie2.d: Likewise.
462 * testsuite/ld-x86-64/pr19719.d: Likewise.
463 * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
464 * testsuite/ld-x86-64/pr19969.d: Likewise.
465 * testsuite/ld-x86-64/pr21997-1a.err: Likewise.
466 * testsuite/ld-x86-64/pr21997-1b.err: Likewise.
467 * testsuite/ld-x86-64/pr22001-1a.err: Likewise.
468 * testsuite/ld-x86-64/pr22001-1b.err: Likewise.
469 * testsuite/ld-x86-64/pr22791-1.err: Likewise.
470
4e84a8f8
L
4712019-04-17 H.J. Lu <hongjiu.lu@intel.com>
472
473 PR ld/24458
474 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24458 tests.
475 * testsuite/ld-x86-64/pr24458.s: New file.
476 * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
477 * testsuite/ld-x86-64/pr24458a.d: Likewise.
478 * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
479 * testsuite/ld-x86-64/pr24458b.d: Likewise.
480 * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
481 * testsuite/ld-x86-64/pr24458c.d: Likewise.
482
e25de718
JL
4832019-04-17 Jozef Lawrynowicz <jozef.l@mittosystems.com>
484
485 * config/tc-msp430.c (msp430_make_init_symbols): Define __crt0_init_bss
486 symbol when .lower.bss or .either.bss sections exist.
487 Define __crt0_movedata when .lower.data or .either.data sections exist.
488 * testsuite/gas/msp430/either-data-bss-sym.d: New test.
489 * testsuite/gas/msp430/low-data-bss-sym.d: New test.
490 * testsuite/gas/msp430/either-data-bss-sym.s: New test source.
491 * testsuite/gas/msp430/low-data-bss-sym.s: New test source.
492 * testsuite/gas/msp430/msp430.exp: Run new tests.
493 Enable large code model when running -mdata-region={upper,either}
494 tests.
495
a0fb9615
AM
4962019-04-16 Alan Modra <amodra@gmail.com>
497
498 * testsuite/ld-scripts/pr20302.d: Don't run for ns32k-*-*.
499 * testsuite/ld-scripts/section-match-1.d: Likewise.
500 * testsuite/ld-undefined/require-defined.exp: Likewise.
501
86333705
FS
5022019-04-15 Faraz Shahbazker <fshahbazker@wavecomp.com>
503
504 * testsuite/ld-gc/gc.exp: Skip print-map-discarded test for non-ELF
505 targets.
506
f6b2b12d
AV
5072019-04-15 Sudakshina Das <sudi.das@arm.com>
508
509 * testsuite/ld-arm/bfcsel.s: New.
510 * testsuite/ld-arm/bfcsel.d: New.
511 * testsuite/ld-arm/arm-elf.exp: Add above test.
512
65d1bc05
AV
5132019-04-15 Sudakshina Das <sudi.das@arm.com>
514
515 * testsuite/ld-arm/bfl.s: New.
516 * testsuite/ld-arm/bfl.d: New.
517 * testsuite/ld-arm/arm-elf.exp: Add above test.
518
4389b29a
AV
5192019-04-15 Sudakshina Das <sudi.das@arm.com>
520
521 * testsuite/ld-arm/bf.s: New.
522 * testsuite/ld-arm/bf.d: New.
523 * testsuite/ld-arm/arm-elf.exp: Add above test.
524
031254f2
AV
5252019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
526
527 * testsuite/ld-arm/attr-merge-13.attr: New test.
528 * testsuite/ld-arm/attr-merge-13a.s: New test.
529 * testsuite/ld-arm/attr-merge-13b.s: New test.
530
c40e31a1
AM
5312019-04-13 Alan Modra <amodra@gmail.com>
532
533 * Makefile.am (GENSCRIPTS): Pass LIB_PATH as a parameter. Add
534 DEPDIR parameter.
535 (ELF_DEPS, ELF_GEN_DEPS, ELF_X86_DEPS): Delete.
536 (ALL_EMULATION_SOURCES, ALL_64_EMULATION_SOURCES): Depend on
537 $GEN_DEPENDS.
538 (e*.c): Delete all dependencies, instead include dependencies
539 from $DEPDIR/*.Pc.
540 * Makefile.in: Regenerate.
541 * configure.ac (source_sh): Define and use function.
542 * configure: Regenerate.
543 * emulparams/aarch64cloudabib.sh, * emulparams/aarch64elf32b.sh,
544 * emulparams/aarch64elfb.sh, * emulparams/aarch64fbsdb.sh,
545 * emulparams/aarch64linux32b.sh, * emulparams/aarch64linuxb.sh,
546 * emulparams/arcelf.sh, * emulparams/arcelf_prof.sh,
547 * emulparams/arclinux.sh, * emulparams/arclinux_nps.sh,
548 * emulparams/arclinux_prof.sh, * emulparams/arcv2elf.sh,
549 * emulparams/arcv2elfx.sh, * emulparams/armelf_fbsd.sh,
550 * emulparams/armelf_linux_eabi.sh,
551 * emulparams/armelf_linux_fdpiceabi.sh,
552 * emulparams/armelf_nacl.sh, * emulparams/armelf_nbsd.sh,
553 * emulparams/armelf_vxworks.sh, * emulparams/armelfb.sh,
554 * emulparams/armelfb_fbsd.sh, * emulparams/armelfb_fuchsia.sh,
555 * emulparams/armelfb_linux.sh, * emulparams/armelfb_linux_eabi.sh,
556 * emulparams/armelfb_linux_fdpiceabi.sh,
557 * emulparams/armelfb_nacl.sh, * emulparams/armelfb_nbsd.sh,
558 * emulparams/armsymbian.sh, * emulparams/cskyelf_linux.sh,
559 * emulparams/elf32_sparc_sol2.sh,
560 * emulparams/elf32_sparc_vxworks.sh, * emulparams/elf32_tic6x_be.sh,
561 * emulparams/elf32_tic6x_elf_be.sh,
562 * emulparams/elf32_tic6x_elf_le.sh,
563 * emulparams/elf32_tic6x_linux_be.sh,
564 * emulparams/elf32_tic6x_linux_le.sh,
565 * emulparams/elf32_x86_64.sh, * emulparams/elf32_x86_64_nacl.sh,
566 * emulparams/elf32b4300.sh, * emulparams/elf32bfinfd.sh,
567 * emulparams/elf32bmipn32.sh, * emulparams/elf32bsmip.sh,
568 * emulparams/elf32btsmip.sh, * emulparams/elf32btsmip_fbsd.sh,
569 * emulparams/elf32btsmipn32.sh, * emulparams/elf32btsmipn32_fbsd.sh,
570 * emulparams/elf32ebmip.sh, * emulparams/elf32ebmipvxworks.sh,
571 * emulparams/elf32elmip.sh, * emulparams/elf32elmipvxworks.sh,
572 * emulparams/elf32frvfd.sh, * emulparams/elf32l4300.sh,
573 * emulparams/elf32lm32fd.sh, * emulparams/elf32lmip.sh,
574 * emulparams/elf32lppc.sh, * emulparams/elf32lppclinux.sh,
575 * emulparams/elf32lppcnto.sh, * emulparams/elf32lppcsim.sh,
576 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
577 * emulparams/elf32lriscv.sh, * emulparams/elf32lriscv_ilp32.sh,
578 * emulparams/elf32lriscv_ilp32f.sh, * emulparams/elf32lsmip.sh,
579 * emulparams/elf32ltsmip.sh, * emulparams/elf32ltsmip_fbsd.sh,
580 * emulparams/elf32ltsmipn32.sh, * emulparams/elf32ltsmipn32_fbsd.sh,
581 * emulparams/elf32microblazeel.sh, * emulparams/elf32or1k_linux.sh,
582 * emulparams/elf32ppc.sh, * emulparams/elf32ppc_fbsd.sh,
583 * emulparams/elf32ppccommon.sh, * emulparams/elf32ppclinux.sh,
584 * emulparams/elf32ppcnto.sh, * emulparams/elf32ppcsim.sh,
585 * emulparams/elf32ppcvxworks.sh, * emulparams/elf32ppcwindiss.sh,
586 * emulparams/elf32tilegx_be.sh, * emulparams/elf64_ia64_fbsd.sh,
587 * emulparams/elf64_sparc_fbsd.sh, * emulparams/elf64_sparc_sol2.sh,
588 * emulparams/elf64alpha_fbsd.sh, * emulparams/elf64alpha_nbsd.sh,
589 * emulparams/elf64bmip-defs.sh, * emulparams/elf64bmip.sh,
590 * emulparams/elf64btsmip.sh, * emulparams/elf64btsmip_fbsd.sh,
591 * emulparams/elf64lppc.sh, * emulparams/elf64lriscv-defs.sh,
592 * emulparams/elf64lriscv.sh, * emulparams/elf64lriscv_lp64.sh,
593 * emulparams/elf64lriscv_lp64f.sh, * emulparams/elf64ltsmip.sh,
594 * emulparams/elf64ltsmip_fbsd.sh, * emulparams/elf64ppc.sh,
595 * emulparams/elf64ppc_fbsd.sh, * emulparams/elf64rdos.sh,
596 * emulparams/elf64tilegx_be.sh, * emulparams/elf_i386.sh,
597 * emulparams/elf_i386_be.sh, * emulparams/elf_i386_fbsd.sh,
598 * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386_nacl.sh,
599 * emulparams/elf_i386_sol2.sh, * emulparams/elf_i386_vxworks.sh,
600 * emulparams/elf_iamcu.sh, * emulparams/elf_k1om.sh,
601 * emulparams/elf_k1om_fbsd.sh, * emulparams/elf_l1om.sh,
602 * emulparams/elf_l1om_fbsd.sh, * emulparams/elf_x86_64.sh,
603 * emulparams/elf_x86_64_cloudabi.sh,
604 * emulparams/elf_x86_64_fbsd.sh, * emulparams/elf_x86_64_nacl.sh,
605 * emulparams/elf_x86_64_sol2.sh, * emulparams/h8300helf.sh,
606 * emulparams/h8300helf_linux.sh, * emulparams/h8300hnelf.sh,
607 * emulparams/h8300self.sh, * emulparams/h8300self_linux.sh,
608 * emulparams/h8300snelf.sh, * emulparams/h8300sxelf.sh,
609 * emulparams/h8300sxelf_linux.sh, * emulparams/h8300sxnelf.sh,
610 * emulparams/hppanbsd.sh, * emulparams/hppaobsd.sh,
611 * emulparams/m32rlelf.sh, * emulparams/m32rlelf_linux.sh,
612 * emulparams/m68kelfnbsd.sh, * emulparams/mn10300.sh,
613 * emulparams/msp430X.sh, * emulparams/nds32belf.sh,
614 * emulparams/nds32belf16m.sh, * emulparams/nds32belf_linux.sh,
615 * emulparams/pjlelf.sh, * emulparams/ppclynx.sh,
616 * emulparams/score7_elf.sh, * emulparams/shelf_fd.sh,
617 * emulparams/shelf_linux.sh, * emulparams/shelf_nbsd.sh,
618 * emulparams/shelf_uclinux.sh, * emulparams/shelf_vxworks.sh,
619 * emulparams/shl.sh, * emulparams/shlelf.sh,
620 * emulparams/shlelf_fd.sh, * emulparams/shlelf_nbsd.sh,
621 * emulparams/shlelf_vxworks.sh: Use source_sh.
622 * genscripts.sh: Adjust for changed parameters. Emit dependencies
623 for e*.c to .deps/*.Pc.
624 (source_sh): New function, use it throughout to source scripts.
625 * genscrba.sh (source_em): Use source_sh.
626
50ff67e6
AM
6272019-04-13 Alan Modra <amodra@gmail.com>
628
629 * configure.ac (TDIRS): Build up tdirs in this variable and
630 AC_SUBST, also using AM_SUBST_NOTMAKE.
631 * configure: Regenerate.
632 * Makefile.am (DISTCLEANFILES): Remove tdirs.
633 * Makefile.in: Regenerate.
634
3bbec4bd
NC
6352019-04-12 Nick Clifton <nickc@redhat.com>
636
637 PR 24450
638 * ld.texi (Output Section Attributes): Add ALIGN_WITH_INPUT to
639 example of section attributes.
640
035801ce
FS
6412019-04-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
642
643 * NEWS: Mention new option --no-print-map-discarded.
644 * ld.h (ld_config_type) <print_map_discarded>: New field.
645 * ldlang.c (lang_map): Conditionally output discarded sections
646 in map files based on configuration option.
647 * ldlex.h (option_values) <OPTION_PRINT_MAP_DISCARDED,
648 OPTION_NO_PRINT_MAP_DISCARDED>: New.
649 * ldmain.c (main): Enabled print_map_discarded by default.
650 * lexsup.c (ld_options): Add new command-line options.
651 (parse_args) <OPTION_NO_PRINT_MAP_DISCARDED,
652 OPTION_PRINT_MAP_DISCARDED>: New cases.
653 * ld.texi: Document new options.
654 * testsuite/ld-gc/gc.exp: Add new test.
655 * testsuite/ld-gc/skip-map-discarded.s: New file.
656 * testsuite/ld-gc/skip-map-discarded.d: New file.
657 * testsuite/ld-gc/skip-map-discarded.map: New file.
658
233a0083
L
6592019-04-11 H.J. Lu <hongjiu.lu@intel.com>
660
661 * ld.texi: Document -z cet-report=[none|warning|error].
662 * emulparams/cet.sh: Add -z cet-report=[none|warning|error].
663 * testsuite/ld-i386/i386.exp: Run -z cet-report=[warning|error]
664 tests.
665 * testsuite/ld-x86-64/x86-64.exp: Likewise.
666 * testsuite/ld-i386/property-x86-cet1.d: New file.
667 * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
668 * testsuite/ld-i386/property-x86-cet2b.d: Likewise.
669 * testsuite/ld-i386/property-x86-cet3a.d: Likewise.
670 * testsuite/ld-i386/property-x86-cet3b.d: Likewise.
671 * testsuite/ld-i386/property-x86-cet4a.d: Likewise.
672 * testsuite/ld-i386/property-x86-cet4b.d: Likewise.
673 * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
674 * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
675 * testsuite/ld-i386/property-x86-cet6.d: Likewise.
676 * testsuite/ld-x86-64/property-x86-cet.s: Likewise.
677 * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
678 * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
679 * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
680 * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
681 * testsuite/ld-x86-64/property-x86-cet2b-x32.d: Likewise.
682 * testsuite/ld-x86-64/property-x86-cet2b.d: Likewise.
683 * testsuite/ld-x86-64/property-x86-cet3a-x32.d: Likewise.
684 * testsuite/ld-x86-64/property-x86-cet3a.d: Likewise.
685 * testsuite/ld-x86-64/property-x86-cet3b-x32.d: Likewise.
686 * testsuite/ld-x86-64/property-x86-cet3b.d: Likewise.
687 * testsuite/ld-x86-64/property-x86-cet4a-x32.d: Likewise.
688 * testsuite/ld-x86-64/property-x86-cet4a.d: Likewise.
689 * testsuite/ld-x86-64/property-x86-cet4b-x32.d: Likewise.
690 * testsuite/ld-x86-64/property-x86-cet4b.d: Likewise.
691 * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
692 * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
693 * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
694 * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
695 * testsuite/ld-x86-64/property-x86-cet6-x32.d: Likewise.
696 * testsuite/ld-x86-64/property-x86-cet6.d: Likewise.
697
b3d7a867
L
6982019-04-11 H.J. Lu <hongjiu.lu@intel.com>
699
700 * testsuite/config/default.exp (STATIC_PIE_LDFLAGS): New. Set
701 to "-static-pie" if target compiler supports it.
702 * testsuite/ld-elf/elf.exp: Run -static-pie tests if
703 $STATIC_PIE_LDFLAGS isn't empty.
704 * testsuite/ld-ifunc/ifunc.exp: Likewise.
705
ce12121b
TC
7062019-04-11 Tamar Christina <tamar.christina@arm.com>
707
708 PR ld/24302
709 * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
710 * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: New test.
711
795e3bb7
L
7122019-04-10 H.J. Lu <hongjiu.lu@intel.com>
713
714 * scripttempl/elf.sc (CREATE_PIC): New. Set for CREATE_SHLIB or
715 CREATE_PIE.
716 (__rel_iplt_start): Don't define for CREATE_PIC.
717 (__rel_iplt_end): Likewise.
718 (__rela_iplt_start): Likewise.
719 (__rela_iplt_end): Likewise.
720
e6aded7c
AM
7212019-04-10 Alan Modra <amodra@gmail.com>
722
723 * testsuite/ld-elf/shared.exp: Don't xfail PR ld/20995 for
724 powerpc-nto.
725
53b81c6d
AM
7262019-04-10 Alan Modra <amodra@gmail.com>
727
728 * emultempl/cskyelf.em (csk_elf_before_parse): New function,
729 setting use_branch_stub false for linux.
730 (csky_elf_create_output_section_statements): Do emit this
731 function and all others in the file for linux, plus the branch
732 option control. Disable branch stubs when non-ELF.
733
c55b17b8
AM
7342019-04-10 Alan Modra <amodra@gmail.com>
735
736 * Makefile.am (eskyelf.c, eskyelf_linux.c): Depend on cskyelf.em.
737 (ecskyelf_linux.c): Depend on cskyelf.sh.
738 (eelf32microblazeel.c): Depend on elf32microblaze.sh.
739 * Makefile.in: Regenerate.
740 * emulparams/cskyelf.sh: Comment regarding cskelf_linux.sh.
741 (PAGE_SIZE): Don't define.
742 * emulparams/cskyelf_linux.sh: Source sckyelf.sh, leaving just
743 the differing variable defs/undefs.
744 * emulparams/elf32mcore.sh (PAGE_SIZE): Don't define.
745 * emulparams/elf32microblaze.sh: Comment re. elf32microblazeel.sh.
746 (OUTPUT_FORMAT): Use BIG_OUTPUT_FORMAT.
747 (PAGE_SIZE): Don't define.
748 * emulparams/elf32microblazeel.sh: Source elf32microblaze.sh,
749 leaving just the differing OUTPUT_FORMAT.
750
6feda627
AM
7512019-04-10 Alan Modra <amodra@gmail.com>
752
753 * po/BLD-POTFILES.in: Regenerate.
754
c93c0e7f
L
7552019-04-08 H.J. Lu <hongjiu.lu@intel.com>
756
757 * testsuite/ld-elf/shared.exp: XFAIL PR ld/20995 tests for
758 lynxos and nto targets.
759
3ae61bb6
L
7602019-04-08 H.J. Lu <hongjiu.lu@intel.com>
761
762 * Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_chaos.c.
763 (eelf_i386_chaos.c): Removed.
764 * Makefile.in: Regenerated.
765 * configure.tgt: Remove i[3-7]86-*-kaos*.
766 * emulparams/elf_i386_chaos.sh: Removed.
767
da9b5f7b
L
7682019-04-08 H.J. Lu <hongjiu.lu@intel.com>
769
770 * emulparams/elf_i386_be.sh (EXTRA_EM_FILE): New.
771 * emulparams/i386moss.sh (EXTRA_EM_FILE): Likewise.
772
d970ee2b
AM
7732019-04-08 Alan Modra <amodra@gmail.com>
774
775 * emulparams/elf64rdos.sh (EXTRA_EM_FILE): Define.
776 * emulparams/i386lynx.sh (EXTRA_EM_FILE): Define.
777 * emulparams/i386nto.sh (EXTRA_EM_FILE): Define.
778
5b9c07b2
L
7792019-04-06 H.J. Lu <hongjiu.lu@intel.com>
780
781 * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emultempl/elf-x86.em.
782 (eelf_i386_sol2.c): Also depend on
783 $(srcdir)/emultempl/solaris2-x86.em.
784 (eelf_x86_64_sol2.c): Likewise.
785 * Makefile.in: Regenerated.
786 * emulparams/call_nop.sh: Set x86-specific linker options via
787 params.
788 * emulparams/cet.sh: Likewise.
789 * emulparams/reloc_overflow.sh: Likewise.
790 * emulparams/elf32_x86_64.sh (EXTRA_EM_FILE): New. Set to
791 "elf-x86".
792 * emulparams/elf_i386.sh: Likewise.
793 * emulparams/elf_i386_be.sh: Likewise.
794 * emulparams/elf_i386_chaos.sh: Likewise.
795 * emulparams/elf_i386_ldso.sh: Likewise.
796 * emulparams/elf_i386_vxworks.sh: Likewise.
797 * emulparams/elf_iamcu.sh: Likewise.
798 * emulparams/elf_k1om.sh: Likewise.
799 * emulparams/elf_l1om.sh: Likewise.
800 * emulparams/elf_x86_64.sh: Likewise.
801 * emulparams/elf_i386_sol2.sh (EXTRA_EM_FILE): Changed to
802 "solaris2-x86".
803 * emulparams/elf_x86_64_sol2.sh: Likewise.
804 * emultempl/elf-x86.em: New file.
805 * emultempl/solaris2-x86.em: Likewise.
806 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't
807 set link_info.call_nop_byte.
808
c2b1c275
AM
8092019-04-05 Alan Modra <amodra@gmail.com>
810
811 * testsuite/ld-powerpc/tlsexe32.d: Remove trailing spaces.
812 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
813 * testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
814
1c6aafe8
AM
8152019-04-03 Alan Modra <amodra@gmail.com>
816
817 PR 24411
818 ldlex.l (SYMBOLNAMECHAR1): Don't match '/'.
819 (<EXPRESSION>"/DISCARD/"): New.
820
092da96a
AM
8212019-04-03 Alan Modra <amodra@gmail.com>
822
823 * ldlex.l: Formatting.
824 (CMDFILENAMECHAR, CMDFILENAMECHAR1): Delete.
825 (FILENAMECHAR1, SYMBOLNAMECHAR1, FILENAMECHAR, WILDCHAR),
826 (NOCFILENAMECHAR): Remove duplicate chars. Reorder.
827 (SYMBOLCHARN): Likewise. Rename to SYMBOLNAMECHAR.
828 (<INPUTLIST>"$SYSROOT"..): Delete rule.
829
2487ef07
MF
8302019-03-29 Max Filippov <jcmvbkbc@gmail.com>
831
832 * testsuite/ld-xtensa/relax-undef-weak-pie-export-dynamic.d: New
833 test definition.
834 * testsuite/ld-xtensa/xtensa.exp
835 (relax-undef-weak-pie-export-dynamic): Add new test.
836
7ea79cb3 8372019-03-26 Martin Liska <mliska@suse.cz>
838
839 * plugin.c (get_symbols): Add lto_kind_str, lto_resolution_str,
840 lto_visibility_str and use then to inform about plugin-symbols.
841 * testsuite/ld-plugin/plugin-12.d: Adjust expected pattern.
842
796d6298
TC
8432019-03-25 Tamar Christina <tamar.christina@arm.com>
844
845 * testsuite/ld-arm/jump-reloc-veneers-cond-long.d: Update disassembly.
846 * testsuite/ld-arm/jump-reloc-veneers-long.d: Update disassembly.
847
4e539114
SD
8482019-03-21 Sudakshina Das <sudi.das@arm.com>
849
850 * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
851 * testsuite/ld-aarch64/bti-plt-1.s: Add .ifdef for PAC note section.
852 * testsuite/ld-aarch64/bti-plt-6.d: Update warning.
853 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
854 * testsuite/ld-aarch64/bti-warn.d: New test.
855
f84bd465
AM
8562019-03-21 Alan Modra <amodra@gmail.com>
857
858 * testsuite/ld-elf/fini2.s: Reduce alignment.
859 * testsuite/ld-elf/fini3.s: Likewise.
860 * testsuite/ld-elf/finin.s: Likewise.
861 * testsuite/ld-elf/init2.s: Likewise.
862 * testsuite/ld-elf/init3.s: Likewise.
863 * testsuite/ld-elf/initn.s: Likewise.
864 * testsuite/ld-elf/pr14156a.d: Don't xfail m68hc1*-* or xgate-*.
865 * testsuite/ld-elf/pr14156b.d: Don't xfail xgate-*.
866
2d3181c7
AM
8672019-03-21 Alan Modra <amodra@gmail.com>
868
869 * scripttempl/alpha.sc, * scripttempl/armbpabi.sc,
870 * scripttempl/crisaout.sc, * scripttempl/elf32cr16.sc,
871 * scripttempl/elf32crx.sc, * scripttempl/elf32xc16x.sc,
872 * scripttempl/elf32xc16xl.sc, * scripttempl/elf32xc16xs.sc,
873 * scripttempl/elf64hppa.sc, * scripttempl/elf_chaos.sc,
874 * scripttempl/elfarc.sc, * scripttempl/elfarcv2.sc,
875 * scripttempl/elfd30v.sc, * scripttempl/elfm68hc11.sc,
876 * scripttempl/elfm68hc12.sc, * scripttempl/elfm9s12z.sc,
877 * scripttempl/elfmicroblaze.sc, * scripttempl/elfxgate.sc,
878 * scripttempl/elfxtensa.sc, * scripttempl/epiphany_4x4.sc,
879 * scripttempl/ft32.sc, * scripttempl/i386beos.sc,
880 * scripttempl/iq2000.sc, * scripttempl/mcorepe.sc,
881 * scripttempl/mep.sc, * scripttempl/mips.sc, * scripttempl/moxie.sc,
882 * scripttempl/pe.sc, * scripttempl/pep.sc, * scripttempl/ppcpe.sc,
883 * scripttempl/tic4xcoff.sc, * scripttempl/tic80coff.sc,
884 * scripttempl/v850.sc, * scripttempl/v850_rh850.sc,
885 * scripttempl/visium.sc, * scripttempl/xstormy16.sc: Add KEEP and
886 SORT_NONE to .init and .fini wildcards.
887 * scripttempl/elf32xc16x.sc,
888 * scripttempl/elf32xc16xl.sc,
889 * scripttempl/elf32xc16xs.sc: Add .fini wildcard.
890 * scripttempl/elf_chaos.sc: Add .init output section.
891 * scripttempl/elfd30v.sc: Remove duplicate .init.
892 * scripttempl/elfm68hc11.sc, * scripttempl/elfm68hc12.sc,
893 * scripttempl/elfm9s12z.sc, * scripttempl/elfxgate.sc: Remove
894 duplicate .init, and add .fini wildcard.
895 * scripttempl/ppcpe.sc (INIT, FINI): Delete.
896 * ldlang.c (update_wild_statements): Special case .init and
897 .fini in the wildcard, not the output section.
898
980a2e42
AM
8992019-03-21 Alan Modra <amodra@gmail.com>
900
901 * emulparams/elf32lm32fd.sh (DYNAMIC_LINK): Undef.
902
3b6c1966
AM
9032019-03-21 Alan Modra <amodra@gmail.com>
904
905 * ldlang.c (lang_size_sections_1): Set SEC_KEEP on
906 create_object_symbols_section.
907 * testsuite/ld-elf/pr22319.d: Don't xfail dlx.
908
28a66f07
AM
9092019-03-18 Alan Modra <amodra@gmail.com>
910
911 * testsuite/ld-elf/merge.d: Remove csky from xfails, add moxie.
912 * testsuite/ld-elf/pr21884.d: Remove csky from xfails.
913 * testsuite/ld-elf/shared.exp: Add csky to list not xfailing pr22374.
914 * testsuite/ld-unique/pr21529.d: Remove csky from xfails
915
1c82ed74
NC
9162019-03-15 Nick Clifton <nickc@redhat.com>
917
918 PR 24262
919 * ld.texi (-plugin): Correct the path used to locate linker
920 plugins.
921
1dbade74
SD
9222019-03-13 Sudakshina Das <sudi.das@arm.com>
923
924 * NEWS: Document --pac-plt.
925 * emultempl/aarch64elf.em (OPTION_PAC_PLT): New.
926 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add pac-plt.
927 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_PAC_PLT.
928 * testsuite/ld-aarch64/aarch64-elf.exp: Add the following tests.
929 * testsuite/ld-aarch64/bti-pac-plt-1.d: New test.
930 * testsuite/ld-aarch64/bti-pac-plt-2.d: New test.
931 * testsuite/ld-aarch64/pac-plt-1.d: New test.
932 * testsuite/ld-aarch64/pac-plt-2.d: New test.
933 * testsuite/ld-aarch64/bti-plt-1.s: Add .ifndef directive.
934
37c18eed
SD
9352019-03-13 Sudakshina Das <sudi.das@arm.com>
936 Szabolcs Nagy <szabolcs.nagy@arm.com>
937
938 * NEWS: Document --force-bti.
939 * emultempl/aarch64elf.em (plt_type, bti_type, OPTION_FORCE_BTI): New.
940 (PARSE_AND_LIST_SHORTOPTS, PARSE_AND_LIST_OPTIONS): Add force-bti.
941 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_FORCE_BTI.
942 * testsuite/ld-aarch64/aarch64-elf.exp: Add all the tests below.
943 * testsuite/ld-aarch64/bti-plt-1.d: New test.
944 * testsuite/ld-aarch64/bti-plt-1.s: New test.
945 * testsuite/ld-aarch64/bti-plt-2.d: New test.
946 * testsuite/ld-aarch64/bti-plt-3.d: New test.
947 * testsuite/ld-aarch64/bti-plt-4.d: New test.
948 * testsuite/ld-aarch64/bti-plt-5.d: New test.
949 * testsuite/ld-aarch64/bti-plt-6.d: New test.
950 * testsuite/ld-aarch64/bti-plt-7.d: New test.
951 * testsuite/ld-aarch64/bti-plt-so.s: New test.
952 * testsuite/ld-aarch64/bti-plt.ld: New test.
953
cd702818
SD
9542019-03-13 Sudakshina Das <sudi.das@arm.com>
955
956 * NEWS: Document GNU_PROPERTY_AARCH64_FEATURE_1_BTI and
957 GNU_PROPERTY_AARCH64_FEATURE_1_PAC.
958 * testsuite/ld-aarch64/aarch64-elf.exp: Add run commands for new tests.
959 * testsuite/ld-aarch64/property-bti-pac1.d: New test.
960 * testsuite/ld-aarch64/property-bti-pac1.s: New test.
961 * testsuite/ld-aarch64/property-bti-pac2.d: New test.
962 * testsuite/ld-aarch64/property-bti-pac2.s: New test.
963 * testsuite/ld-aarch64/property-bti-pac3.d: New test.
964
44b27f95
L
9652019-03-13 H.J. Lu <hongjiu.lu@intel.com>
966
967 PR ld/24322
968 * testsuite/ld-i386/i386.exp: Run PR ld/24322 tests.
969 * testsuite/ld-x86-64/x86-64.exp: Likewise.
970 * testsuite/ld-i386/pr24322a.d: New file.
971 * testsuite/ld-i386/pr24322b.d: Likewise.
972 * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
973 * testsuite/ld-x86-64/pr24322a.d: Likewise.
974 * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
975 * testsuite/ld-x86-64/pr24322b.d: Likewise.
976 * testsuite/ld-x86-64/pr24322a.s: Likewise.
977 * testsuite/ld-x86-64/pr24322b.s: Likewise.
978 * testsuite/ld-x86-64/pr24322c.s: Likewise.
979
912ebfa0
NB
9802019-03-06 Nick Bowler <nbowler@draconx.ca>
981
982 PR 24289
983 * ldexp.c (fold_name): Allow lookups of the LENGTH and ORIGIN
984 attributes during the first phase.
985
24801b15
AK
9862019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
987
988 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
989 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
990
991 PR 20113
992 * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
993 * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
994 * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
995 * testsuite/ld-s390/tlsbin.dd: Likewise.
996 * testsuite/ld-s390/tlsbin.rd: Likewise.
997 * testsuite/ld-s390/tlsbin.sd: Likewise.
998 * testsuite/ld-s390/tlsbin_64.dd: Likewise.
999 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
1000 * testsuite/ld-s390/tlsbin_64.sd: Likewise.
1001 * testsuite/ld-s390/tlspic.dd: Likewise.
1002 * testsuite/ld-s390/tlspic.rd: Likewise.
1003 * testsuite/ld-s390/tlspic.sd: Likewise.
1004 * testsuite/ld-s390/tlspic_64.dd: Likewise.
1005 * testsuite/ld-s390/tlspic_64.rd: Likewise.
1006 * testsuite/ld-s390/tlspic_64.sd: Likewise.
1007 * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
1008
5cfe428c
L
10092019-02-27 H.J. Lu <hongjiu.lu@intel.com>
1010
1011 PR ld/24276
1012 * testsuite/ld-i386/i386.exp: Run PR ld/24276 test.
1013 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1014 * testsuite/ld-i386/pr24276.dso: New file.
1015 * testsuite/ld-i386/pr24276.warn: Likewise.
1016 * testsuite/ld-x86-64/pr24276.dso: Likewise.
1017 * testsuite/ld-x86-64/pr24276.warn: Likewise.
1018
eed62915
MF
10192019-02-20 Eric Tsai <erictsai@cadence.com>
1020
1021 * testsuite/ld-xtensa/call_overflow.d: New test definition.
1022 * testsuite/ld-xtensa/call_overflow1.s: New test source.
1023 * testsuite/ld-xtensa/call_overflow2.s: New test source.
1024 * testsuite/ld-xtensa/call_overflow3.s: New test source.
1025 * testsuite/ld-xtensa/xtensa.exp: Add call_overflow test.
1026
abc163a4
TS
10272019-02-14 Thomas Schwinge <thomas@codesourcery.com>
1028
1029 * testsuite/ld-elf/elf.exp: Remove Hurd XFAILs.
1030
e4865945
NC
10312019-02-12 Nick Clifton <nickc@redhat.com>
1032
1033 * po/fr.po: Updated French translation.
1034
a0e90a73
CZ
10352019-02-09 Vineet Gupta <vgupta@synopsys.com>
1036
1037 * emultempl/arclinux.em: Delete special INIT/FINI handling.
1038
5d3db3e2
NC
10392019-02-07 Nick Clifton <nickc@redhat.com>
1040
1041 PR 24175
1042 * ld.texi (Options): Add missing word to the description of the
1043 --start-group option.
1044
4249a53c
AM
10452019-02-06 Alan Modra <amodra@gmail.com>
1046
1047 PR ld/24008
1048 * testsuite/ld-scripts/pr24008.d: Pass with extra target
1049 defined symbols.
1050
83924b38
L
10512019-02-05 H.J. Lu <hongjiu.lu@intel.com>
1052
1053 PR ld/24151
1054 * testsuite/ld-x86-64/pr24151a-x32.d: New file.
1055 * testsuite/ld-x86-64/pr24151a.d: Likewise.
1056 * testsuite/ld-x86-64/pr24151a.s: Likewise.
1057 * testsuite/ld-x86-64/x86-64.exp: Run pr24151a and pr24151a-x32.
1058
4f4690cd
AM
10592019-01-31 Alan Modra <amodra@gmail.com>
1060
1061 * NEWS: Mention -t change.
1062 * ld.texi (--trace/-t): Expand documentation a little.
1063
ad0f979c
L
10642019-01-29 H.J. Lu <hongjiu.lu@intel.com>
1065
1066 PR ld/24008
1067 * testsuite/ld-scripts/defined.exp: Run pr24008.
1068 * testsuite/ld-scripts/pr24008.d: New file.
1069 * testsuite/ld-scripts/pr24008.map: Likewise.
1070 * testsuite/ld-scripts/pr24008.s: Likewise.
1071 * testsuite/ld-scripts/pr24008.t: Likewise.
1072
c49829c3
EB
10732019-01-29 Eric Botcazou <ebotcazou@adacore.com>
1074
1075 * testsuite/ld-ifunc/ifunc.exp: Skip pr23169 on SPARC.
1076
6a846243
AM
10772019-01-28 Alan Modra <amodra@gmail.com>
1078
1079 PR 24008
1080 * ldexp.h (lang_phase_type): Add lang_fixed_phase_enum.
1081 * ldexp.c (fold_name): Move expld.assign_name check later to
1082 avoid an extra lookup.
1083 (exp_fold_tree_1): When lang_fixed_phase_enum, don't change symbol
1084 values, and don't clear expld.assign_name.
1085 * ldlang.c (lang_map): Set expld.phase to lang_fixed_phase_enum.
1086 (print_assignment): Resolve entire assignment expression.
1087 Don't access symbol u.def unless symbol is defined.
1088
9ed1348c
NC
10892019-01-25 Nick Clifton <nickc@redhat.com>
1090
1091 * po/bg.po: Updated Bulgarian translation.
1092
6406a270
SH
10932019-01-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
1094
1095 * ld.texi (--wrap): Add warning that LTO may make this feature
1096 ineffective.
1097
375cd423
NC
10982019-01-21 Nick Clifton <nickc@redhat.com>
1099
1100 * po/uk.po: Updated Ukranian translation.
a6c9b404 1101 * po/pr_BR.po: Updated Brazilian Portuguese translation.
375cd423 1102
acef8081
YC
11032019-01-21 Nick Clifton <nickc@redhat.com>
1104
1105 PR 24108
1106 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Update
1107 expected error message.
1108
f48dfe41
NC
11092019-01-19 Nick Clifton <nickc@redhat.com>
1110
1111 * configure: Regenerate.
1112 * po/ld.pot: Regenerate.
1113
f974f26c
NC
11142018-06-24 Nick Clifton <nickc@redhat.com>
1115
1116 2.32 branch created.
1117
7d7a7d7c
JW
11182019-01-16 Kito Cheng <kito@andestech.com>
1119
1120 * testsuite/ld-elf/orphan-region.d: XFAIL for RISC-V, because add new
1121 section.
1122 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Add new tests.
1123 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: New test.
1124 * testsuite/ld-riscv-elf/attr-merge-arch-01a.s: Likewise.
1125 * testsuite/ld-riscv-elf/attr-merge-arch-01b.s: Likewise.
1126 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1127 * testsuite/ld-riscv-elf/attr-merge-arch-02a.s: Likewise.
1128 * testsuite/ld-riscv-elf/attr-merge-arch-02b.s: Likewise.
1129 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1130 * testsuite/ld-riscv-elf/attr-merge-arch-03a.s: Likewise.
1131 * testsuite/ld-riscv-elf/attr-merge-arch-03b.s: Likewise.
1132 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1133 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01a.s: Likewise.
1134 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01b.s: Likewise.
1135 * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
1136 * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
1137 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
1138 * testsuite/ld-riscv-elf/attr-merge-stack-align-a.s: Likewise.
1139 * testsuite/ld-riscv-elf/attr-merge-stack-align-b.s: Likewise.
1140 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-a.s: Likewise.
1141 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-b.s: Likewise.
1142 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed.d: Likewise.
1143 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
1144 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
1145 * testsuite/ld-riscv-elf/attr-merge-strict-align-01a.s: Likewise.
1146 * testsuite/ld-riscv-elf/attr-merge-strict-align-01b.s: Likewise.
1147 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
1148 * testsuite/ld-riscv-elf/attr-merge-strict-align-02a.s: Likewise.
1149 * testsuite/ld-riscv-elf/attr-merge-strict-align-02b.s: Likewise.
1150 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
1151 * testsuite/ld-riscv-elf/attr-merge-strict-align-03a.s: Likewise.
1152 * testsuite/ld-riscv-elf/attr-merge-strict-align-03b.s: Likewise.
1153 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
1154 * testsuite/ld-riscv-elf/attr-merge-strict-align-04a.s: Likewise.
1155 * testsuite/ld-riscv-elf/attr-merge-strict-align-04b.s: Likewise.
1156 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
1157 * testsuite/ld-riscv-elf/attr-merge-strict-align-05a.s: Likewise.
1158 * testsuite/ld-riscv-elf/attr-merge-strict-align-05b.s: Likewise.
1159
5a12586d
MT
11602019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1161
f466c305 1162 PR 20113
5a12586d
MT
1163 * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
1164 * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
1165 * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
1166 * testsuite/ld-s390/tlsbin.dd: Likewise.
1167 * testsuite/ld-s390/tlsbin.rd: Likewise.
1168 * testsuite/ld-s390/tlsbin.sd: Likewise.
1169 * testsuite/ld-s390/tlsbin_64.dd: Likewise.
1170 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
1171 * testsuite/ld-s390/tlsbin_64.sd: Likewise.
1172 * testsuite/ld-s390/tlspic.dd: Likewise.
1173 * testsuite/ld-s390/tlspic.rd: Likewise.
1174 * testsuite/ld-s390/tlspic.sd: Likewise.
1175 * testsuite/ld-s390/tlspic_64.dd: Likewise.
1176 * testsuite/ld-s390/tlspic_64.rd: Likewise.
1177 * testsuite/ld-s390/tlspic_64.sd: Likewise.
f466c305 1178 * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
5a12586d 1179
4ea904ed
SH
11802019-01-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
1181
1182 * ld.texi (--wrap): Add example to emphasise that only undefined
1183 references are replaced by the linker.
1184
8379fac6
NC
11852019-01-09 Nick Clifton <nickc@redhat.com>
1186
1187 * po/es.po: Updated Spanish translation.
1188
3107326d
AP
11892019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1190
1191 * configure: Regenerate.
1192
171b8e19
AM
11932019-01-08 Alan Modra <amodra@gmail.com>
1194
1195 * testsuite/ld-elf/sec64k.exp: Use . rather than $objdir in
1196 generated source file names.
1197 * testsuite/ld-m68k/m68k-got.exp: Likewise.
1198
82704155
AM
11992019-01-01 Alan Modra <amodra@gmail.com>
1200
1201 Update year range in copyright notice of all files.
1202
d5c04e1b 1203For older changes see ChangeLog-2018
3499769a 1204\f
d5c04e1b 1205Copyright (C) 2019 Free Software Foundation, Inc.
3499769a
AM
1206
1207Copying and distribution of this file, with or without modification,
1208are permitted in any medium without royalty provided the copyright
1209notice and this notice are preserved.
1210
1211Local Variables:
1212mode: change-log
1213left-margin: 8
1214fill-column: 74
1215version-control: never
1216End:
This page took 0.485645 seconds and 4 git commands to generate.