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