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