Automatic date update in version.in
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
b657622c
AM
12020-07-03 Alan Modra <amodra@gmail.com>
2
3 PR 26028
4 * testsuite/ld-arm/arm-elf.exp (vxworks1): Pass --wide to readelf
5 when dumping relocs.
6 * testsuite/ld-i386/i386.exp (vxworks1): Likewise.
7 * testsuite/ld-sh/sh-vxworks.exp (vxworks1): Likewise.
8 * testsuite/ld-sparc/sparc.exp (vxworks1): Likewise.
9 * testsuite/ld-arm/vxworks1.rd: Adjust to suit.
10 * testsuite/ld-i386/vxworks1.rd: Adjust.
11 * testsuite/ld-sh/vxworks1.rd: Adjust.
12 * testsuite/ld-sparc/vxworks1.rd: Adjust.
13
0942c7ab
NC
142020-07-02 Nick Clifton <nickc@redhat.com>
15
16 PR 26028
17 * testsuite/ld-powerpc/powerpc.exp: Add -T option to readelf
18 command line when running some tests.
19 * testsuite/ld-arm/arm-elf.exp: Likewise.
20 * testsuite/ld-mips-elf/mips-elf.exp: Likewise.
21 * testsuite/ld-mmix/local1.d: Likewise.
22 * testsuite/ld-mmix/local3.d: Likewise.
23 * testsuite/ld-mmix/local5.d: Likewise.
24 * testsuite/ld-mmix/local7.d: Likewise.
25 * testsuite/ld-powerpc/powerpc.exp: Likewise.
26
bbd19b19
L
272020-06-30 H.J. Lu <hongjiu.lu@intel.com>
28
29 * Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_nacl.c,
30 eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c.
31 Remove x86 NaCl dep files.
32 * NEWS: Mention x86 NaCl target support removal.
33 * configure.tgt: Remove x86 NaCl target support.
34 * testsuite/ld-elf/binutils.exp: Likewise.
35 * testsuite/ld-elf/elf.exp: Likewise.
36 * testsuite/ld-elfvers/vers.exp: Likewise.
37 * testsuite/ld-i386/align-branch-1.d: Likewise.
38 * testsuite/ld-i386/export-class.exp: Likewise.
39 * testsuite/ld-i386/i386.exp: Likewise.
40 * testsuite/ld-i386/load1.d: Likewise.
41 * testsuite/ld-i386/pie1.d: Likewise.
42 * testsuite/ld-i386/pr12570a.d: Likewise.
43 * testsuite/ld-i386/pr12570b.d: Likewise.
44 * testsuite/ld-i386/pr19636-1d.d: Likewise.
45 * testsuite/ld-i386/pr19636-1l.d: Likewise.
46 * testsuite/ld-i386/pr19636-2c.d: Likewise.
47 * testsuite/ld-i386/pr19636-2d.d: Likewise.
48 * testsuite/ld-i386/pr19636-2e.d: Likewise.
49 * testsuite/ld-i386/pr20244-1a.d: Likewise.
50 * testsuite/ld-i386/pr20244-1b.d: Likewise.
51 * testsuite/ld-i386/pr20244-2a.d: Likewise.
52 * testsuite/ld-i386/pr20244-2b.d: Likewise.
53 * testsuite/ld-i386/pr20244-2c.d: Likewise.
54 * testsuite/ld-i386/pr20244-4a.d: Likewise.
55 * testsuite/ld-i386/pr20244-4b.d: Likewise.
56 * testsuite/ld-i386/pr21884.d: Likewise.
57 * testsuite/ld-ifunc/binutils.exp: Likewise.
58 * testsuite/ld-ifunc/ifunc-10-i386.d: Likewise.
59 * testsuite/ld-ifunc/ifunc-10-x86-64.d: Likewise.
60 * testsuite/ld-ifunc/ifunc-11-i386.d: Likewise.
61 * testsuite/ld-ifunc/ifunc-11-x86-64.d: Likewise.
62 * testsuite/ld-ifunc/ifunc-12-i386.d: Likewise.
63 * testsuite/ld-ifunc/ifunc-12-x86-64.d: Likewise.
64 * testsuite/ld-ifunc/ifunc-13-i386.d: Likewise.
65 * testsuite/ld-ifunc/ifunc-13-x86-64.d: Likewise.
66 * testsuite/ld-ifunc/ifunc-14a-i386.d: Likewise.
67 * testsuite/ld-ifunc/ifunc-14a-x86-64.d: Likewise.
68 * testsuite/ld-ifunc/ifunc-14b-i386.d: Likewise.
69 * testsuite/ld-ifunc/ifunc-14b-x86-64.d: Likewise.
70 * testsuite/ld-ifunc/ifunc-14c-i386.d: Likewise.
71 * testsuite/ld-ifunc/ifunc-14c-x86-64.d: Likewise.
72 * testsuite/ld-ifunc/ifunc-14d-i386.d: Likewise.
73 * testsuite/ld-ifunc/ifunc-14d-x86-64.d: Likewise.
74 * testsuite/ld-ifunc/ifunc-14e-i386.d: Likewise.
75 * testsuite/ld-ifunc/ifunc-14e-x86-64.d: Likewise.
76 * testsuite/ld-ifunc/ifunc-14f-i386.d: Likewise.
77 * testsuite/ld-ifunc/ifunc-14f-x86-64.d: Likewise.
78 * testsuite/ld-ifunc/ifunc-15-i386.d: Likewise.
79 * testsuite/ld-ifunc/ifunc-15-x86-64.d: Likewise.
80 * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
81 * testsuite/ld-ifunc/ifunc-16-i386.d: Likewise.
82 * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: Likewise.
83 * testsuite/ld-ifunc/ifunc-16-x86-64.d: Likewise.
84 * testsuite/ld-ifunc/ifunc-17a-i386.d: Likewise.
85 * testsuite/ld-ifunc/ifunc-17a-x86-64.d: Likewise.
86 * testsuite/ld-ifunc/ifunc-17b-i386.d: Likewise.
87 * testsuite/ld-ifunc/ifunc-17b-x86-64.d: Likewise.
88 * testsuite/ld-ifunc/ifunc-18a-i386.d: Likewise.
89 * testsuite/ld-ifunc/ifunc-18a-x86-64.d: Likewise.
90 * testsuite/ld-ifunc/ifunc-18b-i386.d: Likewise.
91 * testsuite/ld-ifunc/ifunc-18b-x86-64.d: Likewise.
92 * testsuite/ld-ifunc/ifunc-19a-i386.d: Likewise.
93 * testsuite/ld-ifunc/ifunc-19a-x86-64.d: Likewise.
94 * testsuite/ld-ifunc/ifunc-19b-i386.d: Likewise.
95 * testsuite/ld-ifunc/ifunc-19b-x86-64.d: Likewise.
96 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
97 * testsuite/ld-ifunc/ifunc-2-i386.d: Likewise.
98 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
99 * testsuite/ld-ifunc/ifunc-2-local-i386.d: Likewise.
100 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
101 * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
102 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
103 * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
104 * testsuite/ld-ifunc/ifunc-20-i386.d: Likewise.
105 * testsuite/ld-ifunc/ifunc-20-x86-64.d: Likewise.
106 * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
107 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
108 * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
109 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
110 * testsuite/ld-ifunc/ifunc-5a-i386.d: Likewise.
111 * testsuite/ld-ifunc/ifunc-5a-local-i386.d: Likewise.
112 * testsuite/ld-ifunc/ifunc-5a-local-x86-64.d: Likewise.
113 * testsuite/ld-ifunc/ifunc-5a-x86-64.d: Likewise.
114 * testsuite/ld-ifunc/ifunc-5b-i386.d: Likewise.
115 * testsuite/ld-ifunc/ifunc-5b-local-i386.d: Likewise.
116 * testsuite/ld-ifunc/ifunc-5b-local-x86-64.d: Likewise.
117 * testsuite/ld-ifunc/ifunc-5b-x86-64.d: Likewise.
118 * testsuite/ld-ifunc/ifunc-5r-local-i386.d: Likewise.
119 * testsuite/ld-ifunc/ifunc-5r-local-x86-64.d: Likewise.
120 * testsuite/ld-ifunc/ifunc-6a-i386.d: Likewise.
121 * testsuite/ld-ifunc/ifunc-6a-x86-64.d: Likewise.
122 * testsuite/ld-ifunc/ifunc-6b-i386.d: Likewise.
123 * testsuite/ld-ifunc/ifunc-6b-x86-64.d: Likewise.
124 * testsuite/ld-ifunc/ifunc-7a-i386.d: Likewise.
125 * testsuite/ld-ifunc/ifunc-7a-x86-64.d: Likewise.
126 * testsuite/ld-ifunc/ifunc-7b-i386.d: Likewise.
127 * testsuite/ld-ifunc/ifunc-7b-x86-64.d: Likewise.
128 * testsuite/ld-ifunc/ifunc-8-i386.d: Likewise.
129 * testsuite/ld-ifunc/ifunc-8-x86-64.d: Likewise.
130 * testsuite/ld-ifunc/ifunc-9-i386.d: Likewise.
131 * testsuite/ld-ifunc/ifunc-9-x86-64.d: Likewise.
132 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
133 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
134 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
135 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
136 * testsuite/ld-plugin/lto.exp: Likewise.
137 * testsuite/ld-x86-64/align-branch-1.d: Likewise.
138 * testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
139 * testsuite/ld-x86-64/line.exp: Likewise.
140 * testsuite/ld-x86-64/load1a.d: Likewise.
141 * testsuite/ld-x86-64/load1b.d: Likewise.
142 * testsuite/ld-x86-64/load1c.d: Likewise.
143 * testsuite/ld-x86-64/load1d.d: Likewise.
144 * testsuite/ld-x86-64/pie3.d: Likewise.
145 * testsuite/ld-x86-64/pr18160.d: Likewise.
146 * testsuite/ld-x86-64/pr19013-x32.d: Likewise.
147 * testsuite/ld-x86-64/pr19013.d: Likewise.
148 * testsuite/ld-x86-64/pr19636-2d.d: Likewise.
149 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
150 * testsuite/ld-x86-64/pr20253-1b.d: Likewise.
151 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
152 * testsuite/ld-x86-64/pr20253-1f.d: Likewise.
153 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
154 * testsuite/ld-x86-64/pr20253-1j.d: Likewise.
155 * testsuite/ld-x86-64/pr20253-1l.d: Likewise.
156 * testsuite/ld-x86-64/pr21884.d: Likewise.
157 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
158 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
159 * testsuite/ld-x86-64/tlsgd10.dd: Likewise.
160 * testsuite/ld-x86-64/tlsgd5.dd: Likewise.
161 * testsuite/ld-x86-64/tlsgd8.dd: Likewise.
162 * testsuite/ld-x86-64/x86-64.exp: Likewise.
163 * emulparams/elf32_x86_64_nacl.sh: Removed.
164 * emulparams/elf_i386_nacl.sh: Likewise.
165 * emulparams/elf_x86_64_nacl.sh: Likewise.
166 * testsuite/ld-i386/emit-relocs-nacl.rd: Likewise.
167 * testsuite/ld-i386/load1-nacl.d: Likewise.
168 * testsuite/ld-i386/pie1-nacl.d: Likewise.
169 * testsuite/ld-i386/plt-nacl.pd: Likewise.
170 * testsuite/ld-i386/plt-pic-nacl.pd: Likewise.
171 * testsuite/ld-i386/pr17709-nacl.rd: Likewise.
172 * testsuite/ld-i386/pr19636-1d-nacl.d: Likewise.
173 * testsuite/ld-i386/pr19636-2c-nacl.d: Likewise.
174 * testsuite/ld-i386/pr19636-2d-nacl.d: Likewise.
175 * testsuite/ld-i386/pr19636-2e-nacl.d: Likewise.
176 * testsuite/ld-i386/pr19827-nacl.rd: Likewise.
177 * testsuite/ld-i386/pr21884-nacl.d: Likewise.
178 * testsuite/ld-i386/pr21884-nacl.t: Likewise.
179 * testsuite/ld-i386/tlsbin-nacl.rd: Likewise.
180 * testsuite/ld-i386/tlsbin2-nacl.rd: Likewise.
181 * testsuite/ld-i386/tlsbindesc-nacl.rd: Likewise.
182 * testsuite/ld-i386/tlsdesc-nacl.rd: Likewise.
183 * testsuite/ld-i386/tlsgdesc-nacl.rd: Likewise.
184 * testsuite/ld-i386/tlsnopic-nacl.rd: Likewise.
185 * testsuite/ld-i386/tlspic-nacl.rd: Likewise.
186 * testsuite/ld-i386/tlspic2-nacl.rd: Likewise.
187 * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
188 * testsuite/ld-x86-64/load1a-nacl.d: Likewise.
189 * testsuite/ld-x86-64/load1b-nacl.d: Likewise.
190 * testsuite/ld-x86-64/load1c-nacl.d: Likewise.
191 * testsuite/ld-x86-64/load1d-nacl.d: Likewise.
192 * testsuite/ld-x86-64/pie3-nacl.d: Likewise.
193 * testsuite/ld-x86-64/plt-nacl.pd: Likewise.
194 * testsuite/ld-x86-64/pr17709-nacl.rd: Likewise.
195 * testsuite/ld-x86-64/pr19013-nacl.d: Likewise.
196 * testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
197 * testsuite/ld-x86-64/pr19827-nacl.rd: Likewise.
198 * testsuite/ld-x86-64/pr21884-nacl.d: Likewise.
199 * testsuite/ld-x86-64/pr21884-nacl.t: Likewise.
200 * testsuite/ld-x86-64/split-by-file-nacl.rd: Likewise.
201 * testsuite/ld-x86-64/tlsbin-nacl.rd: Likewise.
202 * testsuite/ld-x86-64/tlsbin2-nacl.rd: Likewise.
203 * testsuite/ld-x86-64/tlsbindesc-nacl.rd: Likewise.
204 * testsuite/ld-x86-64/tlsdesc-nacl.pd: Likewise.
205 * testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
206 * testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
207 * testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
208 * testsuite/ld-x86-64/tlspic2-nacl.rd: Likewise.
209 * Makefile.in: Regenerated.
210 * po/BLD-POTFILES.in: Likewise.
211
fb4a044b
AM
2122020-06-30 Alan Modra <amodra@gmail.com>
213
214 * testsuite/ld-elf/group1.d: Don't xfail all solaris targets, just
215 ix86 and x86_64.
216
b9b9b0ef
AM
2172020-06-30 Alan Modra <amodra@gmail.com>
218
219 * testsuite/ld-elf/reloc-discard.d: Don't xfail nds32.
220
39d050ee
AM
2212020-06-30 Alan Modra <amodra@gmail.com>
222
223 * scripttempl/elfmicroblaze.sc (.data): Add .data.* entry.
224 * testsuite/ld-elf/var1.d: Don't xfail microblaze.
225
a57f74bb
L
2262020-06-29 H.J. Lu <hongjiu.lu@intel.com>
227
228 * testsuite/ld-tic6x/shlib-1.rd: Move C6000_DSBT_BASE,
229 C6000_DSBT_SIZE and C6000_DSBT_INDEX dynamic tags to the last.
230 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
231 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
232 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
233 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
234 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
235 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
236 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
237 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
238 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
239 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
240 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
241 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
242
290a25dc
AM
2432020-06-29 Alan Modra <amodra@gmail.com>
244
245 * testsuite/ld-x86-64/abs-k1om.d: Run only on x86_64-*-linux*.
246 * testsuite/ld-x86-64/protected2-k1om.d: Likewise.
247 * testsuite/ld-x86-64/protected3-k1om.d: Likewise.
248
094e34f2
NA
2492020-06-26 Nick Alcock <nick.alcock@oracle.com>
250
251 * configure.ac [--enable-libctf]: New, default yes.
252 Set ENABLE_LIBCTF accordingly.
253 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF.
254 * configure: Regenerate.
255 * config.in: Regenerate.
256 * Makefile.in: Regenerate.
257 * aclocal.m4: Regenerate.
258 * ldlang.c (ctf_output): Conditionalize on ENABLE_LIBCTF.
259 (ldlang_open_ctf): Likewise.
260 (lang_merge_ctf): Likewise.
261 (ldlang_ctf_apply_strsym): Likewise.
262 (lang_write_ctf): Likewise.
263 (ldlang_write_ctf_late): Likewise.
264 (ldlang_open_ctf) [!ENABLE_LIBCTF]: Warn about the presence of CTF
265 sections.
266 (lang_merge_ctf) [!ENABLE_LIBCTF]: New stub.
267 (ldlang_ctf_apply_strsym) [!ENABLE_LIBCTF]: Likewise.
268 (lang_write_ctf) [!ENABLE_LIBCTF]: Likewise.
269 (ldlang_write_ctf_late) [!ENABLE_LIBCTF]: Likewise.
270 * ldelfgen.c (ldelf_emit_ctf_early): Conditionalize on
271 ENABLE_LIBCTF.
272 (struct ctf_strsym_iter_cb_arg): Likewise.
273 (ldelf_ctf_strtab_iter_cb): Likewise.
274 (ldelf_ctf_symbols_iter_cb): Likewise.
275 (ldelf_examine_strtab_for_ctf): Likewise.
276 (ldelf_emit_ctf_early) [!ENABLE_LIBCTF]: New stub.
277 (ldelf_examine_strtab_for_ctf) [!ENABLE_LIBCTF]: New stub.
278
198e1db7
JB
2792020-06-26 Jan Beulich <jbeulich@suse.com>
280
281 * testsuite/ld-x86-64/x86-64.exp: Run K1OM tests.
282
85f7484a
PB
2832020-06-26 Pat Bernardi <bernardi@adacore.com>
284
285 * testsuite/ld-m68k/attr-gnu-4-0.s: New file.
286 * testsuite/ld-m68k/attr-gnu-4-1.s: Likewise.
287 * testsuite/ld-m68k/attr-gnu-4-2.s: Likewise.
288 * testsuite/ld-m68k/attr-gnu-4-00.d: Likewise.
289 * testsuite/ld-m68k/attr-gnu-4-01.d: Likewise.
290 * testsuite/ld-m68k/attr-gnu-4-02.d: Likewise.
291 * testsuite/ld-m68k/attr-gnu-4-10.d: Likewise.
292 * testsuite/ld-m68k/attr-gnu-4-11.d: Likewise.
293 * testsuite/ld-m68k/attr-gnu-4-12.d: Likewise.
294 * testsuite/ld-m68k/attr-gnu-4-20.d: Likewise.
295 * testsuite/ld-m68k/attr-gnu-4-21.d: Likewise.
296 * testsuite/ld-m68k/attr-gnu-4-22.d: Likewise.
297 * testsuite/ld-m68k/m68k.exp: Run the new tests.
298
4bf05d4a
L
2992020-06-24 H.J. Lu <hongjiu.lu@intel.com>
300
301 PR ld/26165
302 * lexsup.c (ld_options): Correct --dependency-file order.
303
2c8e3708
L
3042020-06-24 H.J. Lu <hongjiu.lu@intel.com>
305
306 PR ld/26083
307 * testsuite/ld-csky/tls-ie-v1.d: Updated.
308 * testsuite/ld-csky/tls-ie.d: Likewise.
309
c679ec98
L
3102020-06-24 H.J. Lu <hongjiu.lu@intel.com>
311
312 PR ld/26083
313 * testsuite/ld-cris/libdso-15b.d: Updated.
314 * testsuite/ld-cris/libdso-1c.d: Likewise.
315 * testsuite/ld-cris/libdso-1d.d: Likewise.
316 * testsuite/ld-cris/libdso-15c.d: New file.
317
5376d47f
L
3182020-06-24 H.J. Lu <hongjiu.lu@intel.com>
319
320 PR ld/26163
321 * ldexp.c (exp_fold_tree_1): Set non_ir_ref_regular on the source
322 for assignment.
323 * testsuite/ld-plugin/lto.exp: Run ld/26163 test.
324 * testsuite/ld-plugin/pr26163a.c: New file.
325 * testsuite/ld-plugin/pr26163b.c: Likewise.
326
a5aae508
AM
3272020-06-24 Alan Modra <amodra@gmail.com>
328
329 * lexsup.c (elf_shlib_list_options): Properly format help message.
330 (elf_plt_unwind_list_options): Likewise.
331 * emultempl/cskyelf.em (PARSE_AND_LIST_OPTIONS): Likewise.
332
f37b21b4
RM
3332020-06-23 Roland McGrath <mcgrathr@google.com>
334
335 PR 22843
336 * NEWS: Note --dependency-file.
337 * ld.texi (Options): Document --dependency-file.
338 * ldlex.h (enum option_values): Add OPTION_DEPENDENCY_FILE.
339 * ld.h (ld_config_type): New member dependency_file.
340 * lexsup.c (ld_options, parse_args): Parse --dependency-file.
341 * ldmain.c (struct dependency_file): New type.
342 (dependency_files, dependency_files_tail): New static variables.
343 (track_dependency_files): New function.
344 (write_dependency_file): New function.
345 (main): Call it when --dependency-file was passed.
346 * ldfile.c (ldfile_try_open_bfd): Call track_dependency_files.
347 (ldfile_open_command_file_1): Likewise.
348 * ldelf.c (ldelf_try_needed): Likewise.
349 * pe-dll.c (pe_implied_import_dll): Likewise.
350
9221725d
AM
3512020-06-23 Alan Modra <amodra@gmail.com>
352
353 PR 26150
354 * ldlang.c (ldlang_add_file): Assert that we aren't adding the
355 current end of link.next list again too.
356 * ldmain.c (add_archive_element): Don't load archive elements
357 again that have already been loaded.
358
c7c970e4
AM
3592020-06-23 Alan Modra <amodra@gmail.com>
360
361 * testsuite/ld-elf/shared.exp (pr14170): Clear xfail for
362 bfin-*-linux*.
363 (pr17068, symbolic-func.so, pr22374): Likewise.
364
39ff0b81
NC
3652020-06-22 Nelson Chu <nelson.chu@sifive.com>
366
367 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
368 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Updated.
369 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Updated.
370 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Updated.
371 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Updated.
372 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Updated.
373
0381901e
AM
3742020-06-21 Alan Modra <amodra@gmail.com>
375
376 * ldfile.c: Replace uses of ENABLE_PLUGINS with BFD_SUPPORTS_PLUGINS.
377 * ldlang.c: Likewise.
378 * ldlang.h: Likewise.
379 * ldlex.h: Likewise.
380 * ldmain.c: Likewise.
381 * lexsup.c: Likewise.
382 * plugin.c: Wrap body of file in #if BFD_SUPPORTS_PLUGINS.
383 * testplug.c: Likewise.
384 * testplug2.c: Likewise.
385 * testplug3.c: Likewise.
386 * testplug4.c: Likewise.
387 * configure.ac (ENABLE_PLUGINS): Don't define AM_CONTITIONAL.
388 * Makefile.am: Remove ENABLE_PLUGINS conditionals.
389 (PLUGIN_CFLAGS): Don't define.
390 (PLUGIN_C, PLUGIN_H, PLUGIN_OBJECT): Likewise. Substitute all
391 uses with plugin file name.
392 * configure: Regenerate.
393 * Makefile.in: Regenerate.
394
348fe36b
AM
3952020-06-20 Alan Modra <amodra@gmail.com>
396
397 * testsuite/lib/ld-lib.exp (default_ld_compile): Don't perror on
398 a compiler error.
399 (default_ld_assemble): Similarly for an assembler error.
400 (default_ld_nm): Similarly for an nm error.
401 (run_ld_link_tests): Report ld_assemble errors as a fail.
402 (check_as_cfi): Remove now unnecessary perror substitution.
403 * testsuite/ld-elf/exclude.exp: Report ld_nm error return as test
404 fails rather then unresolved.
405 * testsuite/ld-gc/gc.exp: Likewise.
406 * testsuite/ld-scripts/alignof.exp: Likewise.
407 * testsuite/ld-scripts/defined.exp: Likewise.
408 * testsuite/ld-scripts/script.exp: Likewise.
409 * testsuite/ld-scripts/sizeof.exp: Likewise.
410 * testsuite/ld-selective/selective.exp: Likewise.
411 * testsuite/ld-scripts/extern.exp: Likewise. Return on ld_link
412 failure.
413 * testsuite/ld-elfweak/elfweak.exp: Report compiler errors as
414 test unresolved.
415 * testsuite/ld-fastcall/fastcall.exp: Report assember errors as
416 test fails.
417 * testsuite/ld-i386/i386.exp (iamcu_tests): Likewise.
418 * testsuite/ld-ia64/line.exp: Likewise.
419 * testsuite/ld-mep/mep.exp: Likewise.
420 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
421 * testsuite/ld-nios2/nios2.exp: Likewise.
422 * testsuite/ld-scripts/alignof.exp: Likewise.
423 * testsuite/ld-x86-64/line.exp: Likewise.
424 * testsuite/ld-x86-64/x86-64.exp: Likewise.
425 * testsuite/ld-scripts/log2.exp: Formatting.
426 * testsuite/ld-tic6x/tic6x.exp: Report ld_link errors as a test fail.
427
b0ee49d2
AM
4282020-06-20 Alan Modra <amodra@gmail.com>
429
430 * testsuite/ld-alpha/alpha.exp: Exclude *ecoff targets.
431 * testsuite/ld-elf/binutils.exp: Likewise.
432 * testsuite/ld-elf/tls.exp: Likewise.
433 * testsuite/ld-elf/tls_common.exp: Likewise.
434 * testsuite/ld-scripts/phdrs2.exp: Likewise.
435
e2201c2a
AM
4362020-06-20 Alan Modra <amodra@gmail.com>
437
438 * testsuite/ld-sh/sh.exp: Don't run relax tests for non-ELF.
439 Fail when ld_assemble fails. Use elseif to reduce indentation.
440
2d0a923c
AM
4412020-06-19 Alan Modra <amodra@gmail.com>
442
443 * testsuite/ld-elf/dynamic-1.rd: Accept st_other notations.
444 * testsuite/ld-elf/rdynamic-1.rd: Likewise.
445 * testsuite/ld-elf/pr9676.rd: Likewise.
446 * testsuite/ld-elf/pr9679.rd: Likewise.
447 * testsuite/ld-elfvers/vers30.dsym: Likewise.
448 * testsuite/ld-elfvers/vers31.dsym: Likewise.
e4433988
AM
449 * testsuite/ld-plugin/pr22983.1.d: Likewise.
450 * testsuite/ld-plugin/pr22983.2.d: Likewise.
2d0a923c 451 * testsuite/ld-plugin/pr22983.3.d: Likewise.
e4433988 452 * testsuite/ld-plugin/pr22983.4.d: Likewise.
2d0a923c
AM
453 * testsuite/ld-ifunc/ifunc.exp: Exclude alpha.
454
5fd104ad
AM
4552020-06-19 Alan Modra <amodra@gmail.com>
456
457 * emultempl/elf.em (gld${EMULATION_NAME}_handle_option): Omit
458 -z relro and -z norelro when target support for GNU_RELRO is lacking.
459 (gld${EMULATION_NAME}_before_parse): Ignore RELRO default too.
460 * emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse): Ignore
461 RELRO default when target support for GNU_RELRO is lacking.
462 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
463 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Likewise.
464 * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
465 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
466 * testsuite/ld-elf/pr16322.d: xfail when no relro support.
467 * testsuite/ld-elf/pr22393-1a.d: Likewise.
468 * testsuite/ld-elf/pr22393-1b.d: Likewise.
469 * testsuite/ld-elf/shared.exp (pr20995-2.so, pr20995-2): Likewise.
470 * testsuite/lib/ld-lib.exp (run_ld_link_tests): Use check_relro_support
471 to decide whether to pass extra ld option "-z norelro".
472
00401e65
L
4732020-06-17 H.J. Lu <hongjiu.lu@intel.com>
474
475 * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Append "-w"
476 to cflags.
477
22aa1d51
L
4782020-06-17 H.J. Lu <hongjiu.lu@intel.com>
479
480 * testsuite/ld-elf/linux-x86.exp: Require GCC 5 for Build
481 pr25749-1b (-pie -fPIE).
482
07e7fdfd
AM
4832020-06-16 Alan Modra <amodra@gmail.com>
484
485 * testsuite/ld-elf/pr23428.c: Define _DEFAULT_SOURCE.
486 * testsuite/ld-elf/indirect1b.c: Replace asm with __asm__.
487 * testsuite/ld-elf/indirect2.c: Likewise.
488 * testsuite/ld-elf/indirect3b.c: Likewise.
489 * testsuite/ld-elf/indirect4b.c: Likewise.
490 * testsuite/ld-elf/pr14323-2.c: Likewise.
491 * testsuite/ld-elf/pr18720b.c: Likewise.
5f898994 492 * testsuite/ld-elf/pr19553c.c: Likewise.
07e7fdfd 493 * testsuite/ld-elf/pr23428.c: Likewise.
5f898994 494 * testsuite/ld-elfvers/vers27b.c: Likewise.
07e7fdfd
AM
495 * testsuite/ld-elfvsb/common.c: Likewise.
496 * testsuite/ld-elfvsb/main.c: Likewise.
497 * testsuite/ld-elfvsb/sh1.c: Likewise.
498 * testsuite/ld-elfvsb/test.c: Likewise.
499 * testsuite/ld-pe/aligncomm-1.c: Likewise.
500 * testsuite/ld-pe/aligncomm-2.c: Likewise.
501 * testsuite/ld-pe/aligncomm-3.c: Likewise.
502 * testsuite/ld-pe/aligncomm-4.c: Likewise.
503 * testsuite/ld-plugin/pr23958.c: Likewise.
504 * testsuite/ld-size/size-1b.c: Likewise.
505 * testsuite/ld-size/size-2b.c: Likewise.
506 * testsuite/ld-size/size-3a.c: Likewise.
507 * testsuite/ld-size/size-3b.c: Likewise.
508 * testsuite/ld-size/size-3c.c: Likewise.
509 * testsuite/ld-size/size-4b.c: Likewise.
510 * testsuite/ld-size/size-5b.c: Likewise.
511 * testsuite/ld-size/size-6a.c: Likewise.
512 * testsuite/ld-size/size-7a.c: Likewise.
513 * testsuite/ld-size/size-8a.c: Likewise.
514 * testsuite/ld-size/size-9b.c: Likewise.
515 * testsuite/ld-size/size-10b.c: Likewise.
516
a435742a
AM
5172020-06-16 Alan Modra <amodra@gmail.com>
518
519 * emulparams/tic30aout.sh: Delete file.
520 * scripttempl/tic30aout.sc: Delete file.
521 * Makefile.am: Remove etic30aout.c from ALL_EMULATION_SOURCES and
522 delete dependency.
523 * configure.tgt: Delete tic30-*-*aout* entry.
524 * testsuite/ld-scripts/sane1.d: Delete tic30-*-aout mention.
525 * testsuite/ld-scripts/segment-start.d: Likewise.
526 * Makefile.in: Regenerate.
527 * po/BLD-POTFILES.in: Regenerate.
528
7a77f1ac
MF
5292020-06-15 Max Filippov <jcmvbkbc@gmail.com>
530
531 * emultempl/xtensaelf.em (XSHAL_ABI): Remove macro definition.
532 (XTHAL_ABI_UNDEFINED, XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New
533 macros.
534 (elf32xtensa_abi): New declaration.
535 (xt_config_info_unpack_and_check): Set elf32xtensa_abi if it is
536 undefined. Use xtensa_abi_choice instead of XSHAL_ABI to test
537 ABI tag consistency.
538 (xtensa_add_config_info): Use xtensa_abi_choice instead of
539 XSHAL_ABI to format ABI tag.
540 (PARSE_AND_LIST_PROLOGUE): Define OPTION_ABI_WINDOWED,
541 OPTION_ABI_CALL0 and declare elf32xtensa_abi.
542 (PARSE_AND_LIST_LONGOPTS): Add entries for --abi-windowed and
543 --abi-call0.
544 (PARSE_AND_LIST_OPTIONS): Add help text for --abi-windowed and
545 --abi-call0.
546 (PARSE_AND_LIST_ARGS_CASES): Add handlers for --abi-windowed and
547 --abi-call0.
548 * ld.texi: Add description for options --abi-windowed and
549 --abi-call0.
550
cae64165
RM
5512020-06-15 Roland McGrath <mcgrathr@google.com>
552
553 * NEWS: Mention -z start-stop-visibility=... option for ELF.
554 * ld.texi (Options): Document -z start-stop-visibility=... option.
555 * ldmain.c (main): Initialize link_info.start_stop_visibility.
556 * emultempl/elf.em (gld${EMULATION_NAME}_handle_option):
557 Parse -z start-stop-visibility=... option.
558
12984639
AM
5592020-06-15 Alan Modra <amodra@gmail.com>
560
561 * testsuite/ld-scripts/include.exp: Don't load ld-lib.exp.
562 * testsuite/ld-scripts/phdrs3.exp: Likewise.
563 * testsuite/ld-scripts/rgn-at.exp: Likewise.
564 * testsuite/ld-scripts/rgn-over.exp: Likewise.
565 * testsuite/ld-scripts/sort.exp: Likewise.
566 * testsuite/ld-discard/discard.exp: Likewise. Use is_elf_format.
567
ea4b3731
AM
5682020-06-15 Alan Modra <amodra@gmail.com>
569
570 PR 26103
571 * testsuite/ld-linkonce/ref1.s,
572 * testsuite/ld-linkonce/ref2.s,
573 * testsuite/ld-linkonce/sym1.s,
574 * testsuite/ld-linkonce/sym2.s,
575 * testsuite/ld-linkonce/sym3.s: New test files.
576 * testsuite/ld-linkonce/linkonce.exp: Run tests for PE too.
577 Add pr26103 test. Remove unnecessary load_lib.
578
cda58d5f
AM
5792020-06-15 Alan Modra <amodra@gmail.com>
580
581 * testsuite/ld-linkonce/zeroeh_x.s: Rename from x.s.
582 * testsuite/ld-linkonce/zeroeh_y.s: Rename from y.s.
583 * testsuite/ld-linkonce/zeroehl32.d: Adjust for renaming. Support
584 big-endian output. Run for powerpc.
585
38226418
AM
5862020-06-11 Alan Modra <amodra@gmail.com>
587
588 * testsuite/ld-plugin/lto.exp (lto_link_tests): Move lto-6,
589 pr12760, pr23818 and pr23958 tests to..
590 (lto_link_elf_tests): ..here.
591
928055a3
NC
5922020-06-11 Nick Clifton <nickc@redhat.com>
593
594 * testsuite/ld-elf/pr26094-1b.c (main): Change return type to
595 int.
596
84df1f9d
AM
5972020-06-10 Alan Modra <amodra@gmail.com>
598
599 * testsuite/ld-elf/linux-x86.exp: Build tests when non-native.
600 (check_pr25749b): Add optional args. Set expected pass file
601 from args. Run -1b and -2a tests with passall.out.
602 * testsuite/ld-elf/passall.out: New file.
603 * testsuite/ld-elf/pr25749-1.c: Adjust to pass with older glibc.
604 * testsuite/ld-elf/pr25749-2.c: Likewise.
605 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Use
606 regexp_diff to compare expected output from running binary.
607
e1b5d517
L
6082020-06-10 H.J. Lu <hongjiu.lu@intel.com>
609
610 PR ld/26094
611 * testsuite/ld-elf/pr26094-1.ver: New fike.
612 * testsuite/ld-elf/pr26094-1a.c: Likewise.
613 * testsuite/ld-elf/pr26094-1a.rd: Likewise.
614 * testsuite/ld-elf/pr26094-1b.c: Likewise.
615 * testsuite/ld-elf/pr26094-1b.rd: Likewise.
616 * testsuite/ld-elf/pr26094-1c.c: Likewise.
617 * testsuite/ld-elf/shared.exp: Run ld/26094 tests.
618
cebd6b8a
L
6192020-06-09 H.J. Lu <hongjiu.lu@intel.com>
620
621 PR ld/18801
622 * testsuite/ld-i386/i386.exp: Run ifunc-textrel-1a,
623 ifunc-textrel-1b, ifunc-textrel-2a and ifunc-textrel-2b.
624 * testsuite/ld-x86-64/x86-64.exp: Likewise.
625 * testsuite/ld-i386/ifunc-textrel-1a.d: Likewise.
626 * testsuite/ld-i386/ifunc-textrel-1b.d: Likewise.
627 * testsuite/ld-i386/ifunc-textrel-2a.d: Likewise.
628 * testsuite/ld-i386/ifunc-textrel-2b.d: Likewise.
629 * testsuite/ld-x86-64/ifunc-textrel-1.s: Likewise.
630 * testsuite/ld-x86-64/ifunc-textrel-1a.d: Likewise.
631 * testsuite/ld-x86-64/ifunc-textrel-1b.d: Likewise.
632 * testsuite/ld-x86-64/ifunc-textrel-2.s: Likewise.
633 * testsuite/ld-x86-64/ifunc-textrel-2a.d: Likewise.
634 * testsuite/ld-x86-64/ifunc-textrel-2b.d: Likewise.
635 * testsuite/ld-i386/pr18801a.d: Expect warning for IFUNC
636 resolvers.
637 * testsuite/ld-i386/pr18801b.d: Likewise.
638 * estsuite/ld-x86-64/pr18801a.d: Likewise.
639 * estsuite/ld-x86-64/pr18801b.d: Likewise.
640
a61e3060
AM
6412020-06-09 Alan Modra <amodra@gmail.com>
642
643 PR 26065
644 * testsuite/ld-elf/shared.exp: Compile dl4main.c -fPIC.
645 (dl4e, dl4f): Expect dl4a.out.
646 * testsuite/ld-elf/dl4e.out: Delete.
647
597344c9
L
6482020-06-07 H.J. Lu <hongjiu.lu@intel.com>
649
650 * testsuite/ld-elf/shared.exp: Pass $LFLAGS to PR ld/21703
651 shared test.
652
656e4a22
L
6532020-06-07 H.J. Lu <hongjiu.lu@intel.com>
654
655 * testsuite/ld-elf/shared.exp: Xfail pr20995/pr20995-2 for
656 tic6x-*-*.
657
0fd91d25
L
6582020-06-07 H.J. Lu <hongjiu.lu@intel.com>
659
660 * testsuite/ld-elf/pr11304.d: Skip tic6x-*-elf.
661
1fc47f80
AM
6622020-06-06 Alan Modra <amodra@gmail.com>
663
664 * testsuite/ld-elf/comm-data.exp: Don't xfail arm or bfin-linux.
665
070558eb
AM
6662020-06-06 Alan Modra <amodra@gmail.com>
667
668 * lexsup.c (ld_options): Accept -plugin and -plugin-opt when
669 !ENABLE_PLUGINS.
670 * testsuite/lib/ld-lib.exp (check_plugin_api_available): Adjust.
671
41285764
NC
6722020-06-05 Nelson Chu <nelson.chu@sifive.com>
673
674 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Rename to
675 attr-merge-priv-spec-01.d.
676 * testsuite/ld-riscv-elf/attr-merge-priv-spec-c.s: Set spec to 1.11.
677 * testsuite/ld-riscv-elf/attr-merge-priv-spec-d.s: Empty priv spec set.
678 * testsuite/ld-riscv-elf/attr-merge-priv-spec-02.d: New testcase.
679 * testsuite/ld-riscv-elf/attr-merge-priv-spec-03.d: Likewise.
680 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
681 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
682 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
683 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
684 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
685 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
686
3fc6c3dc
NC
6872020-06-05 Nelson Chu <nelson.chu@sifive.com>
688
689 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: The CSR isn't used,
690 so ignore the -mpriv-spec setting.
691 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
692 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
693 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
694 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
695 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
696 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
697 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
698 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
699 * testsuite/ld-riscv-elf/call-relax.d: Add -mno-arch-attr.
700
c4b126b8
L
7012020-06-04 H.J. Lu <hongjiu.lu@intel.com>
702
703 PR ld/26080
704 * testsuite/ld-elf/comm-data.exp: Remove copy_reloc.
705 * testsuite/ld-elf/comm-data2r.rd: Removed.
706 * testsuite/ld-elf/comm-data2r.sd: Likewise.
707 * testsuite/ld-elf/comm-data2r.xd: Likewise.
708
e2c8dab6
AM
7092020-06-04 Alan Modra <amodra@gmail.com>
710
711 * testsuite/config/default.exp: Remove global directive outside
712 proc body.
713 * testsuite/ld-bootstrap/bootstrap.exp: Likewise.
714 * testsuite/ld-elf/compress.exp: Likewise.
715 * testsuite/ld-elf/elf.exp: Likewise.
716 * testsuite/ld-elf/exclude.exp: Likewise.
717 * testsuite/ld-elf/frame.exp: Likewise.
718 * testsuite/ld-elf/indirect.exp: Likewise.
719 * testsuite/ld-elf/linux-x86.exp: Likewise.
720 * testsuite/ld-elf/shared.exp: Likewise.
721 * testsuite/ld-elf/tls.exp: Likewise.
722 * testsuite/ld-elf/tls_common.exp: Likewise.
723 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
724 * testsuite/ld-elfweak/elfweak.exp: Likewise.
725 * testsuite/ld-frv/fdpic.exp: Likewise.
726 * testsuite/ld-frv/tls.exp: Likewise.
727 * testsuite/ld-gc/gc.exp: Likewise.
728 * testsuite/ld-i386/i386.exp: Likewise.
729 * testsuite/ld-i386/no-plt.exp: Likewise.
730 * testsuite/ld-ifunc/ifunc.exp: Likewise.
731 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
732 * testsuite/ld-nios2/nios2.exp: Likewise.
733 * testsuite/ld-plugin/lto.exp: Likewise.
734 * testsuite/ld-plugin/plugin.exp: Likewise.
735 * testsuite/ld-powerpc/export-class.exp: Likewise.
736 * testsuite/ld-scripts/align.exp: Likewise.
737 * testsuite/ld-scripts/crossref.exp: Likewise.
738 * testsuite/ld-scripts/defined.exp: Likewise.
739 * testsuite/ld-scripts/overlay-size.exp: Likewise.
740 * testsuite/ld-scripts/provide.exp: Likewise.
741 * testsuite/ld-scripts/weak.exp: Likewise.
742 * testsuite/ld-selective/selective.exp: Likewise.
743 * testsuite/ld-sh/rd-sh.exp: Likewise.
744 * testsuite/ld-size/size.exp: Likewise.
745 * testsuite/ld-srec/srec.exp: Likewise.
746 * testsuite/ld-x86-64/mpx.exp: Likewise.
747 * testsuite/ld-x86-64/no-plt.exp: Likewise.
748 * testsuite/ld-x86-64/x86-64.exp: Likewise.
749
a0c0ad56
AM
7502020-06-04 Alan Modra <amodra@gmail.com>
751
752 * testsuite/ld-dynamic/export-dynamic-symbol-2.d: Match output for
753 mips-sgi-irix6.
754 * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: Likewise.
755 * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: Likewise.
756 * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: Likewise.
757 * testsuite/ld-dynamic/export-dynamic-symbol.exp: Exclude targets
758 with poor PIE support.
759
60f207b4
AM
7602020-06-04 Alan Modra <amodra@gmail.com>
761
762 * testsuite/ld-plugin/lto.exp (pr12758.exe): Add NOPIE_LDFLAGS.
763 * testsuite/ld-unique/unique.exp: Add NOPIE_LDFLAGS to unique
764 executable and dynamic executable tests.
765
1949ad04
L
7662020-06-03 H.J. Lu <hongjiu.lu@intel.com>
767
768 * testsuite/config/default.exp (NOSANTIZE_CFLAGS): New.
769 * testsuite/ld-elf/linux-x86.exp: Add $NOSANTIZE_CFLAGS to
770 tests with run_ld_link_exec_tests.
771 * testsuite/ld-elf/shared.exp: Add $NOSANTIZE_CFLAGS to tests
772 with run_ld_link_tests.
773 * testsuite/ld-elf/tls.exp: Likewise.
774 * testsuite/ld-elfweak/elfweak.exp: Add $NOSANTIZE_CFLAGS to
775 tests with ld_link.
776 * testsuite/ld-gc/gc.exp: Add $NOSANTIZE_CFLAGS to cflags.
777 * testsuite/ld-plugin/lto.exp: Add $NOSANTIZE_CFLAGS to tests
778 with run_ld_link_tests.a
779 * testsuite/ld-plugin/plugin.exp: Append $NOSANTIZE_CFLAGS to
780 CFLAGS.
781 * testsuite/ld-selective/selective.exp: Add $NOSANTIZE_CFLAGS
782 to cflags and cxxflags.
783 * testsuite/ld-srec/srec.exp: Append $NOSANTIZE_CFLAGS to CC
784 and CXX.
785 * testsuite/ld-x86-64/plt-main-ibt-x32.dd: Updated for
786 -fsanitize=undefined.
787 * testsuite/ld-x86-64/plt-main-ibt.dd: Likewise.
788 * testsuite/ld-x86-64/x86-64.exp: Add $NOSANTIZE_CFLAGS to
789 tests with run_cc_link_tests and run_ld_link_tests.
790
37a141bf
FS
7912020-06-03 Fangrui Song <maskray@google.com>
792 H.J. Lu <hongjiu.lu@intel.com>
793
794 PR ld/25910
795 * NEWS: Mention --export-dynamic-symbol[-list].
796 * ld.texi: Document --export-dynamic-symbol[-list].
797 * ldgram.y: Pass current_dynamic_list_p to
798 lang_append_dynamic_list.
799 * ldlang.c (current_dynamic_list_p): New.
800 (ang_append_dynamic_list): Updated to take a pointer to
801 struct bfd_elf_dynamic_list * argument instead of using
802 link_info.dynamic_list.
803 (lang_append_dynamic_list_cpp_typeinfo): Pass
804 &link_info.dynamic_list to ang_append_dynamic_list.
805 (lang_append_dynamic_list_cpp_new): Likewise.
806 * ldlang.h (current_dynamic_list_p): New.
807 (lang_append_dynamic_list): Add a pointer to
808 struct bfd_elf_dynamic_list * argument.
809 * ldlex.h (option_values): Add OPTION_EXPORT_DYNAMIC_SYMBOL and
810 OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
811 * lexsup.c (ld_options): Add entries for
812 OPTION_EXPORT_DYNAMIC_SYMBOL and
813 OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
814 (parse_args): Handle --export-dynamic-symbol and
815 --export-dynamic-symbol-list.
816 * testsuite/ld-dynamic/export-dynamic-symbol-1.d: New.
817 * testsuite/ld-dynamic/export-dynamic-symbol-2.d: New.
818 * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: New.
819 * testsuite/ld-dynamic/export-dynamic-symbol-list-1.d: New.
820 * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: New.
821 * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: New.
822 * testsuite/ld-dynamic/export-dynamic-symbol.exp: New.
823 * testsuite/ld-dynamic/export-dynamic-symbol.s: New.
824 * testsuite/ld-dynamic/foo-bar.list: New.
825 * testsuite/ld-dynamic/foo.list: New.
826 * testsuite/ld-dynamic/foo.s: New.
827 * testsuite/ld-dynamic/fstar.list: New.
828 * testsuite/ld-elf/dlempty.list: New.
829 * testsuite/ld-elf/shared.exp: Add tests for
830 --export-dynamic-symbol and --export-dynamic-symbol-list.
831
bbd2d6bf
JB
8322020-06-03 Jan Beulich <jbeulich@suse.com>
833
834 * testsuite/ld-elf/linux-x86.exp: Make copied source files
835 writeable.
836
a3fc9418
NC
8372020-05-28 Nick Clifton <nickc@redhat.com>
838
839 PR 26047
840 * ldelf.c (ldelf_after_open): Fail if attempting to link one
a87e1817
NC
841 executable into another. Ensure that the test is made for all
842 forms of linking.
a3fc9418 843
fa6ecf94
L
8442020-05-28 H.J. Lu <hongjiu.lu@intel.com>
845
6f028f3c
L
846 * NEWS: Mention --enable-textrel-check=yes is default for
847 Linux/x86 targets.
848 * configure.tgt (ac_default_ld_textrel_check): Set to yes if
849 unset for Linux/x86 targets.
fa6ecf94 850
b32632c4
L
8512020-05-28 H.J. Lu <hongjiu.lu@intel.com>
852
853 PR ld/20824
854 * NEWS: Mention --enable-textrel-check=[no|yes|warning|error].
855 * configure.ac: Add --enable-textrel-check=[no|yes|warning|error].
856 (DEFAULT_LD_TEXTREL_CHECK): New AC_DEFINE_UNQUOTED.
857 (DEFAULT_LD_TEXTREL_CHECK_WARNING): Likewise.
858 * ldmain.c (main): Initialize link_info.textrel_check to
859 DEFAULT_LD_TEXTREL_CHECK.
860 * lexsup.c (ld_options): Check DEFAULT_LD_TEXTREL_CHECK_WARNING.
861 * config.in: Regenerated.
862 * configure: Likewise.
863
72a3b182
NC
8642020-05-28 Nick Clifton <nickc@redhat.com>
865
866 * lexsup.c (parse_args): Generate an error if a name is not
867 provided to the -Map option.
868 (ld_options): Mention that the -Map option supports a directory
869 name as an argument.
870 * NEWS: Remove mention of support for an empty string as an
871 argument to -Map.
872 * ld.texi: Likewise.
873
2a37823b
HPN
8742020-05-27 Hans-Peter Nilsson <hp@axis.com>
875
876 PR ld/22909
877 * testsuite/ld-elf/pr19539.d: Don't xfail for cris*-*-*.
878
198204a7
NC
8792020-05-27 Rasmus Villemoes <rv@rasmusvillemoes.dk>
880 Nick Clifton <nickc@redhat.com>
881
882 * lexsup.c (parse_args): If the map filename is defined but empty
883 create a name based upon the output file name. If the name is
884 defined but refers to a directory create a file inside the
885 directory based on the output file name.
886 * ld.texi: Document the new feature.
887 * testsuite/ld-script/map-address.exp: Add test of new feature.
888 * NEWS: Mention the new feature.
889
a6dbf402
L
8902020-05-27 H.J. Lu <hongjiu.lu@intel.com>
891
892 PR ld/22909
893 * NEWS: Mention --warn-textrel.
894 * ld.texi: Update -z text/notext/textoff. Add --warn-textrel.
895 Remove --warn-shared-textrel.
896 * ldlex.h (option_values): Rename OPTION_WARN_SHARED_TEXTREL to
897 OPTION_WARN_TEXTREL.
898 * lexsup.c (ld_options): Add --warn-textrel. Obsolete
899 --warn-shared-textrel.
900 (parse_args): Updated.
901 (elf_shlib_list_options): Check link_info.textrel_check.
902 * emultempl/elf.em: Updated.
903 * testsuite/ld-elf/pr19539.d: Replace -z notext with
904 --warn-textrel. Expect a warning.
905 * testsuite/ld-i386/warn1.d: Update expected warning.
906
368584aa
L
9072020-05-26 H.J. Lu <hongjiu.lu@intel.com>
908
909 * testsuite/ld-ifunc/ifunc-23a-x86.d: Skip *-*-lynxos *-*-nto*.
910 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
911 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
912
07e0bb0f
L
9132020-05-25 H.J. Lu <hongjiu.lu@intel.com>
914
915 * testsuite/ld-x86-64/x86-64.exp: Pass -z notext to linker.
916
af2c48d8
L
9172020-05-25 H.J. Lu <hongjiu.lu@intel.com>
918
919 * testsuite/ld-elf/eh6.d: Pass -z notext to linker.
920 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
921 * testsuite/ld-elf/pr19539.d: Likewise.
922 * testsuite/ld-elfvers/vers.exp: Likewise.
923 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
924 * testsuite/ld-i386/i386.exp: Likewise.
925 * testsuite/ld-i386/nogot1.d: Likewise.
926 * testsuite/ld-i386/pr19539.d: Likewise.
927 * testsuite/ld-i386/pr19636-2a.d: Likewise.
928 * testsuite/ld-i386/pr19636-2b.d: Likewise.
929 * testsuite/ld-i386/pr19636-2c.d: Likewise.
930 * testsuite/ld-i386/pr19636-2d.d: Likewise.
931 * testsuite/ld-i386/pr19636-2e.d: Likewise.
932 * testsuite/ld-i386/pr19636-3d.d: Likewise.
933 * testsuite/ld-i386/pr19636-3e.d: Likewise.
934 * testsuite/ld-i386/pr19939b.d: Likewise.
935 * testsuite/ld-i386/undefweaka.d: Likewise.
936 * testsuite/ld-i386/undefweakb.d: Likewise.
937 * testsuite/ld-shared/shared.exp: Likewise.
938 * testsuite/ld-size/size.exp: Likewise.
939 * testsuite/ld-unique/unique.exp: Likewise.
940 * testsuite/ld-x86-64/pie1.d: Likewise.
941 * testsuite/ld-x86-64/pr19539a.d: Likewise.
942 * testsuite/ld-x86-64/pr19539b.d: Likewise.
943 * testsuite/ld-x86-64/pr19636-1d.d: Likewise.
944 * testsuite/ld-x86-64/pr19636-1e.d: Likewise.
945 * testsuite/ld-x86-64/pr19807-1a.d: Likewise.
946 * testsuite/ld-x86-64/pr19807-1b.d: Likewise.
947 * testsuite/ld-x86-64/pr19807-2b.d: Likewise.
948 * testsuite/ld-x86-64/pr19807-2c.d: Likewise.
949 * testsuite/ld-x86-64/pr19807-2d.d: Likewise.
950 * testsuite/ld-x86-64/pr19807-2e.d: Likewise.
951 * testsuite/ld-x86-64/pr19939b.d: Likewise.
952 * testsuite/ld-x86-64/x86-64.exp: Likewise.
953
bb68f22c
FS
9542020-05-24 Fangrui Song <maskray@google.com>
955
956 PR ld/26018
957 * lexsup.c (parse_args): Simplify.
958 * testsuite/ld-elf/dl4e.out: New.
959 * testsuite/ld-elf/shared.exp: Updated for PR ld/26018 tests.
960
309cae1f
L
9612020-05-23 H.J. Lu <hongjiu.lu@intel.com>
962
963 PR ld/26018
964 * testsuite/ld-i386/i386.exp: Add a -Bsymbolic-functions test.
965 * testsuite/ld-x86-64/x86-64.exp: Likewise.
966 * testsuite/ld-i386/pr26018.d: New file.
967 * testsuite/ld-x86-64/pr26018.d: Likewise.
968 * testsuite/ld-x86-64/pr26018.s: Likewise.
969
5e2ab612
AM
9702020-05-21 Alan Modra <amodra@gmail.com>
971
972 * deffilep.y: Replace "if (x) free (x)" with "free (x)" thoughout.
973 * emultempl/elf.em: Likewise.
974 * emultempl/msp430.em: Likewise.
975 * emultempl/pe.em: Likewise.
976 * emultempl/pep.em: Likewise.
977 * emultempl/ppc64elf.em: Likewise.
978 * emultempl/xtensaelf.em: Likewise.
979 * ldelf.c: Likewise.
980 * ldfile.c: Likewise.
981 * ldmain.c: Likewise.
982 * ldmisc.c: Likewise.
983 * lexsup.c: Likewise.
984 * pe-dll.c: Likewise.
985
8f595e9b
NC
9862020-05-20 Nelson Chu <nelson.chu@sifive.com>
987
988 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Updated
989 priv attributes according to the -mpriv-spec option.
990 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
991 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
992 * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
993 * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
994 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
995 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
996 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
997 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
998 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
999 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
1000 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
1001
7b958a48
AM
10022020-05-20 Alan Modra <amodra@gmail.com>
1003
1004 PR 25993
1005 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't copy
1006 other_bfd_filename for bfd_set_filename, and test result of
1007 bfd_set_filename call. Don't create a new is->filename, simply
1008 copy from bfd filename. Free new_name after bfd_set_filename.
1009 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
1010
7e057737
SP
10112020-05-19 Siddhesh Poyarekar <siddesh.poyarekar@arm.com>
1012
1013 * testsuite/ld-aarch64/aarch64-elf.exp: New test
1014 emit-relocs-560.
1015 * testsuite/ld-aarch64/emit-relocs-560.d: New file.
1016 * testsuite/ld-aarch64/emit-relocs-560.s: New file.
1017
607b4833
AM
10182020-05-19 Alan Modra <amodra@gmail.com>
1019
1020 * emultempl/beos.em (sort_by_file_name): Use bfd_get_filename
1021 rather than accessing bfd->filename directly.
1022 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
1023 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
1024 * emultempl/spuelf.em (embedded_spu_file): Likewise.
1025 * ldlang.c (input_statement_is_archive_path, wild_sort),
1026 (check_excluded_libs): Likewise.
1027 * ldmain.c (add_archive_element): Likewise.
1028 * ldmisc.c (vfinfo): Likewise.
1029 * pe-dll.c (auto_export, generate_edata, pe_create_import_fixup),
1030 (pe_dll_generate_implib, pe_process_import_defs): Likewise.
1031 * plugin.c (plugin_object_p): Likewise.
1032
3edf7b9f
DR
10332020-05-18 Douglas B Rupp <rupp@adacore.com>
1034
1035 * ldemul.h (ldemul_print_symbol): New.
1036 (ld_emulation_xfer_type) <print_symbol): Likewise.
1037 * ldemul.c (ldemul_print_symbol): New.
1038 * ldlang.c (SECTION_NAME_MAP_LANGTH): Move to ...
1039 (print_one_symbol): Make global and move declaration to ...
1040 (print_all_symbols): Rename print_one_symbol to ldemul_print_symbol
1041 (print_input_section): Likewise
1042 * ldlang.h: ... here.
1043 * emultempl/aix.em (gld${EMULATION_NAME}_print_symbol): New.
1044 (ld_emulation_xfer_struct): Use it.
1045 * emultempl/armcoff.em (ld_emulation_xfer_struct): Add print_symbol
1046 and default to NULL.
1047 * emultempl/beos.em (ld_emulation_xfer_struct): Likewise
1048 * emultempl/elf.em (ld_emulation_xfer_struct): Likewise
1049 * emultempl/generic.em (ld_emulation_xfer_struct): Likewise
1050 * emultempl/linux.em (ld_emulation_xfer_struct): Likewise
1051 * emultempl/msp430.em (ld_emulation_xfer_struct): Likewise
1052 * emultempl/pe.em (ld_emulation_xfer_struct): Likewise
1053 * emultempl/pep.em (ld_emulation_xfer_struct): Likewise
1054 * emultempl/ticoff.em (ld_emulation_xfer_struct): Likewise
1055 * emultempl/vanilla.em (ld_emulation_xfer_struct): Likewise
1056
6e0c75f7
ST
10572020-05-18 Sergei Trofimovich <siarheit@google.com>
1058
1059 * ldmain.c (add_archive_element): Fix s/claimi/claim/ typo
1060 in info message.
1061
e6ddf2af
NC
10622020-05-18 Nick Clifton <nickc@redhat.com>
1063
1064 * po/sv.po: Update Swedish translation.
1065
5e365e47
NC
10662020-05-18 Nick Clifton <nickc@redhat.com>
1067
1068 PR 25993
1069 * emultempl/pe.em (_after_open): Check for duplicate filename
1070 pointers before renaming the dll.
1071 * emultempl/pep.em (_after_open): Likewise.
1072
ba311c5b
NC
10732020-05-13 Nick Clifton <nickc@redhat.com>
1074
1075 PR 25979
1076 * lexsup.c (elf_shlib_list_options): Include the default value for
1077 the hash style in the output text.
1078
94ba9882
AM
10792020-05-11 Alan Modra <amodra@gmail.com>
1080
1081 * testsuite/ld-powerpc/pcrelopt.s: Add lxvp and stxvp.
1082 * testsuite/ld-powerpc/pcrelopt.d: Update.
1083
7c1f4227
AM
10842020-05-11 Alan Modra <amodra@gmail.com>
1085
1086 * testsuite/ld-powerpc/callstub-1.d: Use -mpower10/-Mpower10 in
1087 place of -mfuture/-Mfuture.
1088 * testsuite/ld-powerpc/notoc2.d: Likewise.
1089 * testsuite/ld-powerpc/powerpc.exp: Likewise.
1090 * testsuite/ld-powerpc/tlsgd.d: Likewise.
1091 * testsuite/ld-powerpc/tlsie.d: Likewise.
1092 * testsuite/ld-powerpc/tlsld.d: Likewise.
1093
73199c2b
NC
10942020-05-11 Nick Clifton <nickc@redhat.com>
1095
1096 * po/es.po: Updated Spanish translation.
1097
cff69cf4
WD
10982020-05-01 Wilco Dijkstra <wdijkstr@arm.com>
1099
1100 PR ld/25665
1101 * testsuite/ld-aarch64/farcall-group.s: New large group test.
1102 * testsuite/ld-aarch64/farcall-group.d: New test driver.
1103 * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
1104
a8acd6ee
AM
11052020-05-01 Alan Modra <amodra@gmail.com>
1106
1107 PR 25882
1108 * ldlang.c (lang_check): Call bfd_merge_private_bfd_data for
1109 shared libraries.
1110
94a8e7b0
AM
11112020-05-01 Alan Modra <amodra@gmail.com>
1112
1113 * po/BLD-POTFILES.in: Regenerate.
1114
09c1e68a
AC
11152020-04-30 Alex Coplan <alex.coplan@arm.com>
1116
1117 * testsuite/ld-aarch64/erratum843419_tls_ie.d: Use udf in disassembly.
1118 * testsuite/ld-aarch64/farcall-b-section.d: Likewise.
1119 * testsuite/ld-aarch64/farcall-back.d: Likewise.
1120 * testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
1121
8a8a1171
NC
11222020-04-30 Nick Clifton <nickc@redhat.com>
1123
1124 * testsuite/ld-elf/compress1c.d: XFAIL if thet target linker does
1125 not support the -shared command line option.
1126 * /ld-elf/compressed1c.d: Likewise.
1127 * /ld-elf/compressed1e.d: Likewise.
1128 * /ld-elf/dynamic1.d: Likewise.
1129 * /ld-elf/dynsym1.d: Likewise.
1130 * /ld-elf/ehdr_start-shared.d: Likewise.
1131 * /ld-elf/exclude3b.d: Likewise.
1132 * /ld-elf/global1.d: Likewise.
1133 * /ld-elf/hash.d: Likewise.
1134 * /ld-elf/local1.d: Likewise.
1135 * /ld-elf/mbind1b.d: Likewise.
1136 * /ld-elf/now-1.d: Likewise.
1137 * /ld-elf/now-2.d: Likewise.
1138 * /ld-elf/now-3.d: Likewise.
1139 * /ld-elf/now-4.d: Likewise.
1140 * /ld-elf/pr12975.d: Likewise.
1141 * /ld-elf/pr13177.d: Likewise.
1142 * /ld-elf/pr13195.d: Likewise.
1143 * /ld-elf/pr16322.d: Likewise.
1144 * /ld-elf/pr16498a.d: Likewise.
1145 * /ld-elf/pr16498b.d: Likewise.
1146 * /ld-elf/pr17615.d: Likewise.
1147 * /ld-elf/pr19162.d: Likewise.
1148 * /ld-elf/pr19698.d: Likewise.
1149 * /ld-elf/pr20513c.d: Likewise.
1150 * /ld-elf/pr20513d.d: Likewise.
1151 * /ld-elf/pr21389a.d: Likewise.
1152 * /ld-elf/pr21389b.d: Likewise.
1153 * /ld-elf/pr21389c.d: Likewise.
1154 * /ld-elf/pr21562a.d: Likewise.
1155 * /ld-elf/pr21562b.d: Likewise.
1156 * /ld-elf/pr21562c.d: Likewise.
1157 * /ld-elf/pr21562d.d: Likewise.
1158 * /ld-elf/pr21562e.d: Likewise.
1159 * /ld-elf/pr21562f.d: Likewise.
1160 * /ld-elf/pr21562g.d: Likewise.
1161 * /ld-elf/pr21562h.d: Likewise.
1162 * /ld-elf/pr21562i.d: Likewise.
1163 * /ld-elf/pr21562j.d: Likewise.
1164 * /ld-elf/pr21562k.d: Likewise.
1165 * /ld-elf/pr21562l.d: Likewise.
1166 * /ld-elf/pr21562m.d: Likewise.
1167 * /ld-elf/pr21562n.d: Likewise.
1168 * /ld-elf/pr21903a.d: Likewise.
1169 * /ld-elf/pr21903b.d: Likewise.
1170 * /ld-elf/pr22269b.d: Likewise.
1171 * /ld-elf/pr22393-1a.d: Likewise.
1172 * /ld-elf/pr22393-1b.d: Likewise.
1173 * /ld-elf/pr23658-1c.d: Likewise.
1174 * /ld-elf/pr25708.d: Likewise.
1175 * /ld-elf/rpath-1.d: Likewise.
1176 * /ld-elf/rpath-2.d: Likewise.
1177 * /ld-elf/runpath-1.d: Likewise.
1178 * /ld-elf/runpath-2.d: Likewise.
1179 * /ld-elf/sizeofb.d: Likewise.
1180 * /ld-elf/startofb.d: Likewise.
1181 * /ld-elf/strtab.d: Likewise.
1182 * /ld-elf/textaddr2.d: Likewise.
1183 * /ld-elf/textaddr5.d: Likewise.
1184 * /ld-elf/textaddr6.d: Likewise.
1185 * /ld-elf/unknown2.d: Likewise.
1186 * /ld-undefined/entry-3.d: Likewise.
1187 * /ld-undefined/entry-4.d: Likewise.
1188 * /ld-elf/mbind1c.d: XFAIL if the target linker does not support
1189 the -pie option.
1190 * /ld-elf/pie.d: Likewise.
1191 * /ld-elf/pr19539.d: Likewise.
1192 * /ld-elf/pr21903d.d: Likewise.
1193 * /ld-elf/pr22269a.d: Likewise.
1194 * /ld-elf/pr22393-1c.d: Likewise.
1195 * /ld-elf/pr22393-1d.d: Likewise.
1196 * /ld-elf/pr22423.d: Likewise.
1197 * /ld-elf/loadaddr1.d: Expect to fail on the rx-linux target.
1198 * /ld-elf/loadaddr2.d: Likewise.
1199 * /ld-elf/pr22393-1e.d: Likewise.
1200 * /ld-elf/pr22393-1f.d: Likewise.
1201 * /ld-elf/textaddr1.d: Likewise.
1202 * /ld-elf/textaddr4.d: Likewise.
1203
c578f16e
YS
12042020-04-30 Yoshinori Sato <ysato@users.sourceforge.jp>
1205
1206 * emulparams/elf32rx_linux.sh: New rx-linux emulation.
1207 * emultempl/rxlinux.em: New.
1208 * configure.tgt: Add rx-linux.
1209 * Makefile.am: Add eelf32rx_linux.c
1210 * Makefile.in: Regenerate.
1211
d548f47d
MF
12122020-04-29 Max Filippov <jcmvbkbc@gmail.com>
1213
1214 * testsuite/ld-xtensa/relax-diff1.d: New test definition.
1215 * testsuite/ld-xtensa/relax-diff1.s: New test source.
1216 * testsuite/ld-xtensa/relax-ndiff.d: New test definition.
1217 * testsuite/ld-xtensa/relax-ndiff.s: New test source.
1218 * testsuite/ld-xtensa/xtensa.exp: (relax-diff1)
1219 (relax-ndiff): New tests.
1220
4849fabc
SC
12212020-04-29 Stephen Casner <casner@acm.org>
1222
1223 PR 25829
1224 * testsuite/ld-scripts/default-script.exp: Add --image-base=0 to
1225 LDFLAGS for targets *-*-mingw64 x86_64-*-cygwin.
1226 * testsuite/ld-scripts/default-script1.d: No longer have to skip
1227 test for those targets.
1228 * testsuite/ld-scripts/default-script2.d: Likewise.
1229 * testsuite/ld-scripts/default-script3.d: Likewise.
1230 * testsuite/ld-scripts/default-script4.d: Likewise.
1231
251dae91
TC
12322020-04-27 Tamar Christina <tamar.christina@arm.com>
1233
1234 * pe-dll.c (pe_detail_list): Add pe-bigobj-i386.
1235
30ce8e47
MF
12362020-04-22 Max Filippov <jcmvbkbc@gmail.com>
1237
1238 PR ld/25861
1239 * testsuite/ld-xtensa/relax-loc.d: New test definition.
1240 * testsuite/ld-xtensa/relax-loc.s: New test source.
1241 * testsuite/ld-xtensa/xtensa.exp (relax-loc): New test.
1242
16171946
FS
12432020-04-22 Fangrui Song <maskray@google.com>
1244
1245 PR ld/25806
1246 * ldlang.h (struct lang_input_statement_struct): Add extra_search_path.
1247 * ldlang.c (current_input_file): New.
1248 (ldirname): New.
1249 (new_afile): Add from_filename parameter. Set extra_search_path.
1250 (lang_add_input_file): Pass current_input_file to new_afile.
1251 (load_symbols): Set current_input_file.
1252 * ldfile.c (ldfile_open_file): If extra_search_path has been set
1253 then scan it for the file that needs to be opened.
1254 * ld.texi: Document the new behaviour.
1255 * NEWS: Mention the new feature.
1256
1d934d76
AM
12572020-04-22 Alan Modra <amodra@gmail.com>
1258
1259 * testsuite/ld-scripts/default-script1.d: Correct mingw skip.
1260 * testsuite/ld-scripts/default-script2.d: Likewise.
1261 * testsuite/ld-scripts/default-script3.d: Likewise.
1262 * testsuite/ld-scripts/default-script4.d: Likewise.
1263
39a7b38f
SC
12642020-04-21 Stephen Casner <casner@acm.org>
1265
1266 PR 25829
1267 * testsuite/ld-scripts/script.exp (check_script)
1268 (extract_symbol_test): Make test addresses fit in 16 bits.
1269 * testsuite/ld-scripts/memory.t: Likewise.
1270 * testsuite/ld-scripts/memory_sym.t (TXT_LENGTH): Likewise.
1271 * testsuite/ld-scripts/default-script.t (_START): Likewise.
1272 * testsuite/ld-scripts/default-script1.d: Likewise.
1273 * testsuite/ld-scripts/default-script2.d: Likewise.
1274 * testsuite/ld-scripts/default-script3.d: Likewise.
1275 * testsuite/ld-scripts/default-script4.d: Likewise.
1276 * testsuite/ld-scripts/empty-address-1.t: Likewise.
1277 * testsuite/ld-scripts/empty-address-1.d: Likewise.
1278 * testsuite/ld-scripts/empty-address-2a.d: Likewise.
1279 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1280 * testsuite/ld-misc/start.s: .long -> .dc.a to allow relocation to
1281 fit target address size.
1d934d76 1282 * testsuite/ld-scripts/empty-address-1.s: Likewise.
39a7b38f
SC
1283 * testsuite/ld-scripts/empty-address-2.s: Likewise.
1284
6f6fd151
L
12852020-04-21 H.J. Lu <hongjiu.lu@intel.com>
1286
1287 PR ld/25849
1288 * ldelfgen.c (ldelf_map_segments): Call
1289 elf_backend_strip_zero_sized_dynamic_sections.
1290 * testsuite/ld-alpha/tlsbinr.rd: Updated.
1291
2efec98b
AM
12922020-04-20 Alan Modra <amodra@gmail.com>
1293
1294 * testsuite/ld-powerpc/tlsopt5.s: Rename foo to aaaaa.
1295 * testsuite/ld-powerpc/tlsopt5.d: Adjust to suit.
1296 * testsuite/ld-powerpc/tlsopt6.d: Likewise.
1297
dbe23755
RO
12982020-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1299
1300 * testsuite/ld-elf/warn1.d: Don't xfail on 64-bit Solaris/SPARC.
1301 * testsuite/ld-elf/warn2.d: Likewise.
1302
54975ae9
L
13032020-04-18 H.J. Lu <hongjiu.lu@intel.com>
1304
1305 * testsuite/ld-elf/elf.exp (ASFLAGS): Add "--defsym NO_SET=1" for
1306 alpha target.
1307 * testsuite/ld-elf/pr19789.s: Use "=" if NO_SET is defined.
1308
0203cad2
SC
13092020-04-16 Stephen Casner <casner@acm.org>
1310
1311 PR 18963
1312 * testsuite/ld-scripts/pr18963.t: Reduce section sizes to fit in
1313 16-bit address space.
1314 * testsuite/ld-scripts/pr18963.d: Likewise.
1315
0fe0f2d6
JMG
13162020-04-17 Juan Manuel Guerrero <juan.guerrero@gmx.de>
1317 Jan W. Jagersma <jwjagersma@gmail.com>
1318
1319 * scripttempl/i386go32.sc: Provide symbol _environ. Link in
1320 .ctors and .dtors. Discard LTO sections.
1321
49c16254
NC
13222020-04-17 Nick Clifton <nickc@redhat.com>
1323
1324 * testsuite/config/default.exp: If not already set then create the
1325 CCC_OVERRIDE_OPTIONS environment variable to help when running the
1326 testsuite with clang.
1327 * testsuite/ld-elf/pr22269-1.c: Add a missing return statement.
1328 * testsuite/ld-elfvers/vers.exp: Add checks to detect if files
1329 were built before attempting to copy them.
1330
95a51568
FS
13312020-04-15 Fangrui Song <maskray@google.com>
1332
1333 PR binutils/24613
1334 * lexsup.c (parse_args): Change RM_GENERATE_WARNING and
1335 RM_GENERATE_ERROR to RM_DIAGNOSE.
1336 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Change
1337 RM_GENERATE_ERROR to RM_DIAGNOSE.
1338 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Likewise.
1339
fa1477dc
SC
13402020-04-14 Stephen Casner <casner@acm.org>
1341
1342 PR ld/25677
1343 * emulparams/pdp11.sh (SCRIPT_NAME): Change to pdp11.
1344 (EXTRA_EM_FILE): New, add emulation file pdp11.
1345 * scripttempl/pdp11.sc: New, derived from aout.sc without
1346 irrelevant input sections.
1347 * emultempl/pdp11.em (_add_options, _handle_option)
1348 (_list_options): New. Add options -z, --imagic for pdp11-aout.
1349 (_before_parse): Make --omagic be default instead of --nmagic.
1350 (_get_script): Modify special-case linker script for --imagic.
1351 * lexsup.c (parse_args): Explictly set config.text_read_only for -n.
1352 * ld.texi (Options): Add documentation of PDP11-specific options.
1353 (Options): Fix unrelated typo to --no-compact-branches.
1354 * gen-doc.texi: @set PDP11.
1355 * testsuite/ld-pdp11/pdp11.exp: New, start pdp11 testing.
1356 * testsuite/ld-pdp11/sections.s: New, source for options tests.
1357 * testsuite/ld-pdp11/imagic.d: New, test --imagic format.
1358 * testsuite/ld-pdp11/imagicz.d: New, test -z (imagic) format.
1359 * testsuite/ld-pdp11/nmagic.d: New, test --nmagic format.
1360 * testsuite/ld-pdp11/omagic.d: New, test --omagic format.
1361
10ca4b04
L
13622020-04-14 H.J. Lu <hongjiu.lu@intel.com>
1363
1364 PR binutils/25707
1365 * testsuite/ld-arm/armthumb-lib.sym: Updated.
1366 * testsuite/ld-arm/farcall-mixed-app.sym: Likewise.
1367 * testsuite/ld-arm/farcall-mixed-app2.sym: Likewise.
1368 * testsuite/ld-arm/fdpic-main-m.sym: Likewise.
1369 * testsuite/ld-arm/fdpic-main.sym: Likewise.
1370 * testsuite/ld-arm/fdpic-shared-m.sym: Likewise.
1371 * testsuite/ld-arm/fdpic-shared.sym: Likewise.
1372 * testsuite/ld-arm/mixed-app.sym: Likewise.
1373 * testsuite/ld-arm/mixed-lib.sym: Likewise.
1374 * testsuite/ld-arm/preempt-app.sym: Likewise.
1375 * testsuite/ld-elf/hash.d: Likewise.
1376 * testsuite/ld-elf/pr13195.d: Likewise.
1377 * testsuite/ld-elfvsb/hidden2.d: Likewise.
1378 * testsuite/ld-mips-elf/hash2.d: Likewise.
1379
a5d21497
RO
13802020-04-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1381
1382 * testsuite/ld-shared/shared.exp: Remove dangling comments.
1383 xfail shared non PIC tests on Solaris.
1384
ae4b1d73
RO
13852020-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1386
1387 * testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIC on sparc*-*-*.
1388
aa350065
L
13892020-04-02 H.J. Lu <hongjiu.lu@intel.com>
1390
1391 * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): Replace
1392 nopie with available.
1393
8be5def6
L
13942020-04-02 H.J. Lu <hongjiu.lu@intel.com>
1395
1396 * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): New.
1397 Set to "-fcf-protection=none" if target compiler supports it.
1398 * testsuite/ld-srec/srec.exp: Add $NOCF_PROTECTION_CFLAGS to
1399 CC and CXX.
1400 * testsuite/ld-x86-64/x86-64.exp: Add $NOCF_PROTECTION_CFLAGS
1401 to PLT BND tests.
1402
516231b7
L
14032020-04-02 H.J. Lu <hongjiu.lu@intel.com>
1404
1405 * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Compile with
1406 -I../bfd.
1407 (check_pr25749b): Likewise.
1408
bb897477
RO
14092020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1410
1411 * testsuite/ld-ifunc/ifunc-10-i386.d: Remove *-*-solaris2* from
1412 notarget.
1413 * ifunc-11-i386.d: Likewise.
1414 * ifunc-12-i386.d: Likewise.
1415 * ifunc-13-i386.d: Likewise.
1416 * ifunc-14a-i386.d: Likewise.
1417 * ifunc-14b-i386.d: Likewise.
1418 * ifunc-14c-i386.d: Likewise.
1419 * ifunc-14d-i386.d: Likewise.
1420 * ifunc-14e-i386.d: Likewise.
1421 * ifunc-14f-i386.d: Likewise.
1422 * ifunc-15-i386.d: Likewise.
1423 * ifunc-16-i386-now.d: Likewise.
1424 * ifunc-16-i386.d: Likewise.
1425 * ifunc-17a-i386.d: Likewise.
1426 * ifunc-17b-i386.d: Likewise.
1427 * ifunc-18a-i386.d: Likewise.
1428 * ifunc-18b-i386.d: Likewise.
1429 * ifunc-19a-i386.d: Likewise.
1430 * ifunc-19b-i386.d: Likewise.
1431 * ifunc-2-i386-now.d: Likewise.
1432 * ifunc-2-i386.d: Likewise.
1433 * ifunc-2-local-i386-now.d: Likewise.
1434 * ifunc-2-local-i386.d: Likewise.
1435 * ifunc-20-i386.d: Likewise.
1436 * ifunc-21-i386.d: Likewise.
1437 * ifunc-22-i386.d: Likewise.
1438 * ifunc-5a-i386.d: Likewise.
1439 * ifunc-5a-local-i386.d: Likewise.
1440 * ifunc-5b-i386.d: Likewise.
1441 * ifunc-5b-local-i386.d: Likewise.
1442 * ifunc-5r-local-i386.d: Likewise.
1443 * ifunc-6a-i386.d: Likewise.
1444 * ifunc-6b-i386.d: Likewise.
1445 * ifunc-7a-i386.d: Likewise.
1446 * ifunc-7b-i386.d: Likewise.
1447 * ifunc-8-i386.d: Likewise.
1448 * ifunc-9-i386.d: Likewise.
1449 * pr17154-i386-now.d: Likewise.
1450 * pr17154-i386.d: Likewise.
1451
1452 * ifunc-23a-x86.d: Remove notarget.
1453 * ifunc-24a-x86.d: Likewise.
1454 * ifunc-25a-x86.d: Likewise.
1455
4f5bd885
NC
14562020-04-02 Nick Clifton <nickc@redhat.com>
1457
1458 PR ld/25747
1459 * ldfile.c (ldfile_open_file): Fix typo in warning message.
1460
382aae06
L
14612020-04-01 H.J. Lu <hongjiu.lu@intel.com>
1462
1463 PR ld/25749
1464 PR ld/25754
1465 * testsuite/ld-elf/linux-x86.exp: Run ld/25749 tests.
1466 * testsuite/ld-elf/pr25749-1.c: New file.
1467 * testsuite/ld-elf/pr25749-1a.c: Likewise.
1468 * testsuite/ld-elf/pr25749-1b.c: Likewise.
1469 * testsuite/ld-elf/pr25749-1b.err: Likewise.
1470 * testsuite/ld-elf/pr25749-1c.c: Likewise.
1471 * testsuite/ld-elf/pr25749-1d.c: Likewise.
1472 * testsuite/ld-elf/pr25749-2.c: Likewise.
1473 * testsuite/ld-elf/pr25749-2a.s: Likewise.
1474 * testsuite/ld-elf/pr25749-2b.s: Likewise.
1475 * testsuite/ld-elf/pr25749.rd: Likewise.
1476 * testsuite/ld-elf/pr25754-1a.c: Likewise.
1477 * testsuite/ld-elf/pr25754-1b.s: Likewise.
1478 * testsuite/ld-elf/pr25754-2a.c: Likewise.
1479 * testsuite/ld-elf/pr25754-2b.err: Likewise.
1480 * testsuite/ld-elf/pr25754-2b.s: Likewise.
1481 * testsuite/ld-elf/pr25754-3a.c: Likewise.
1482 * testsuite/ld-elf/pr25754-3b.s: Likewise.
1483 * testsuite/ld-elf/pr25754-4a.c: Likewise.
1484 * testsuite/ld-elf/pr25754-4b.s: Likewise.
1485 * testsuite/ld-elf/pr25754-4c.s: Likewise.
1486 * testsuite/ld-elf/pr25754-5a.c: Likewise.
1487 * testsuite/ld-elf/pr25754-5b.s: Likewise.
1488 * testsuite/ld-elf/pr25754-5c.s: Likewise.
1489 * testsuite/ld-elf/pr25754-6a.c: Likewise.
1490 * testsuite/ld-elf/pr25754-6b.s: Likewise.
1491 * testsuite/ld-x86-64/pr19609-6a.d: Don't expect linker error.
1492
3ce23ca1
TC
14932020-04-01 Tamar Christina <tamar.christina@arm.com>
1494
1495 PR ld/16017
1496 * testsuite/ld-arm/arm-elf.exp (thumb-plt, thumb-plt-got): Skip for NaCL.
1497
77bf7b53
NC
14982020-04-01 Nick Clifton <nickc@redhat.com>
1499
1500 PR ld/25747
1501 * ldfile.c (ldfile_open_file): If a search for a library fails,
1502 but there is a file that would match if it had a "lib" prefix to
1503 its name, then tell the user.
1504
a7618269
TC
15052020-04-01 Tamar Christina <tamar.christina@arm.com>
1506
1507 PR ld/16017
1508 * testsuite/ld-arm/arm-elf.exp (thumb-plt-got): New.
1509 * testsuite/ld-arm/thumb-plt-got.d: New test.
1510
15ccbdd7
TC
15112020-04-01 Tamar Christina <tamar.christina@arm.com>
1512
1513 * testsuite/ld-arm/arm-elf.exp (thumb-plt): New.
1514 * testsuite/ld-arm/thumb-plt.d: New test.
1515 * testsuite/ld-arm/thumb-plt.s: New test.
1516
41ff29bf
HPN
15172020-04-01 Hans-Peter Nilsson <hp@bitrange.com>
1518
1519 * testsuite/ld-scripts/defined4.d: Don't xfail mmix-*-*.
1520
00386881
NC
15212020-03-30 Nick Clifton <nickc@redhat.com>
1522
1523 PR binutils/25662
1524 * emultempl/pe.em (after_open): Replace initialisation of the
1525 insert_timestamp field in the pe_data structure with an
1526 initialisation of the timestamp field.
1527 * emultemp/pep.em: Likewise.
1528 * pe-dll.c (fill_edata): Use the timestamp field in the pe_data
1529 structure instead of the insert_timestamp field.
1530
767be9d9
L
15312020-03-28 H.J. Lu <hongjiu.lu@intel.com>
1532
1533 PR 25732
1534 * emulparams/elf_i386_ldso.sh (COMMONPAGESIZE): New.
1535 * testsuite/ld-elf/shared.exp:Don't xfail pr20995-2 tests for
1536 Solaris.
1537
258e8844
L
15382020-03-27 H.J. Lu <hongjiu.lu@intel.com>
1539
1540 PR 25732
1541 * testsuite/ld-elf/shared.exp: Xfail pr20995-2 tests for Solaris.
1542
cacb9d87
L
15432020-03-27 H.J. Lu <hongjiu.lu@intel.com>
1544
1545 PR 25732
1546 * testsuite/ld-ifunc/ifunc-23a-x86.d: Add notarget for Solaris.
1547 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
1548 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
1549
86fd7e2e
AM
15502020-03-25 Alan Modra <amodra@gmail.com>
1551
1552 * testsuite/ld-elf/compress1c.d: xfail h8300.
1553 * testsuite/ld-elf/compressed1c.d: Likewise.
1554 * testsuite/ld-elf/compressed1e.d: Likewise.
1555 * testsuite/ld-elf/dynamic1.d: Likewise.
1556 * testsuite/ld-elf/dynsym1.d: Likewise.
1557 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1558 * testsuite/ld-elf/exclude3b.d: Likewise.
1559 * testsuite/ld-elf/export-class.exp: Don't run without -shared support.
1560 * testsuite/ld-elf/global1.d: xfail h8300.
1561 * testsuite/ld-elf/hash.d: Likewise.
1562 * testsuite/ld-elf/loadaddr1.d: Likewise.
1563 * testsuite/ld-elf/loadaddr2.d: Likewise.
1564 * testsuite/ld-elf/local1.d: Likewise.
1565 * testsuite/ld-elf/mbind1b.d: Likewise.
1566 * testsuite/ld-elf/mbind1c.d: Likewise.
1567 * testsuite/ld-elf/now-1.d: Likewise.
1568 * testsuite/ld-elf/now-2.d: Likewise.
1569 * testsuite/ld-elf/now-3.d: Likewise.
1570 * testsuite/ld-elf/now-4.d: Likewise.
1571 * testsuite/ld-elf/pie.d: Likewise.
1572 * testsuite/ld-elf/pr12975.d: Likewise.
1573 * testsuite/ld-elf/pr13177.d: Likewise.
1574 * testsuite/ld-elf/pr13195.d: Likewise.
1575 * testsuite/ld-elf/pr16322.d: Likewise.
1576 * testsuite/ld-elf/pr16498a.d: Likewise.
1577 * testsuite/ld-elf/pr16498b.d: Likewise.
1578 * testsuite/ld-elf/pr17615.d: Likewise.
1579 * testsuite/ld-elf/pr19162.d: Likewise.
1580 * testsuite/ld-elf/pr19539.d: Likewise.
1581 * testsuite/ld-elf/pr19617a.d: Likewise.
1582 * testsuite/ld-elf/pr19698.d: Likewise.
1583 * testsuite/ld-elf/pr20513c.d: Likewise.
1584 * testsuite/ld-elf/pr20513d.d: Likewise.
1585 * testsuite/ld-elf/pr21389a.d: Likewise.
1586 * testsuite/ld-elf/pr21389b.d: Likewise.
1587 * testsuite/ld-elf/pr21389c.d: Likewise.
1588 * testsuite/ld-elf/pr21562a.d: Likewise.
1589 * testsuite/ld-elf/pr21562b.d: Likewise.
1590 * testsuite/ld-elf/pr21562c.d: Likewise.
1591 * testsuite/ld-elf/pr21562d.d: Likewise.
1592 * testsuite/ld-elf/pr21562e.d: Likewise.
1593 * testsuite/ld-elf/pr21562f.d: Likewise.
1594 * testsuite/ld-elf/pr21562g.d: Likewise.
1595 * testsuite/ld-elf/pr21562h.d: Likewise.
1596 * testsuite/ld-elf/pr21562i.d: Likewise.
1597 * testsuite/ld-elf/pr21562j.d: Likewise.
1598 * testsuite/ld-elf/pr21562k.d: Likewise.
1599 * testsuite/ld-elf/pr21562l.d: Likewise.
1600 * testsuite/ld-elf/pr21562m.d: Likewise.
1601 * testsuite/ld-elf/pr21562n.d: Likewise.
1602 * testsuite/ld-elf/pr21903a.d: Likewise.
1603 * testsuite/ld-elf/pr21903b.d: Likewise.
1604 * testsuite/ld-elf/pr21903d.d: Likewise.
1605 * testsuite/ld-elf/pr22269a.d: Likewise.
1606 * testsuite/ld-elf/pr22269b.d: Likewise.
1607 * testsuite/ld-elf/pr22393-1a.d: Likewise.
1608 * testsuite/ld-elf/pr22393-1b.d: Likewise.
1609 * testsuite/ld-elf/pr22393-1c.d: Likewise.
1610 * testsuite/ld-elf/pr22393-1d.d: Likewise.
1611 * testsuite/ld-elf/pr22393-1e.d: Likewise.
1612 * testsuite/ld-elf/pr22393-1f.d: Likewise.
1613 * testsuite/ld-elf/pr22423.d: Likewise.
1614 * testsuite/ld-elf/pr22450.d: xfail avr, crx, h8300, ip2k, m68hc11,
1615 and xc16x.
1616 * testsuite/ld-elf/pr23658-1c.d: xfail h8300.
1617 * testsuite/ld-elf/pr25708.d: xfail h8300 and hppa64.
1618 * testsuite/ld-elf/rpath-1.d: xfail h8300.
1619 * testsuite/ld-elf/rpath-2.d: Likewise.
1620 * testsuite/ld-elf/runpath-1.d: Likewise.
1621 * testsuite/ld-elf/runpath-2.d: Likewise.
1622 * testsuite/ld-elf/sizeofb.d: Likewise.
1623 * testsuite/ld-elf/startofb.d: Likewise.
1624 * testsuite/ld-elf/strtab.d: Likewise.
1625 * testsuite/ld-elf/textaddr1.d: Likewise.
1626 * testsuite/ld-elf/textaddr2.d: Likewise.
1627 * testsuite/ld-elf/textaddr4.d: Likewise.
1628 * testsuite/ld-elf/textaddr5.d: Likewise.
1629 * testsuite/ld-elf/textaddr6.d: Likewise.
1630 * testsuite/ld-elf/unknown2.d: Likewise.
1631 * testsuite/ld-undefined/entry-3.d: Likewise.
1632 * testsuite/ld-undefined/entry-4.d: Likewise.
1633 * testsuite/ld-h8300/h8300.exp: Pass appropriate ld -m option.
1634 * testsuite/ld-h8300/gcsection.d: Remove ld -m option and relax
1635 file format match.
1636 * testsuite/ld-h8300/relax-2.d: Likewise.
1637 * testsuite/ld-h8300/relax-3.d: Likewise.
1638 * testsuite/ld-h8300/relax-4.d: Likewise.
1639 * testsuite/ld-h8300/relax-5.d: Likewise.
1640 * testsuite/ld-h8300/relax-6.d: Likewise.
1641 * testsuite/ld-h8300/relax-7.d: Likewise.
1642 * testsuite/ld-h8300/relax.d: Relax file format match.
1643
7e6e972f
L
16442020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1645
1646 PR binutils/25708
1647 * testsuite/ld-elf/pr25708.d: New file.
1648
5e737279
AM
16492020-03-23 Alan Modra <amodra@gmail.com>
1650
1651 * Makefile.am (ALL_EMULATION_SOURCES): Reinstate ei386aout.c.
1652 Include ei386aout dep file.
1653 * Makefile.in: Regenerate.
1654 * po/BLD-POTFILES.in: Regenerate.
1655
3d98c460
L
16562020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1657
1658 * testsuite/ld-plugin/lto.exp (lto_link_tests): Run PR ld/25355
1659 test only for GCC 10 or newer.
1660
c02d6661
AM
16612020-03-20 Alan Modra <amodra@gmail.com>
1662
1663 * testplug.c (parse_symdefstr): Use %hhi to read sym->def, and
1664 clear new fields.
1665 * testplug2.c (parse_symdefstr): Likewise.
1666 * testplug3.c (parse_symdefstr): Likewise.
1667 * testplug4.c (parse_symdefstr): Likewise.
1668
aef397a1
CL
16692020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
1670
1671 * testsuite/ld-arm/non-contiguous-arm4.d: Fix expected output.
1672 * testsuite/ld-powerpc/non-contiguous-powerpc.d: Likewise.
1673
53215f21
CL
16742020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
1675
1676 * emultempl/xtensaelf.em: Emit a fatal error message
1677 instead of calling abort.
1678 * ldlang.c: Likewise.
1679
02a8180e
AM
16802020-03-14 Alan Modra <amodra@gmail.com>
1681
1682 * testsuite/ld-elf/non-contiguous.d: Don't xfail generic ELF
1683 targets. Don't skip xtensa, xfail instead.
1684
abf874aa
CL
16852020-03-13 Christophe Lyon <christophe.lyon@linaro.org>
1686
1687 * ldlang.c (lang_add_section): Add support for
1688 non_contiguous_regions.
1689 (size_input_section): Likewise.
1690 (lang_size_sections_1): Likewise.
1691 (process_insert_statements): Likewise.
1692 * ldlex.h (option_values): Add OPTION_NON_CONTIGUOUS_REGIONS and
1693 OPTION_NON_CONTIGUOUS_REGIONS_WARNINGS.
1694 * lexsup.c (ld_options): Add entries for
1695 --enable-non-contiguous-regions and
1696 --enable-non-contiguous-regions-warnings.
1697 (parse_args): Handle it.
1698 * NEWS: Add --enable-non-contiguous-regions and
1699 --enable-non-contiguous-regions-warnings.
1700 * ld.texi: Add --enable-non-contiguous-regions and
1701 --enable-non-contiguous-regions-warnings documentation.
1702 * emultempl/armelf.em (elf32_arm_add_stub_section): Add
1703 SEC_LINKER_CREATED flag.
1704 * emultempl/xtensaelf.em (ld_build_required_section_dependence):
1705 Emit an error when --enable-non-contiguous-regions is used.
1706 * testsuite/ld-elf/non-contiguous.d: New.
1707 * testsuite/ld-elf/non-contiguous.ld: New.
1708 * testsuite/ld-elf/non-contiguous.s: New.
1709 * testsuite/ld-arm/arm-elf.exp: Run the new tests.
1710 * testsuite/ld-arm/arm-elf/non-contiguous-arm.s: New.
1711 * testsuite/ld-arm/arm-elf/non-contiguous-arm.d: New.
1712 * testsuite/ld-arm/arm-elf/non-contiguous-arm.ld: New.
1713 * testsuite/ld-arm/arm-elf/non-contiguous-arm2.d: New.
1714 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
1715 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.d: New.
1716 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
1717 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.d: New.
1718 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.ld: New.
1719 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.d: New.
1720 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.ld: New.
1721 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.d: New.
1722 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.ld: New.
1723 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
1724 * testsuite/ld-powerpc/non-contiguous-powerpc.d: New.
1725 * testsuite/ld-powerpc/non-contiguous-powerpc.ld: New.
1726 * testsuite/ld-powerpc/non-contiguous-powerpc.sd: New.
1727 * testsuite/ld-powerpc/non-contiguous-powerpc64.d: New.
1728
74e10d17
L
17292020-03-13 H.J. Lu <hongjiu.lu@intel.com>
1730
1731 PR ld/24920
1732 * emulparams/elf32_x86_64.sh: Use static.sh.
1733 * emulparams/elf_i386.sh: Likewise.
1734 * emulparams/elf_x86_64.sh: Likewise.
1735 * emulparams/static.sh: New file.
1736 * emultempl/elf-x86.em: Include "ldlex.h".
1737 * testsuite/ld-elf/pr24920.err: New file.
1738 * testsuite/ld-elf/linux-x86.exp: Run ld/24920 tests.
1739
502794d4
CE
17402020-03-13 Christian Eggers <ceggers@gmx.de>
1741
1742 * ldexp.c (fold_name): Return SIZEOF_HEADERS in bytes.
1743
1db6f990
AM
17442020-03-11 Alan Modra <amodra@gmail.com>
1745
1746 * ldelf.c (elf_orphan_compatible): Return false when two sections
1747 have differing SHF_MASKPROC or SHF_MASKOS flags.
1748
92d4b13b
AM
17492020-03-05 Alan Modra <amodra@gmail.com>
1750
1751 PR 25570
1752 * ldlang.c (lang_size_sections_1): Don't report changes on
1753 second and subsequent iterations that make no change in
1754 alignment from that already reported.
1755
baf09cba
AM
17562020-03-05 Alan Modra <amodra@gmail.com>
1757
1758 PR 25570
1759 * ldlang.c (lang_sizing_iteration): New static var.
1760 (lang_size_sections_1): Warn about no memory region only on first
1761 iteration. Warn about changing start address on first iteration
1762 then any delta from that on subsequent iterations. Report a signed
1763 delta.
1764 (one_lang_size_sections_pass): Increment lang_sizing_iteration.
1765
d8e4137b
NC
17662020-03-03 Nick Clifton <nickc@redhat.com>
1767
1768 PR 25588
1769 * ld.texi (Options): Update the description of the --rpath-link
1770 option.
1771
cb001c0d
AM
17722020-03-02 Alan Modra <amodra@gmail.com>
1773
1774 * plugin.c (plugin_object_p): Return a bfd_cleanup.
1775 (plugin_cleanup): New function.
1776
2aa90762
L
17772020-03-01 H.J. Lu <hongjiu.lu@intel.com>
1778
1779 PR ld/25618
1780 * plugin.c (plugin_object_p): Copy the no_export field to the IR
1781 dummy object.
1782 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Add
1783 PR ld/25618 tests.
1784 * testsuite/ld-plugin/pr25618.d: New file.
1785 * testsuite/ld-plugin/pr25618a.cc: Likewise.
1786 * testsuite/ld-plugin/pr25618a.h: Likewise.
1787 * testsuite/ld-plugin/pr25618b.cc: Likewise.
1788 * testsuite/ld-plugin/pr25618b.h: Likewise.
1789
5f602802
AM
17902020-02-27 Alan Modra <amodra@gmail.com>
1791
1792 PR 24511
1793 * testsuite/ld-mmix/b-fixo2.d: Adjust for .data change.
1794 * testsuite/ld-mmix/sec-2.d: Likewise.
1795 * testsuite/ld-mmix/sec-3.d: Likewise.
1796 * testsuite/ld-mmix/sec-4.d: Likewise.
1797 * testsuite/ld-mmix/spec802.d: Likewise.
1798 * testsuite/ld-mmix/spec803.d: Likewise.
1799 * testsuite/ld-mmix/spec804.d: Likewise.
1800 * testsuite/ld-mmix/spec805.d: Likewise.
1801 * testsuite/ld-mmix/spec806.d: Likewise.
1802 * testsuite/ld-mmix/spec807.d: Likewise.
1803 * testsuite/ld-mmix/spec808.d: Likewise.
1804
3312f67c
L
18052020-02-26 H.J. Lu <hongjiu.lu@intel.com>
1806
1807 PR ld/25593
1808 * testsuite/ld-plugin/lto.exp: Run PR ld/25593 tests.
1809 * testsuite/ld-plugin/pr25593.d: New file.
1810 * testsuite/ld-plugin/pr25593a-1.c: Likewise.
1811 * testsuite/ld-plugin/pr25593a-2.c: Likewise.
1812 * testsuite/ld-plugin/pr25593b.c: Likewise.
1813 * testsuite/ld-plugin/pr25593c.c: Likewise.
1814 * testsuite/ld-plugin/pr25593d.c: Likewise.
1815 * testsuite/ld-plugin/pr25593e.c: Likewise.
1816
dc1e8a47
AM
18172020-02-26 Alan Modra <amodra@gmail.com>
1818
1819 * emultempl/cskyelf.em: Indent labels correctly.
1820 * ldfile.c: Likewise.
1821 * ldlang.c: Likewise.
1822 * plugin.c: Likewise.
1823
e310298c
AM
18242020-02-26 Alan Modra <amodra@gmail.com>
1825
1826 PR 25593
1827 * ldelf.c (ldelf_try_needed): Add DT_NEEDED lib to input_bfds.
1828 (ldelf_after_open): Save state of input_bfds list before loading
1829 DT_NEEDED libs. Traverse input_bfds list adding DT_NEEDED tags.
1830 Restore input_bfds list.
1831 * testsuite/ld-cris/gotplt1.d: Adjust for changed .dynstr order.
1832
45c63c0f
NC
18332020-02-24 Nick Clifton <nickc@redhat.com>
1834
1835 * po/fr.po: Update French translation.
1836
7b3c2715
AM
18372020-02-22 Alan Modra <amodra@gmail.com>
1838
1839 PR 25585
1840 * NEWS: Mention better "PHDR segment not covered by LOAD segment"
1841 checking.
1842
fcaaac0a
SB
18432020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
1844
1845 PR 25537
1846 * emultempl/z80.em: Remove machine compatability checking.
1847
18482020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
1849
1850 PR 25517
1851 * testsuite/ld-z80/arch_ez80_adl.d: Update command line.
1852 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
1853 * testsuite/ld-z80/arch_r800.d: Likewise.
1854 * testsuite/ld-z80/arch_z180.d: Likewise.
1855 * testsuite/ld-z80/arch_z80n.d: Likewise.
1856 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
1857 * testsuite/ld-z80/comb_arch_z180_z80.d: Likewise.
1858 * testsuite/ld-z80/comb_arch_z80_ez80.d: Likewise.
1859 * testsuite/ld-z80/comb_arch_z80_z180.d: Likewise.
1860 * testsuite/ld-z80/comb_arch_z80_z80n.d: Likewise.
1861 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
1862 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
1863 * testsuite/ld-z80/relocs_f_ez80.d: Likewise.
1864 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
1865 * testsuite/ld-z80/relocs_f_z80n.d: Likewise.
1866
2e3cd5d0
AM
18672020-02-19 Alan Modra <amodra@gmail.com>
1868
1869 * testsuite/ld-plugin/pr25355.d: Allow alpha-linux nm result.
1870
0aa99dcd
L
18712020-02-10 H.J. Lu <hongjiu.lu@intel.com>
1872
1873 PR binutils/25355
1874 * testsuite/ld-plugin/lto.exp: Run PR binutils/25355 test.
1875 * testsuite/ld-plugin/pr25355.c: New file.
1876 * testsuite/ld-plugin/pr25355.d: Likewise.
1877 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Support compile
1878 only dump.
1879
6e569656
L
18802020-02-07 H.J. Lu <hongjiu.lu@intel.com>
1881
1882 * testsuite/ld-unique/unique.exp (contains_unique_symbol): Updated.
1883
9fc0b501
SB
18842020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1885
1886 PR 25469
1887 * emulparams/elf32z80.sh: Use z80 emulation.
1888 * emultempl/z80.em: Make generic to both COFF and ELF Z80 emulations.
1889 * emultempl/z80elf.em: Delete.
1890 * testsuite/ld-elf/pr22450.d: Expect to fail for the Z80.
1891 * testsuite/ld-elf/sec64k.exp: Fix Z80 assembly.
1892 * testsuite/ld-unique/pr21529.s: Avoid register name conflict.
1893 * testsuite/ld-unique/unique.s: Likewise.
1894 * testsuite/ld-unique/unique_empty.s: Likewise.
1895 * testsuite/ld-unique/unique_shared.s: Likewise.
1896 * testsuite/ld-unique/unique.d: Updated expected output.
1897 * testsuite/ld-z80/arch_z80n.d: New file.
1898 * testsuite/ld-z80/comb_arch_z80_z80n.d: New file.
1899 * testsuite/ld-z80/labels.s: Add more labels.
1900 * testsuite/ld-z80/relocs.s: Add more reloc tests.
1901 * testsuite/ld-z80/relocs_f_z80n.d: New file
1902
adb8754e
L
19032020-02-07 H.J. Lu <hongjiu.lu@intel.com>
1904
1905 PR ld/25022
1906 * testsuite/ld-elf/pr25022.d: Xfail more targets which don't use
1907 ldelf_before_place_orphans.
1908
9b538ba7
L
19092020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1910
1911 PR ld/25022
1912 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
1913 before_place_orphans_default.
1914 * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
1915 * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
1916 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
1917 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
1918 * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
1919 * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
1920 * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
1921 * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
1922 * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
1923 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Use
1924 ldelf_before_place_orphans.
1925 * ldelf.c (ldelf_before_place_orphans): New.
1926 * ldelf.h (ldelf_before_place_orphans): Likewise.
1927 * ldemul.c (ldemul_before_place_orphans): Likewise.
1928 (before_place_orphans_default): Likewise.
1929 * ldemul.h (ldemul_before_place_orphans): Likewise.
1930 (before_place_orphans_default): Likewise.
1931 (ld_emulation_xfer_struct): Add before_place_orphans.
1932 * ldlang.c (lang_process): Call ldemul_before_place_orphans
1933 before lang_place_orphans.
1934 * testsuite/ld-elf/pr25022.d: New file.
1935 * testsuite/ld-elf/pr25022.s: Likewise.
1936 * testsuite/ld-elf/pr25022.t: Likewise.
1937
5242a0a0
L
19382020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1939
1940 PR ld/25490
1941 * testsuite/ld-elf/pr25490-1.d: New file.
1942 * testsuite/ld-elf/pr25490-1.s: Likewise.
1943
b7d07216
L
19442020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1945
1946 PR ld/24526
1947 PR ld/25021
1948 PR ld/25490
1949 * testsuite/ld-elf/elf.exp: Run PR ld/25490 tests.
1950 * testsuite/ld-elf/pr24526.d: New file.
1951 * testsuite/ld-elf/pr24526.s: Likewise.
1952 * testsuite/ld-elf/pr25021.d: Likewise.
1953 * testsuite/ld-elf/pr25021.s: Likewise.
1954 * testsuite/ld-elf/pr25490-2-16.rd: Likewise.
1955 * testsuite/ld-elf/pr25490-2-32.rd: Likewise.
1956 * testsuite/ld-elf/pr25490-2-64.rd: Likewise.
1957 * testsuite/ld-elf/pr25490-2.s: Likewise.
1958 * testsuite/ld-elf/pr25490-3-16.rd: Likewise.
1959 * testsuite/ld-elf/pr25490-3-32.rd: Likewise.
1960 * testsuite/ld-elf/pr25490-3-64.rd: Likewise.
1961 * testsuite/ld-elf/pr25490-3.s: Likewise.
1962 * testsuite/ld-elf/pr25490-4-16.rd: Likewise.
1963 * testsuite/ld-elf/pr25490-4-32.rd: Likewise.
1964 * testsuite/ld-elf/pr25490-4-64.rd: Likewise.
1965 * testsuite/ld-elf/pr25490-4.s: Likewise.
1966 * testsuite/ld-elf/pr25490-5-16.rd: Likewise.
1967 * testsuite/ld-elf/pr25490-5-32.rd: Likewise.
1968 * testsuite/ld-elf/pr25490-5-64.rd: Likewise.
1969 * testsuite/ld-elf/pr25490-5.s: Likewise.
1970 * testsuite/ld-elf/pr25490-6-16.rd: Likewise.
1971 * testsuite/ld-elf/pr25490-6-32.rd: Likewise.
1972 * testsuite/ld-elf/pr25490-6-64.rd: Likewise.
1973 * testsuite/ld-elf/pr25490-6.s: Likewise.
1974
19752020-02-06 H.J. Lu <hongjiu.lu@intel.com>
9e4d08bb
L
1976
1977 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark
1978 z80 as not supported.
1979
bb4e012c
AM
19802020-02-06 Alan Modra <amodra@gmail.com>
1981
1982 * testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying
1983 targets that don't support ifunc rather than ones that do.
1984 (contains_irelative_reloc): Match R_PARISC_IPLT.
1985 * testsuite/ld-ifunc/lib.c: Don't use .set in asm.
1986 * testsuite/ld-ifunc/ifunc-23-x86.s,
1987 * testsuite/ld-ifunc/ifunc-24-x86.s,
1988 * testsuite/ld-ifunc/ifunc-25-x86.s,
1989 * testsuite/ld-ifunc/ifunc-4-local-x86.s,
1990 * testsuite/ld-ifunc/ifunc-4-x86.s: Define _main.
1991 * testsuite/ld-ifunc/ifunc-10-i386.d,
1992 * testsuite/ld-ifunc/ifunc-11-i386.d,
1993 * testsuite/ld-ifunc/ifunc-12-i386.d,
1994 * testsuite/ld-ifunc/ifunc-13-i386.d,
1995 * testsuite/ld-ifunc/ifunc-14a-i386.d,
1996 * testsuite/ld-ifunc/ifunc-14b-i386.d,
1997 * testsuite/ld-ifunc/ifunc-14c-i386.d,
1998 * testsuite/ld-ifunc/ifunc-14d-i386.d,
1999 * testsuite/ld-ifunc/ifunc-14e-i386.d,
2000 * testsuite/ld-ifunc/ifunc-14f-i386.d,
2001 * testsuite/ld-ifunc/ifunc-15-i386.d,
2002 * testsuite/ld-ifunc/ifunc-16-i386-now.d,
2003 * testsuite/ld-ifunc/ifunc-16-i386.d,
2004 * testsuite/ld-ifunc/ifunc-17a-i386.d,
2005 * testsuite/ld-ifunc/ifunc-17b-i386.d,
2006 * testsuite/ld-ifunc/ifunc-18a-i386.d,
2007 * testsuite/ld-ifunc/ifunc-18b-i386.d,
2008 * testsuite/ld-ifunc/ifunc-19a-i386.d,
2009 * testsuite/ld-ifunc/ifunc-19b-i386.d,
2010 * testsuite/ld-ifunc/ifunc-2-i386-now.d,
2011 * testsuite/ld-ifunc/ifunc-2-i386.d,
2012 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
2013 * testsuite/ld-ifunc/ifunc-2-local-i386.d,
2014 * testsuite/ld-ifunc/ifunc-20-i386.d,
2015 * testsuite/ld-ifunc/ifunc-21-i386.d,
2016 * testsuite/ld-ifunc/ifunc-22-i386.d,
2017 * testsuite/ld-ifunc/ifunc-26.d,
2018 * testsuite/ld-ifunc/ifunc-5a-i386.d,
2019 * testsuite/ld-ifunc/ifunc-5a-local-i386.d,
2020 * testsuite/ld-ifunc/ifunc-5b-i386.d,
2021 * testsuite/ld-ifunc/ifunc-5b-local-i386.d,
2022 * testsuite/ld-ifunc/ifunc-5r-local-i386.d,
2023 * testsuite/ld-ifunc/ifunc-6a-i386.d,
2024 * testsuite/ld-ifunc/ifunc-6b-i386.d,
2025 * testsuite/ld-ifunc/ifunc-7a-i386.d,
2026 * testsuite/ld-ifunc/ifunc-7b-i386.d,
2027 * testsuite/ld-ifunc/ifunc-8-i386.d,
2028 * testsuite/ld-ifunc/ifunc-9-i386.d,
2029 * testsuite/ld-ifunc/pr17154-i386-now.d,
2030 * testsuite/ld-ifunc/pr17154-i386.d: xfail lynxos, nto, and solaris.
2031
02e0be69
AM
20322020-02-06 Alan Modra <amodra@gmail.com>
2033
2034 * testsuite/lib/ld-lib.exp (is_generic): Delete.
2035 * testsuite/ld-unique/unique.exp: Exclude tic6x.
2036
b88237bc
AM
20372020-02-06 Alan Modra <amodra@gmail.com>
2038
2039 * configure.tgt (i[3-7]86-*-moss*): Don't clear targ_extra_ofiles.
2040 (i[3-7]86-*-openbsd*, x86_64-*-openbsd*): Add.
2041
a8c4d40b
L
20422020-02-02 H.J. Lu <hongjiu.lu@intel.com>
2043
2044 PR gas/25380
2045 * testsuite/ld-i386/pr22001-1c.S: Use "unique,N" in .section
2046 directives.
2047 * testsuite/ld-i386/tls-gd1.S: Likewise.
2048 * testsuite/ld-x86-64/pr21481b.S: Likewise.
2049
5cebc931
JB
20502020-01-30 Jan Beulich <jbeulich@suse.com>
2051
2052 * ld.texi: Remove space between @option and brace.
2053
ef8f08ca
AM
20542020-01-29 Alan Modra <amodra@gmail.com>
2055
2056 PR 25477
2057 * ldelf.c (ldelf_check_ld_so_conf): Add prefix parameter and
2058 correct concat.
2059 (ldelf_after_open): Add prefix parameter.
2060 * ldelf.h (ldelf_after_open): Update prototype.
2061 * emultempl/elf.em (gld${EMULATION_NAME}_after_open): Pass $prefix
2062 to ldelf_after_open.
2063 * Makefile.am: Correct z80 dependencies.
2064 * Makefile.in: Regenerate.
2065
738174e1
AM
20662020-01-28 Alan Modra <amodra@gmail.com>
2067
2068 * ldexp.c (fold_name): Don't print bfd_link_hash_lookup failed
2069 in first phase.
2070
e3696f67
AM
20712020-01-27 Alan Modra <amodra@gmail.com>
2072
2073 * testsuite/ld-elfvers/vers.exp: Replace case statements with
2074 switch statements.
2075 * testsuite/ld-ifunc/ifunc.exp: Likewise.
2076 * testsuite/ld-unique/unique.exp: Likewise.
2077
3024a17a
AM
20782020-01-27 H.J. Lu <hongjiu.lu@intel.com>
2079 Alan Modra <amodra@gmail.com>
2080
2081 PR ld/25458
2082 * testsuite/ld-elf/pr25458.map: New file.
2083 * testsuite/ld-elf/pr25458.rd: Likewise.
2084 * testsuite/ld-elf/pr25458a.s: Likewise.
2085 * testsuite/ld-elf/pr25458b.s: Likewise.
2086 * testsuite/ld-elf/shared.exp: Run PR ld/25458 test.
2087
6a462ad4
L
20882020-01-22 H.J. Lu <hongjiu.lu@intel.com>
2089
2090 PR ld/25416
2091 * testsuite/ld-x86-64/tls.exp: Skip GNU2 TLS tests only without
2092 compiler support.
2093
a804e476
AM
20942020-01-22 Alan Modra <amodra@gmail.com>
2095
2096 * testsuite/ld-powerpc/tlsdesc3.d,
2097 * testsuite/ld-powerpc/tlsdesc3.wf,
2098 * testsuite/ld-powerpc/tlsdesc4.d,
2099 * testsuite/ld-powerpc/tlsdesc4.s,
2100 * testsuite/ld-powerpc/tlsdesc4.wf: New tests.
2101 * testsuite/ld-powerpc/powerpc.exp: Run them.
2102
9e7028aa
AM
21032020-01-22 Alan Modra <amodra@gmail.com>
2104
2105 * emultempl/ppc64elf.em (ppc64_opt, PARSE_AND_LIST_LONGOPTS),
2106 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Support
2107 --tls-get-addr-regsave and --no-tls-get-addr-regsave.
2108 (params): Init new field.
2109 * ld.texi (--tls-get-addr-regsave, --no-tls-get-addr-regsave):
2110 Document.
2111 * testsuite/ld-powerpc/tlsdesc.s,
2112 * testsuite/ld-powerpc/tlsdesc.d,
2113 * testsuite/ld-powerpc/tlsdesc.wf,
2114 * testsuite/ld-powerpc/tlsdesc2.d,
2115 * testsuite/ld-powerpc/tlsdesc2.wf,
2116 * testsuite/ld-powerpc/tlsexenors.d,
2117 * testsuite/ld-powerpc/tlsexenors.r,
2118 * testsuite/ld-powerpc/tlsexers.d,
2119 * testsuite/ld-powerpc/tlsexers.r,
2120 * testsuite/ld-powerpc/tlsexetocnors.d,
2121 * testsuite/ld-powerpc/tlsexetocrs.d,
2122 * testsuite/ld-powerpc/tlsexetocrs.r,
2123 * testsuite/ld-powerpc/tlsopt6.d,
2124 * testsuite/ld-powerpc/tlsopt6.wf: New.
2125 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
2126
c48acf6f
YC
21272020-01-22 Yuri Chornoivan <yurchor@mageia.org>
2128
2129 PR 25417
2130 * ldlang.c (ldlang_open_ctf): Fix error message typo.
2131 * emultempl/z80elf.em (z80_elf_after_open): Likewise.
2132
1e161364
L
21332020-01-21 H.J. Lu <hongjiu.lu@intel.com>
2134
2135 * testsuite/ld-elf/pr23900-1.d: Adjusted.
2136
b4654b10
L
21372020-01-21 H.J. Lu <hongjiu.lu@intel.com>
2138
2139 * testsuite/ld-elf/pr23900-1.d: Also pass -l to readelf.
2140
26916852
NC
21412020-01-20 Nick Clifton <nickc@redhat.com>
2142
2143 * po/pt_BR.po: Updated Brazilian Portuguese translation.
2144 * po/uk.po: Updated Ukranian translation.
2145
14470f07
L
21462020-01-20 H.J. Lu <hongjiu.lu@intel.com>
2147
2148 PR ld/25416
2149 * testsuite/ld-x86-64/pr25416-1.s: New file
2150 * testsuite/ld-x86-64/pr25416-1a.d: Likewise.
2151 * testsuite/ld-x86-64/pr25416-1b.d: Likewise.
2152 * testsuite/ld-x86-64/pr25416-1.s: Likewise.
2153 * testsuite/ld-x86-64/pr25416-2.s: Likewise.
2154 * testsuite/ld-x86-64/pr25416-2a.d: Likewise.
2155 * testsuite/ld-x86-64/pr25416-2b.d: Likewise.
2156 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
2157 * testsuite/ld-x86-64/pr25416-3.s: Likewise.
2158 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
2159 * testsuite/ld-x86-64/pr25416-4.s: Likewise.
2160 * testsuite/ld-x86-64/pr25416-5a.c: Likewise.
2161 * testsuite/ld-x86-64/pr25416-5b.s: Likewise.
2162 * testsuite/ld-x86-64/pr25416-5c.s: Likewise.
2163 * testsuite/ld-x86-64/pr25416-5d.s: Likewise.
2164 * testsuite/ld-x86-64/pr25416-5e.s: Likewise.
2165 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/25416 tests.
2166
b9ca1af6
AM
21672020-01-20 Alan Modra <amodra@gmail.com>
2168
2169 * testsuite/ld-powerpc/tlsexe.d: Match new __tls_get_addr stub.
2170 * testsuite/ld-powerpc/tlsexeno.d: Likewise.
2171 * testsuite/ld-powerpc/tlsexetoc.d: Likewise.
2172 * testsuite/ld-powerpc/tlsexetocno.d: Likewise.
2173 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
2174
69d24618
RM
21752020-01-18 Roland McGrath <mcgrathr@google.com>
2176
2177 * testsuite/ld-x86-64/align-branch-1.d: Loosen instruction regexps
2178 to admit whatever absolute address. The label-relative address is
2179 what the test needs to verify.
2180
1b1bb2c6
NC
21812020-01-18 Nick Clifton <nickc@redhat.com>
2182
2183 * configure: Regenerate.
2184 * po/ld.pot: Regenerate.
2185
ae774686
NC
21862020-01-18 Nick Clifton <nickc@redhat.com>
2187
2188 Binutils 2.34 branch created.
2189
6d0be74b
JL
21902020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2191
2192 * scripttempl/elf32msp430_3.sc: Remove.
2193
0c3d9485
JL
21942020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2195
2196 * scripttempl/elf32msp430.sc: Add input section rules for
2197 .upper.{text,data,rodata,bss}.
2198 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
2199 * testsuite/ld-msp430-elf/upper-input-sections.s: New test.
2200
0d1cc75d
LB
22012020-01-15 Lars Brinkhoff <lars@nocrew.org>
2202
2203 PR 20694
2204 * temulparams/pdp11.sh (TARGET_PAGE_SIZE): Set to 8192.
2205
131cb553
JL
22062020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2207
2208 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
2209 * testsuite/ld-msp430-elf/reloc-lo-430x.s: New test.
2210
e1c6cf61
AM
22112020-01-15 Alan Modra <amodra@gmail.com>
2212
2213 * testsuite/ld-powerpc/ambiguousv1b.d: Adjust expected output.
2214 * testsuite/ld-powerpc/funref.s: Align func_tab.
2215 * testsuite/ld-powerpc/funref2.s: Likewise.
2216 * testsuite/ld-powerpc/funv1.s: Add dot symbols.
2217
e44925ae
LC
22182020-01-14 Lili Cui <lili.cui@intel.com>
2219
2220 * testsuite/ld-i386/align-branch-1.d: Updated for i686-pc-elf.
2221
8c7e1c04
AM
22222020-01-13 Alan Modra <amodra@gmail.com>
2223
2224 * po/BLD-POTFILES.in: Regenerate.
2225
4f18d742
CZ
22262020-01-13 Claudiu Zissulescu <claziss@gmail.com>
2227
2228 * testsuite/ld-arc/relax-local-pic.d: Improve matching patterns.
2229
5e4f7e05
CZ
22302020-01-13 Claudiu Zissulescu <claziss@gmail.com>
2231
2232 * Makefile.am: Remove earcelf_prof.c and earclinux_prof.c
2233 emulations.
2234 * configure.tgt: Likewise.
2235 * Makefile.in: Regenerate.
2236 * emulparams/arcelf_prof.sh: Remove file.
2237 * emulparams/arclinux_prof.sh: Likewise.
2238
8cb31bad
CZ
22392020-01-13 Claudiu Zissulescu <claziss@gmail.com>
2240
2241 * scripttempl/elfarcv2.sc : Allow interrupt vector table to be
2242 located at an arbitrary address. Use DWARF.sc file.
2243 * scripttempl/elfarc.sc: Use DWARF.sc file.
2244
85e290dc
AM
22452020-01-07 Alan Modra <amodra@gmail.com>
2246
2247 * testsuite/ld-mips-elf/eh-frame5.s,
2248 * testsuite/ld-mips-elf/ehdr_start-new.s,
2249 * testsuite/ld-mips-elf/ehdr_start-o32.s,
2250 * testsuite/ld-mips-elf/mips16-call-global-1.s,
2251 * testsuite/ld-mips-elf/mips16-intermix-1.s,
2252 * testsuite/ld-mips-elf/mips16-pic-1b.s,
2253 * testsuite/ld-mips-elf/mips16-pic-4c.s,
2254 * testsuite/ld-mips-elf/no-shared-1-n64.s,
2255 * testsuite/ld-mips-elf/no-shared-1-o32.s,
2256 * testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s,
2257 * testsuite/ld-mips-elf/pic-and-nonpic-1b.s,
2258 * testsuite/ld-mips-elf/pic-and-nonpic-2a.s,
2259 * testsuite/ld-mips-elf/pic-and-nonpic-3b.s,
2260 * testsuite/ld-mips-elf/pic-and-nonpic-4b.s,
2261 * testsuite/ld-mips-elf/pic-and-nonpic-5a.s,
2262 * testsuite/ld-mips-elf/pic-and-nonpic-6-n32c.s,
2263 * testsuite/ld-mips-elf/pic-and-nonpic-6-n64c.s,
2264 * testsuite/ld-mips-elf/pic-and-nonpic-6-o32c.s,
2265 * testsuite/ld-mips-elf/pie.s,
2266 * testsuite/ld-mips-elf/relax-jalr.s: Revert 2019-12-17 change.
2267
0e1f1593
NC
22682020-01-06 Nick Clifton <nickc@redhat.com>
2269
2270 PR 25327
2271 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
2272 command line when building libcomm1.o and pr13250 tests.
2273 * testsuite/ld-plugin/lto.exp: Likewise for pr20267 tests.
2274
d2dbcb18
NC
22752020-01-06 Nick Clifton <nickc@redhat.com>
2276
2277 PR 25326
2278 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
2279 command line when building pr19579 binaries.
2280
dc9bd8c9
HD
22812020-01-03 Hannes Domani <ssbssa@yahoo.de>
2282
2283 * emultempl/pe.em: Add new option --enable-reloc-section.
2284 * emultempl/pep.em: Likewise.
2285 * ld.texi: Document --enable-reloc-section.
2286 * pe-dll.c (pe_dll_build_sections): Use pe_dll_enable_reloc_section.
2287 (pe_dll_fill_sections): Simplify by calling pe_exe_fill_sections.
2288 * pe-dll.h: Add extern declaration of option flag.
2289 * pep-dll.c (pe_dll_enable_reloc_section):
2290 Add alias define for pep_dll_enable_reloc_section.
2291 * pep-dll.h: Add extern declaration of option flag.
2292
6655dba2
SB
22932020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
2294
2295 * Makefile.am: Add new target z80-elf
2296 * configure.tgt: Likewise.
2297 * Makefile.in: Regenerate.
2298 * emultempl/z80.em: Add support for eZ80 and Z180 architectures.
2299 * emulparams/elf32z80.sh: New file.
2300 * emultempl/z80elf.em: Likewise.
2301 * testsuite/ld-elf/comm-data4.s: Fix for Z80.
2302 * testsuite/ld-elf/comm-data5.s: Fix for Z80.
2303 * testsuite/ld-scripts/fill16.d: Fix for Z80.
2304 * testsuite/ld-z80/arch_ez80_adl.d: Likewise.
2305 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
2306 * testsuite/ld-z80/arch_r800.d: Likewise.
2307 * testsuite/ld-z80/arch_z180.d: Likewise.
2308 * testsuite/ld-z80/arch_z80.d: Likewise.
2309 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
2310 * testsuite/ld-z80/comb_arch_z180.d: Likewise.
2311 * testsuite/ld-z80/labels.s: Likewise.
2312 * testsuite/ld-z80/relocs.s: Likewise.
2313 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
2314 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
2315 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
2316 * testsuite/ld-z80/z80.exp: Likewise.
2317 * NEWS: Mention the new support.
2318
0db131fb
TC
23192020-01-02 Tamar Christina <tamar.christina@arm.com>
2320
2321 PR 25210
2322 PR 24753
2323 * emultempl/aarch64elf.em (elf${ELFSIZE}_aarch64_add_stub_section):
2324 Remove SEC_LINKER_CREATED.
2325 * testsuite/ld-aarch64/aarch64-elf.exp: Add erratum835769-843419.
2326 * testsuite/ld-aarch64/erratum835769-843419.d: New test.
2327
b14ce8bf
AM
23282020-01-01 Alan Modra <amodra@gmail.com>
2329
2330 Update year range in copyright notice of all files.
2331
0b114740 2332For older changes see ChangeLog-2019
3499769a 2333\f
0b114740 2334Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
2335
2336Copying and distribution of this file, with or without modification,
2337are permitted in any medium without royalty provided the copyright
2338notice and this notice are preserved.
2339
2340Local Variables:
2341mode: change-log
2342left-margin: 8
2343fill-column: 74
2344version-control: never
2345End:
This page took 0.358334 seconds and 4 git commands to generate.