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