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