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