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