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