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