1 2020-07-10 Alan Modra <amodra@gmail.com>
3 * ld.texi (PowerPC64 ELF64): Document --no-inline-optimize,
4 --power10-stubs and --no-power10-stubs.
6 2020-07-10 Alan Modra <amodra@gmail.com>
8 * emultempl/ppc64elf.em (params): Init new field.
9 (enum ppc64_opt): Add OPTION_POWER10_STUBS and OPTION_NO_POWER10_STUBS.
10 (PARSE_AND_LIST_LONGOPTS): Support --power10-stubs and
12 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
13 * testsuite/ld-powerpc/callstub-3.d: New test.
14 * testsuite/ld-powerpc/powerpc.exp: Run it.
16 2020-07-09 Alan Modra <amodra@gmail.com>
18 * emulparams/ppcpe.sh: Delete.
19 * scripttempl/ppcpe.sc: Delete.
20 * emulparams/ppclynx.sh: Delete.
21 * Makefile.am (ALL_EMULATION_SOURCES): Remove ppc PE and lynxos.
22 * configure.tgt: Likewise.
23 * emultempl/beos.em: Remove powerpc PE support.
24 * emultempl/pe.em: Likewise.
25 * po/BLD-POTFILES.in: Regenerate.
26 * Makefile.in: Regenerate.
28 2020-07-09 Alan Modra <amodra@gmail.com>
30 * testsuite/ld-gc/gc.exp: Don't set -mminimal-toc for powerpc64,
31 and remove powerpc64 xfail. Use -fno-PIE for ppc32.
33 2020-07-09 Alan Modra <amodra@gmail.com>
36 * testsuite/ld-ifunc/ifunc.exp: Run pr18841 tests non-pie.
38 2020-07-08 Alan Modra <amodra@gmail.com>
40 * testsuite/lib/ld-lib.exp (ar_simple_create): Pass options before
42 * testsuite/ld-powerpc/aix52.exp: Run for rs6000-aix5.2. Update
44 * testsuite/ld-powerpc/aix-abs-branch-1.dd: Update.
45 * testsuite/ld-powerpc/aix-core-sec-1.hd: Update.
46 * testsuite/ld-powerpc/aix-gc-1-32.dd: Update.
47 * testsuite/ld-powerpc/aix-gc-1-64.dd: Update.
48 * testsuite/ld-powerpc/aix-glink-1-32.dd: Update.
49 * testsuite/ld-powerpc/aix-glink-1-64.dd: Update.
50 * testsuite/ld-powerpc/aix-glink-2-32.dd: Update.
51 * testsuite/ld-powerpc/aix-glink-2-64.dd: Update.
52 * testsuite/ld-powerpc/aix-no-dup-syms-1-rel.rd: Update.
53 * testsuite/ld-powerpc/aix-ref-1-32.od: Update.
54 * testsuite/ld-powerpc/aix-ref-1-64.od: Update.
55 * testsuite/ld-powerpc/aix-toc-1-32.dd: Update.
56 * testsuite/ld-powerpc/aix-toc-1-64.dd: Update.
57 * testsuite/ld-powerpc/aix-weak-3-32.dd: Update.
58 * testsuite/ld-powerpc/aix-weak-3-64.dd: Update.
59 * testsuite/ld-powerpc/aix-abs-branch-1.nd: Delete, replace with..
60 * testsuite/ld-powerpc/aix-abs-branch-1-32.nd,
61 * testsuite/ld-powerpc/aix-abs-branch-1-64.nd: ..these new files.
62 * testsuite/ld-powerpc/aix-abs-reloc-1.nd: Delete, replace with..
63 * testsuite/ld-powerpc/aix-abs-reloc-1-32.nd,
64 * testsuite/ld-powerpc/aix-abs-reloc-1-64.nd: ..these new files.
65 * testsuite/ld-powerpc/aix-abs-reloc-1.od: Delete, replace with..
66 * testsuite/ld-powerpc/aix-abs-reloc-1-32.od,
67 * testsuite/ld-powerpc/aix-abs-reloc-1-64.od: ..these new files.
68 * testsuite/ld-powerpc/aix-export-1-all.dd: Delete, replace with..
69 * testsuite/ld-powerpc/aix-export-1-all-32.dd,
70 * testsuite/ld-powerpc/aix-export-1-all-64.dd: ..these new files.
71 * testsuite/ld-powerpc/aix-export-1-full.dd: Delete, replace with..
72 * testsuite/ld-powerpc/aix-export-1-full-32.dd,
73 * testsuite/ld-powerpc/aix-export-1-full-64.dd: ..these new files.
74 * testsuite/ld-powerpc/aix-export-2.nd: Delete, replace with..
75 * testsuite/ld-powerpc/aix-export-2-32.nd,
76 * testsuite/ld-powerpc/aix-export-2-64.nd: ..these new files.
77 * testsuite/ld-powerpc/aix-gc-1.nd: Delete, replace with..
78 * testsuite/ld-powerpc/aix-gc-1-32.nd,
79 * testsuite/ld-powerpc/aix-gc-1-64.nd: ..these new files.
80 * testsuite/ld-powerpc/aix-glink-3.dd: Delete, replace with..
81 * testsuite/ld-powerpc/aix-glink-3-32.dd,
82 * testsuite/ld-powerpc/aix-glink-3-64.dd: ..these new files.
83 * testsuite/ld-powerpc/aix-lineno-1a.dd: Delete, replace with..
84 * testsuite/ld-powerpc/aix-lineno-1a-32.dd,
85 * testsuite/ld-powerpc/aix-lineno-1a-64.dd: ..these new files.
86 * testsuite/ld-powerpc/aix-lineno-1a.nd: Delete, replace with..
87 * testsuite/ld-powerpc/aix-lineno-1a-32.nd,
88 * testsuite/ld-powerpc/aix-lineno-1a-64.nd: ..these new files.
89 * testsuite/ld-powerpc/aix-lineno-1b.dd: Delete, replace with..
90 * testsuite/ld-powerpc/aix-lineno-1b-32.dd,
91 * testsuite/ld-powerpc/aix-lineno-1b-64.dd: ..these new files.
92 * testsuite/ld-powerpc/aix-lineno-1b.nd: Delete, replace with..
93 * testsuite/ld-powerpc/aix-lineno-1b-32.nd,
94 * testsuite/ld-powerpc/aix-lineno-1b-64.nd: ..these new files.
95 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso.dnd: Delete, replace with..
96 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.dnd,
97 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.dnd: ..these new files.
98 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso.drd: Delete, replace with..
99 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.drd,
100 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.drd: ..these new files.
101 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso.nd: Delete, replace with..
102 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.nd,
103 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.nd: ..these new files.
104 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso.rd: Delete, replace with..
105 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.rd,
106 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.rd: ..these new files.
107 * testsuite/ld-powerpc/aix-weak-1-dso.dnd: Delete, replace with..
108 * testsuite/ld-powerpc/aix-weak-1-dso-32.dnd,
109 * testsuite/ld-powerpc/aix-weak-1-dso-64.dnd: ..these new files.
110 * testsuite/ld-powerpc/aix-weak-1-dso.hd: Delete, replace with..
111 * testsuite/ld-powerpc/aix-weak-1-dso-32.hd,
112 * testsuite/ld-powerpc/aix-weak-1-dso-64.hd: ..these new files.
113 * testsuite/ld-powerpc/aix-weak-1-dso.nd: Delete, replace with..
114 * testsuite/ld-powerpc/aix-weak-1-dso-32.nd,
115 * testsuite/ld-powerpc/aix-weak-1-dso-64.nd: ..these new files.
116 * testsuite/ld-powerpc/aix-weak-1-gcdso.dnd: Delete, replace with..
117 * testsuite/ld-powerpc/aix-weak-1-gcdso-32.dnd,
118 * testsuite/ld-powerpc/aix-weak-1-gcdso-64.dnd: ..these new files.
119 * testsuite/ld-powerpc/aix-weak-1-gcdso.hd: Delete, replace with..
120 * testsuite/ld-powerpc/aix-weak-1-gcdso-32.hd,
121 * testsuite/ld-powerpc/aix-weak-1-gcdso-64.hd: ..these new files.
122 * testsuite/ld-powerpc/aix-weak-1-gcdso.nd: Delete, replace with..
123 * testsuite/ld-powerpc/aix-weak-1-gcdso-32.nd,
124 * testsuite/ld-powerpc/aix-weak-1-gcdso-64.nd: ..these new files.
125 * testsuite/ld-powerpc/aix-weak-2a.nd: Delete, replace with..
126 * testsuite/ld-powerpc/aix-weak-2a-32.nd,
127 * testsuite/ld-powerpc/aix-weak-2a-64.nd: ..these new files.
128 * testsuite/ld-powerpc/aix-weak-2b.nd: Delete, replace with..
129 * testsuite/ld-powerpc/aix-weak-2b-32.nd,
130 * testsuite/ld-powerpc/aix-weak-2b-64.nd: ..these new files.
131 * testsuite/ld-powerpc/aix-weak-2c.nd: Delete, replace with..
132 * testsuite/ld-powerpc/aix-weak-2c-32.nd,
133 * testsuite/ld-powerpc/aix-weak-2c-64.nd: ..these new files.
134 * testsuite/ld-powerpc/aix-weak-2c.od: Delete, replace with..
135 * testsuite/ld-powerpc/aix-weak-2c-32.od,
136 * testsuite/ld-powerpc/aix-weak-2c-64.od: ..these new files.
138 2020-07-07 Alan Modra <amodra@gmail.com>
140 * testsuite/ld-scripts/section-match-1.d: xfail h8300.
142 2020-07-07 Alan Modra <amodra@gmail.com>
144 * testsuite/ld-scripts/align.exp: Don't exclude xcoff. Pass
145 -bnogc ld option for xcoff.
146 * testsuite/ld-scripts/provide.exp: Likewise.
147 * testsuite/ld-scripts/data.exp: Pass -bnogc ld option for xcoff.
148 * testsuite/ld-scripts/default-script.exp: Likewise.
149 * testsuite/ld-scripts/defined.exp: Likewise.
150 * testsuite/ld-scripts/empty-address.exp: Likewise.
151 * testsuite/ld-scripts/expr.exp: Likewise.
152 * testsuite/ld-scripts/include.exp: Likewise.
153 * testsuite/ld-scripts/script.exp: Likewise.
154 * testsuite/ld-scripts/assign-loc.d: Don't exclude xcoff.
155 * testsuite/ld-scripts/defined3.d: Likewise.
156 * testsuite/ld-scripts/defined4.d: Likewise.
157 * testsuite/ld-scripts/pr18963.d: Likewise.
158 * testsuite/ld-scripts/sane1.d: Likewise.
159 * testsuite/ld-scripts/segment-start.d: Likewise.
160 * testsuite/ld-scripts/include-1.d: Likewise, and relax text vma.
161 * testsuite/ld-scripts/defined5.d: Update xfail and comment.
162 * testsuite/ld-scripts/defined5.s: Tweak "defined" to be at
163 non-zero section offset.
164 * testsuite/ld-scripts/fill16.d: xfail for xcoff.
165 * testsuite/ld-scripts/provide-2.d: Accept more symbols.
166 * testsuite/ld-scripts/provide-4.d: Likewise.
167 * testsuite/ld-scripts/provide-5.d: Likewise.
168 * testsuite/ld-scripts/provide-6.d: Likewise.
169 * testsuite/ld-scripts/provide-7.d: Likewise.
170 * testsuite/ld-scripts/align.t: Accept xcoff mapped .text and .data.
171 * testsuite/ld-scripts/defined3.t: Likewise.
172 * testsuite/ld-scripts/defined4.t: Likewise.
173 * testsuite/ld-scripts/defined5.t: Likewise.
174 * testsuite/ld-scripts/fill.t: Likewise.
175 * testsuite/ld-scripts/include-subdata.t: Likewise.
176 * testsuite/ld-scripts/provide-1.t: Likewise.
177 * testsuite/ld-scripts/provide-2.t: Likewise.
178 * testsuite/ld-scripts/provide-3.t: Likewise.
179 * testsuite/ld-scripts/provide-4.t: Likewise.
180 * testsuite/ld-scripts/provide-5.t: Likewise.
181 * testsuite/ld-scripts/provide-6.t: Likewise.
182 * testsuite/ld-scripts/provide-7.t: Likewise.
183 * testsuite/ld-scripts/provide-8.t: Likewise.
184 * testsuite/ld-scripts/assign-loc.t: Add required xcoff sections.
185 * testsuite/ld-scripts/sizeof.t: Likewise.
186 * testsuite/ld-scripts/align2.t: Likewise, and mapped sections.
187 * testsuite/ld-scripts/align5.t: Likewise.
188 * testsuite/ld-scripts/default-script.t: Likewise.
189 * testsuite/ld-scripts/empty-address-1.t: Likewise.
190 * testsuite/ld-scripts/empty-address-2a.t: Likewise.
191 * testsuite/ld-scripts/empty-address-2b.t: Likewise.
192 * testsuite/ld-scripts/empty-address-3a.t: Likewise.
193 * testsuite/ld-scripts/empty-address-3b.t: Likewise.
194 * testsuite/ld-scripts/empty-address-3c.t: Likewise.
195 * testsuite/ld-scripts/include-sections.t: Likewise.
196 * testsuite/ld-scripts/pr14962.t: Likewise.
197 * testsuite/ld-scripts/sane1.t: Likewise.
199 2020-07-07 Alan Modra <amodra@gmail.com>
201 * testsuite/ld-scripts/align.exp: Use is_pecoff_format.
202 * testsuite/ld-scripts/defined.exp: Likewise.
203 * testsuite/ld-scripts/provide.exp: Likewise.
204 * testsuite/ld-scripts/weak.exp: Likewise.
205 * testsuite/ld-scripts/empty-address.exp: Likewise. Reset LDFLAGS
207 * testsuite/ld-scripts/expr.exp: Set LDFLAGS earlier, and with
209 * testsuite/ld-scripts/include.exp: Set LDFLAGS for PE.
210 * testsuite/ld-scripts/script.exp: Use is_pecoff_format, and
211 set LDFLAGS as well as flags.
213 2020-07-07 Alan Modra <amodra@gmail.com>
215 * testsuite/ld-checks/checks.exp: Use is_xcoff_format.
216 * testsuite/ld-powerpc/powerpc.exp: Likewise.
217 * testsuite/ld-scripts/print-memory-usage.exp: Likewise.
218 * testsuite/ld-srec/srec.exp: Likewise.
219 * testsuite/ld-undefined/require-defined.exp: Likewise.
220 * testsuite/ld-scripts/expr2.d: Likewise.
221 * testsuite/ld-scripts/section-match-1.d: Only run for ELF.
222 * testsuite/ld-elfvers/vers.exp: Delete dead code.
223 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
224 * testsuite/ld-elfweak/elfweak.exp: Likewise.
226 2020-07-07 Alan Modra <amodra@gmail.com>
228 * emultempl/aix.em (gld${EMULATION_NAME}_find_exp_assignment): Handle
231 2020-07-07 Alan Modra <amodra@gmail.com>
233 * testsuite/ld-sh/vxworks1-lib.rd: Update expected output.
234 * testsuite/ld-sh/vxworks4.d: Likewise.
236 2020-07-06 Yuri Chornoivan <yurchor@ukr.net>
239 * lexsup.c: Fix spelling mistake.
240 * po/ld.pot: Regenerate.
242 2020-07-06 Nick Clifton <nickc@redhat.com>
244 * po/bg.po: Updated Bulgarian translation.
245 * po/fr.po: Updated French translation.
246 * po/pt_BR.po: Updated Brazilian Portuguese translation.
247 * po/uk.po: Updated Ukranian translation.
249 2020-07-04 Nick Clifton <nickc@redhat.com>
251 * configure: Regenerate.
253 2020-07-04 Nick Clifton <nickc@redhat.com>
255 Binutils 2.35 branch created.
257 2020-07-03 Alan Modra <amodra@gmail.com>
260 * testsuite/ld-arm/arm-elf.exp (vxworks1): Pass --wide to readelf
262 * testsuite/ld-i386/i386.exp (vxworks1): Likewise.
263 * testsuite/ld-sh/sh-vxworks.exp (vxworks1): Likewise.
264 * testsuite/ld-sparc/sparc.exp (vxworks1): Likewise.
265 * testsuite/ld-arm/vxworks1.rd: Adjust to suit.
266 * testsuite/ld-i386/vxworks1.rd: Adjust.
267 * testsuite/ld-sh/vxworks1.rd: Adjust.
268 * testsuite/ld-sparc/vxworks1.rd: Adjust.
270 2020-07-02 Nick Clifton <nickc@redhat.com>
273 * testsuite/ld-powerpc/powerpc.exp: Add -T option to readelf
274 command line when running some tests.
275 * testsuite/ld-arm/arm-elf.exp: Likewise.
276 * testsuite/ld-mips-elf/mips-elf.exp: Likewise.
277 * testsuite/ld-mmix/local1.d: Likewise.
278 * testsuite/ld-mmix/local3.d: Likewise.
279 * testsuite/ld-mmix/local5.d: Likewise.
280 * testsuite/ld-mmix/local7.d: Likewise.
281 * testsuite/ld-powerpc/powerpc.exp: Likewise.
283 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
285 * Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_nacl.c,
286 eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c.
287 Remove x86 NaCl dep files.
288 * NEWS: Mention x86 NaCl target support removal.
289 * configure.tgt: Remove x86 NaCl target support.
290 * testsuite/ld-elf/binutils.exp: Likewise.
291 * testsuite/ld-elf/elf.exp: Likewise.
292 * testsuite/ld-elfvers/vers.exp: Likewise.
293 * testsuite/ld-i386/align-branch-1.d: Likewise.
294 * testsuite/ld-i386/export-class.exp: Likewise.
295 * testsuite/ld-i386/i386.exp: Likewise.
296 * testsuite/ld-i386/load1.d: Likewise.
297 * testsuite/ld-i386/pie1.d: Likewise.
298 * testsuite/ld-i386/pr12570a.d: Likewise.
299 * testsuite/ld-i386/pr12570b.d: Likewise.
300 * testsuite/ld-i386/pr19636-1d.d: Likewise.
301 * testsuite/ld-i386/pr19636-1l.d: Likewise.
302 * testsuite/ld-i386/pr19636-2c.d: Likewise.
303 * testsuite/ld-i386/pr19636-2d.d: Likewise.
304 * testsuite/ld-i386/pr19636-2e.d: Likewise.
305 * testsuite/ld-i386/pr20244-1a.d: Likewise.
306 * testsuite/ld-i386/pr20244-1b.d: Likewise.
307 * testsuite/ld-i386/pr20244-2a.d: Likewise.
308 * testsuite/ld-i386/pr20244-2b.d: Likewise.
309 * testsuite/ld-i386/pr20244-2c.d: Likewise.
310 * testsuite/ld-i386/pr20244-4a.d: Likewise.
311 * testsuite/ld-i386/pr20244-4b.d: Likewise.
312 * testsuite/ld-i386/pr21884.d: Likewise.
313 * testsuite/ld-ifunc/binutils.exp: Likewise.
314 * testsuite/ld-ifunc/ifunc-10-i386.d: Likewise.
315 * testsuite/ld-ifunc/ifunc-10-x86-64.d: Likewise.
316 * testsuite/ld-ifunc/ifunc-11-i386.d: Likewise.
317 * testsuite/ld-ifunc/ifunc-11-x86-64.d: Likewise.
318 * testsuite/ld-ifunc/ifunc-12-i386.d: Likewise.
319 * testsuite/ld-ifunc/ifunc-12-x86-64.d: Likewise.
320 * testsuite/ld-ifunc/ifunc-13-i386.d: Likewise.
321 * testsuite/ld-ifunc/ifunc-13-x86-64.d: Likewise.
322 * testsuite/ld-ifunc/ifunc-14a-i386.d: Likewise.
323 * testsuite/ld-ifunc/ifunc-14a-x86-64.d: Likewise.
324 * testsuite/ld-ifunc/ifunc-14b-i386.d: Likewise.
325 * testsuite/ld-ifunc/ifunc-14b-x86-64.d: Likewise.
326 * testsuite/ld-ifunc/ifunc-14c-i386.d: Likewise.
327 * testsuite/ld-ifunc/ifunc-14c-x86-64.d: Likewise.
328 * testsuite/ld-ifunc/ifunc-14d-i386.d: Likewise.
329 * testsuite/ld-ifunc/ifunc-14d-x86-64.d: Likewise.
330 * testsuite/ld-ifunc/ifunc-14e-i386.d: Likewise.
331 * testsuite/ld-ifunc/ifunc-14e-x86-64.d: Likewise.
332 * testsuite/ld-ifunc/ifunc-14f-i386.d: Likewise.
333 * testsuite/ld-ifunc/ifunc-14f-x86-64.d: Likewise.
334 * testsuite/ld-ifunc/ifunc-15-i386.d: Likewise.
335 * testsuite/ld-ifunc/ifunc-15-x86-64.d: Likewise.
336 * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
337 * testsuite/ld-ifunc/ifunc-16-i386.d: Likewise.
338 * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: Likewise.
339 * testsuite/ld-ifunc/ifunc-16-x86-64.d: Likewise.
340 * testsuite/ld-ifunc/ifunc-17a-i386.d: Likewise.
341 * testsuite/ld-ifunc/ifunc-17a-x86-64.d: Likewise.
342 * testsuite/ld-ifunc/ifunc-17b-i386.d: Likewise.
343 * testsuite/ld-ifunc/ifunc-17b-x86-64.d: Likewise.
344 * testsuite/ld-ifunc/ifunc-18a-i386.d: Likewise.
345 * testsuite/ld-ifunc/ifunc-18a-x86-64.d: Likewise.
346 * testsuite/ld-ifunc/ifunc-18b-i386.d: Likewise.
347 * testsuite/ld-ifunc/ifunc-18b-x86-64.d: Likewise.
348 * testsuite/ld-ifunc/ifunc-19a-i386.d: Likewise.
349 * testsuite/ld-ifunc/ifunc-19a-x86-64.d: Likewise.
350 * testsuite/ld-ifunc/ifunc-19b-i386.d: Likewise.
351 * testsuite/ld-ifunc/ifunc-19b-x86-64.d: Likewise.
352 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
353 * testsuite/ld-ifunc/ifunc-2-i386.d: Likewise.
354 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
355 * testsuite/ld-ifunc/ifunc-2-local-i386.d: Likewise.
356 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
357 * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
358 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
359 * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
360 * testsuite/ld-ifunc/ifunc-20-i386.d: Likewise.
361 * testsuite/ld-ifunc/ifunc-20-x86-64.d: Likewise.
362 * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
363 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
364 * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
365 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
366 * testsuite/ld-ifunc/ifunc-5a-i386.d: Likewise.
367 * testsuite/ld-ifunc/ifunc-5a-local-i386.d: Likewise.
368 * testsuite/ld-ifunc/ifunc-5a-local-x86-64.d: Likewise.
369 * testsuite/ld-ifunc/ifunc-5a-x86-64.d: Likewise.
370 * testsuite/ld-ifunc/ifunc-5b-i386.d: Likewise.
371 * testsuite/ld-ifunc/ifunc-5b-local-i386.d: Likewise.
372 * testsuite/ld-ifunc/ifunc-5b-local-x86-64.d: Likewise.
373 * testsuite/ld-ifunc/ifunc-5b-x86-64.d: Likewise.
374 * testsuite/ld-ifunc/ifunc-5r-local-i386.d: Likewise.
375 * testsuite/ld-ifunc/ifunc-5r-local-x86-64.d: Likewise.
376 * testsuite/ld-ifunc/ifunc-6a-i386.d: Likewise.
377 * testsuite/ld-ifunc/ifunc-6a-x86-64.d: Likewise.
378 * testsuite/ld-ifunc/ifunc-6b-i386.d: Likewise.
379 * testsuite/ld-ifunc/ifunc-6b-x86-64.d: Likewise.
380 * testsuite/ld-ifunc/ifunc-7a-i386.d: Likewise.
381 * testsuite/ld-ifunc/ifunc-7a-x86-64.d: Likewise.
382 * testsuite/ld-ifunc/ifunc-7b-i386.d: Likewise.
383 * testsuite/ld-ifunc/ifunc-7b-x86-64.d: Likewise.
384 * testsuite/ld-ifunc/ifunc-8-i386.d: Likewise.
385 * testsuite/ld-ifunc/ifunc-8-x86-64.d: Likewise.
386 * testsuite/ld-ifunc/ifunc-9-i386.d: Likewise.
387 * testsuite/ld-ifunc/ifunc-9-x86-64.d: Likewise.
388 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
389 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
390 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
391 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
392 * testsuite/ld-plugin/lto.exp: Likewise.
393 * testsuite/ld-x86-64/align-branch-1.d: Likewise.
394 * testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
395 * testsuite/ld-x86-64/line.exp: Likewise.
396 * testsuite/ld-x86-64/load1a.d: Likewise.
397 * testsuite/ld-x86-64/load1b.d: Likewise.
398 * testsuite/ld-x86-64/load1c.d: Likewise.
399 * testsuite/ld-x86-64/load1d.d: Likewise.
400 * testsuite/ld-x86-64/pie3.d: Likewise.
401 * testsuite/ld-x86-64/pr18160.d: Likewise.
402 * testsuite/ld-x86-64/pr19013-x32.d: Likewise.
403 * testsuite/ld-x86-64/pr19013.d: Likewise.
404 * testsuite/ld-x86-64/pr19636-2d.d: Likewise.
405 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
406 * testsuite/ld-x86-64/pr20253-1b.d: Likewise.
407 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
408 * testsuite/ld-x86-64/pr20253-1f.d: Likewise.
409 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
410 * testsuite/ld-x86-64/pr20253-1j.d: Likewise.
411 * testsuite/ld-x86-64/pr20253-1l.d: Likewise.
412 * testsuite/ld-x86-64/pr21884.d: Likewise.
413 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
414 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
415 * testsuite/ld-x86-64/tlsgd10.dd: Likewise.
416 * testsuite/ld-x86-64/tlsgd5.dd: Likewise.
417 * testsuite/ld-x86-64/tlsgd8.dd: Likewise.
418 * testsuite/ld-x86-64/x86-64.exp: Likewise.
419 * emulparams/elf32_x86_64_nacl.sh: Removed.
420 * emulparams/elf_i386_nacl.sh: Likewise.
421 * emulparams/elf_x86_64_nacl.sh: Likewise.
422 * testsuite/ld-i386/emit-relocs-nacl.rd: Likewise.
423 * testsuite/ld-i386/load1-nacl.d: Likewise.
424 * testsuite/ld-i386/pie1-nacl.d: Likewise.
425 * testsuite/ld-i386/plt-nacl.pd: Likewise.
426 * testsuite/ld-i386/plt-pic-nacl.pd: Likewise.
427 * testsuite/ld-i386/pr17709-nacl.rd: Likewise.
428 * testsuite/ld-i386/pr19636-1d-nacl.d: Likewise.
429 * testsuite/ld-i386/pr19636-2c-nacl.d: Likewise.
430 * testsuite/ld-i386/pr19636-2d-nacl.d: Likewise.
431 * testsuite/ld-i386/pr19636-2e-nacl.d: Likewise.
432 * testsuite/ld-i386/pr19827-nacl.rd: Likewise.
433 * testsuite/ld-i386/pr21884-nacl.d: Likewise.
434 * testsuite/ld-i386/pr21884-nacl.t: Likewise.
435 * testsuite/ld-i386/tlsbin-nacl.rd: Likewise.
436 * testsuite/ld-i386/tlsbin2-nacl.rd: Likewise.
437 * testsuite/ld-i386/tlsbindesc-nacl.rd: Likewise.
438 * testsuite/ld-i386/tlsdesc-nacl.rd: Likewise.
439 * testsuite/ld-i386/tlsgdesc-nacl.rd: Likewise.
440 * testsuite/ld-i386/tlsnopic-nacl.rd: Likewise.
441 * testsuite/ld-i386/tlspic-nacl.rd: Likewise.
442 * testsuite/ld-i386/tlspic2-nacl.rd: Likewise.
443 * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
444 * testsuite/ld-x86-64/load1a-nacl.d: Likewise.
445 * testsuite/ld-x86-64/load1b-nacl.d: Likewise.
446 * testsuite/ld-x86-64/load1c-nacl.d: Likewise.
447 * testsuite/ld-x86-64/load1d-nacl.d: Likewise.
448 * testsuite/ld-x86-64/pie3-nacl.d: Likewise.
449 * testsuite/ld-x86-64/plt-nacl.pd: Likewise.
450 * testsuite/ld-x86-64/pr17709-nacl.rd: Likewise.
451 * testsuite/ld-x86-64/pr19013-nacl.d: Likewise.
452 * testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
453 * testsuite/ld-x86-64/pr19827-nacl.rd: Likewise.
454 * testsuite/ld-x86-64/pr21884-nacl.d: Likewise.
455 * testsuite/ld-x86-64/pr21884-nacl.t: Likewise.
456 * testsuite/ld-x86-64/split-by-file-nacl.rd: Likewise.
457 * testsuite/ld-x86-64/tlsbin-nacl.rd: Likewise.
458 * testsuite/ld-x86-64/tlsbin2-nacl.rd: Likewise.
459 * testsuite/ld-x86-64/tlsbindesc-nacl.rd: Likewise.
460 * testsuite/ld-x86-64/tlsdesc-nacl.pd: Likewise.
461 * testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
462 * testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
463 * testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
464 * testsuite/ld-x86-64/tlspic2-nacl.rd: Likewise.
465 * Makefile.in: Regenerated.
466 * po/BLD-POTFILES.in: Likewise.
468 2020-06-30 Alan Modra <amodra@gmail.com>
470 * testsuite/ld-elf/group1.d: Don't xfail all solaris targets, just
473 2020-06-30 Alan Modra <amodra@gmail.com>
475 * testsuite/ld-elf/reloc-discard.d: Don't xfail nds32.
477 2020-06-30 Alan Modra <amodra@gmail.com>
479 * scripttempl/elfmicroblaze.sc (.data): Add .data.* entry.
480 * testsuite/ld-elf/var1.d: Don't xfail microblaze.
482 2020-06-29 H.J. Lu <hongjiu.lu@intel.com>
484 * testsuite/ld-tic6x/shlib-1.rd: Move C6000_DSBT_BASE,
485 C6000_DSBT_SIZE and C6000_DSBT_INDEX dynamic tags to the last.
486 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
487 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
488 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
489 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
490 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
491 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
492 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
493 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
494 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
495 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
496 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
497 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
499 2020-06-29 Alan Modra <amodra@gmail.com>
501 * testsuite/ld-x86-64/abs-k1om.d: Run only on x86_64-*-linux*.
502 * testsuite/ld-x86-64/protected2-k1om.d: Likewise.
503 * testsuite/ld-x86-64/protected3-k1om.d: Likewise.
505 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
507 * configure.ac [--enable-libctf]: New, default yes.
508 Set ENABLE_LIBCTF accordingly.
509 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF.
510 * configure: Regenerate.
511 * config.in: Regenerate.
512 * Makefile.in: Regenerate.
513 * aclocal.m4: Regenerate.
514 * ldlang.c (ctf_output): Conditionalize on ENABLE_LIBCTF.
515 (ldlang_open_ctf): Likewise.
516 (lang_merge_ctf): Likewise.
517 (ldlang_ctf_apply_strsym): Likewise.
518 (lang_write_ctf): Likewise.
519 (ldlang_write_ctf_late): Likewise.
520 (ldlang_open_ctf) [!ENABLE_LIBCTF]: Warn about the presence of CTF
522 (lang_merge_ctf) [!ENABLE_LIBCTF]: New stub.
523 (ldlang_ctf_apply_strsym) [!ENABLE_LIBCTF]: Likewise.
524 (lang_write_ctf) [!ENABLE_LIBCTF]: Likewise.
525 (ldlang_write_ctf_late) [!ENABLE_LIBCTF]: Likewise.
526 * ldelfgen.c (ldelf_emit_ctf_early): Conditionalize on
528 (struct ctf_strsym_iter_cb_arg): Likewise.
529 (ldelf_ctf_strtab_iter_cb): Likewise.
530 (ldelf_ctf_symbols_iter_cb): Likewise.
531 (ldelf_examine_strtab_for_ctf): Likewise.
532 (ldelf_emit_ctf_early) [!ENABLE_LIBCTF]: New stub.
533 (ldelf_examine_strtab_for_ctf) [!ENABLE_LIBCTF]: New stub.
535 2020-06-26 Jan Beulich <jbeulich@suse.com>
537 * testsuite/ld-x86-64/x86-64.exp: Run K1OM tests.
539 2020-06-26 Pat Bernardi <bernardi@adacore.com>
541 * testsuite/ld-m68k/attr-gnu-4-0.s: New file.
542 * testsuite/ld-m68k/attr-gnu-4-1.s: Likewise.
543 * testsuite/ld-m68k/attr-gnu-4-2.s: Likewise.
544 * testsuite/ld-m68k/attr-gnu-4-00.d: Likewise.
545 * testsuite/ld-m68k/attr-gnu-4-01.d: Likewise.
546 * testsuite/ld-m68k/attr-gnu-4-02.d: Likewise.
547 * testsuite/ld-m68k/attr-gnu-4-10.d: Likewise.
548 * testsuite/ld-m68k/attr-gnu-4-11.d: Likewise.
549 * testsuite/ld-m68k/attr-gnu-4-12.d: Likewise.
550 * testsuite/ld-m68k/attr-gnu-4-20.d: Likewise.
551 * testsuite/ld-m68k/attr-gnu-4-21.d: Likewise.
552 * testsuite/ld-m68k/attr-gnu-4-22.d: Likewise.
553 * testsuite/ld-m68k/m68k.exp: Run the new tests.
555 2020-06-24 H.J. Lu <hongjiu.lu@intel.com>
558 * lexsup.c (ld_options): Correct --dependency-file order.
560 2020-06-24 H.J. Lu <hongjiu.lu@intel.com>
563 * testsuite/ld-csky/tls-ie-v1.d: Updated.
564 * testsuite/ld-csky/tls-ie.d: Likewise.
566 2020-06-24 H.J. Lu <hongjiu.lu@intel.com>
569 * testsuite/ld-cris/libdso-15b.d: Updated.
570 * testsuite/ld-cris/libdso-1c.d: Likewise.
571 * testsuite/ld-cris/libdso-1d.d: Likewise.
572 * testsuite/ld-cris/libdso-15c.d: New file.
574 2020-06-24 H.J. Lu <hongjiu.lu@intel.com>
577 * ldexp.c (exp_fold_tree_1): Set non_ir_ref_regular on the source
579 * testsuite/ld-plugin/lto.exp: Run ld/26163 test.
580 * testsuite/ld-plugin/pr26163a.c: New file.
581 * testsuite/ld-plugin/pr26163b.c: Likewise.
583 2020-06-24 Alan Modra <amodra@gmail.com>
585 * lexsup.c (elf_shlib_list_options): Properly format help message.
586 (elf_plt_unwind_list_options): Likewise.
587 * emultempl/cskyelf.em (PARSE_AND_LIST_OPTIONS): Likewise.
589 2020-06-23 Roland McGrath <mcgrathr@google.com>
592 * NEWS: Note --dependency-file.
593 * ld.texi (Options): Document --dependency-file.
594 * ldlex.h (enum option_values): Add OPTION_DEPENDENCY_FILE.
595 * ld.h (ld_config_type): New member dependency_file.
596 * lexsup.c (ld_options, parse_args): Parse --dependency-file.
597 * ldmain.c (struct dependency_file): New type.
598 (dependency_files, dependency_files_tail): New static variables.
599 (track_dependency_files): New function.
600 (write_dependency_file): New function.
601 (main): Call it when --dependency-file was passed.
602 * ldfile.c (ldfile_try_open_bfd): Call track_dependency_files.
603 (ldfile_open_command_file_1): Likewise.
604 * ldelf.c (ldelf_try_needed): Likewise.
605 * pe-dll.c (pe_implied_import_dll): Likewise.
607 2020-06-23 Alan Modra <amodra@gmail.com>
610 * ldlang.c (ldlang_add_file): Assert that we aren't adding the
611 current end of link.next list again too.
612 * ldmain.c (add_archive_element): Don't load archive elements
613 again that have already been loaded.
615 2020-06-23 Alan Modra <amodra@gmail.com>
617 * testsuite/ld-elf/shared.exp (pr14170): Clear xfail for
619 (pr17068, symbolic-func.so, pr22374): Likewise.
621 2020-06-22 Nelson Chu <nelson.chu@sifive.com>
623 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
624 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Updated.
625 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Updated.
626 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Updated.
627 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Updated.
628 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Updated.
630 2020-06-21 Alan Modra <amodra@gmail.com>
632 * ldfile.c: Replace uses of ENABLE_PLUGINS with BFD_SUPPORTS_PLUGINS.
633 * ldlang.c: Likewise.
634 * ldlang.h: Likewise.
636 * ldmain.c: Likewise.
637 * lexsup.c: Likewise.
638 * plugin.c: Wrap body of file in #if BFD_SUPPORTS_PLUGINS.
639 * testplug.c: Likewise.
640 * testplug2.c: Likewise.
641 * testplug3.c: Likewise.
642 * testplug4.c: Likewise.
643 * configure.ac (ENABLE_PLUGINS): Don't define AM_CONTITIONAL.
644 * Makefile.am: Remove ENABLE_PLUGINS conditionals.
645 (PLUGIN_CFLAGS): Don't define.
646 (PLUGIN_C, PLUGIN_H, PLUGIN_OBJECT): Likewise. Substitute all
647 uses with plugin file name.
648 * configure: Regenerate.
649 * Makefile.in: Regenerate.
651 2020-06-20 Alan Modra <amodra@gmail.com>
653 * testsuite/lib/ld-lib.exp (default_ld_compile): Don't perror on
655 (default_ld_assemble): Similarly for an assembler error.
656 (default_ld_nm): Similarly for an nm error.
657 (run_ld_link_tests): Report ld_assemble errors as a fail.
658 (check_as_cfi): Remove now unnecessary perror substitution.
659 * testsuite/ld-elf/exclude.exp: Report ld_nm error return as test
660 fails rather then unresolved.
661 * testsuite/ld-gc/gc.exp: Likewise.
662 * testsuite/ld-scripts/alignof.exp: Likewise.
663 * testsuite/ld-scripts/defined.exp: Likewise.
664 * testsuite/ld-scripts/script.exp: Likewise.
665 * testsuite/ld-scripts/sizeof.exp: Likewise.
666 * testsuite/ld-selective/selective.exp: Likewise.
667 * testsuite/ld-scripts/extern.exp: Likewise. Return on ld_link
669 * testsuite/ld-elfweak/elfweak.exp: Report compiler errors as
671 * testsuite/ld-fastcall/fastcall.exp: Report assember errors as
673 * testsuite/ld-i386/i386.exp (iamcu_tests): Likewise.
674 * testsuite/ld-ia64/line.exp: Likewise.
675 * testsuite/ld-mep/mep.exp: Likewise.
676 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
677 * testsuite/ld-nios2/nios2.exp: Likewise.
678 * testsuite/ld-scripts/alignof.exp: Likewise.
679 * testsuite/ld-x86-64/line.exp: Likewise.
680 * testsuite/ld-x86-64/x86-64.exp: Likewise.
681 * testsuite/ld-scripts/log2.exp: Formatting.
682 * testsuite/ld-tic6x/tic6x.exp: Report ld_link errors as a test fail.
684 2020-06-20 Alan Modra <amodra@gmail.com>
686 * testsuite/ld-alpha/alpha.exp: Exclude *ecoff targets.
687 * testsuite/ld-elf/binutils.exp: Likewise.
688 * testsuite/ld-elf/tls.exp: Likewise.
689 * testsuite/ld-elf/tls_common.exp: Likewise.
690 * testsuite/ld-scripts/phdrs2.exp: Likewise.
692 2020-06-20 Alan Modra <amodra@gmail.com>
694 * testsuite/ld-sh/sh.exp: Don't run relax tests for non-ELF.
695 Fail when ld_assemble fails. Use elseif to reduce indentation.
697 2020-06-19 Alan Modra <amodra@gmail.com>
699 * testsuite/ld-elf/dynamic-1.rd: Accept st_other notations.
700 * testsuite/ld-elf/rdynamic-1.rd: Likewise.
701 * testsuite/ld-elf/pr9676.rd: Likewise.
702 * testsuite/ld-elf/pr9679.rd: Likewise.
703 * testsuite/ld-elfvers/vers30.dsym: Likewise.
704 * testsuite/ld-elfvers/vers31.dsym: Likewise.
705 * testsuite/ld-plugin/pr22983.1.d: Likewise.
706 * testsuite/ld-plugin/pr22983.2.d: Likewise.
707 * testsuite/ld-plugin/pr22983.3.d: Likewise.
708 * testsuite/ld-plugin/pr22983.4.d: Likewise.
709 * testsuite/ld-ifunc/ifunc.exp: Exclude alpha.
711 2020-06-19 Alan Modra <amodra@gmail.com>
713 * emultempl/elf.em (gld${EMULATION_NAME}_handle_option): Omit
714 -z relro and -z norelro when target support for GNU_RELRO is lacking.
715 (gld${EMULATION_NAME}_before_parse): Ignore RELRO default too.
716 * emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse): Ignore
717 RELRO default when target support for GNU_RELRO is lacking.
718 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
719 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Likewise.
720 * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
721 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
722 * testsuite/ld-elf/pr16322.d: xfail when no relro support.
723 * testsuite/ld-elf/pr22393-1a.d: Likewise.
724 * testsuite/ld-elf/pr22393-1b.d: Likewise.
725 * testsuite/ld-elf/shared.exp (pr20995-2.so, pr20995-2): Likewise.
726 * testsuite/lib/ld-lib.exp (run_ld_link_tests): Use check_relro_support
727 to decide whether to pass extra ld option "-z norelro".
729 2020-06-17 H.J. Lu <hongjiu.lu@intel.com>
731 * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Append "-w"
734 2020-06-17 H.J. Lu <hongjiu.lu@intel.com>
736 * testsuite/ld-elf/linux-x86.exp: Require GCC 5 for Build
737 pr25749-1b (-pie -fPIE).
739 2020-06-16 Alan Modra <amodra@gmail.com>
741 * testsuite/ld-elf/pr23428.c: Define _DEFAULT_SOURCE.
742 * testsuite/ld-elf/indirect1b.c: Replace asm with __asm__.
743 * testsuite/ld-elf/indirect2.c: Likewise.
744 * testsuite/ld-elf/indirect3b.c: Likewise.
745 * testsuite/ld-elf/indirect4b.c: Likewise.
746 * testsuite/ld-elf/pr14323-2.c: Likewise.
747 * testsuite/ld-elf/pr18720b.c: Likewise.
748 * testsuite/ld-elf/pr19553c.c: Likewise.
749 * testsuite/ld-elf/pr23428.c: Likewise.
750 * testsuite/ld-elfvers/vers27b.c: Likewise.
751 * testsuite/ld-elfvsb/common.c: Likewise.
752 * testsuite/ld-elfvsb/main.c: Likewise.
753 * testsuite/ld-elfvsb/sh1.c: Likewise.
754 * testsuite/ld-elfvsb/test.c: Likewise.
755 * testsuite/ld-pe/aligncomm-1.c: Likewise.
756 * testsuite/ld-pe/aligncomm-2.c: Likewise.
757 * testsuite/ld-pe/aligncomm-3.c: Likewise.
758 * testsuite/ld-pe/aligncomm-4.c: Likewise.
759 * testsuite/ld-plugin/pr23958.c: Likewise.
760 * testsuite/ld-size/size-1b.c: Likewise.
761 * testsuite/ld-size/size-2b.c: Likewise.
762 * testsuite/ld-size/size-3a.c: Likewise.
763 * testsuite/ld-size/size-3b.c: Likewise.
764 * testsuite/ld-size/size-3c.c: Likewise.
765 * testsuite/ld-size/size-4b.c: Likewise.
766 * testsuite/ld-size/size-5b.c: Likewise.
767 * testsuite/ld-size/size-6a.c: Likewise.
768 * testsuite/ld-size/size-7a.c: Likewise.
769 * testsuite/ld-size/size-8a.c: Likewise.
770 * testsuite/ld-size/size-9b.c: Likewise.
771 * testsuite/ld-size/size-10b.c: Likewise.
773 2020-06-16 Alan Modra <amodra@gmail.com>
775 * emulparams/tic30aout.sh: Delete file.
776 * scripttempl/tic30aout.sc: Delete file.
777 * Makefile.am: Remove etic30aout.c from ALL_EMULATION_SOURCES and
779 * configure.tgt: Delete tic30-*-*aout* entry.
780 * testsuite/ld-scripts/sane1.d: Delete tic30-*-aout mention.
781 * testsuite/ld-scripts/segment-start.d: Likewise.
782 * Makefile.in: Regenerate.
783 * po/BLD-POTFILES.in: Regenerate.
785 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
787 * emultempl/xtensaelf.em (XSHAL_ABI): Remove macro definition.
788 (XTHAL_ABI_UNDEFINED, XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New
790 (elf32xtensa_abi): New declaration.
791 (xt_config_info_unpack_and_check): Set elf32xtensa_abi if it is
792 undefined. Use xtensa_abi_choice instead of XSHAL_ABI to test
794 (xtensa_add_config_info): Use xtensa_abi_choice instead of
795 XSHAL_ABI to format ABI tag.
796 (PARSE_AND_LIST_PROLOGUE): Define OPTION_ABI_WINDOWED,
797 OPTION_ABI_CALL0 and declare elf32xtensa_abi.
798 (PARSE_AND_LIST_LONGOPTS): Add entries for --abi-windowed and
800 (PARSE_AND_LIST_OPTIONS): Add help text for --abi-windowed and
802 (PARSE_AND_LIST_ARGS_CASES): Add handlers for --abi-windowed and
804 * ld.texi: Add description for options --abi-windowed and
807 2020-06-15 Roland McGrath <mcgrathr@google.com>
809 * NEWS: Mention -z start-stop-visibility=... option for ELF.
810 * ld.texi (Options): Document -z start-stop-visibility=... option.
811 * ldmain.c (main): Initialize link_info.start_stop_visibility.
812 * emultempl/elf.em (gld${EMULATION_NAME}_handle_option):
813 Parse -z start-stop-visibility=... option.
815 2020-06-15 Alan Modra <amodra@gmail.com>
817 * testsuite/ld-scripts/include.exp: Don't load ld-lib.exp.
818 * testsuite/ld-scripts/phdrs3.exp: Likewise.
819 * testsuite/ld-scripts/rgn-at.exp: Likewise.
820 * testsuite/ld-scripts/rgn-over.exp: Likewise.
821 * testsuite/ld-scripts/sort.exp: Likewise.
822 * testsuite/ld-discard/discard.exp: Likewise. Use is_elf_format.
824 2020-06-15 Alan Modra <amodra@gmail.com>
827 * testsuite/ld-linkonce/ref1.s,
828 * testsuite/ld-linkonce/ref2.s,
829 * testsuite/ld-linkonce/sym1.s,
830 * testsuite/ld-linkonce/sym2.s,
831 * testsuite/ld-linkonce/sym3.s: New test files.
832 * testsuite/ld-linkonce/linkonce.exp: Run tests for PE too.
833 Add pr26103 test. Remove unnecessary load_lib.
835 2020-06-15 Alan Modra <amodra@gmail.com>
837 * testsuite/ld-linkonce/zeroeh_x.s: Rename from x.s.
838 * testsuite/ld-linkonce/zeroeh_y.s: Rename from y.s.
839 * testsuite/ld-linkonce/zeroehl32.d: Adjust for renaming. Support
840 big-endian output. Run for powerpc.
842 2020-06-11 Alan Modra <amodra@gmail.com>
844 * testsuite/ld-plugin/lto.exp (lto_link_tests): Move lto-6,
845 pr12760, pr23818 and pr23958 tests to..
846 (lto_link_elf_tests): ..here.
848 2020-06-11 Nick Clifton <nickc@redhat.com>
850 * testsuite/ld-elf/pr26094-1b.c (main): Change return type to
853 2020-06-10 Alan Modra <amodra@gmail.com>
855 * testsuite/ld-elf/linux-x86.exp: Build tests when non-native.
856 (check_pr25749b): Add optional args. Set expected pass file
857 from args. Run -1b and -2a tests with passall.out.
858 * testsuite/ld-elf/passall.out: New file.
859 * testsuite/ld-elf/pr25749-1.c: Adjust to pass with older glibc.
860 * testsuite/ld-elf/pr25749-2.c: Likewise.
861 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Use
862 regexp_diff to compare expected output from running binary.
864 2020-06-10 H.J. Lu <hongjiu.lu@intel.com>
867 * testsuite/ld-elf/pr26094-1.ver: New fike.
868 * testsuite/ld-elf/pr26094-1a.c: Likewise.
869 * testsuite/ld-elf/pr26094-1a.rd: Likewise.
870 * testsuite/ld-elf/pr26094-1b.c: Likewise.
871 * testsuite/ld-elf/pr26094-1b.rd: Likewise.
872 * testsuite/ld-elf/pr26094-1c.c: Likewise.
873 * testsuite/ld-elf/shared.exp: Run ld/26094 tests.
875 2020-06-09 H.J. Lu <hongjiu.lu@intel.com>
878 * testsuite/ld-i386/i386.exp: Run ifunc-textrel-1a,
879 ifunc-textrel-1b, ifunc-textrel-2a and ifunc-textrel-2b.
880 * testsuite/ld-x86-64/x86-64.exp: Likewise.
881 * testsuite/ld-i386/ifunc-textrel-1a.d: Likewise.
882 * testsuite/ld-i386/ifunc-textrel-1b.d: Likewise.
883 * testsuite/ld-i386/ifunc-textrel-2a.d: Likewise.
884 * testsuite/ld-i386/ifunc-textrel-2b.d: Likewise.
885 * testsuite/ld-x86-64/ifunc-textrel-1.s: Likewise.
886 * testsuite/ld-x86-64/ifunc-textrel-1a.d: Likewise.
887 * testsuite/ld-x86-64/ifunc-textrel-1b.d: Likewise.
888 * testsuite/ld-x86-64/ifunc-textrel-2.s: Likewise.
889 * testsuite/ld-x86-64/ifunc-textrel-2a.d: Likewise.
890 * testsuite/ld-x86-64/ifunc-textrel-2b.d: Likewise.
891 * testsuite/ld-i386/pr18801a.d: Expect warning for IFUNC
893 * testsuite/ld-i386/pr18801b.d: Likewise.
894 * estsuite/ld-x86-64/pr18801a.d: Likewise.
895 * estsuite/ld-x86-64/pr18801b.d: Likewise.
897 2020-06-09 Alan Modra <amodra@gmail.com>
900 * testsuite/ld-elf/shared.exp: Compile dl4main.c -fPIC.
901 (dl4e, dl4f): Expect dl4a.out.
902 * testsuite/ld-elf/dl4e.out: Delete.
904 2020-06-07 H.J. Lu <hongjiu.lu@intel.com>
906 * testsuite/ld-elf/shared.exp: Pass $LFLAGS to PR ld/21703
909 2020-06-07 H.J. Lu <hongjiu.lu@intel.com>
911 * testsuite/ld-elf/shared.exp: Xfail pr20995/pr20995-2 for
914 2020-06-07 H.J. Lu <hongjiu.lu@intel.com>
916 * testsuite/ld-elf/pr11304.d: Skip tic6x-*-elf.
918 2020-06-06 Alan Modra <amodra@gmail.com>
920 * testsuite/ld-elf/comm-data.exp: Don't xfail arm or bfin-linux.
922 2020-06-06 Alan Modra <amodra@gmail.com>
924 * lexsup.c (ld_options): Accept -plugin and -plugin-opt when
926 * testsuite/lib/ld-lib.exp (check_plugin_api_available): Adjust.
928 2020-06-05 Nelson Chu <nelson.chu@sifive.com>
930 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Rename to
931 attr-merge-priv-spec-01.d.
932 * testsuite/ld-riscv-elf/attr-merge-priv-spec-c.s: Set spec to 1.11.
933 * testsuite/ld-riscv-elf/attr-merge-priv-spec-d.s: Empty priv spec set.
934 * testsuite/ld-riscv-elf/attr-merge-priv-spec-02.d: New testcase.
935 * testsuite/ld-riscv-elf/attr-merge-priv-spec-03.d: Likewise.
936 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
937 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
938 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
939 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
940 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
941 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
943 2020-06-05 Nelson Chu <nelson.chu@sifive.com>
945 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: The CSR isn't used,
946 so ignore the -mpriv-spec setting.
947 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
948 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
949 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
950 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
951 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
952 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
953 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
954 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
955 * testsuite/ld-riscv-elf/call-relax.d: Add -mno-arch-attr.
957 2020-06-04 H.J. Lu <hongjiu.lu@intel.com>
960 * testsuite/ld-elf/comm-data.exp: Remove copy_reloc.
961 * testsuite/ld-elf/comm-data2r.rd: Removed.
962 * testsuite/ld-elf/comm-data2r.sd: Likewise.
963 * testsuite/ld-elf/comm-data2r.xd: Likewise.
965 2020-06-04 Alan Modra <amodra@gmail.com>
967 * testsuite/config/default.exp: Remove global directive outside
969 * testsuite/ld-bootstrap/bootstrap.exp: Likewise.
970 * testsuite/ld-elf/compress.exp: Likewise.
971 * testsuite/ld-elf/elf.exp: Likewise.
972 * testsuite/ld-elf/exclude.exp: Likewise.
973 * testsuite/ld-elf/frame.exp: Likewise.
974 * testsuite/ld-elf/indirect.exp: Likewise.
975 * testsuite/ld-elf/linux-x86.exp: Likewise.
976 * testsuite/ld-elf/shared.exp: Likewise.
977 * testsuite/ld-elf/tls.exp: Likewise.
978 * testsuite/ld-elf/tls_common.exp: Likewise.
979 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
980 * testsuite/ld-elfweak/elfweak.exp: Likewise.
981 * testsuite/ld-frv/fdpic.exp: Likewise.
982 * testsuite/ld-frv/tls.exp: Likewise.
983 * testsuite/ld-gc/gc.exp: Likewise.
984 * testsuite/ld-i386/i386.exp: Likewise.
985 * testsuite/ld-i386/no-plt.exp: Likewise.
986 * testsuite/ld-ifunc/ifunc.exp: Likewise.
987 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
988 * testsuite/ld-nios2/nios2.exp: Likewise.
989 * testsuite/ld-plugin/lto.exp: Likewise.
990 * testsuite/ld-plugin/plugin.exp: Likewise.
991 * testsuite/ld-powerpc/export-class.exp: Likewise.
992 * testsuite/ld-scripts/align.exp: Likewise.
993 * testsuite/ld-scripts/crossref.exp: Likewise.
994 * testsuite/ld-scripts/defined.exp: Likewise.
995 * testsuite/ld-scripts/overlay-size.exp: Likewise.
996 * testsuite/ld-scripts/provide.exp: Likewise.
997 * testsuite/ld-scripts/weak.exp: Likewise.
998 * testsuite/ld-selective/selective.exp: Likewise.
999 * testsuite/ld-sh/rd-sh.exp: Likewise.
1000 * testsuite/ld-size/size.exp: Likewise.
1001 * testsuite/ld-srec/srec.exp: Likewise.
1002 * testsuite/ld-x86-64/mpx.exp: Likewise.
1003 * testsuite/ld-x86-64/no-plt.exp: Likewise.
1004 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1006 2020-06-04 Alan Modra <amodra@gmail.com>
1008 * testsuite/ld-dynamic/export-dynamic-symbol-2.d: Match output for
1010 * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: Likewise.
1011 * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: Likewise.
1012 * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: Likewise.
1013 * testsuite/ld-dynamic/export-dynamic-symbol.exp: Exclude targets
1014 with poor PIE support.
1016 2020-06-04 Alan Modra <amodra@gmail.com>
1018 * testsuite/ld-plugin/lto.exp (pr12758.exe): Add NOPIE_LDFLAGS.
1019 * testsuite/ld-unique/unique.exp: Add NOPIE_LDFLAGS to unique
1020 executable and dynamic executable tests.
1022 2020-06-03 H.J. Lu <hongjiu.lu@intel.com>
1024 * testsuite/config/default.exp (NOSANTIZE_CFLAGS): New.
1025 * testsuite/ld-elf/linux-x86.exp: Add $NOSANTIZE_CFLAGS to
1026 tests with run_ld_link_exec_tests.
1027 * testsuite/ld-elf/shared.exp: Add $NOSANTIZE_CFLAGS to tests
1028 with run_ld_link_tests.
1029 * testsuite/ld-elf/tls.exp: Likewise.
1030 * testsuite/ld-elfweak/elfweak.exp: Add $NOSANTIZE_CFLAGS to
1032 * testsuite/ld-gc/gc.exp: Add $NOSANTIZE_CFLAGS to cflags.
1033 * testsuite/ld-plugin/lto.exp: Add $NOSANTIZE_CFLAGS to tests
1034 with run_ld_link_tests.a
1035 * testsuite/ld-plugin/plugin.exp: Append $NOSANTIZE_CFLAGS to
1037 * testsuite/ld-selective/selective.exp: Add $NOSANTIZE_CFLAGS
1038 to cflags and cxxflags.
1039 * testsuite/ld-srec/srec.exp: Append $NOSANTIZE_CFLAGS to CC
1041 * testsuite/ld-x86-64/plt-main-ibt-x32.dd: Updated for
1042 -fsanitize=undefined.
1043 * testsuite/ld-x86-64/plt-main-ibt.dd: Likewise.
1044 * testsuite/ld-x86-64/x86-64.exp: Add $NOSANTIZE_CFLAGS to
1045 tests with run_cc_link_tests and run_ld_link_tests.
1047 2020-06-03 Fangrui Song <maskray@google.com>
1048 H.J. Lu <hongjiu.lu@intel.com>
1051 * NEWS: Mention --export-dynamic-symbol[-list].
1052 * ld.texi: Document --export-dynamic-symbol[-list].
1053 * ldgram.y: Pass current_dynamic_list_p to
1054 lang_append_dynamic_list.
1055 * ldlang.c (current_dynamic_list_p): New.
1056 (ang_append_dynamic_list): Updated to take a pointer to
1057 struct bfd_elf_dynamic_list * argument instead of using
1058 link_info.dynamic_list.
1059 (lang_append_dynamic_list_cpp_typeinfo): Pass
1060 &link_info.dynamic_list to ang_append_dynamic_list.
1061 (lang_append_dynamic_list_cpp_new): Likewise.
1062 * ldlang.h (current_dynamic_list_p): New.
1063 (lang_append_dynamic_list): Add a pointer to
1064 struct bfd_elf_dynamic_list * argument.
1065 * ldlex.h (option_values): Add OPTION_EXPORT_DYNAMIC_SYMBOL and
1066 OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
1067 * lexsup.c (ld_options): Add entries for
1068 OPTION_EXPORT_DYNAMIC_SYMBOL and
1069 OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
1070 (parse_args): Handle --export-dynamic-symbol and
1071 --export-dynamic-symbol-list.
1072 * testsuite/ld-dynamic/export-dynamic-symbol-1.d: New.
1073 * testsuite/ld-dynamic/export-dynamic-symbol-2.d: New.
1074 * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: New.
1075 * testsuite/ld-dynamic/export-dynamic-symbol-list-1.d: New.
1076 * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: New.
1077 * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: New.
1078 * testsuite/ld-dynamic/export-dynamic-symbol.exp: New.
1079 * testsuite/ld-dynamic/export-dynamic-symbol.s: New.
1080 * testsuite/ld-dynamic/foo-bar.list: New.
1081 * testsuite/ld-dynamic/foo.list: New.
1082 * testsuite/ld-dynamic/foo.s: New.
1083 * testsuite/ld-dynamic/fstar.list: New.
1084 * testsuite/ld-elf/dlempty.list: New.
1085 * testsuite/ld-elf/shared.exp: Add tests for
1086 --export-dynamic-symbol and --export-dynamic-symbol-list.
1088 2020-06-03 Jan Beulich <jbeulich@suse.com>
1090 * testsuite/ld-elf/linux-x86.exp: Make copied source files
1093 2020-05-28 Nick Clifton <nickc@redhat.com>
1096 * ldelf.c (ldelf_after_open): Fail if attempting to link one
1097 executable into another. Ensure that the test is made for all
1100 2020-05-28 H.J. Lu <hongjiu.lu@intel.com>
1102 * NEWS: Mention --enable-textrel-check=yes is default for
1104 * configure.tgt (ac_default_ld_textrel_check): Set to yes if
1105 unset for Linux/x86 targets.
1107 2020-05-28 H.J. Lu <hongjiu.lu@intel.com>
1110 * NEWS: Mention --enable-textrel-check=[no|yes|warning|error].
1111 * configure.ac: Add --enable-textrel-check=[no|yes|warning|error].
1112 (DEFAULT_LD_TEXTREL_CHECK): New AC_DEFINE_UNQUOTED.
1113 (DEFAULT_LD_TEXTREL_CHECK_WARNING): Likewise.
1114 * ldmain.c (main): Initialize link_info.textrel_check to
1115 DEFAULT_LD_TEXTREL_CHECK.
1116 * lexsup.c (ld_options): Check DEFAULT_LD_TEXTREL_CHECK_WARNING.
1117 * config.in: Regenerated.
1118 * configure: Likewise.
1120 2020-05-28 Nick Clifton <nickc@redhat.com>
1122 * lexsup.c (parse_args): Generate an error if a name is not
1123 provided to the -Map option.
1124 (ld_options): Mention that the -Map option supports a directory
1125 name as an argument.
1126 * NEWS: Remove mention of support for an empty string as an
1128 * ld.texi: Likewise.
1130 2020-05-27 Hans-Peter Nilsson <hp@axis.com>
1133 * testsuite/ld-elf/pr19539.d: Don't xfail for cris*-*-*.
1135 2020-05-27 Rasmus Villemoes <rv@rasmusvillemoes.dk>
1136 Nick Clifton <nickc@redhat.com>
1138 * lexsup.c (parse_args): If the map filename is defined but empty
1139 create a name based upon the output file name. If the name is
1140 defined but refers to a directory create a file inside the
1141 directory based on the output file name.
1142 * ld.texi: Document the new feature.
1143 * testsuite/ld-script/map-address.exp: Add test of new feature.
1144 * NEWS: Mention the new feature.
1146 2020-05-27 H.J. Lu <hongjiu.lu@intel.com>
1149 * NEWS: Mention --warn-textrel.
1150 * ld.texi: Update -z text/notext/textoff. Add --warn-textrel.
1151 Remove --warn-shared-textrel.
1152 * ldlex.h (option_values): Rename OPTION_WARN_SHARED_TEXTREL to
1153 OPTION_WARN_TEXTREL.
1154 * lexsup.c (ld_options): Add --warn-textrel. Obsolete
1155 --warn-shared-textrel.
1156 (parse_args): Updated.
1157 (elf_shlib_list_options): Check link_info.textrel_check.
1158 * emultempl/elf.em: Updated.
1159 * testsuite/ld-elf/pr19539.d: Replace -z notext with
1160 --warn-textrel. Expect a warning.
1161 * testsuite/ld-i386/warn1.d: Update expected warning.
1163 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1165 * testsuite/ld-ifunc/ifunc-23a-x86.d: Skip *-*-lynxos *-*-nto*.
1166 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
1167 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
1169 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
1171 * testsuite/ld-x86-64/x86-64.exp: Pass -z notext to linker.
1173 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
1175 * testsuite/ld-elf/eh6.d: Pass -z notext to linker.
1176 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1177 * testsuite/ld-elf/pr19539.d: Likewise.
1178 * testsuite/ld-elfvers/vers.exp: Likewise.
1179 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
1180 * testsuite/ld-i386/i386.exp: Likewise.
1181 * testsuite/ld-i386/nogot1.d: Likewise.
1182 * testsuite/ld-i386/pr19539.d: Likewise.
1183 * testsuite/ld-i386/pr19636-2a.d: Likewise.
1184 * testsuite/ld-i386/pr19636-2b.d: Likewise.
1185 * testsuite/ld-i386/pr19636-2c.d: Likewise.
1186 * testsuite/ld-i386/pr19636-2d.d: Likewise.
1187 * testsuite/ld-i386/pr19636-2e.d: Likewise.
1188 * testsuite/ld-i386/pr19636-3d.d: Likewise.
1189 * testsuite/ld-i386/pr19636-3e.d: Likewise.
1190 * testsuite/ld-i386/pr19939b.d: Likewise.
1191 * testsuite/ld-i386/undefweaka.d: Likewise.
1192 * testsuite/ld-i386/undefweakb.d: Likewise.
1193 * testsuite/ld-shared/shared.exp: Likewise.
1194 * testsuite/ld-size/size.exp: Likewise.
1195 * testsuite/ld-unique/unique.exp: Likewise.
1196 * testsuite/ld-x86-64/pie1.d: Likewise.
1197 * testsuite/ld-x86-64/pr19539a.d: Likewise.
1198 * testsuite/ld-x86-64/pr19539b.d: Likewise.
1199 * testsuite/ld-x86-64/pr19636-1d.d: Likewise.
1200 * testsuite/ld-x86-64/pr19636-1e.d: Likewise.
1201 * testsuite/ld-x86-64/pr19807-1a.d: Likewise.
1202 * testsuite/ld-x86-64/pr19807-1b.d: Likewise.
1203 * testsuite/ld-x86-64/pr19807-2b.d: Likewise.
1204 * testsuite/ld-x86-64/pr19807-2c.d: Likewise.
1205 * testsuite/ld-x86-64/pr19807-2d.d: Likewise.
1206 * testsuite/ld-x86-64/pr19807-2e.d: Likewise.
1207 * testsuite/ld-x86-64/pr19939b.d: Likewise.
1208 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1210 2020-05-24 Fangrui Song <maskray@google.com>
1213 * lexsup.c (parse_args): Simplify.
1214 * testsuite/ld-elf/dl4e.out: New.
1215 * testsuite/ld-elf/shared.exp: Updated for PR ld/26018 tests.
1217 2020-05-23 H.J. Lu <hongjiu.lu@intel.com>
1220 * testsuite/ld-i386/i386.exp: Add a -Bsymbolic-functions test.
1221 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1222 * testsuite/ld-i386/pr26018.d: New file.
1223 * testsuite/ld-x86-64/pr26018.d: Likewise.
1224 * testsuite/ld-x86-64/pr26018.s: Likewise.
1226 2020-05-21 Alan Modra <amodra@gmail.com>
1228 * deffilep.y: Replace "if (x) free (x)" with "free (x)" thoughout.
1229 * emultempl/elf.em: Likewise.
1230 * emultempl/msp430.em: Likewise.
1231 * emultempl/pe.em: Likewise.
1232 * emultempl/pep.em: Likewise.
1233 * emultempl/ppc64elf.em: Likewise.
1234 * emultempl/xtensaelf.em: Likewise.
1235 * ldelf.c: Likewise.
1236 * ldfile.c: Likewise.
1237 * ldmain.c: Likewise.
1238 * ldmisc.c: Likewise.
1239 * lexsup.c: Likewise.
1240 * pe-dll.c: Likewise.
1242 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
1244 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Updated
1245 priv attributes according to the -mpriv-spec option.
1246 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1247 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1248 * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
1249 * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
1250 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
1251 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
1252 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
1253 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
1254 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
1255 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
1256 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
1258 2020-05-20 Alan Modra <amodra@gmail.com>
1261 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't copy
1262 other_bfd_filename for bfd_set_filename, and test result of
1263 bfd_set_filename call. Don't create a new is->filename, simply
1264 copy from bfd filename. Free new_name after bfd_set_filename.
1265 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
1267 2020-05-19 Siddhesh Poyarekar <siddesh.poyarekar@arm.com>
1269 * testsuite/ld-aarch64/aarch64-elf.exp: New test
1271 * testsuite/ld-aarch64/emit-relocs-560.d: New file.
1272 * testsuite/ld-aarch64/emit-relocs-560.s: New file.
1274 2020-05-19 Alan Modra <amodra@gmail.com>
1276 * emultempl/beos.em (sort_by_file_name): Use bfd_get_filename
1277 rather than accessing bfd->filename directly.
1278 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
1279 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
1280 * emultempl/spuelf.em (embedded_spu_file): Likewise.
1281 * ldlang.c (input_statement_is_archive_path, wild_sort),
1282 (check_excluded_libs): Likewise.
1283 * ldmain.c (add_archive_element): Likewise.
1284 * ldmisc.c (vfinfo): Likewise.
1285 * pe-dll.c (auto_export, generate_edata, pe_create_import_fixup),
1286 (pe_dll_generate_implib, pe_process_import_defs): Likewise.
1287 * plugin.c (plugin_object_p): Likewise.
1289 2020-05-18 Douglas B Rupp <rupp@adacore.com>
1291 * ldemul.h (ldemul_print_symbol): New.
1292 (ld_emulation_xfer_type) <print_symbol): Likewise.
1293 * ldemul.c (ldemul_print_symbol): New.
1294 * ldlang.c (SECTION_NAME_MAP_LANGTH): Move to ...
1295 (print_one_symbol): Make global and move declaration to ...
1296 (print_all_symbols): Rename print_one_symbol to ldemul_print_symbol
1297 (print_input_section): Likewise
1298 * ldlang.h: ... here.
1299 * emultempl/aix.em (gld${EMULATION_NAME}_print_symbol): New.
1300 (ld_emulation_xfer_struct): Use it.
1301 * emultempl/armcoff.em (ld_emulation_xfer_struct): Add print_symbol
1302 and default to NULL.
1303 * emultempl/beos.em (ld_emulation_xfer_struct): Likewise
1304 * emultempl/elf.em (ld_emulation_xfer_struct): Likewise
1305 * emultempl/generic.em (ld_emulation_xfer_struct): Likewise
1306 * emultempl/linux.em (ld_emulation_xfer_struct): Likewise
1307 * emultempl/msp430.em (ld_emulation_xfer_struct): Likewise
1308 * emultempl/pe.em (ld_emulation_xfer_struct): Likewise
1309 * emultempl/pep.em (ld_emulation_xfer_struct): Likewise
1310 * emultempl/ticoff.em (ld_emulation_xfer_struct): Likewise
1311 * emultempl/vanilla.em (ld_emulation_xfer_struct): Likewise
1313 2020-05-18 Sergei Trofimovich <siarheit@google.com>
1315 * ldmain.c (add_archive_element): Fix s/claimi/claim/ typo
1318 2020-05-18 Nick Clifton <nickc@redhat.com>
1320 * po/sv.po: Update Swedish translation.
1322 2020-05-18 Nick Clifton <nickc@redhat.com>
1325 * emultempl/pe.em (_after_open): Check for duplicate filename
1326 pointers before renaming the dll.
1327 * emultempl/pep.em (_after_open): Likewise.
1329 2020-05-13 Nick Clifton <nickc@redhat.com>
1332 * lexsup.c (elf_shlib_list_options): Include the default value for
1333 the hash style in the output text.
1335 2020-05-11 Alan Modra <amodra@gmail.com>
1337 * testsuite/ld-powerpc/pcrelopt.s: Add lxvp and stxvp.
1338 * testsuite/ld-powerpc/pcrelopt.d: Update.
1340 2020-05-11 Alan Modra <amodra@gmail.com>
1342 * testsuite/ld-powerpc/callstub-1.d: Use -mpower10/-Mpower10 in
1343 place of -mfuture/-Mfuture.
1344 * testsuite/ld-powerpc/notoc2.d: Likewise.
1345 * testsuite/ld-powerpc/powerpc.exp: Likewise.
1346 * testsuite/ld-powerpc/tlsgd.d: Likewise.
1347 * testsuite/ld-powerpc/tlsie.d: Likewise.
1348 * testsuite/ld-powerpc/tlsld.d: Likewise.
1350 2020-05-11 Nick Clifton <nickc@redhat.com>
1352 * po/es.po: Updated Spanish translation.
1354 2020-05-01 Wilco Dijkstra <wdijkstr@arm.com>
1357 * testsuite/ld-aarch64/farcall-group.s: New large group test.
1358 * testsuite/ld-aarch64/farcall-group.d: New test driver.
1359 * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
1361 2020-05-01 Alan Modra <amodra@gmail.com>
1364 * ldlang.c (lang_check): Call bfd_merge_private_bfd_data for
1367 2020-05-01 Alan Modra <amodra@gmail.com>
1369 * po/BLD-POTFILES.in: Regenerate.
1371 2020-04-30 Alex Coplan <alex.coplan@arm.com>
1373 * testsuite/ld-aarch64/erratum843419_tls_ie.d: Use udf in disassembly.
1374 * testsuite/ld-aarch64/farcall-b-section.d: Likewise.
1375 * testsuite/ld-aarch64/farcall-back.d: Likewise.
1376 * testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
1378 2020-04-30 Nick Clifton <nickc@redhat.com>
1380 * testsuite/ld-elf/compress1c.d: XFAIL if thet target linker does
1381 not support the -shared command line option.
1382 * /ld-elf/compressed1c.d: Likewise.
1383 * /ld-elf/compressed1e.d: Likewise.
1384 * /ld-elf/dynamic1.d: Likewise.
1385 * /ld-elf/dynsym1.d: Likewise.
1386 * /ld-elf/ehdr_start-shared.d: Likewise.
1387 * /ld-elf/exclude3b.d: Likewise.
1388 * /ld-elf/global1.d: Likewise.
1389 * /ld-elf/hash.d: Likewise.
1390 * /ld-elf/local1.d: Likewise.
1391 * /ld-elf/mbind1b.d: Likewise.
1392 * /ld-elf/now-1.d: Likewise.
1393 * /ld-elf/now-2.d: Likewise.
1394 * /ld-elf/now-3.d: Likewise.
1395 * /ld-elf/now-4.d: Likewise.
1396 * /ld-elf/pr12975.d: Likewise.
1397 * /ld-elf/pr13177.d: Likewise.
1398 * /ld-elf/pr13195.d: Likewise.
1399 * /ld-elf/pr16322.d: Likewise.
1400 * /ld-elf/pr16498a.d: Likewise.
1401 * /ld-elf/pr16498b.d: Likewise.
1402 * /ld-elf/pr17615.d: Likewise.
1403 * /ld-elf/pr19162.d: Likewise.
1404 * /ld-elf/pr19698.d: Likewise.
1405 * /ld-elf/pr20513c.d: Likewise.
1406 * /ld-elf/pr20513d.d: Likewise.
1407 * /ld-elf/pr21389a.d: Likewise.
1408 * /ld-elf/pr21389b.d: Likewise.
1409 * /ld-elf/pr21389c.d: Likewise.
1410 * /ld-elf/pr21562a.d: Likewise.
1411 * /ld-elf/pr21562b.d: Likewise.
1412 * /ld-elf/pr21562c.d: Likewise.
1413 * /ld-elf/pr21562d.d: Likewise.
1414 * /ld-elf/pr21562e.d: Likewise.
1415 * /ld-elf/pr21562f.d: Likewise.
1416 * /ld-elf/pr21562g.d: Likewise.
1417 * /ld-elf/pr21562h.d: Likewise.
1418 * /ld-elf/pr21562i.d: Likewise.
1419 * /ld-elf/pr21562j.d: Likewise.
1420 * /ld-elf/pr21562k.d: Likewise.
1421 * /ld-elf/pr21562l.d: Likewise.
1422 * /ld-elf/pr21562m.d: Likewise.
1423 * /ld-elf/pr21562n.d: Likewise.
1424 * /ld-elf/pr21903a.d: Likewise.
1425 * /ld-elf/pr21903b.d: Likewise.
1426 * /ld-elf/pr22269b.d: Likewise.
1427 * /ld-elf/pr22393-1a.d: Likewise.
1428 * /ld-elf/pr22393-1b.d: Likewise.
1429 * /ld-elf/pr23658-1c.d: Likewise.
1430 * /ld-elf/pr25708.d: Likewise.
1431 * /ld-elf/rpath-1.d: Likewise.
1432 * /ld-elf/rpath-2.d: Likewise.
1433 * /ld-elf/runpath-1.d: Likewise.
1434 * /ld-elf/runpath-2.d: Likewise.
1435 * /ld-elf/sizeofb.d: Likewise.
1436 * /ld-elf/startofb.d: Likewise.
1437 * /ld-elf/strtab.d: Likewise.
1438 * /ld-elf/textaddr2.d: Likewise.
1439 * /ld-elf/textaddr5.d: Likewise.
1440 * /ld-elf/textaddr6.d: Likewise.
1441 * /ld-elf/unknown2.d: Likewise.
1442 * /ld-undefined/entry-3.d: Likewise.
1443 * /ld-undefined/entry-4.d: Likewise.
1444 * /ld-elf/mbind1c.d: XFAIL if the target linker does not support
1446 * /ld-elf/pie.d: Likewise.
1447 * /ld-elf/pr19539.d: Likewise.
1448 * /ld-elf/pr21903d.d: Likewise.
1449 * /ld-elf/pr22269a.d: Likewise.
1450 * /ld-elf/pr22393-1c.d: Likewise.
1451 * /ld-elf/pr22393-1d.d: Likewise.
1452 * /ld-elf/pr22423.d: Likewise.
1453 * /ld-elf/loadaddr1.d: Expect to fail on the rx-linux target.
1454 * /ld-elf/loadaddr2.d: Likewise.
1455 * /ld-elf/pr22393-1e.d: Likewise.
1456 * /ld-elf/pr22393-1f.d: Likewise.
1457 * /ld-elf/textaddr1.d: Likewise.
1458 * /ld-elf/textaddr4.d: Likewise.
1460 2020-04-30 Yoshinori Sato <ysato@users.sourceforge.jp>
1462 * emulparams/elf32rx_linux.sh: New rx-linux emulation.
1463 * emultempl/rxlinux.em: New.
1464 * configure.tgt: Add rx-linux.
1465 * Makefile.am: Add eelf32rx_linux.c
1466 * Makefile.in: Regenerate.
1468 2020-04-29 Max Filippov <jcmvbkbc@gmail.com>
1470 * testsuite/ld-xtensa/relax-diff1.d: New test definition.
1471 * testsuite/ld-xtensa/relax-diff1.s: New test source.
1472 * testsuite/ld-xtensa/relax-ndiff.d: New test definition.
1473 * testsuite/ld-xtensa/relax-ndiff.s: New test source.
1474 * testsuite/ld-xtensa/xtensa.exp: (relax-diff1)
1475 (relax-ndiff): New tests.
1477 2020-04-29 Stephen Casner <casner@acm.org>
1480 * testsuite/ld-scripts/default-script.exp: Add --image-base=0 to
1481 LDFLAGS for targets *-*-mingw64 x86_64-*-cygwin.
1482 * testsuite/ld-scripts/default-script1.d: No longer have to skip
1483 test for those targets.
1484 * testsuite/ld-scripts/default-script2.d: Likewise.
1485 * testsuite/ld-scripts/default-script3.d: Likewise.
1486 * testsuite/ld-scripts/default-script4.d: Likewise.
1488 2020-04-27 Tamar Christina <tamar.christina@arm.com>
1490 * pe-dll.c (pe_detail_list): Add pe-bigobj-i386.
1492 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
1495 * testsuite/ld-xtensa/relax-loc.d: New test definition.
1496 * testsuite/ld-xtensa/relax-loc.s: New test source.
1497 * testsuite/ld-xtensa/xtensa.exp (relax-loc): New test.
1499 2020-04-22 Fangrui Song <maskray@google.com>
1502 * ldlang.h (struct lang_input_statement_struct): Add extra_search_path.
1503 * ldlang.c (current_input_file): New.
1505 (new_afile): Add from_filename parameter. Set extra_search_path.
1506 (lang_add_input_file): Pass current_input_file to new_afile.
1507 (load_symbols): Set current_input_file.
1508 * ldfile.c (ldfile_open_file): If extra_search_path has been set
1509 then scan it for the file that needs to be opened.
1510 * ld.texi: Document the new behaviour.
1511 * NEWS: Mention the new feature.
1513 2020-04-22 Alan Modra <amodra@gmail.com>
1515 * testsuite/ld-scripts/default-script1.d: Correct mingw skip.
1516 * testsuite/ld-scripts/default-script2.d: Likewise.
1517 * testsuite/ld-scripts/default-script3.d: Likewise.
1518 * testsuite/ld-scripts/default-script4.d: Likewise.
1520 2020-04-21 Stephen Casner <casner@acm.org>
1523 * testsuite/ld-scripts/script.exp (check_script)
1524 (extract_symbol_test): Make test addresses fit in 16 bits.
1525 * testsuite/ld-scripts/memory.t: Likewise.
1526 * testsuite/ld-scripts/memory_sym.t (TXT_LENGTH): Likewise.
1527 * testsuite/ld-scripts/default-script.t (_START): Likewise.
1528 * testsuite/ld-scripts/default-script1.d: Likewise.
1529 * testsuite/ld-scripts/default-script2.d: Likewise.
1530 * testsuite/ld-scripts/default-script3.d: Likewise.
1531 * testsuite/ld-scripts/default-script4.d: Likewise.
1532 * testsuite/ld-scripts/empty-address-1.t: Likewise.
1533 * testsuite/ld-scripts/empty-address-1.d: Likewise.
1534 * testsuite/ld-scripts/empty-address-2a.d: Likewise.
1535 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1536 * testsuite/ld-misc/start.s: .long -> .dc.a to allow relocation to
1537 fit target address size.
1538 * testsuite/ld-scripts/empty-address-1.s: Likewise.
1539 * testsuite/ld-scripts/empty-address-2.s: Likewise.
1541 2020-04-21 H.J. Lu <hongjiu.lu@intel.com>
1544 * ldelfgen.c (ldelf_map_segments): Call
1545 elf_backend_strip_zero_sized_dynamic_sections.
1546 * testsuite/ld-alpha/tlsbinr.rd: Updated.
1548 2020-04-20 Alan Modra <amodra@gmail.com>
1550 * testsuite/ld-powerpc/tlsopt5.s: Rename foo to aaaaa.
1551 * testsuite/ld-powerpc/tlsopt5.d: Adjust to suit.
1552 * testsuite/ld-powerpc/tlsopt6.d: Likewise.
1554 2020-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1556 * testsuite/ld-elf/warn1.d: Don't xfail on 64-bit Solaris/SPARC.
1557 * testsuite/ld-elf/warn2.d: Likewise.
1559 2020-04-18 H.J. Lu <hongjiu.lu@intel.com>
1561 * testsuite/ld-elf/elf.exp (ASFLAGS): Add "--defsym NO_SET=1" for
1563 * testsuite/ld-elf/pr19789.s: Use "=" if NO_SET is defined.
1565 2020-04-16 Stephen Casner <casner@acm.org>
1568 * testsuite/ld-scripts/pr18963.t: Reduce section sizes to fit in
1569 16-bit address space.
1570 * testsuite/ld-scripts/pr18963.d: Likewise.
1572 2020-04-17 Juan Manuel Guerrero <juan.guerrero@gmx.de>
1573 Jan W. Jagersma <jwjagersma@gmail.com>
1575 * scripttempl/i386go32.sc: Provide symbol _environ. Link in
1576 .ctors and .dtors. Discard LTO sections.
1578 2020-04-17 Nick Clifton <nickc@redhat.com>
1580 * testsuite/config/default.exp: If not already set then create the
1581 CCC_OVERRIDE_OPTIONS environment variable to help when running the
1582 testsuite with clang.
1583 * testsuite/ld-elf/pr22269-1.c: Add a missing return statement.
1584 * testsuite/ld-elfvers/vers.exp: Add checks to detect if files
1585 were built before attempting to copy them.
1587 2020-04-15 Fangrui Song <maskray@google.com>
1590 * lexsup.c (parse_args): Change RM_GENERATE_WARNING and
1591 RM_GENERATE_ERROR to RM_DIAGNOSE.
1592 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Change
1593 RM_GENERATE_ERROR to RM_DIAGNOSE.
1594 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Likewise.
1596 2020-04-14 Stephen Casner <casner@acm.org>
1599 * emulparams/pdp11.sh (SCRIPT_NAME): Change to pdp11.
1600 (EXTRA_EM_FILE): New, add emulation file pdp11.
1601 * scripttempl/pdp11.sc: New, derived from aout.sc without
1602 irrelevant input sections.
1603 * emultempl/pdp11.em (_add_options, _handle_option)
1604 (_list_options): New. Add options -z, --imagic for pdp11-aout.
1605 (_before_parse): Make --omagic be default instead of --nmagic.
1606 (_get_script): Modify special-case linker script for --imagic.
1607 * lexsup.c (parse_args): Explictly set config.text_read_only for -n.
1608 * ld.texi (Options): Add documentation of PDP11-specific options.
1609 (Options): Fix unrelated typo to --no-compact-branches.
1610 * gen-doc.texi: @set PDP11.
1611 * testsuite/ld-pdp11/pdp11.exp: New, start pdp11 testing.
1612 * testsuite/ld-pdp11/sections.s: New, source for options tests.
1613 * testsuite/ld-pdp11/imagic.d: New, test --imagic format.
1614 * testsuite/ld-pdp11/imagicz.d: New, test -z (imagic) format.
1615 * testsuite/ld-pdp11/nmagic.d: New, test --nmagic format.
1616 * testsuite/ld-pdp11/omagic.d: New, test --omagic format.
1618 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
1621 * testsuite/ld-arm/armthumb-lib.sym: Updated.
1622 * testsuite/ld-arm/farcall-mixed-app.sym: Likewise.
1623 * testsuite/ld-arm/farcall-mixed-app2.sym: Likewise.
1624 * testsuite/ld-arm/fdpic-main-m.sym: Likewise.
1625 * testsuite/ld-arm/fdpic-main.sym: Likewise.
1626 * testsuite/ld-arm/fdpic-shared-m.sym: Likewise.
1627 * testsuite/ld-arm/fdpic-shared.sym: Likewise.
1628 * testsuite/ld-arm/mixed-app.sym: Likewise.
1629 * testsuite/ld-arm/mixed-lib.sym: Likewise.
1630 * testsuite/ld-arm/preempt-app.sym: Likewise.
1631 * testsuite/ld-elf/hash.d: Likewise.
1632 * testsuite/ld-elf/pr13195.d: Likewise.
1633 * testsuite/ld-elfvsb/hidden2.d: Likewise.
1634 * testsuite/ld-mips-elf/hash2.d: Likewise.
1636 2020-04-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1638 * testsuite/ld-shared/shared.exp: Remove dangling comments.
1639 xfail shared non PIC tests on Solaris.
1641 2020-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1643 * testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIC on sparc*-*-*.
1645 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
1647 * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): Replace
1648 nopie with available.
1650 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
1652 * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): New.
1653 Set to "-fcf-protection=none" if target compiler supports it.
1654 * testsuite/ld-srec/srec.exp: Add $NOCF_PROTECTION_CFLAGS to
1656 * testsuite/ld-x86-64/x86-64.exp: Add $NOCF_PROTECTION_CFLAGS
1659 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
1661 * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Compile with
1663 (check_pr25749b): Likewise.
1665 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1667 * testsuite/ld-ifunc/ifunc-10-i386.d: Remove *-*-solaris2* from
1669 * ifunc-11-i386.d: Likewise.
1670 * ifunc-12-i386.d: Likewise.
1671 * ifunc-13-i386.d: Likewise.
1672 * ifunc-14a-i386.d: Likewise.
1673 * ifunc-14b-i386.d: Likewise.
1674 * ifunc-14c-i386.d: Likewise.
1675 * ifunc-14d-i386.d: Likewise.
1676 * ifunc-14e-i386.d: Likewise.
1677 * ifunc-14f-i386.d: Likewise.
1678 * ifunc-15-i386.d: Likewise.
1679 * ifunc-16-i386-now.d: Likewise.
1680 * ifunc-16-i386.d: Likewise.
1681 * ifunc-17a-i386.d: Likewise.
1682 * ifunc-17b-i386.d: Likewise.
1683 * ifunc-18a-i386.d: Likewise.
1684 * ifunc-18b-i386.d: Likewise.
1685 * ifunc-19a-i386.d: Likewise.
1686 * ifunc-19b-i386.d: Likewise.
1687 * ifunc-2-i386-now.d: Likewise.
1688 * ifunc-2-i386.d: Likewise.
1689 * ifunc-2-local-i386-now.d: Likewise.
1690 * ifunc-2-local-i386.d: Likewise.
1691 * ifunc-20-i386.d: Likewise.
1692 * ifunc-21-i386.d: Likewise.
1693 * ifunc-22-i386.d: Likewise.
1694 * ifunc-5a-i386.d: Likewise.
1695 * ifunc-5a-local-i386.d: Likewise.
1696 * ifunc-5b-i386.d: Likewise.
1697 * ifunc-5b-local-i386.d: Likewise.
1698 * ifunc-5r-local-i386.d: Likewise.
1699 * ifunc-6a-i386.d: Likewise.
1700 * ifunc-6b-i386.d: Likewise.
1701 * ifunc-7a-i386.d: Likewise.
1702 * ifunc-7b-i386.d: Likewise.
1703 * ifunc-8-i386.d: Likewise.
1704 * ifunc-9-i386.d: Likewise.
1705 * pr17154-i386-now.d: Likewise.
1706 * pr17154-i386.d: Likewise.
1708 * ifunc-23a-x86.d: Remove notarget.
1709 * ifunc-24a-x86.d: Likewise.
1710 * ifunc-25a-x86.d: Likewise.
1712 2020-04-02 Nick Clifton <nickc@redhat.com>
1715 * ldfile.c (ldfile_open_file): Fix typo in warning message.
1717 2020-04-01 H.J. Lu <hongjiu.lu@intel.com>
1721 * testsuite/ld-elf/linux-x86.exp: Run ld/25749 tests.
1722 * testsuite/ld-elf/pr25749-1.c: New file.
1723 * testsuite/ld-elf/pr25749-1a.c: Likewise.
1724 * testsuite/ld-elf/pr25749-1b.c: Likewise.
1725 * testsuite/ld-elf/pr25749-1b.err: Likewise.
1726 * testsuite/ld-elf/pr25749-1c.c: Likewise.
1727 * testsuite/ld-elf/pr25749-1d.c: Likewise.
1728 * testsuite/ld-elf/pr25749-2.c: Likewise.
1729 * testsuite/ld-elf/pr25749-2a.s: Likewise.
1730 * testsuite/ld-elf/pr25749-2b.s: Likewise.
1731 * testsuite/ld-elf/pr25749.rd: Likewise.
1732 * testsuite/ld-elf/pr25754-1a.c: Likewise.
1733 * testsuite/ld-elf/pr25754-1b.s: Likewise.
1734 * testsuite/ld-elf/pr25754-2a.c: Likewise.
1735 * testsuite/ld-elf/pr25754-2b.err: Likewise.
1736 * testsuite/ld-elf/pr25754-2b.s: Likewise.
1737 * testsuite/ld-elf/pr25754-3a.c: Likewise.
1738 * testsuite/ld-elf/pr25754-3b.s: Likewise.
1739 * testsuite/ld-elf/pr25754-4a.c: Likewise.
1740 * testsuite/ld-elf/pr25754-4b.s: Likewise.
1741 * testsuite/ld-elf/pr25754-4c.s: Likewise.
1742 * testsuite/ld-elf/pr25754-5a.c: Likewise.
1743 * testsuite/ld-elf/pr25754-5b.s: Likewise.
1744 * testsuite/ld-elf/pr25754-5c.s: Likewise.
1745 * testsuite/ld-elf/pr25754-6a.c: Likewise.
1746 * testsuite/ld-elf/pr25754-6b.s: Likewise.
1747 * testsuite/ld-x86-64/pr19609-6a.d: Don't expect linker error.
1749 2020-04-01 Tamar Christina <tamar.christina@arm.com>
1752 * testsuite/ld-arm/arm-elf.exp (thumb-plt, thumb-plt-got): Skip for NaCL.
1754 2020-04-01 Nick Clifton <nickc@redhat.com>
1757 * ldfile.c (ldfile_open_file): If a search for a library fails,
1758 but there is a file that would match if it had a "lib" prefix to
1759 its name, then tell the user.
1761 2020-04-01 Tamar Christina <tamar.christina@arm.com>
1764 * testsuite/ld-arm/arm-elf.exp (thumb-plt-got): New.
1765 * testsuite/ld-arm/thumb-plt-got.d: New test.
1767 2020-04-01 Tamar Christina <tamar.christina@arm.com>
1769 * testsuite/ld-arm/arm-elf.exp (thumb-plt): New.
1770 * testsuite/ld-arm/thumb-plt.d: New test.
1771 * testsuite/ld-arm/thumb-plt.s: New test.
1773 2020-04-01 Hans-Peter Nilsson <hp@bitrange.com>
1775 * testsuite/ld-scripts/defined4.d: Don't xfail mmix-*-*.
1777 2020-03-30 Nick Clifton <nickc@redhat.com>
1780 * emultempl/pe.em (after_open): Replace initialisation of the
1781 insert_timestamp field in the pe_data structure with an
1782 initialisation of the timestamp field.
1783 * emultemp/pep.em: Likewise.
1784 * pe-dll.c (fill_edata): Use the timestamp field in the pe_data
1785 structure instead of the insert_timestamp field.
1787 2020-03-28 H.J. Lu <hongjiu.lu@intel.com>
1790 * emulparams/elf_i386_ldso.sh (COMMONPAGESIZE): New.
1791 * testsuite/ld-elf/shared.exp:Don't xfail pr20995-2 tests for
1794 2020-03-27 H.J. Lu <hongjiu.lu@intel.com>
1797 * testsuite/ld-elf/shared.exp: Xfail pr20995-2 tests for Solaris.
1799 2020-03-27 H.J. Lu <hongjiu.lu@intel.com>
1802 * testsuite/ld-ifunc/ifunc-23a-x86.d: Add notarget for Solaris.
1803 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
1804 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
1806 2020-03-25 Alan Modra <amodra@gmail.com>
1808 * testsuite/ld-elf/compress1c.d: xfail h8300.
1809 * testsuite/ld-elf/compressed1c.d: Likewise.
1810 * testsuite/ld-elf/compressed1e.d: Likewise.
1811 * testsuite/ld-elf/dynamic1.d: Likewise.
1812 * testsuite/ld-elf/dynsym1.d: Likewise.
1813 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1814 * testsuite/ld-elf/exclude3b.d: Likewise.
1815 * testsuite/ld-elf/export-class.exp: Don't run without -shared support.
1816 * testsuite/ld-elf/global1.d: xfail h8300.
1817 * testsuite/ld-elf/hash.d: Likewise.
1818 * testsuite/ld-elf/loadaddr1.d: Likewise.
1819 * testsuite/ld-elf/loadaddr2.d: Likewise.
1820 * testsuite/ld-elf/local1.d: Likewise.
1821 * testsuite/ld-elf/mbind1b.d: Likewise.
1822 * testsuite/ld-elf/mbind1c.d: Likewise.
1823 * testsuite/ld-elf/now-1.d: Likewise.
1824 * testsuite/ld-elf/now-2.d: Likewise.
1825 * testsuite/ld-elf/now-3.d: Likewise.
1826 * testsuite/ld-elf/now-4.d: Likewise.
1827 * testsuite/ld-elf/pie.d: Likewise.
1828 * testsuite/ld-elf/pr12975.d: Likewise.
1829 * testsuite/ld-elf/pr13177.d: Likewise.
1830 * testsuite/ld-elf/pr13195.d: Likewise.
1831 * testsuite/ld-elf/pr16322.d: Likewise.
1832 * testsuite/ld-elf/pr16498a.d: Likewise.
1833 * testsuite/ld-elf/pr16498b.d: Likewise.
1834 * testsuite/ld-elf/pr17615.d: Likewise.
1835 * testsuite/ld-elf/pr19162.d: Likewise.
1836 * testsuite/ld-elf/pr19539.d: Likewise.
1837 * testsuite/ld-elf/pr19617a.d: Likewise.
1838 * testsuite/ld-elf/pr19698.d: Likewise.
1839 * testsuite/ld-elf/pr20513c.d: Likewise.
1840 * testsuite/ld-elf/pr20513d.d: Likewise.
1841 * testsuite/ld-elf/pr21389a.d: Likewise.
1842 * testsuite/ld-elf/pr21389b.d: Likewise.
1843 * testsuite/ld-elf/pr21389c.d: Likewise.
1844 * testsuite/ld-elf/pr21562a.d: Likewise.
1845 * testsuite/ld-elf/pr21562b.d: Likewise.
1846 * testsuite/ld-elf/pr21562c.d: Likewise.
1847 * testsuite/ld-elf/pr21562d.d: Likewise.
1848 * testsuite/ld-elf/pr21562e.d: Likewise.
1849 * testsuite/ld-elf/pr21562f.d: Likewise.
1850 * testsuite/ld-elf/pr21562g.d: Likewise.
1851 * testsuite/ld-elf/pr21562h.d: Likewise.
1852 * testsuite/ld-elf/pr21562i.d: Likewise.
1853 * testsuite/ld-elf/pr21562j.d: Likewise.
1854 * testsuite/ld-elf/pr21562k.d: Likewise.
1855 * testsuite/ld-elf/pr21562l.d: Likewise.
1856 * testsuite/ld-elf/pr21562m.d: Likewise.
1857 * testsuite/ld-elf/pr21562n.d: Likewise.
1858 * testsuite/ld-elf/pr21903a.d: Likewise.
1859 * testsuite/ld-elf/pr21903b.d: Likewise.
1860 * testsuite/ld-elf/pr21903d.d: Likewise.
1861 * testsuite/ld-elf/pr22269a.d: Likewise.
1862 * testsuite/ld-elf/pr22269b.d: Likewise.
1863 * testsuite/ld-elf/pr22393-1a.d: Likewise.
1864 * testsuite/ld-elf/pr22393-1b.d: Likewise.
1865 * testsuite/ld-elf/pr22393-1c.d: Likewise.
1866 * testsuite/ld-elf/pr22393-1d.d: Likewise.
1867 * testsuite/ld-elf/pr22393-1e.d: Likewise.
1868 * testsuite/ld-elf/pr22393-1f.d: Likewise.
1869 * testsuite/ld-elf/pr22423.d: Likewise.
1870 * testsuite/ld-elf/pr22450.d: xfail avr, crx, h8300, ip2k, m68hc11,
1872 * testsuite/ld-elf/pr23658-1c.d: xfail h8300.
1873 * testsuite/ld-elf/pr25708.d: xfail h8300 and hppa64.
1874 * testsuite/ld-elf/rpath-1.d: xfail h8300.
1875 * testsuite/ld-elf/rpath-2.d: Likewise.
1876 * testsuite/ld-elf/runpath-1.d: Likewise.
1877 * testsuite/ld-elf/runpath-2.d: Likewise.
1878 * testsuite/ld-elf/sizeofb.d: Likewise.
1879 * testsuite/ld-elf/startofb.d: Likewise.
1880 * testsuite/ld-elf/strtab.d: Likewise.
1881 * testsuite/ld-elf/textaddr1.d: Likewise.
1882 * testsuite/ld-elf/textaddr2.d: Likewise.
1883 * testsuite/ld-elf/textaddr4.d: Likewise.
1884 * testsuite/ld-elf/textaddr5.d: Likewise.
1885 * testsuite/ld-elf/textaddr6.d: Likewise.
1886 * testsuite/ld-elf/unknown2.d: Likewise.
1887 * testsuite/ld-undefined/entry-3.d: Likewise.
1888 * testsuite/ld-undefined/entry-4.d: Likewise.
1889 * testsuite/ld-h8300/h8300.exp: Pass appropriate ld -m option.
1890 * testsuite/ld-h8300/gcsection.d: Remove ld -m option and relax
1892 * testsuite/ld-h8300/relax-2.d: Likewise.
1893 * testsuite/ld-h8300/relax-3.d: Likewise.
1894 * testsuite/ld-h8300/relax-4.d: Likewise.
1895 * testsuite/ld-h8300/relax-5.d: Likewise.
1896 * testsuite/ld-h8300/relax-6.d: Likewise.
1897 * testsuite/ld-h8300/relax-7.d: Likewise.
1898 * testsuite/ld-h8300/relax.d: Relax file format match.
1900 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1903 * testsuite/ld-elf/pr25708.d: New file.
1905 2020-03-23 Alan Modra <amodra@gmail.com>
1907 * Makefile.am (ALL_EMULATION_SOURCES): Reinstate ei386aout.c.
1908 Include ei386aout dep file.
1909 * Makefile.in: Regenerate.
1910 * po/BLD-POTFILES.in: Regenerate.
1912 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1914 * testsuite/ld-plugin/lto.exp (lto_link_tests): Run PR ld/25355
1915 test only for GCC 10 or newer.
1917 2020-03-20 Alan Modra <amodra@gmail.com>
1919 * testplug.c (parse_symdefstr): Use %hhi to read sym->def, and
1921 * testplug2.c (parse_symdefstr): Likewise.
1922 * testplug3.c (parse_symdefstr): Likewise.
1923 * testplug4.c (parse_symdefstr): Likewise.
1925 2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
1927 * testsuite/ld-arm/non-contiguous-arm4.d: Fix expected output.
1928 * testsuite/ld-powerpc/non-contiguous-powerpc.d: Likewise.
1930 2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
1932 * emultempl/xtensaelf.em: Emit a fatal error message
1933 instead of calling abort.
1934 * ldlang.c: Likewise.
1936 2020-03-14 Alan Modra <amodra@gmail.com>
1938 * testsuite/ld-elf/non-contiguous.d: Don't xfail generic ELF
1939 targets. Don't skip xtensa, xfail instead.
1941 2020-03-13 Christophe Lyon <christophe.lyon@linaro.org>
1943 * ldlang.c (lang_add_section): Add support for
1944 non_contiguous_regions.
1945 (size_input_section): Likewise.
1946 (lang_size_sections_1): Likewise.
1947 (process_insert_statements): Likewise.
1948 * ldlex.h (option_values): Add OPTION_NON_CONTIGUOUS_REGIONS and
1949 OPTION_NON_CONTIGUOUS_REGIONS_WARNINGS.
1950 * lexsup.c (ld_options): Add entries for
1951 --enable-non-contiguous-regions and
1952 --enable-non-contiguous-regions-warnings.
1953 (parse_args): Handle it.
1954 * NEWS: Add --enable-non-contiguous-regions and
1955 --enable-non-contiguous-regions-warnings.
1956 * ld.texi: Add --enable-non-contiguous-regions and
1957 --enable-non-contiguous-regions-warnings documentation.
1958 * emultempl/armelf.em (elf32_arm_add_stub_section): Add
1959 SEC_LINKER_CREATED flag.
1960 * emultempl/xtensaelf.em (ld_build_required_section_dependence):
1961 Emit an error when --enable-non-contiguous-regions is used.
1962 * testsuite/ld-elf/non-contiguous.d: New.
1963 * testsuite/ld-elf/non-contiguous.ld: New.
1964 * testsuite/ld-elf/non-contiguous.s: New.
1965 * testsuite/ld-arm/arm-elf.exp: Run the new tests.
1966 * testsuite/ld-arm/arm-elf/non-contiguous-arm.s: New.
1967 * testsuite/ld-arm/arm-elf/non-contiguous-arm.d: New.
1968 * testsuite/ld-arm/arm-elf/non-contiguous-arm.ld: New.
1969 * testsuite/ld-arm/arm-elf/non-contiguous-arm2.d: New.
1970 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
1971 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.d: New.
1972 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
1973 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.d: New.
1974 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.ld: New.
1975 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.d: New.
1976 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.ld: New.
1977 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.d: New.
1978 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.ld: New.
1979 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
1980 * testsuite/ld-powerpc/non-contiguous-powerpc.d: New.
1981 * testsuite/ld-powerpc/non-contiguous-powerpc.ld: New.
1982 * testsuite/ld-powerpc/non-contiguous-powerpc.sd: New.
1983 * testsuite/ld-powerpc/non-contiguous-powerpc64.d: New.
1985 2020-03-13 H.J. Lu <hongjiu.lu@intel.com>
1988 * emulparams/elf32_x86_64.sh: Use static.sh.
1989 * emulparams/elf_i386.sh: Likewise.
1990 * emulparams/elf_x86_64.sh: Likewise.
1991 * emulparams/static.sh: New file.
1992 * emultempl/elf-x86.em: Include "ldlex.h".
1993 * testsuite/ld-elf/pr24920.err: New file.
1994 * testsuite/ld-elf/linux-x86.exp: Run ld/24920 tests.
1996 2020-03-13 Christian Eggers <ceggers@gmx.de>
1998 * ldexp.c (fold_name): Return SIZEOF_HEADERS in bytes.
2000 2020-03-11 Alan Modra <amodra@gmail.com>
2002 * ldelf.c (elf_orphan_compatible): Return false when two sections
2003 have differing SHF_MASKPROC or SHF_MASKOS flags.
2005 2020-03-05 Alan Modra <amodra@gmail.com>
2008 * ldlang.c (lang_size_sections_1): Don't report changes on
2009 second and subsequent iterations that make no change in
2010 alignment from that already reported.
2012 2020-03-05 Alan Modra <amodra@gmail.com>
2015 * ldlang.c (lang_sizing_iteration): New static var.
2016 (lang_size_sections_1): Warn about no memory region only on first
2017 iteration. Warn about changing start address on first iteration
2018 then any delta from that on subsequent iterations. Report a signed
2020 (one_lang_size_sections_pass): Increment lang_sizing_iteration.
2022 2020-03-03 Nick Clifton <nickc@redhat.com>
2025 * ld.texi (Options): Update the description of the --rpath-link
2028 2020-03-02 Alan Modra <amodra@gmail.com>
2030 * plugin.c (plugin_object_p): Return a bfd_cleanup.
2031 (plugin_cleanup): New function.
2033 2020-03-01 H.J. Lu <hongjiu.lu@intel.com>
2036 * plugin.c (plugin_object_p): Copy the no_export field to the IR
2038 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Add
2040 * testsuite/ld-plugin/pr25618.d: New file.
2041 * testsuite/ld-plugin/pr25618a.cc: Likewise.
2042 * testsuite/ld-plugin/pr25618a.h: Likewise.
2043 * testsuite/ld-plugin/pr25618b.cc: Likewise.
2044 * testsuite/ld-plugin/pr25618b.h: Likewise.
2046 2020-02-27 Alan Modra <amodra@gmail.com>
2049 * testsuite/ld-mmix/b-fixo2.d: Adjust for .data change.
2050 * testsuite/ld-mmix/sec-2.d: Likewise.
2051 * testsuite/ld-mmix/sec-3.d: Likewise.
2052 * testsuite/ld-mmix/sec-4.d: Likewise.
2053 * testsuite/ld-mmix/spec802.d: Likewise.
2054 * testsuite/ld-mmix/spec803.d: Likewise.
2055 * testsuite/ld-mmix/spec804.d: Likewise.
2056 * testsuite/ld-mmix/spec805.d: Likewise.
2057 * testsuite/ld-mmix/spec806.d: Likewise.
2058 * testsuite/ld-mmix/spec807.d: Likewise.
2059 * testsuite/ld-mmix/spec808.d: Likewise.
2061 2020-02-26 H.J. Lu <hongjiu.lu@intel.com>
2064 * testsuite/ld-plugin/lto.exp: Run PR ld/25593 tests.
2065 * testsuite/ld-plugin/pr25593.d: New file.
2066 * testsuite/ld-plugin/pr25593a-1.c: Likewise.
2067 * testsuite/ld-plugin/pr25593a-2.c: Likewise.
2068 * testsuite/ld-plugin/pr25593b.c: Likewise.
2069 * testsuite/ld-plugin/pr25593c.c: Likewise.
2070 * testsuite/ld-plugin/pr25593d.c: Likewise.
2071 * testsuite/ld-plugin/pr25593e.c: Likewise.
2073 2020-02-26 Alan Modra <amodra@gmail.com>
2075 * emultempl/cskyelf.em: Indent labels correctly.
2076 * ldfile.c: Likewise.
2077 * ldlang.c: Likewise.
2078 * plugin.c: Likewise.
2080 2020-02-26 Alan Modra <amodra@gmail.com>
2083 * ldelf.c (ldelf_try_needed): Add DT_NEEDED lib to input_bfds.
2084 (ldelf_after_open): Save state of input_bfds list before loading
2085 DT_NEEDED libs. Traverse input_bfds list adding DT_NEEDED tags.
2086 Restore input_bfds list.
2087 * testsuite/ld-cris/gotplt1.d: Adjust for changed .dynstr order.
2089 2020-02-24 Nick Clifton <nickc@redhat.com>
2091 * po/fr.po: Update French translation.
2093 2020-02-22 Alan Modra <amodra@gmail.com>
2096 * NEWS: Mention better "PHDR segment not covered by LOAD segment"
2099 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
2102 * emultempl/z80.em: Remove machine compatability checking.
2104 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
2107 * testsuite/ld-z80/arch_ez80_adl.d: Update command line.
2108 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
2109 * testsuite/ld-z80/arch_r800.d: Likewise.
2110 * testsuite/ld-z80/arch_z180.d: Likewise.
2111 * testsuite/ld-z80/arch_z80n.d: Likewise.
2112 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
2113 * testsuite/ld-z80/comb_arch_z180_z80.d: Likewise.
2114 * testsuite/ld-z80/comb_arch_z80_ez80.d: Likewise.
2115 * testsuite/ld-z80/comb_arch_z80_z180.d: Likewise.
2116 * testsuite/ld-z80/comb_arch_z80_z80n.d: Likewise.
2117 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
2118 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
2119 * testsuite/ld-z80/relocs_f_ez80.d: Likewise.
2120 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
2121 * testsuite/ld-z80/relocs_f_z80n.d: Likewise.
2123 2020-02-19 Alan Modra <amodra@gmail.com>
2125 * testsuite/ld-plugin/pr25355.d: Allow alpha-linux nm result.
2127 2020-02-10 H.J. Lu <hongjiu.lu@intel.com>
2130 * testsuite/ld-plugin/lto.exp: Run PR binutils/25355 test.
2131 * testsuite/ld-plugin/pr25355.c: New file.
2132 * testsuite/ld-plugin/pr25355.d: Likewise.
2133 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Support compile
2136 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
2138 * testsuite/ld-unique/unique.exp (contains_unique_symbol): Updated.
2140 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
2143 * emulparams/elf32z80.sh: Use z80 emulation.
2144 * emultempl/z80.em: Make generic to both COFF and ELF Z80 emulations.
2145 * emultempl/z80elf.em: Delete.
2146 * testsuite/ld-elf/pr22450.d: Expect to fail for the Z80.
2147 * testsuite/ld-elf/sec64k.exp: Fix Z80 assembly.
2148 * testsuite/ld-unique/pr21529.s: Avoid register name conflict.
2149 * testsuite/ld-unique/unique.s: Likewise.
2150 * testsuite/ld-unique/unique_empty.s: Likewise.
2151 * testsuite/ld-unique/unique_shared.s: Likewise.
2152 * testsuite/ld-unique/unique.d: Updated expected output.
2153 * testsuite/ld-z80/arch_z80n.d: New file.
2154 * testsuite/ld-z80/comb_arch_z80_z80n.d: New file.
2155 * testsuite/ld-z80/labels.s: Add more labels.
2156 * testsuite/ld-z80/relocs.s: Add more reloc tests.
2157 * testsuite/ld-z80/relocs_f_z80n.d: New file
2159 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
2162 * testsuite/ld-elf/pr25022.d: Xfail more targets which don't use
2163 ldelf_before_place_orphans.
2165 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
2168 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
2169 before_place_orphans_default.
2170 * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
2171 * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
2172 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
2173 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
2174 * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
2175 * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
2176 * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
2177 * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
2178 * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
2179 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Use
2180 ldelf_before_place_orphans.
2181 * ldelf.c (ldelf_before_place_orphans): New.
2182 * ldelf.h (ldelf_before_place_orphans): Likewise.
2183 * ldemul.c (ldemul_before_place_orphans): Likewise.
2184 (before_place_orphans_default): Likewise.
2185 * ldemul.h (ldemul_before_place_orphans): Likewise.
2186 (before_place_orphans_default): Likewise.
2187 (ld_emulation_xfer_struct): Add before_place_orphans.
2188 * ldlang.c (lang_process): Call ldemul_before_place_orphans
2189 before lang_place_orphans.
2190 * testsuite/ld-elf/pr25022.d: New file.
2191 * testsuite/ld-elf/pr25022.s: Likewise.
2192 * testsuite/ld-elf/pr25022.t: Likewise.
2194 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
2197 * testsuite/ld-elf/pr25490-1.d: New file.
2198 * testsuite/ld-elf/pr25490-1.s: Likewise.
2200 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
2205 * testsuite/ld-elf/elf.exp: Run PR ld/25490 tests.
2206 * testsuite/ld-elf/pr24526.d: New file.
2207 * testsuite/ld-elf/pr24526.s: Likewise.
2208 * testsuite/ld-elf/pr25021.d: Likewise.
2209 * testsuite/ld-elf/pr25021.s: Likewise.
2210 * testsuite/ld-elf/pr25490-2-16.rd: Likewise.
2211 * testsuite/ld-elf/pr25490-2-32.rd: Likewise.
2212 * testsuite/ld-elf/pr25490-2-64.rd: Likewise.
2213 * testsuite/ld-elf/pr25490-2.s: Likewise.
2214 * testsuite/ld-elf/pr25490-3-16.rd: Likewise.
2215 * testsuite/ld-elf/pr25490-3-32.rd: Likewise.
2216 * testsuite/ld-elf/pr25490-3-64.rd: Likewise.
2217 * testsuite/ld-elf/pr25490-3.s: Likewise.
2218 * testsuite/ld-elf/pr25490-4-16.rd: Likewise.
2219 * testsuite/ld-elf/pr25490-4-32.rd: Likewise.
2220 * testsuite/ld-elf/pr25490-4-64.rd: Likewise.
2221 * testsuite/ld-elf/pr25490-4.s: Likewise.
2222 * testsuite/ld-elf/pr25490-5-16.rd: Likewise.
2223 * testsuite/ld-elf/pr25490-5-32.rd: Likewise.
2224 * testsuite/ld-elf/pr25490-5-64.rd: Likewise.
2225 * testsuite/ld-elf/pr25490-5.s: Likewise.
2226 * testsuite/ld-elf/pr25490-6-16.rd: Likewise.
2227 * testsuite/ld-elf/pr25490-6-32.rd: Likewise.
2228 * testsuite/ld-elf/pr25490-6-64.rd: Likewise.
2229 * testsuite/ld-elf/pr25490-6.s: Likewise.
2231 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
2233 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark
2234 z80 as not supported.
2236 2020-02-06 Alan Modra <amodra@gmail.com>
2238 * testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying
2239 targets that don't support ifunc rather than ones that do.
2240 (contains_irelative_reloc): Match R_PARISC_IPLT.
2241 * testsuite/ld-ifunc/lib.c: Don't use .set in asm.
2242 * testsuite/ld-ifunc/ifunc-23-x86.s,
2243 * testsuite/ld-ifunc/ifunc-24-x86.s,
2244 * testsuite/ld-ifunc/ifunc-25-x86.s,
2245 * testsuite/ld-ifunc/ifunc-4-local-x86.s,
2246 * testsuite/ld-ifunc/ifunc-4-x86.s: Define _main.
2247 * testsuite/ld-ifunc/ifunc-10-i386.d,
2248 * testsuite/ld-ifunc/ifunc-11-i386.d,
2249 * testsuite/ld-ifunc/ifunc-12-i386.d,
2250 * testsuite/ld-ifunc/ifunc-13-i386.d,
2251 * testsuite/ld-ifunc/ifunc-14a-i386.d,
2252 * testsuite/ld-ifunc/ifunc-14b-i386.d,
2253 * testsuite/ld-ifunc/ifunc-14c-i386.d,
2254 * testsuite/ld-ifunc/ifunc-14d-i386.d,
2255 * testsuite/ld-ifunc/ifunc-14e-i386.d,
2256 * testsuite/ld-ifunc/ifunc-14f-i386.d,
2257 * testsuite/ld-ifunc/ifunc-15-i386.d,
2258 * testsuite/ld-ifunc/ifunc-16-i386-now.d,
2259 * testsuite/ld-ifunc/ifunc-16-i386.d,
2260 * testsuite/ld-ifunc/ifunc-17a-i386.d,
2261 * testsuite/ld-ifunc/ifunc-17b-i386.d,
2262 * testsuite/ld-ifunc/ifunc-18a-i386.d,
2263 * testsuite/ld-ifunc/ifunc-18b-i386.d,
2264 * testsuite/ld-ifunc/ifunc-19a-i386.d,
2265 * testsuite/ld-ifunc/ifunc-19b-i386.d,
2266 * testsuite/ld-ifunc/ifunc-2-i386-now.d,
2267 * testsuite/ld-ifunc/ifunc-2-i386.d,
2268 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
2269 * testsuite/ld-ifunc/ifunc-2-local-i386.d,
2270 * testsuite/ld-ifunc/ifunc-20-i386.d,
2271 * testsuite/ld-ifunc/ifunc-21-i386.d,
2272 * testsuite/ld-ifunc/ifunc-22-i386.d,
2273 * testsuite/ld-ifunc/ifunc-26.d,
2274 * testsuite/ld-ifunc/ifunc-5a-i386.d,
2275 * testsuite/ld-ifunc/ifunc-5a-local-i386.d,
2276 * testsuite/ld-ifunc/ifunc-5b-i386.d,
2277 * testsuite/ld-ifunc/ifunc-5b-local-i386.d,
2278 * testsuite/ld-ifunc/ifunc-5r-local-i386.d,
2279 * testsuite/ld-ifunc/ifunc-6a-i386.d,
2280 * testsuite/ld-ifunc/ifunc-6b-i386.d,
2281 * testsuite/ld-ifunc/ifunc-7a-i386.d,
2282 * testsuite/ld-ifunc/ifunc-7b-i386.d,
2283 * testsuite/ld-ifunc/ifunc-8-i386.d,
2284 * testsuite/ld-ifunc/ifunc-9-i386.d,
2285 * testsuite/ld-ifunc/pr17154-i386-now.d,
2286 * testsuite/ld-ifunc/pr17154-i386.d: xfail lynxos, nto, and solaris.
2288 2020-02-06 Alan Modra <amodra@gmail.com>
2290 * testsuite/lib/ld-lib.exp (is_generic): Delete.
2291 * testsuite/ld-unique/unique.exp: Exclude tic6x.
2293 2020-02-06 Alan Modra <amodra@gmail.com>
2295 * configure.tgt (i[3-7]86-*-moss*): Don't clear targ_extra_ofiles.
2296 (i[3-7]86-*-openbsd*, x86_64-*-openbsd*): Add.
2298 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
2301 * testsuite/ld-i386/pr22001-1c.S: Use "unique,N" in .section
2303 * testsuite/ld-i386/tls-gd1.S: Likewise.
2304 * testsuite/ld-x86-64/pr21481b.S: Likewise.
2306 2020-01-30 Jan Beulich <jbeulich@suse.com>
2308 * ld.texi: Remove space between @option and brace.
2310 2020-01-29 Alan Modra <amodra@gmail.com>
2313 * ldelf.c (ldelf_check_ld_so_conf): Add prefix parameter and
2315 (ldelf_after_open): Add prefix parameter.
2316 * ldelf.h (ldelf_after_open): Update prototype.
2317 * emultempl/elf.em (gld${EMULATION_NAME}_after_open): Pass $prefix
2318 to ldelf_after_open.
2319 * Makefile.am: Correct z80 dependencies.
2320 * Makefile.in: Regenerate.
2322 2020-01-28 Alan Modra <amodra@gmail.com>
2324 * ldexp.c (fold_name): Don't print bfd_link_hash_lookup failed
2327 2020-01-27 Alan Modra <amodra@gmail.com>
2329 * testsuite/ld-elfvers/vers.exp: Replace case statements with
2331 * testsuite/ld-ifunc/ifunc.exp: Likewise.
2332 * testsuite/ld-unique/unique.exp: Likewise.
2334 2020-01-27 H.J. Lu <hongjiu.lu@intel.com>
2335 Alan Modra <amodra@gmail.com>
2338 * testsuite/ld-elf/pr25458.map: New file.
2339 * testsuite/ld-elf/pr25458.rd: Likewise.
2340 * testsuite/ld-elf/pr25458a.s: Likewise.
2341 * testsuite/ld-elf/pr25458b.s: Likewise.
2342 * testsuite/ld-elf/shared.exp: Run PR ld/25458 test.
2344 2020-01-22 H.J. Lu <hongjiu.lu@intel.com>
2347 * testsuite/ld-x86-64/tls.exp: Skip GNU2 TLS tests only without
2350 2020-01-22 Alan Modra <amodra@gmail.com>
2352 * testsuite/ld-powerpc/tlsdesc3.d,
2353 * testsuite/ld-powerpc/tlsdesc3.wf,
2354 * testsuite/ld-powerpc/tlsdesc4.d,
2355 * testsuite/ld-powerpc/tlsdesc4.s,
2356 * testsuite/ld-powerpc/tlsdesc4.wf: New tests.
2357 * testsuite/ld-powerpc/powerpc.exp: Run them.
2359 2020-01-22 Alan Modra <amodra@gmail.com>
2361 * emultempl/ppc64elf.em (ppc64_opt, PARSE_AND_LIST_LONGOPTS),
2362 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Support
2363 --tls-get-addr-regsave and --no-tls-get-addr-regsave.
2364 (params): Init new field.
2365 * ld.texi (--tls-get-addr-regsave, --no-tls-get-addr-regsave):
2367 * testsuite/ld-powerpc/tlsdesc.s,
2368 * testsuite/ld-powerpc/tlsdesc.d,
2369 * testsuite/ld-powerpc/tlsdesc.wf,
2370 * testsuite/ld-powerpc/tlsdesc2.d,
2371 * testsuite/ld-powerpc/tlsdesc2.wf,
2372 * testsuite/ld-powerpc/tlsexenors.d,
2373 * testsuite/ld-powerpc/tlsexenors.r,
2374 * testsuite/ld-powerpc/tlsexers.d,
2375 * testsuite/ld-powerpc/tlsexers.r,
2376 * testsuite/ld-powerpc/tlsexetocnors.d,
2377 * testsuite/ld-powerpc/tlsexetocrs.d,
2378 * testsuite/ld-powerpc/tlsexetocrs.r,
2379 * testsuite/ld-powerpc/tlsopt6.d,
2380 * testsuite/ld-powerpc/tlsopt6.wf: New.
2381 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
2383 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
2386 * ldlang.c (ldlang_open_ctf): Fix error message typo.
2387 * emultempl/z80elf.em (z80_elf_after_open): Likewise.
2389 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
2391 * testsuite/ld-elf/pr23900-1.d: Adjusted.
2393 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
2395 * testsuite/ld-elf/pr23900-1.d: Also pass -l to readelf.
2397 2020-01-20 Nick Clifton <nickc@redhat.com>
2399 * po/pt_BR.po: Updated Brazilian Portuguese translation.
2400 * po/uk.po: Updated Ukranian translation.
2402 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
2405 * testsuite/ld-x86-64/pr25416-1.s: New file
2406 * testsuite/ld-x86-64/pr25416-1a.d: Likewise.
2407 * testsuite/ld-x86-64/pr25416-1b.d: Likewise.
2408 * testsuite/ld-x86-64/pr25416-1.s: Likewise.
2409 * testsuite/ld-x86-64/pr25416-2.s: Likewise.
2410 * testsuite/ld-x86-64/pr25416-2a.d: Likewise.
2411 * testsuite/ld-x86-64/pr25416-2b.d: Likewise.
2412 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
2413 * testsuite/ld-x86-64/pr25416-3.s: Likewise.
2414 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
2415 * testsuite/ld-x86-64/pr25416-4.s: Likewise.
2416 * testsuite/ld-x86-64/pr25416-5a.c: Likewise.
2417 * testsuite/ld-x86-64/pr25416-5b.s: Likewise.
2418 * testsuite/ld-x86-64/pr25416-5c.s: Likewise.
2419 * testsuite/ld-x86-64/pr25416-5d.s: Likewise.
2420 * testsuite/ld-x86-64/pr25416-5e.s: Likewise.
2421 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/25416 tests.
2423 2020-01-20 Alan Modra <amodra@gmail.com>
2425 * testsuite/ld-powerpc/tlsexe.d: Match new __tls_get_addr stub.
2426 * testsuite/ld-powerpc/tlsexeno.d: Likewise.
2427 * testsuite/ld-powerpc/tlsexetoc.d: Likewise.
2428 * testsuite/ld-powerpc/tlsexetocno.d: Likewise.
2429 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
2431 2020-01-18 Roland McGrath <mcgrathr@google.com>
2433 * testsuite/ld-x86-64/align-branch-1.d: Loosen instruction regexps
2434 to admit whatever absolute address. The label-relative address is
2435 what the test needs to verify.
2437 2020-01-18 Nick Clifton <nickc@redhat.com>
2439 * configure: Regenerate.
2440 * po/ld.pot: Regenerate.
2442 2020-01-18 Nick Clifton <nickc@redhat.com>
2444 Binutils 2.34 branch created.
2446 2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2448 * scripttempl/elf32msp430_3.sc: Remove.
2450 2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2452 * scripttempl/elf32msp430.sc: Add input section rules for
2453 .upper.{text,data,rodata,bss}.
2454 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
2455 * testsuite/ld-msp430-elf/upper-input-sections.s: New test.
2457 2020-01-15 Lars Brinkhoff <lars@nocrew.org>
2460 * temulparams/pdp11.sh (TARGET_PAGE_SIZE): Set to 8192.
2462 2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2464 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
2465 * testsuite/ld-msp430-elf/reloc-lo-430x.s: New test.
2467 2020-01-15 Alan Modra <amodra@gmail.com>
2469 * testsuite/ld-powerpc/ambiguousv1b.d: Adjust expected output.
2470 * testsuite/ld-powerpc/funref.s: Align func_tab.
2471 * testsuite/ld-powerpc/funref2.s: Likewise.
2472 * testsuite/ld-powerpc/funv1.s: Add dot symbols.
2474 2020-01-14 Lili Cui <lili.cui@intel.com>
2476 * testsuite/ld-i386/align-branch-1.d: Updated for i686-pc-elf.
2478 2020-01-13 Alan Modra <amodra@gmail.com>
2480 * po/BLD-POTFILES.in: Regenerate.
2482 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
2484 * testsuite/ld-arc/relax-local-pic.d: Improve matching patterns.
2486 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
2488 * Makefile.am: Remove earcelf_prof.c and earclinux_prof.c
2490 * configure.tgt: Likewise.
2491 * Makefile.in: Regenerate.
2492 * emulparams/arcelf_prof.sh: Remove file.
2493 * emulparams/arclinux_prof.sh: Likewise.
2495 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
2497 * scripttempl/elfarcv2.sc : Allow interrupt vector table to be
2498 located at an arbitrary address. Use DWARF.sc file.
2499 * scripttempl/elfarc.sc: Use DWARF.sc file.
2501 2020-01-07 Alan Modra <amodra@gmail.com>
2503 * testsuite/ld-mips-elf/eh-frame5.s,
2504 * testsuite/ld-mips-elf/ehdr_start-new.s,
2505 * testsuite/ld-mips-elf/ehdr_start-o32.s,
2506 * testsuite/ld-mips-elf/mips16-call-global-1.s,
2507 * testsuite/ld-mips-elf/mips16-intermix-1.s,
2508 * testsuite/ld-mips-elf/mips16-pic-1b.s,
2509 * testsuite/ld-mips-elf/mips16-pic-4c.s,
2510 * testsuite/ld-mips-elf/no-shared-1-n64.s,
2511 * testsuite/ld-mips-elf/no-shared-1-o32.s,
2512 * testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s,
2513 * testsuite/ld-mips-elf/pic-and-nonpic-1b.s,
2514 * testsuite/ld-mips-elf/pic-and-nonpic-2a.s,
2515 * testsuite/ld-mips-elf/pic-and-nonpic-3b.s,
2516 * testsuite/ld-mips-elf/pic-and-nonpic-4b.s,
2517 * testsuite/ld-mips-elf/pic-and-nonpic-5a.s,
2518 * testsuite/ld-mips-elf/pic-and-nonpic-6-n32c.s,
2519 * testsuite/ld-mips-elf/pic-and-nonpic-6-n64c.s,
2520 * testsuite/ld-mips-elf/pic-and-nonpic-6-o32c.s,
2521 * testsuite/ld-mips-elf/pie.s,
2522 * testsuite/ld-mips-elf/relax-jalr.s: Revert 2019-12-17 change.
2524 2020-01-06 Nick Clifton <nickc@redhat.com>
2527 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
2528 command line when building libcomm1.o and pr13250 tests.
2529 * testsuite/ld-plugin/lto.exp: Likewise for pr20267 tests.
2531 2020-01-06 Nick Clifton <nickc@redhat.com>
2534 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
2535 command line when building pr19579 binaries.
2537 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
2539 * emultempl/pe.em: Add new option --enable-reloc-section.
2540 * emultempl/pep.em: Likewise.
2541 * ld.texi: Document --enable-reloc-section.
2542 * pe-dll.c (pe_dll_build_sections): Use pe_dll_enable_reloc_section.
2543 (pe_dll_fill_sections): Simplify by calling pe_exe_fill_sections.
2544 * pe-dll.h: Add extern declaration of option flag.
2545 * pep-dll.c (pe_dll_enable_reloc_section):
2546 Add alias define for pep_dll_enable_reloc_section.
2547 * pep-dll.h: Add extern declaration of option flag.
2549 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
2551 * Makefile.am: Add new target z80-elf
2552 * configure.tgt: Likewise.
2553 * Makefile.in: Regenerate.
2554 * emultempl/z80.em: Add support for eZ80 and Z180 architectures.
2555 * emulparams/elf32z80.sh: New file.
2556 * emultempl/z80elf.em: Likewise.
2557 * testsuite/ld-elf/comm-data4.s: Fix for Z80.
2558 * testsuite/ld-elf/comm-data5.s: Fix for Z80.
2559 * testsuite/ld-scripts/fill16.d: Fix for Z80.
2560 * testsuite/ld-z80/arch_ez80_adl.d: Likewise.
2561 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
2562 * testsuite/ld-z80/arch_r800.d: Likewise.
2563 * testsuite/ld-z80/arch_z180.d: Likewise.
2564 * testsuite/ld-z80/arch_z80.d: Likewise.
2565 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
2566 * testsuite/ld-z80/comb_arch_z180.d: Likewise.
2567 * testsuite/ld-z80/labels.s: Likewise.
2568 * testsuite/ld-z80/relocs.s: Likewise.
2569 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
2570 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
2571 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
2572 * testsuite/ld-z80/z80.exp: Likewise.
2573 * NEWS: Mention the new support.
2575 2020-01-02 Tamar Christina <tamar.christina@arm.com>
2579 * emultempl/aarch64elf.em (elf${ELFSIZE}_aarch64_add_stub_section):
2580 Remove SEC_LINKER_CREATED.
2581 * testsuite/ld-aarch64/aarch64-elf.exp: Add erratum835769-843419.
2582 * testsuite/ld-aarch64/erratum835769-843419.d: New test.
2584 2020-01-01 Alan Modra <amodra@gmail.com>
2586 Update year range in copyright notice of all files.
2588 For older changes see ChangeLog-2019
2590 Copyright (C) 2020 Free Software Foundation, Inc.
2592 Copying and distribution of this file, with or without modification,
2593 are permitted in any medium without royalty provided the copyright
2594 notice and this notice are preserved.
2600 version-control: never