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