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