1 2020-10-09 H.J. Lu <hongjiu.lu@intel.com>
4 * NEWS: Mention -z x86-64-v[234].
5 * ld.texi: Document -z x86-64-v[234].
6 * emulparams/elf32_x86_64.sh: Use x86-64-level.sh.
7 * emulparams/elf_i386.sh: Likewise.
8 * emulparams/elf_x86_64.sh: Likewise.
9 * emulparams/x86-64-level.sh: New file.
10 * testsuite/ld-elf/x86-feature-1a.rd: Update.
11 * testsuite/ld-elf/x86-feature-1b.rd: Likewise.
12 * testsuite/ld-elf/x86-feature-1c.rd: Likewise.
13 * testsuite/ld-elf/x86-feature-1d.rd: Likewise.
14 * testsuite/ld-elf/x86-feature-1e.rd: Likewise.
15 * testsuite/ld-i386/pr23372c.d: Likewise.
16 * testsuite/ld-i386/pr23486c.d: Likewise.
17 * testsuite/ld-i386/pr23486d.d: Likewise.
18 * testsuite/ld-i386/pr24322a.d: Likewise.
19 * testsuite/ld-i386/pr24322b.d: Likewise.
20 * testsuite/ld-i386/property-1a.r: Likewise.
21 * testsuite/ld-i386/property-2a.r: Likewise.
22 * testsuite/ld-i386/property-3.r: Likewise.
23 * testsuite/ld-i386/property-3a.r: Likewise.
24 * testsuite/ld-i386/property-4.r: Likewise.
25 * testsuite/ld-i386/property-4a.r: Likewise.
26 * testsuite/ld-i386/property-5.r: Likewise.
27 * testsuite/ld-i386/property-5a.r: Likewise.
28 * testsuite/ld-i386/property-7a.r: Likewise.
29 * testsuite/ld-i386/property-x86-3.d: Likewise.
30 * testsuite/ld-i386/property-x86-4a.d: Likewise.
31 * testsuite/ld-i386/property-x86-5.d: Likewise.
32 * testsuite/ld-i386/property-x86-cet1.d: Likewise.
33 * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
34 * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
35 * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
36 * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
37 * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
38 * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
39 * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
40 * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
41 * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
42 * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
43 * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
44 * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
45 * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
46 * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
47 * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
48 * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
49 * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
50 * testsuite/ld-x86-64/pr23372c-x32.d: Likewise.
51 * testsuite/ld-x86-64/pr23372c.d: Likewise.
52 * testsuite/ld-x86-64/pr23486c.d: Likewise.
53 * testsuite/ld-x86-64/pr23486d-x32.d: Likewise.
54 * testsuite/ld-x86-64/pr23486d.d: Likewise.
55 * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
56 * testsuite/ld-x86-64/pr24322a.d: Likewise.
57 * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
58 * testsuite/ld-x86-64/pr24322b.d: Likewise.
59 * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
60 * testsuite/ld-x86-64/pr24458a.d: Likewise.
61 * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
62 * testsuite/ld-x86-64/pr24458b.d: Likewise.
63 * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
64 * testsuite/ld-x86-64/pr24458c.d: Likewise.
65 * testsuite/ld-x86-64/property-1a.r: Likewise.
66 * testsuite/ld-x86-64/property-2a.r: Likewise.
67 * testsuite/ld-x86-64/property-3.r: Likewise.
68 * testsuite/ld-x86-64/property-3a.r: Likewise.
69 * testsuite/ld-x86-64/property-4.r: Likewise.
70 * testsuite/ld-x86-64/property-4a.r: Likewise.
71 * testsuite/ld-x86-64/property-5.r: Likewise.
72 * testsuite/ld-x86-64/property-5a.r: Likewise.
73 * testsuite/ld-x86-64/property-7a.r: Likewise.
74 * testsuite/ld-x86-64/property-x86-3-x32.d: Likewise.
75 * testsuite/ld-x86-64/property-x86-3.d: Likewise.
76 * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
77 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
78 * testsuite/ld-x86-64/property-x86-5-x32.d: Likewise.
79 * testsuite/ld-x86-64/property-x86-5.d: Likewise.
80 * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
81 * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
82 * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
83 * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
84 * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
85 * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
86 * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
87 * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
88 * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
89 * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
90 * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
91 * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
92 * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
93 * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
94 * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
95 * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
96 * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
97 * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
98 * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
99 * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
100 * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
101 * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
102 * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
103 * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
104 * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
105 * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
106 * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
107 * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
108 * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
109 * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
110 * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
111 * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
112 * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
113 * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
114 * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
115 * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
116 * testsuite/ld-i386/i386.exp: Run property-x86-6,
117 property-x86-isa1, property-x86-isa2 and property-x86-isa3.
118 * testsuite/ld-i386/property-x86-1.S: Updated to the current
119 GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
121 * testsuite/ld-i386/property-x86-2.S: Likewise.
122 * testsuite/ld-i386/property-x86-3.s: Likewise.
123 * testsuite/ld-x86-64/pr23372d.s: Likewise.
124 * testsuite/ld-x86-64/pr23372e.s: Likewise.
125 * testsuite/ld-x86-64/pr23372f.s: Likewise.
126 * testsuite/ld-x86-64/pr23486c.s: Likewise.
127 * testsuite/ld-x86-64/pr23486d.s: Likewise.
128 * testsuite/ld-x86-64/property-x86-1.S: Likewise.
129 * testsuite/ld-x86-64/property-x86-2.S: Likewise.
130 * testsuite/ld-x86-64/property-x86-3.s: Likewise.
131 * testsuite/ld-x86-64/property-x86-5a.s: Likewise.
132 * testsuite/ld-x86-64/property-x86-5b.s: Likewise.
133 * testsuite/ld-i386/property-x86-6.d: New file.
134 * testsuite/ld-i386/property-x86-isa1.d: Likewise.
135 * testsuite/ld-i386/property-x86-isa2.d: Likewise.
136 * testsuite/ld-i386/property-x86-isa3.d: Likewise.
137 * testsuite/ld-x86-64/property-x86-6-x32.d: Likewise.
138 * testsuite/ld-x86-64/property-x86-6.d: Likewise.
139 * testsuite/ld-x86-64/property-x86-6.s: Likewise.
140 * testsuite/ld-x86-64/property-x86-isa1-x32.d: Likewise.
141 * testsuite/ld-x86-64/property-x86-isa1.d: Likewise.
142 * testsuite/ld-x86-64/property-x86-isa1.s: Likewise.
143 * testsuite/ld-x86-64/property-x86-isa2-x32.d: Likewise.
144 * testsuite/ld-x86-64/property-x86-isa2.d: Likewise.
145 * testsuite/ld-x86-64/property-x86-isa3-x32.d: Likewise.
146 * testsuite/ld-x86-64/property-x86-isa3.d: Likewise.
147 * testsuite/ld-x86-64/simple.s: Likewise.
148 * ld/testsuite/ld-x86-64/x86-64.exp: Run property-x86-6,
149 property-x86-6-x32, property-x86-isa1, property-x86-isa1-x32,
150 property-x86-isa2, property-x86-isa2-x32, property-x86-isa3-x32
151 and property-x86-isa3.
153 2020-10-06 H.J. Lu <hongjiu.lu@intel.com>
155 * testsuite/ld-i386/property-3.r: Updated for Fedora binary
156 annotation plugin for GCC.
157 * testsuite/ld-i386/property-4.r: Likewise.
158 * testsuite/ld-i386/property-5.r: Likewise.
159 * testsuite/ld-x86-64/property-3.r: Likewise.
160 * testsuite/ld-x86-64/property-4.r: Likewise.
161 * testsuite/ld-x86-64/property-5.r: Likewise.
163 2020-10-06 H.J. Lu <hongjiu.lu@intel.com>
166 * testsuite/ld-i386/i386.exp: Run ld/26711 tests.
167 * testsuite/ld-x86-64/x86-64.exp: Likewise.
168 * testsuite/ld-i386/pr26711-1.d: Likewise.
169 * testsuite/ld-i386/pr26711-2.d: Likewise.
170 * testsuite/ld-i386/pr26711-3.d: Likewise.
171 * testsuite/ld-x86-64/pr26711-1-x32.d: Likewise.
172 * testsuite/ld-x86-64/pr26711-1.d: Likewise.
173 * testsuite/ld-x86-64/pr26711-2-x32.d: Likewise.
174 * testsuite/ld-x86-64/pr26711-2.d: Likewise.
175 * testsuite/ld-x86-64/pr26711-3-x32.d: Likewise.
176 * testsuite/ld-x86-64/pr26711-3.d: Likewise.
177 * testsuite/ld-x86-64/pr26711.s: Likewise.
179 2020-10-06 Brandon Bergren <bdragon@FreeBSD.org>
181 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64lppc_fbsd.c.
182 Include $(DEPDIR)/eelf64lppc_fbsd.Pc.
183 * configure.tgt: Add powerpc64le-*-freebsd*.
184 * emulparams/elf64lppc_fbsd.sh: New file.
185 * Makefile.in: Regenerate.
186 * po/BLD-POTFILES.in: Regenerate.
188 2020-10-05 T.K. Chia <u1049321969@caramail.com>
191 * testsuite/ld-i386/ljmp.s,
192 * testsuite/ld-i386/ljmp1.d,
193 * testsuite/ld-i386/ljmp1.s,
194 * testsuite/ld-i386/ljmp2.d,
195 * testsuite/ld-i386/ljmp2.s,
196 * testsuite/ld-x86-64/ljmp1.d,
197 * testsuite/ld-x86-64/ljmp2.d: New testcases.
198 * testsuite/ld-i386/i386.exp,
199 * testsuite/ld-x86-64/x86-64.exp: Run them.
201 2020-10-05 Nick Clifton <nickc@redhat.com>
203 * lexsup.c (parse_args): Generate an error or warning message when
204 multiple short options are used together.
206 2020-10-01 H.J. Lu <hongjiu.lu@intel.com>
209 * testsuite/ld-elf/pr26681.s: New test.
210 * testsuite/ld-elf/pr26681.d: New test driver.
211 * testsuite/ld-elf/pr26681.l: New test output.
213 2020-09-30 H.J. Lu <hongjiu.lu@intel.com>
216 * plugin.c (plugin_notice): Override the IR definition before
217 all LTO symbols have been read for non-ELF targets.
219 2020-09-30 Jeremy Drake <sourceware-bugzilla@jdrake.com>
222 * emultempl/pe.em (_finish): Generate an import library for DLLs,
223 even if they have no exports.
224 * emultempl/pep.em (_finish): Likewise.
226 2020-09-28 Alan Modra <amodra@gmail.com>
228 * testsuite/ld-powerpc/tlsget.d,
229 * testsuite/ld-powerpc/tlsget.s,
230 * testsuite/ld-powerpc/tlsget.wf,
231 * testsuite/ld-powerpc/tlsget2.d.
232 * testsuite/ld-powerpc/tlsget2.wf: New testcases.
233 * testsuite/ld-powerpc/powerpc.exp: Run them.
235 2020-09-26 Alan Modra <amodra@gmail.com>
237 * testsuite/ld-powerpc/elfv2so.d,
238 * testsuite/ld-powerpc/notoc2.d,
239 * testsuite/ld-powerpc/tlsdesc.wf,
240 * testsuite/ld-powerpc/tlsdesc2.d,
241 * testsuite/ld-powerpc/tlsdesc2.wf,
242 * testsuite/ld-powerpc/tlsopt5.d,
243 * testsuite/ld-powerpc/tlsopt5.wf,
244 * testsuite/ld-powerpc/tlsopt6.d,
245 * testsuite/ld-powerpc/tlsopt6.wf: Update __glink_PLTresolve.
247 2020-09-24 Alan Modra <amodra@gmail.com>
250 * emultempl/ppc64elf.em (params): Add ppc_edit.
251 (ppc_before_allocation): Split off some edit functions to..
252 (ppc_edit): ..this, new function.
254 2020-09-22 Frediano Ziglio <fziglio@redhat.com>
256 * emultempl/pe.em (set_entry_point): Only use the DLL entry point
258 * emultempl/pep.em (set_entry_point): Likewise.
260 2020-09-16 Mikael Pettersson <mikpelinux@gmail.com>
262 * testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIE on sparc.
263 * testsuite/ld-elf/tls.exp: Add -Av9 to AFLAGS_PIC on sparc.
265 2020-09-16 H.J. Lu <hongjiu.lu@intel.com>
268 * testsuite/ld-x86-64/pe-x86-64-1.od: New file.
269 * testsuite/ld-x86-64/pe-x86-64-1a.obj.bz2: Likewise.
270 * testsuite/ld-x86-64/pe-x86-64-1b.obj.bz2: Likewise.
271 * testsuite/ld-x86-64/pe-x86-64-1c.obj.bz2: Likewise.
272 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
273 * testsuite/ld-x86-64/pe-x86-64-2a.obj.bz2: Likewise.
274 * testsuite/ld-x86-64/pe-x86-64-2b.obj.bz2: Likewise.
275 * testsuite/ld-x86-64/pe-x86-64-2c.obj.bz2: Likewise.
276 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
277 * testsuite/ld-x86-64/pe-x86-64-3a.obj.bz2: Likewise.
278 * testsuite/ld-x86-64/pe-x86-64-3b.obj.bz2: Likewise.
279 * testsuite/ld-x86-64/pe-x86-64-3c.obj.bz2: Likewise.
280 * testsuite/ld-x86-64/pe-x86-64-3d.obj.bz2: Likewise.
281 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
282 * testsuite/ld-x86-64/pe-x86-64-4a.obj.bz2: Likewise.
283 * testsuite/ld-x86-64/pe-x86-64-4b.obj.bz2: Likewise.
284 * testsuite/ld-x86-64/pe-x86-64-4c.obj.bz2: Likewise.
285 * testsuite/ld-x86-64/pe-x86-64-4d.obj.bz2: Likewise.
286 * testsuite/ld-x86-64/pe-x86-64.exp: Likewise.
287 * testsuite/lib/ld-lib.exp (run_ld_link_tests): Handle bz2 binary
290 2020-09-16 Alan Modra <amodra@gmail.com>
292 * plugin.c (asymbol_from_plugin_symbol): Adjust elf_symbol_from
295 2020-09-15 H.J. Lu <hongjiu.lu@intel.com>
297 * ldelf.c (ldelf_after_open): Check bfd_target_elf_flavour first.
299 2020-09-15 Hans-Peter Nilsson <hp@axis.com>
302 * testsuite/ld-elf/pr26589.d, testsuite/ld-elf/locref3.s: New test.
304 2020-09-13 Alan Modra <amodra@gmail.com>
307 * testsuite/ld-elf/pr26391.nd: Adjust to match powerpc64 function
310 2020-09-12 H.J. Lu <hongjiu.lu@intel.com>
313 * NEWS: Mention "-z unique-symbol".
314 * emultempl/elf.em (gld${EMULATION_NAME}_handle_option): Handle
315 "-z unique-symbol" and "-z nounique-symbol".
316 * ld.texi: Document "-z unique-symbol" and "-z nounique-symbol".
317 * lexsup.c (elf_static_list_options): Add "-z unique-symbol" and
318 "-z nounique-symbol".
319 * testsuite/ld-elf/elf.exp: Add PR ld/26391 tests.
320 * testsuite/ld-elf/pr26391.nd: New file.
321 * testsuite/ld-elf/pr26391.out: Likewise.
322 * testsuite/ld-elf/pr26391a.c: Likewise.
323 * testsuite/ld-elf/pr26391b.c: Likewise.
324 * testsuite/ld-elf/pr26391c.c: Likewise.
325 * testsuite/ld-elf/pr26391d.c: Likewise.
327 2020-09-11 Jeremy Drake <sourceware-bugzilla@jdrake.com>
330 * emultempl/pe.em (_finish): Only generate a import library if not
332 * emultempl/pep.em: Likewise.
334 2020-09-10 Siddhesh Poyarekar <siddesh.poyarekar@arm.com>
336 * testsuite/ld-aarch64/emit-relocs-560.d: Expect error instead
339 2020-09-10 H.J. Lu <hongjiu.lu@intel.com>
342 * testsuite/ld-elf/pr26590.err: New file.
343 * testsuite/ld-elf/pr26590a.c: Likewise.
344 * testsuite/ld-elf/pr26590b.c: Likewise.
345 * testsuite/ld-elf/pr26590c.c: Likewise.
346 * testsuite/ld-elf/pr26590d.c: Likewise.
347 * testsuite/ld-elf/shared.exp: Run ld/26590 tests.
349 2020-09-10 Alan Modra <amodra@gmail.com>
351 * testsuite/ld-elf/pr26580-2.sd: Accept undefined symbol.
353 2020-09-10 Alan Modra <amodra@gmail.com>
355 * testsuite/ld-plugin/lto-18b.c (select): Remove.
356 * testsuite/ld-plugin/lto-18c.c (select): Remove.
357 * testsuite/ld-plugin/lto.exp: Build archives for lto-18 too,
358 and run static versions of the test.
360 2020-09-09 Alan Modra <amodra@gmail.com>
362 * testsuite/ld-plugin/lto-18a.c,
363 * testsuite/ld-plugin/lto-18b.c,
364 * testsuite/ld-plugin/lto-18c.c,
365 * testsuite/ld-plugin/lto-18d.c,
366 * testsuite/ld-plugin/lto-18.out: New test.
367 * testsuite/ld-plugin/lto.exp: Run it.
369 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
371 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new tests.
372 * testsuite/ld-msp430-elf/uleb128.s: New test.
373 * testsuite/ld-msp430-elf/uleb128_430.d: New test.
374 * testsuite/ld-msp430-elf/uleb128_430x.d: New test.
376 2020-09-08 Alan Modra <amodra@gmail.com>
378 * testsuite/ld-elf/pr26580-a.s,
379 * testsuite/ld-elf/pr26580-b.s,
380 * testsuite/ld-elf/pr26580-1.sd,
381 * testsuite/ld-elf/pr26580-2.sd: New tests
382 * testsuite/ld-elf/comm-data.exp: Run new tests.
383 * testsuite/ld-elf/pr26580-a.c,
384 * testsuite/ld-elf/pr26580-b.c,
385 * testsuite/ld-elf/pr26580-3.out,
386 * testsuite/ld-elf/pr26580-4.out: New tests.
387 * testsuite/ld-elf/shared.exp: Run new tests.
389 2020-09-04 Alan Modra <amodra@gmail.com>
391 * testsuite/ld-plugin/lto.exp: Don't run pr15146 tests.
392 * testsuite/ld-plugin/pr15146.d: Delete.
393 * testsuite/ld-plugin/pr15146a.c: Delete.
394 * testsuite/ld-plugin/pr15146b.c: Delete.
395 * testsuite/ld-plugin/pr15146c.c: Delete.
396 * testsuite/ld-plugin/pr15146d.c: Delete.
398 2020-09-03 H.J. Lu <hongjiu.lu@intel.com>
400 * testsuite/config/default.exp: Change NOSANTIZE_CFLAGS to
402 * testsuite/ld-elf/dwarf.exp: Likewise.
403 * testsuite/ld-elf/indirect.exp: Likewise.
404 * testsuite/ld-elf/linux-x86.exp: Likewise.
405 * testsuite/ld-elf/shared.exp: Likewise.
406 * testsuite/ld-elf/tls.exp: Likewise.
407 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
408 * testsuite/ld-elfvers/vers.exp: Likewise.
409 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
410 * testsuite/ld-elfweak/elfweak.exp: Likewise.
411 * testsuite/ld-gc/gc.exp: Likewise.
412 * testsuite/ld-plugin/lto.exp: Likewise.
413 * testsuite/ld-plugin/plugin.exp: Likewise.
414 * testsuite/ld-scripts/crossref.exp: Likewise.
415 * testsuite/ld-selective/selective.exp: Likewise.
416 * testsuite/ld-shared/shared.exp: Likewise.
417 * testsuite/ld-size/size.exp: Likewise.
418 * testsuite/ld-srec/srec.exp: Likewise.
419 * testsuite/ld-x86-64/x86-64.exp: Likewise.
421 2020-09-03 Nelson Chu <nelson.chu@sifive.com>
423 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Remove
424 the useless `warnings` keywords.
425 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
426 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
427 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
428 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
429 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
431 2020-09-03 Nelson Chu <nelson.chu@sifive.com>
433 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Update the
434 message from error to warning.
435 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: New testcases.
436 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02a.s: Likewise.
437 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02b.s: Likewise.
438 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02c.s: Likewise.
439 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02d.s: Likewise.
440 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
442 2020-09-03 Kito Cheng <kito.cheng@sifive.com>
444 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Updated.
445 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01a.s: Likewise.
446 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01b.s: Likewise.
448 2020-09-03 Alan Modra <amodra@gmail.com>
450 * testsuite/ld-scripts/sysroot-prefix.exp (single_sysroot_prefix_test):
453 2020-08-30 H.J. Lu <hongjiu.lu@intel.com>
455 * testsuite/ld-elf/dwarf.exp: Append $NOSANTIZE_CFLAGS to CFLAGS.
456 * testsuite/ld-elf/shared.exp: Likewise.
457 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
458 * testsuite/ld-shared/shared.exp: Likewise.
459 * testsuite/ld-size/size.exp: Likewise.
461 2020-08-28 Jozef Lawrynowicz <jozef.l@mittosystems.com>
463 * emultempl/msp430.em (input_section_exists): New.
464 (check_array_section_alignment): New.
465 (gld${EMULATION_NAME}_finish): New.
466 * scripttempl/elf32msp430.sc: Add ALIGN directives before the
467 definition of __*_array_start symbols.
468 * testsuite/ld-msp430-elf/finiarray-warn.ld: New test.
469 * testsuite/ld-msp430-elf/finiarray-warn.r: New test.
470 * testsuite/ld-msp430-elf/initarray-nowarn.ld: New test.
471 * testsuite/ld-msp430-elf/initarray-warn.ld: New test.
472 * testsuite/ld-msp430-elf/initarray-warn.r: New test.
473 * testsuite/ld-msp430-elf/initarray.s: New test.
474 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new tests.
475 * testsuite/ld-msp430-elf/preinitarray-warn.ld: New test.
476 * testsuite/ld-msp430-elf/preinitarray-warn.r: New test.
478 2020-08-28 Jozef Lawrynowicz <jozef.l@mittosystems.com>
480 * ldmisc.c (vfinfo): Support new "%pU" format specifier.
482 2020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
484 * emulparams/cskyelf.sh: Support attribute section.
485 * testsuite/ld-csky/tls-le-v1.d: Match .csky.attributes section.
486 * ld/testsuite/ld-csky/tls-le.d: Likewise.
487 * testsuite/ld-elf/non-contiguous.ld: Ignore .csky.attributes
490 2020-08-28 Nick Clifton <nickc@redhat.com>
493 * testsuite/lib/ld-lib.exp (ld_link_defsyms): For PE based targets
494 define the __main and ___main symbols in terms of the main symbol.
496 2020-08-28 Alan Modra <amodra@gmail.com>
499 * testsuite/ld-plugin/plugin.exp: Use modified CFLAGS throughout
500 file. Add --image-base for pecoff.
502 2020-08-28 Nelson Chu <nelson.chu@sifive.com>
504 testsuite/ld-riscv-elf/lib-nopic-01a.s: Use R_RISCV_JAL rather
506 testsuite/ld-riscv-elf/lib-nopic-01b.d: Likewise.
507 testsuite/ld-riscv-elf/lib-nopic-01b.s: Likewise.
509 2020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
511 * emultempl/msp430.em: Remove unused variable "buf".
513 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
515 * ldlang.c (dump_ctf_errs): Unquote CTF error messages.
516 (ldlang_open_ctf): Likewise.
517 (lang_merge_ctf): Likewise.
518 (lang_write_ctf): Likewise.
519 * testsuite/ld-ctf/diag-ctf-version-f.d: Adjust.
520 * testsuite/ld-ctf/diag-cttname-invalid.d: Adjust.
521 * testsuite/ld-ctf/diag-decompression-failure.d: Adjust.
522 * testsuite/ld-ctf/diag-parname.d: Adjust.
523 * testsuite/ld-ctf/diag-unsupported-flag.d: Adjust.
524 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Adjust.
525 * testsuite/ld-ctf/diag-wrong-magic-number.d: Adjust.
527 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
529 * ldlang.c (lang_ctf_errs_warnings): Support calls with NULL fp.
530 Adjust for new err parameter to ctf_errwarning_next. Only
531 check for assertion failures when fp is non-NULL.
532 (ldlang_open_ctf): Call it on open errors.
533 * testsuite/ld-ctf/ctf.exp: Always use the C locale to avoid
534 breaking the diags tests.
536 2020-08-27 Jeremy Drake <sourceware-bugzilla@jdrake.com>
539 * emultempl/pe.em (DEFAULT_DLL_CHARACTERISTICS): Define.
540 (pe_dll_characteristics): Initialise to DEFAULT_DLL_CHARACTERISTICS.
541 (add_options): Add options to disable DLL characteristics.
542 (list_options): List the new options.
543 (handle_options): Handle the new options.
544 * emultempl/pep.em: Similar changes to above.
545 (NT_EXE_IMAGE_BASE): Default to an address above 4G.
546 (NT_DLL_IMAGE_BASE, NT_DLL_AUTO_IMAGE_BASE,
547 (NT_DLL_AUTO_IMAGE_MASK): Likewise.
548 * ld.texi: Document the new options.
549 * pe-dll.c (pe_dll_enable_reloc_section): Change to default to
551 (generate_reloc): Do nothing if there is no reloc section.
552 (pe_exe_fill_sections): Only assign the reloc section contents if
554 * testsuite/ld-pe/pe.exp: Add the --disable-reloc-section flag to
556 * testsuite/ld-scripts/provide-8.d: Expect for fail on PE targets.
557 * NEWS: Mention the change in DLL generation.
559 2020-08-26 H.J. Lu <hongjiu.lu@intel.com>
561 * testsuite/ld-elf/indirect.exp: Append $NOSANTIZE_CFLAGS to CC.
562 * testsuite/ld-elf/shared.exp: Likewise.
563 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
564 * testsuite/ld-elfvers/vers.exp: Likewise.
565 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
566 * testsuite/ld-elfweak/elfweak.exp: Likewise.
567 * testsuite/ld-plugin/lto.exp: Likewise.
568 * testsuite/ld-plugin/plugin.exp: Likewise.
569 * testsuite/ld-scripts/crossref.exp: Likewise.
571 2020-08-26 Alan Modra <amodra@gmail.com>
574 * emultempl/spuelf.em (spu_elf_relink): Check for NULL tmp_file_list.
576 2020-08-26 Alan Modra <amodra@gmail.com>
579 * pe-dll.c (auto_export): Don't call bsearch with zero count.
581 2020-08-25 Alan Modra <amodra@gmail.com>
583 * testsuite/ld-libs/libs.exp: Don't run on sh-pe, tic30 or tic54x.
584 * testsuite/ld-scripts/data.d: xfail tic4x and tic54x.
585 * testsuite/ld-scripts/empty-address-2a.d: xfail tic54x.
586 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
587 * testsuite/ld-scripts/include-1.d: xfail tic4x and tic54x.
588 * testsuite/ld-scripts/provide-1.d: xfail tic54x.
589 * testsuite/ld-scripts/provide-2.d: Likewise.
590 * testsuite/ld-scripts/provide-4.d: Likewise.
592 2020-08-24 Alan Modra <amodra@gmail.com>
594 * testsuite/ld-sparc/tlssunbin32.rd: Update for new readelf output.
595 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
597 2020-08-24 Alan Modra <amodra@gmail.com>
599 * testsuite/ld-powerpc/tls32.d: Update for TPREL_HA/LO optimisation.
600 * testsuite/ld-powerpc/tlsexe32.d: Likewise.
601 * testsuite/ld-powerpc/tlsldopt32.d: Likewise.
602 * testsuite/ld-powerpc/tlsmark32.d: Likewise.
603 * testsuite/ld-powerpc/tlsopt4_32.d: Likewise.
604 * testsuite/ld-powerpc/tprel.s,
605 * testsuite/ld-powerpc/tprel.d,
606 * testsuite/ld-powerpc/tprel32.d: New tests.
607 * testsuite/ld-powerpc/tprelbad.s,
608 * testsuite/ld-powerpc/tprelbad.d: New test.
609 * testsuite/ld-powerpc/powerpc.exp: Run them.
611 2020-08-22 H.J. Lu <hongjiu.lu@intel.com>
614 * testsuite/ld-elf/pr26302.nd: Updated.
615 * testsuite/ld-elf/pr26302.rd: New file.
616 * testsuite/ld-elf/shared.exp: Add a test for readelf -sW.
618 2020-08-20 Nick Clifton <nickc@redhat.com>
621 * testsuite/ld-elf/zlibbegin.rS: Update expected output.
622 * testsuite/ld-elf/zlibnormal.rS: Likewise.
624 2020-08-16 Alan Modra <amodra@gmail.com>
626 * testsuite/ld-powerpc/inline.s,
627 * testsuite/ld-powerpc/inline-1.d,
628 * testsuite/ld-powerpc/inline-2.d,
629 * testsuite/ld-powerpc/inline-3.d,
630 * testsuite/ld-powerpc/inline-4.d,
631 * testsuite/ld-powerpc/inlinepcrel.s,
632 * testsuite/ld-powerpc/inlinepcrel-1.d,
633 * testsuite/ld-powerpc/inlinepcrel-2.d,
634 * testsuite/ld-powerpc/inlinepcrel-3.d: New tests.
635 * testsuite/ld-powerpc/powerpc.exp: Run them.
637 2020-08-16 H.J. Lu <hongjiu.lu@intel.com>
640 * testsuite/ld-plugin/lto.exp: Run PR binutils/26389 test.
641 * testsuite/ld-plugin/pr26389.c: New file.
642 * testsuite/ld-plugin/pr26389.d: Likewise.
644 2020-08-14 Tamar Christina <tamar.christina@arm.com>
646 * testsuite/ld-arm/thumb-plt-got.d: Relax regexpr.
647 * testsuite/ld-arm/thumb-plt.d: Likewise.
649 2020-08-13 Alan Modra <amodra@gmail.com>
651 * emultempl/ppc64elf.em (params): Init new field.
652 (enum ppc64_opt): Add OPTION_NO_PCREL_OPT.
653 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS),
654 (PARSE_AND_LIST_ARGS_CASES): Support --no-pcrel-optimize.
656 2020-08-10 Nick Clifton <nickc@redhat.com>
659 * ld.texi: Clarify the behaviour of the --relax and --no-relax
660 options on systems that do not support them.
662 2020-08-10 H.J. Lu <hongjiu.lu@intel.com>
665 * testsuite/ld-elf/pr26302.nd: New file.
666 * testsuite/ld-elf/pr26302.ver: Likewise.
667 * testsuite/ld-elf/pr26302a.c: Likewise.
668 * testsuite/ld-elf/pr26302b.c: Likewise.
669 * testsuite/ld-elf/shared.exp: Run binutils/26302 tests.
671 2020-08-07 David Faust <david.faust@oracle.com>
673 * testsuite/ld-bpf/call-3.s: New file.
674 * testsuite/ld-bpf/call-3.d: Likewise.
676 2020-08-05 David Faust <david.faust@oracle.com>
678 * testsuite/ld-bpf/call-2.s: New file.
679 * testsuite/ld-bpf/call-2.d: Likewise.
680 * testsuite/ld-bpf/reloc-data-be.d: Likewise.
681 * testsuite/ld-bpf/reloc-data-le.d: Likewise.
682 * testsuite/ld-bpf/reloc-data.s: Likewise.
683 * testsuite/ld-bpf/reloc-insn-external-be.d: Likewise.
684 * testsuite/ld-bpf/reloc-insn-external-le.d: Likewise.
685 * testsuite/ld-bpf/reloc-insn-external.s: Likewise.
686 * testsuite/ld-bpf/reloc-insn32-be.d: Likewise.
687 * testsuite/ld-bpf/reloc-insn32-le.d: Likewise.
688 * testsuite/ld-bpf/reloc-insn32.s: Likewise.
689 * testsuite/ld-bpf/reloc-insn64-be.d: Likewise.
690 * testsuite/ld-bpf/reloc-insn64-le.d: Likewise.
691 * testsuite/ld-bpf/reloc-insn64.s: Likewise.
693 2020-08-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
695 * emultempl/msp430.em (change_output_section): Update the tail
696 of the output section statement list when moving the original
697 tail to a different output section.
698 (eval_upper_either_sections): Don't move sections from the upper
699 region to the lower region unless the upper region is
702 2020-08-03 Alan Modra <amodra@gmail.com>
704 * ldlex.l (yy_create_string_buffer): Use xmalloc rather than malloc.
705 * lexsup.c (parse_args): Likewise.
707 2020-08-03 Alan Modra <amodra@gmail.com>
710 * configure.ac: AC_CHECK_DECLS asprintf.
711 * configure: Regenerate.
712 * config.in: Regenerate.
714 2020-08-03 Alan Modra <amodra@gmail.com>
716 * testsuite/ld-elfvers/vers.exp (objdump_symstuff): Remove unused
717 variable. Init list_a and list_b to empty.
718 (objdump_dynsymstuff): Likewise, and remove undefined list_a
720 * testsuite/ld-elfweak/elfweak.exp (objdump_symstuff): Similarly.
721 (objdump_dynsymstuff): Similarly.
723 2020-07-31 H.J. Lu <hongjiu.lu@intel.com>
725 * testsuite/ld-elf/indirect.exp: Append -fno-lto to CC.
726 * testsuite/ld-elfvers/vers.exp: Likewise.
727 * testsuite/ld-elfweak/elfweak.exp: Likewise.
728 * testsuite/ld-ifunc/ifunc.exp: Likewise.
729 * testsuite/ld-plugin/lto.exp (no_lto): New.
730 Add $no_lto to build pr15146c.so.
731 * testsuite/lib/ld-lib.exp (at_least_gcc_version): Filter out
733 (check_gcc_plugin_enabled): Likewise.
734 (run_ld_link_exec_tests): Prepend -fno-lto to $cflags.
735 (run_cc_link_tests): Likewise.
737 2020-07-31 Shahab Vahedi <shahab@synopsys.com>
739 * scripttempl/elfarc.sc (.init_array): Keep ".init_array.*".
740 (.fini_array): Keep ".fini_array.*".
742 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
744 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
745 * Makefile.in: Regenerate.
746 * configure: Regenerate.
748 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
750 * testsuite/ld-elf/sec64k.exp: Also accept a section symbol with
752 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: New
754 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: New
756 * testsuite/ld-mips-elf/global-local-symtab-sort-n32.d: New
758 * testsuite/ld-mips-elf/global-local-symtab-sort-n32t.d: New
760 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: New
762 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: New
764 * testsuite/ld-mips-elf/global-local-symtab-final-o32.d: New
766 * testsuite/ld-mips-elf/global-local-symtab-final-n32.d: New
768 * testsuite/ld-mips-elf/global-local-symtab-final-n64.d: New
770 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
772 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
774 * testsuite/ld-mips-elf/global-local-symtab-o32.d: New test.
775 * testsuite/ld-mips-elf/global-local-symtab-o32t.d: New test.
776 * testsuite/ld-mips-elf/global-local-symtab-n32.d: New test.
777 * testsuite/ld-mips-elf/global-local-symtab-n32t.d: New test.
778 * testsuite/ld-mips-elf/global-local-symtab-n64.d: New test.
779 * testsuite/ld-mips-elf/global-local-symtab.ld: New test linker
781 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
783 2020-07-29 Alan Modra <amodra@gmail.com>
785 * ldelf.c (ldelf_before_place_orphans): Set SEC_EXCLUDE for
788 2020-07-28 Alan Modra <amodra@gmail.com>
790 * ldlang.c (lang_check): Don't complain about relocs or merge
791 attributes from --just-symbols input.
792 * testsuite/ld-misc/just-symbols.exp: Just dump .data section.
793 Don't run test on a number of targets.
795 2020-07-28 Alan Modra <amodra@gmail.com>
797 * testsuite/ld-misc/just-symbols-1.dd: Revert last change.
799 2020-07-27 Alan Modra <amodra@gmail.com>
801 * testsuite/ld-misc/just-symbols.exp: Run for x86_64 PE too.
802 Set LDFLAGS for PE and XCOFF.
803 * testsuite/ld-misc/just-symbols.ld: Accept XCOFF mapped .data.
804 * testsuite/ld-misc/just-symbols-1.dd: Don't check format or
805 "Contents of section" lines.
807 2020-07-27 Alan Modra <amodra@gmail.com>
809 * testsuite/lib/ld-lib.exp (check_ctf_available): Check first that
810 target compiler is available.
812 2020-07-23 Maciej W. Rozycki <macro@wdc.com>
815 * ldelf.c (ldelf_after_open): Do not reject ET_EXEC input
816 supplied with `--just-symbols'.
817 * testsuite/ld-misc/just-symbols.exp: New test script.
818 * testsuite/ld-misc/just-symbols-1.dd: New test dump.
819 * testsuite/ld-misc/just-symbols.ld: New test linker script.
820 * testsuite/ld-misc/just-symbols-0.s: New test source.
821 * testsuite/ld-misc/just-symbols-1.s: New test source.
823 2020-07-23 Maciej W. Rozycki <macro@wdc.com>
829 * ldelf.c (ldelf_after_open): Fail if attempting to link one
830 executable into another.
832 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
834 * testsuite/ld-ctf/ctf.exp: Skip on non-ELF for now.
836 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
838 * ldlang.c (ldlang_open_ctf): Set SEC_EXCLUDE on all but the
839 first input .ctf section.
841 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
843 * configure.ac (enable_libctf): Substitute it.
844 * Makefile.am (enablings.exp): New.
845 (EXTRA_DEJAGNU_SITE_CONFIG): Add it.
846 (DISTCLEANFILES): Likewise.
847 * Makefile.in: Regenerate.
848 * configure: Likewise.
849 * testsuite/lib/ld-lib.exp (compile_one_cc): New.
850 (check_ctf_available): Likewise.
851 (skip_ctf_tests): Likewise.
852 * testsuite/ld-ctf/ctf.exp: Call skip_ctf_tests.
854 2020-07-22 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
856 * testsuite/ld-ctf/ctf.exp: New file.
857 * testsuite/ld-ctf/A-2.c: New file.
858 * testsuite/ld-ctf/A.c: New file.
859 * testsuite/ld-ctf/B-2.c: New file.
860 * testsuite/ld-ctf/B.c: New file.
861 * testsuite/ld-ctf/C-2.c: New file.
862 * testsuite/ld-ctf/C.c: New file.
863 * testsuite/ld-ctf/array-char.c: New file.
864 * testsuite/ld-ctf/array-int.c: New file.
865 * testsuite/ld-ctf/array.d: New file.
866 * testsuite/ld-ctf/child-float.c: New file.
867 * testsuite/ld-ctf/child-int.c: New file.
868 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: New file.
869 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: New file.
870 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: New file.
871 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: New file.
872 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: New file.
873 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: New file.
874 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: New file.
875 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: New file.
876 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: New file.
877 * testsuite/ld-ctf/conflicting-enums.d: New file.
878 * testsuite/ld-ctf/conflicting-typedefs.d: New file.
879 * testsuite/ld-ctf/cross-tu-1.c: New file.
880 * testsuite/ld-ctf/cross-tu-2.c: New file.
881 * testsuite/ld-ctf/cross-tu-conflicting-2.c: New file.
882 * testsuite/ld-ctf/cross-tu-cyclic-1.c: New file.
883 * testsuite/ld-ctf/cross-tu-cyclic-2.c: New file.
884 * testsuite/ld-ctf/cross-tu-cyclic-3.c: New file.
885 * testsuite/ld-ctf/cross-tu-cyclic-4.c: New file.
886 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: New file.
887 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: New file.
888 * testsuite/ld-ctf/cross-tu-into-cycle.d: New file.
889 * testsuite/ld-ctf/cross-tu-noncyclic.d: New file.
890 * testsuite/ld-ctf/cycle-1.c: New file.
891 * testsuite/ld-ctf/cycle-1.d: New file.
892 * testsuite/ld-ctf/cycle-2.A.d: New file.
893 * testsuite/ld-ctf/cycle-2.B.d: New file.
894 * testsuite/ld-ctf/cycle-2.C.d: New file.
895 * testsuite/ld-ctf/diag-ctf-version-0.d: New file.
896 * testsuite/ld-ctf/diag-ctf-version-0.s: New file.
897 * testsuite/ld-ctf/diag-ctf-version-2-unsupported-feature.d: New file.
898 * testsuite/ld-ctf/diag-ctf-version-2-unsupported-feature.s: New file.
899 * testsuite/ld-ctf/diag-ctf-version-f.d: New file.
900 * testsuite/ld-ctf/diag-ctf-version-f.s: New file.
901 * testsuite/ld-ctf/diag-cttname-invalid.d: New file.
902 * testsuite/ld-ctf/diag-cttname-invalid.s: New file.
903 * testsuite/ld-ctf/diag-cttname-null.d: New file.
904 * testsuite/ld-ctf/diag-cttname-null.s: New file.
905 * testsuite/ld-ctf/diag-cuname.d: New file.
906 * testsuite/ld-ctf/diag-cuname.s: New file.
907 * testsuite/ld-ctf/diag-decompression-failure.d: New file.
908 * testsuite/ld-ctf/diag-decompression-failure.s: New file.
909 * testsuite/ld-ctf/diag-parlabel.d: New file.
910 * testsuite/ld-ctf/diag-parlabel.s: New file.
911 * testsuite/ld-ctf/diag-parname.d: New file.
912 * testsuite/ld-ctf/diag-parname.s: New file.
913 * testsuite/ld-ctf/diag-unsupported-flag.d: New file.
914 * testsuite/ld-ctf/diag-unsupported-flag.s: New file.
915 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: New file.
916 * testsuite/ld-ctf/diag-wrong-magic-number.d: New file.
917 * testsuite/ld-ctf/diag-wrong-magic-number.s: New file.
918 * testsuite/ld-ctf/enum-2.c: New file.
919 * testsuite/ld-ctf/enum.c: New file.
920 * testsuite/ld-ctf/function.c: New file.
921 * testsuite/ld-ctf/function.d: New file.
922 * testsuite/ld-ctf/slice.c: New file.
923 * testsuite/ld-ctf/slice.d: New file.
924 * testsuite/ld-ctf/super-sub-cycles.c: New file.
925 * testsuite/ld-ctf/super-sub-cycles.d: New file.
926 * testsuite/ld-ctf/typedef-int.c: New file.
927 * testsuite/ld-ctf/typedef-long.c: New file.
928 * testsuite/ld-ctf/union-1.c: New file.
930 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
932 * ldlex.h (option_values) <OPTION_CTF_VARIABLES,
933 OPTION_NO_CTF_VARIABLES, OPTION_CTF_SHARE_TYPES>: New.
934 * ld.h (ld_config_type) <ctf_variables, ctf_share_duplicated>:
936 * ldlang.c (lang_merge_ctf): Use them.
937 * lexsup.c (ld_options): Add ctf-variables, no-ctf-variables,
939 (parse_args) <OPTION_CTF_VARIABLES, OPTION_NO_CTF_VARIABLES,
940 OPTION_CTF_SHARE_TYPES>: New cases.
941 * ld.texi: Document new options.
944 2020-07-22 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
946 * ldlang.c (lang_merge_ctf): Turn errors into warnings.
948 (lang_write_ctf): Turn an error into a warning.
949 (ldlang_open_ctf): Reformat warnings. Fix printing file names.
951 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
953 * ldlang.c (lang_ctf_errs_warnings): New, print CTF errors
954 and warnings. Assert when libctf asserts.
955 (lang_merge_ctf): Call it.
956 (land_write_ctf): Likewise.
958 2020-07-22 H.J. Lu <hongjiu.lu@intel.com>
962 * ldlang.c (lang_process): Set lto_all_symbols_read after all
963 LTO IR symbols have been read.
964 * plugin.c (plugin_notice): Override the IR definition only if
965 all LTO IR symbols have been read or the new definition is
966 non-weak and the the IR definition is weak
967 * testsuite/ld-plugin/lto.exp: Run PR ld/26262 and ld/26267
969 * testsuite/ld-plugin/pr26262a.c: New file.
970 * testsuite/ld-plugin/pr26262b.c: Likewise.
971 * testsuite/ld-plugin/pr26262c.c: Likewise.
972 * testsuite/ld-plugin/pr26267.err: Likewise.
973 * testsuite/ld-plugin/pr26267a.c: Likewise.
974 * testsuite/ld-plugin/pr26267b.c: Likewise.
975 * testsuite/ld-plugin/pr26267c.c: Likewise.
977 2020-07-20 Nick Clifton <nickc@redhat.com>
979 * testsuite/ld-powerpc/powerpc.exp (ppcelftests): Use section name
980 .PPC.EMB.apuinfo instead of section number 2 in apuinfo tests.
982 2020-07-20 Alan Modra <amodra@gmail.com>
985 * ldlang.c (undef_from_cmdline): Delete.
986 (ldlang_add_undef): Mark "cmdline" param unused.
987 (lang_end): Traverse gc_sym_list to determine whether a symbol root
988 has been specified. Update error message.
989 * testsuite/ld-gc/noent.d: Adjust for changed error message.
991 2020-07-20 H.J. Lu <hongjiu.lu@intel.com>
994 * testsuite/ld-i386/pr26263.d: Updated.
995 * testsuite/ld-x86-64/pr26263.d: Likewise.
996 * testsuite/ld-x86-64/x86-64.exp: Run gas/26263 test for all ELF
999 2020-07-19 H.J. Lu <hongjiu.lu@intel.com>
1002 * testsuite/ld-i386/i386.exp: Run PR gas/26263 test.
1003 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1004 * testsuite/ld-i386/pr26263.d: New file.
1005 * testsuite/ld-x86-64/pr26263.d: Likewise.
1006 * testsuite/ld-x86-64/pr26263.s: Likewise.
1008 2020-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1010 * scripttempl/elf.sc (ETEXT_LAST_IN_RODATA_SEGMENT): New variable.
1011 * emulparams/elf64mmix.sh (ETEXT_LAST_IN_RODATA_SEGMENT): Define.
1012 * testsuite/ld-mmix/sec-1.d: Adjust.
1014 2020-07-19 Alan Modra <amodra@gmail.com>
1016 * emultempl/ppc64elf.em (power10-stubs): Accept optional "auto" arg.
1017 * ld.texi (power10-stubs): Update.
1018 * testsuite/ld-powerpc/callstub-1.d: Force --power10-stubs.
1019 * testsuite/ld-powerpc/callstub-2.d: Relax branch offset comparison.
1020 * testsuite/ld-powerpc/callstub-4.d: New test.
1021 * testsuite/ld-powerpc/notoc.d: Force --no-power10-stubs.
1022 * testsuite/ld-powerpc/notoc3.d,
1023 * testsuite/ld-powerpc/notoc3.s,
1024 * testsuite/ld-powerpc/notoc3.wf: New test.
1025 * testsuite/ld-powerpc/powerpc.exp: Run new tests. Pass
1026 --no-power10-stubs for notoc link.
1028 2020-07-17 Hans-Peter Nilsson <hp@bitrange.com>
1030 * scripttempt/mmo.sc: Move .init first in .text output section.
1031 * testsuite/ld-mmix/bpo-9m.d: Adjust accordingly.
1033 2020-07-15 Jan Beulich <jbeulich@suse.com>
1035 * testsuite/ld-i386/ibt-plt-1.d, testsuite/ld-i386/ibt-plt-2a.d,
1036 testsuite/ld-i386/ibt-plt-2c.d, testsuite/ld-i386/ibt-plt-3a.d,
1037 testsuite/ld-i386/ibt-plt-3c.d, testsuite/ld-i386/plt-pic.pd,
1038 testsuite/ld-i386/plt-pic2.dd, testsuite/ld-i386/plt.pd,
1039 testsuite/ld-i386/plt2.dd, testsuite/ld-i386/pr19636-1d.d,
1040 testsuite/ld-i386/pr19636-1l.d, testsuite/ld-i386/pr19636-2c.d,
1041 testsuite/ld-i386/pr20830.d, testsuite/ld-i386/vxworks1-lib.dd,
1042 testsuite/ld-i386/vxworks1.dd,
1043 testsuite/ld-ifunc/ifunc-2-i386-now.d,
1044 testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
1045 testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d,
1046 testsuite/ld-ifunc/ifunc-2-x86-64-now.d,
1047 testsuite/ld-ifunc/ifunc-21-x86-64.d,
1048 testsuite/ld-ifunc/ifunc-22-x86-64.d,
1049 testsuite/ld-ifunc/pr17154-i386-now.d,
1050 testsuite/ld-ifunc/pr17154-i386.d,
1051 testsuite/ld-ifunc/pr17154-x86-64-now.d,
1052 testsuite/ld-ifunc/pr17154-x86-64.d,
1053 testsuite/ld-x86-64/align-branch-1.d,
1054 testsuite/ld-x86-64/bnd-branch-1-now.d,
1055 testsuite/ld-x86-64/bnd-branch-1.d,
1056 testsuite/ld-x86-64/bnd-ifunc-1-now.d,
1057 testsuite/ld-x86-64/bnd-ifunc-1.d,
1058 testsuite/ld-x86-64/bnd-ifunc-2-now.d,
1059 testsuite/ld-x86-64/bnd-ifunc-2.d,
1060 testsuite/ld-x86-64/bnd-plt-1-now.d,
1061 testsuite/ld-x86-64/bnd-plt-1.d,
1062 testsuite/ld-x86-64/call1a.d, testsuite/ld-x86-64/call1b.d,
1063 testsuite/ld-x86-64/call1d.d, testsuite/ld-x86-64/call1e.d,
1064 testsuite/ld-x86-64/call1f.d, testsuite/ld-x86-64/call1g.d,
1065 testsuite/ld-x86-64/call1h.d, testsuite/ld-x86-64/call1i.d,
1066 testsuite/ld-x86-64/gotpcrel1.dd,
1067 testsuite/ld-x86-64/hidden2.d,
1068 testsuite/ld-x86-64/ibt-plt-1-x32.d,
1069 testsuite/ld-x86-64/ibt-plt-1.d,
1070 testsuite/ld-x86-64/ibt-plt-2a-x32.d,
1071 testsuite/ld-x86-64/ibt-plt-2a.d,
1072 testsuite/ld-x86-64/ibt-plt-2c-x32.d,
1073 testsuite/ld-x86-64/ibt-plt-2c.d,
1074 testsuite/ld-x86-64/ibt-plt-3a-x32.d,
1075 testsuite/ld-x86-64/ibt-plt-3a.d,
1076 testsuite/ld-x86-64/ibt-plt-3c-x32.d,
1077 testsuite/ld-x86-64/ibt-plt-3c.d,
1078 testsuite/ld-x86-64/libno-plt-1b.dd,
1079 testsuite/ld-x86-64/mpx3.dd, testsuite/ld-x86-64/mpx3n.dd,
1080 testsuite/ld-x86-64/mpx4.dd, testsuite/ld-x86-64/mpx4n.dd,
1081 testsuite/ld-x86-64/no-plt-1a.dd,
1082 testsuite/ld-x86-64/no-plt-1b.dd,
1083 testsuite/ld-x86-64/no-plt-1c.dd,
1084 testsuite/ld-x86-64/no-plt-1d.dd,
1085 testsuite/ld-x86-64/no-plt-1e.dd,
1086 testsuite/ld-x86-64/no-plt-1f.dd,
1087 testsuite/ld-x86-64/no-plt-1g.dd,
1088 testsuite/ld-x86-64/plt-main-bnd.dd,
1089 testsuite/ld-x86-64/plt-main-ibt-x32.dd,
1090 testsuite/ld-x86-64/plt-main-ibt.dd,
1091 testsuite/ld-x86-64/plt.pd, testsuite/ld-x86-64/plt2.dd,
1092 testsuite/ld-x86-64/pr19609-5a.d,
1093 testsuite/ld-x86-64/pr19609-5b.d,
1094 testsuite/ld-x86-64/pr19609-5c.d,
1095 testsuite/ld-x86-64/pr19609-5e.d,
1096 testsuite/ld-x86-64/pr19609-7b.d,
1097 testsuite/ld-x86-64/pr19609-7d.d,
1098 testsuite/ld-x86-64/pr19636-2d.d,
1099 testsuite/ld-x86-64/pr19636-2l.d,
1100 testsuite/ld-x86-64/pr20253-1b.d,
1101 testsuite/ld-x86-64/pr20253-1d.d,
1102 testsuite/ld-x86-64/pr20253-1f.d,
1103 testsuite/ld-x86-64/pr20253-1h.d,
1104 testsuite/ld-x86-64/pr20253-1j.d,
1105 testsuite/ld-x86-64/pr20253-1l.d,
1106 testsuite/ld-x86-64/pr20830a-now.d,
1107 testsuite/ld-x86-64/pr20830a.d,
1108 testsuite/ld-x86-64/pr20830b-now.d,
1109 testsuite/ld-x86-64/pr20830b.d,
1110 testsuite/ld-x86-64/pr21038a-now.d,
1111 testsuite/ld-x86-64/pr21038a.d,
1112 testsuite/ld-x86-64/pr21038b-now.d,
1113 testsuite/ld-x86-64/pr21038b.d,
1114 testsuite/ld-x86-64/pr21038c-now.d,
1115 testsuite/ld-x86-64/pr21038c.d,
1116 testsuite/ld-x86-64/pr23930-x32.d,
1117 testsuite/ld-x86-64/pr23930.d,
1118 testsuite/ld-x86-64/pr25416-1a.d,
1119 testsuite/ld-x86-64/pr25416-2a.d,
1120 testsuite/ld-x86-64/pr26018.d,
1121 testsuite/ld-x86-64/protected2-k1om.d,
1122 testsuite/ld-x86-64/protected2-l1om.d,
1123 testsuite/ld-x86-64/protected2.d,
1124 testsuite/ld-x86-64/protected3.d,
1125 testsuite/ld-x86-64/protected8.d,
1126 testsuite/ld-x86-64/tlsbin.dd, testsuite/ld-x86-64/tlsbin2.dd,
1127 testsuite/ld-x86-64/tlsbindesc.dd,
1128 testsuite/ld-x86-64/tlsdesc.dd,
1129 testsuite/ld-x86-64/tlsdesc.pd,
1130 testsuite/ld-x86-64/tlsgd10.dd,
1131 testsuite/ld-x86-64/tlsgd7.dd, testsuite/ld-x86-64/tlsgd8.dd,
1132 testsuite/ld-x86-64/tlsgd9.dd,
1133 testsuite/ld-x86-64/tlsgdesc.dd,
1134 testsuite/ld-x86-64/tlsld3.dd, testsuite/ld-x86-64/tlsld4.dd,
1135 testsuite/ld-x86-64/tlspic.dd, testsuite/ld-x86-64/tlspic2.dd,
1136 testsuite/ld-x86-64/tlspie2b.d, testsuite/ld-x86-64/tlspie2c.d:
1137 Adjust expectations.
1139 2020-07-15 Hans-Peter Nilsson <hp@bitrange.com>
1141 * testsuite/ld-mmix/undef-1.d, testsuite/ld-mmix/undef-1m.d,
1142 testsuite/ld-mmix/undef-2.d, testsuite/ld-mmix/undef-2m.d: Add
1143 start- and end-anchors to error-string to match just a
1144 single-line error-message.
1146 2020-07-13 Alan Modra <amodra@gmail.com>
1148 * testsuite/ld-scripts/default-script1.d: Don't skip, xfail
1149 using is_pecoff_format.
1150 * testsuite/ld-scripts/default-script2.d: Likewise.
1151 * testsuite/ld-scripts/default-script3.d: Likewise.
1152 * testsuite/ld-scripts/default-script4.d: Likewise.
1153 * testsuite/ld-scripts/pr20302.d: Remove x86_64-*-cygwin from notarget.
1154 * testsuite/ld-scripts/provide-6.d: Remove x86_64-*-cygwin from xfail.
1155 * testsuite/ld-scripts/provide-8.d: Likewise.
1157 2020-07-10 Alan Modra <amodra@gmail.com>
1159 * ld.texi (PowerPC64 ELF64): Document --no-inline-optimize,
1160 --power10-stubs and --no-power10-stubs.
1162 2020-07-10 Alan Modra <amodra@gmail.com>
1164 * emultempl/ppc64elf.em (params): Init new field.
1165 (enum ppc64_opt): Add OPTION_POWER10_STUBS and OPTION_NO_POWER10_STUBS.
1166 (PARSE_AND_LIST_LONGOPTS): Support --power10-stubs and
1168 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1169 * testsuite/ld-powerpc/callstub-3.d: New test.
1170 * testsuite/ld-powerpc/powerpc.exp: Run it.
1172 2020-07-09 Alan Modra <amodra@gmail.com>
1174 * emulparams/ppcpe.sh: Delete.
1175 * scripttempl/ppcpe.sc: Delete.
1176 * emulparams/ppclynx.sh: Delete.
1177 * Makefile.am (ALL_EMULATION_SOURCES): Remove ppc PE and lynxos.
1178 * configure.tgt: Likewise.
1179 * emultempl/beos.em: Remove powerpc PE support.
1180 * emultempl/pe.em: Likewise.
1181 * po/BLD-POTFILES.in: Regenerate.
1182 * Makefile.in: Regenerate.
1184 2020-07-09 Alan Modra <amodra@gmail.com>
1186 * testsuite/ld-gc/gc.exp: Don't set -mminimal-toc for powerpc64,
1187 and remove powerpc64 xfail. Use -fno-PIE for ppc32.
1189 2020-07-09 Alan Modra <amodra@gmail.com>
1192 * testsuite/ld-ifunc/ifunc.exp: Run pr18841 tests non-pie.
1194 2020-07-08 Alan Modra <amodra@gmail.com>
1196 * testsuite/lib/ld-lib.exp (ar_simple_create): Pass options before
1198 * testsuite/ld-powerpc/aix52.exp: Run for rs6000-aix5.2. Update
1200 * testsuite/ld-powerpc/aix-abs-branch-1.dd: Update.
1201 * testsuite/ld-powerpc/aix-core-sec-1.hd: Update.
1202 * testsuite/ld-powerpc/aix-gc-1-32.dd: Update.
1203 * testsuite/ld-powerpc/aix-gc-1-64.dd: Update.
1204 * testsuite/ld-powerpc/aix-glink-1-32.dd: Update.
1205 * testsuite/ld-powerpc/aix-glink-1-64.dd: Update.
1206 * testsuite/ld-powerpc/aix-glink-2-32.dd: Update.
1207 * testsuite/ld-powerpc/aix-glink-2-64.dd: Update.
1208 * testsuite/ld-powerpc/aix-no-dup-syms-1-rel.rd: Update.
1209 * testsuite/ld-powerpc/aix-ref-1-32.od: Update.
1210 * testsuite/ld-powerpc/aix-ref-1-64.od: Update.
1211 * testsuite/ld-powerpc/aix-toc-1-32.dd: Update.
1212 * testsuite/ld-powerpc/aix-toc-1-64.dd: Update.
1213 * testsuite/ld-powerpc/aix-weak-3-32.dd: Update.
1214 * testsuite/ld-powerpc/aix-weak-3-64.dd: Update.
1215 * testsuite/ld-powerpc/aix-abs-branch-1.nd: Delete, replace with..
1216 * testsuite/ld-powerpc/aix-abs-branch-1-32.nd,
1217 * testsuite/ld-powerpc/aix-abs-branch-1-64.nd: ..these new files.
1218 * testsuite/ld-powerpc/aix-abs-reloc-1.nd: Delete, replace with..
1219 * testsuite/ld-powerpc/aix-abs-reloc-1-32.nd,
1220 * testsuite/ld-powerpc/aix-abs-reloc-1-64.nd: ..these new files.
1221 * testsuite/ld-powerpc/aix-abs-reloc-1.od: Delete, replace with..
1222 * testsuite/ld-powerpc/aix-abs-reloc-1-32.od,
1223 * testsuite/ld-powerpc/aix-abs-reloc-1-64.od: ..these new files.
1224 * testsuite/ld-powerpc/aix-export-1-all.dd: Delete, replace with..
1225 * testsuite/ld-powerpc/aix-export-1-all-32.dd,
1226 * testsuite/ld-powerpc/aix-export-1-all-64.dd: ..these new files.
1227 * testsuite/ld-powerpc/aix-export-1-full.dd: Delete, replace with..
1228 * testsuite/ld-powerpc/aix-export-1-full-32.dd,
1229 * testsuite/ld-powerpc/aix-export-1-full-64.dd: ..these new files.
1230 * testsuite/ld-powerpc/aix-export-2.nd: Delete, replace with..
1231 * testsuite/ld-powerpc/aix-export-2-32.nd,
1232 * testsuite/ld-powerpc/aix-export-2-64.nd: ..these new files.
1233 * testsuite/ld-powerpc/aix-gc-1.nd: Delete, replace with..
1234 * testsuite/ld-powerpc/aix-gc-1-32.nd,
1235 * testsuite/ld-powerpc/aix-gc-1-64.nd: ..these new files.
1236 * testsuite/ld-powerpc/aix-glink-3.dd: Delete, replace with..
1237 * testsuite/ld-powerpc/aix-glink-3-32.dd,
1238 * testsuite/ld-powerpc/aix-glink-3-64.dd: ..these new files.
1239 * testsuite/ld-powerpc/aix-lineno-1a.dd: Delete, replace with..
1240 * testsuite/ld-powerpc/aix-lineno-1a-32.dd,
1241 * testsuite/ld-powerpc/aix-lineno-1a-64.dd: ..these new files.
1242 * testsuite/ld-powerpc/aix-lineno-1a.nd: Delete, replace with..
1243 * testsuite/ld-powerpc/aix-lineno-1a-32.nd,
1244 * testsuite/ld-powerpc/aix-lineno-1a-64.nd: ..these new files.
1245 * testsuite/ld-powerpc/aix-lineno-1b.dd: Delete, replace with..
1246 * testsuite/ld-powerpc/aix-lineno-1b-32.dd,
1247 * testsuite/ld-powerpc/aix-lineno-1b-64.dd: ..these new files.
1248 * testsuite/ld-powerpc/aix-lineno-1b.nd: Delete, replace with..
1249 * testsuite/ld-powerpc/aix-lineno-1b-32.nd,
1250 * testsuite/ld-powerpc/aix-lineno-1b-64.nd: ..these new files.
1251 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso.dnd: Delete, replace with..
1252 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.dnd,
1253 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.dnd: ..these new files.
1254 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso.drd: Delete, replace with..
1255 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.drd,
1256 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.drd: ..these new files.
1257 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso.nd: Delete, replace with..
1258 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.nd,
1259 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.nd: ..these new files.
1260 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso.rd: Delete, replace with..
1261 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.rd,
1262 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.rd: ..these new files.
1263 * testsuite/ld-powerpc/aix-weak-1-dso.dnd: Delete, replace with..
1264 * testsuite/ld-powerpc/aix-weak-1-dso-32.dnd,
1265 * testsuite/ld-powerpc/aix-weak-1-dso-64.dnd: ..these new files.
1266 * testsuite/ld-powerpc/aix-weak-1-dso.hd: Delete, replace with..
1267 * testsuite/ld-powerpc/aix-weak-1-dso-32.hd,
1268 * testsuite/ld-powerpc/aix-weak-1-dso-64.hd: ..these new files.
1269 * testsuite/ld-powerpc/aix-weak-1-dso.nd: Delete, replace with..
1270 * testsuite/ld-powerpc/aix-weak-1-dso-32.nd,
1271 * testsuite/ld-powerpc/aix-weak-1-dso-64.nd: ..these new files.
1272 * testsuite/ld-powerpc/aix-weak-1-gcdso.dnd: Delete, replace with..
1273 * testsuite/ld-powerpc/aix-weak-1-gcdso-32.dnd,
1274 * testsuite/ld-powerpc/aix-weak-1-gcdso-64.dnd: ..these new files.
1275 * testsuite/ld-powerpc/aix-weak-1-gcdso.hd: Delete, replace with..
1276 * testsuite/ld-powerpc/aix-weak-1-gcdso-32.hd,
1277 * testsuite/ld-powerpc/aix-weak-1-gcdso-64.hd: ..these new files.
1278 * testsuite/ld-powerpc/aix-weak-1-gcdso.nd: Delete, replace with..
1279 * testsuite/ld-powerpc/aix-weak-1-gcdso-32.nd,
1280 * testsuite/ld-powerpc/aix-weak-1-gcdso-64.nd: ..these new files.
1281 * testsuite/ld-powerpc/aix-weak-2a.nd: Delete, replace with..
1282 * testsuite/ld-powerpc/aix-weak-2a-32.nd,
1283 * testsuite/ld-powerpc/aix-weak-2a-64.nd: ..these new files.
1284 * testsuite/ld-powerpc/aix-weak-2b.nd: Delete, replace with..
1285 * testsuite/ld-powerpc/aix-weak-2b-32.nd,
1286 * testsuite/ld-powerpc/aix-weak-2b-64.nd: ..these new files.
1287 * testsuite/ld-powerpc/aix-weak-2c.nd: Delete, replace with..
1288 * testsuite/ld-powerpc/aix-weak-2c-32.nd,
1289 * testsuite/ld-powerpc/aix-weak-2c-64.nd: ..these new files.
1290 * testsuite/ld-powerpc/aix-weak-2c.od: Delete, replace with..
1291 * testsuite/ld-powerpc/aix-weak-2c-32.od,
1292 * testsuite/ld-powerpc/aix-weak-2c-64.od: ..these new files.
1294 2020-07-07 Alan Modra <amodra@gmail.com>
1296 * testsuite/ld-scripts/section-match-1.d: xfail h8300.
1298 2020-07-07 Alan Modra <amodra@gmail.com>
1300 * testsuite/ld-scripts/align.exp: Don't exclude xcoff. Pass
1301 -bnogc ld option for xcoff.
1302 * testsuite/ld-scripts/provide.exp: Likewise.
1303 * testsuite/ld-scripts/data.exp: Pass -bnogc ld option for xcoff.
1304 * testsuite/ld-scripts/default-script.exp: Likewise.
1305 * testsuite/ld-scripts/defined.exp: Likewise.
1306 * testsuite/ld-scripts/empty-address.exp: Likewise.
1307 * testsuite/ld-scripts/expr.exp: Likewise.
1308 * testsuite/ld-scripts/include.exp: Likewise.
1309 * testsuite/ld-scripts/script.exp: Likewise.
1310 * testsuite/ld-scripts/assign-loc.d: Don't exclude xcoff.
1311 * testsuite/ld-scripts/defined3.d: Likewise.
1312 * testsuite/ld-scripts/defined4.d: Likewise.
1313 * testsuite/ld-scripts/pr18963.d: Likewise.
1314 * testsuite/ld-scripts/sane1.d: Likewise.
1315 * testsuite/ld-scripts/segment-start.d: Likewise.
1316 * testsuite/ld-scripts/include-1.d: Likewise, and relax text vma.
1317 * testsuite/ld-scripts/defined5.d: Update xfail and comment.
1318 * testsuite/ld-scripts/defined5.s: Tweak "defined" to be at
1319 non-zero section offset.
1320 * testsuite/ld-scripts/fill16.d: xfail for xcoff.
1321 * testsuite/ld-scripts/provide-2.d: Accept more symbols.
1322 * testsuite/ld-scripts/provide-4.d: Likewise.
1323 * testsuite/ld-scripts/provide-5.d: Likewise.
1324 * testsuite/ld-scripts/provide-6.d: Likewise.
1325 * testsuite/ld-scripts/provide-7.d: Likewise.
1326 * testsuite/ld-scripts/align.t: Accept xcoff mapped .text and .data.
1327 * testsuite/ld-scripts/defined3.t: Likewise.
1328 * testsuite/ld-scripts/defined4.t: Likewise.
1329 * testsuite/ld-scripts/defined5.t: Likewise.
1330 * testsuite/ld-scripts/fill.t: Likewise.
1331 * testsuite/ld-scripts/include-subdata.t: Likewise.
1332 * testsuite/ld-scripts/provide-1.t: Likewise.
1333 * testsuite/ld-scripts/provide-2.t: Likewise.
1334 * testsuite/ld-scripts/provide-3.t: Likewise.
1335 * testsuite/ld-scripts/provide-4.t: Likewise.
1336 * testsuite/ld-scripts/provide-5.t: Likewise.
1337 * testsuite/ld-scripts/provide-6.t: Likewise.
1338 * testsuite/ld-scripts/provide-7.t: Likewise.
1339 * testsuite/ld-scripts/provide-8.t: Likewise.
1340 * testsuite/ld-scripts/assign-loc.t: Add required xcoff sections.
1341 * testsuite/ld-scripts/sizeof.t: Likewise.
1342 * testsuite/ld-scripts/align2.t: Likewise, and mapped sections.
1343 * testsuite/ld-scripts/align5.t: Likewise.
1344 * testsuite/ld-scripts/default-script.t: Likewise.
1345 * testsuite/ld-scripts/empty-address-1.t: Likewise.
1346 * testsuite/ld-scripts/empty-address-2a.t: Likewise.
1347 * testsuite/ld-scripts/empty-address-2b.t: Likewise.
1348 * testsuite/ld-scripts/empty-address-3a.t: Likewise.
1349 * testsuite/ld-scripts/empty-address-3b.t: Likewise.
1350 * testsuite/ld-scripts/empty-address-3c.t: Likewise.
1351 * testsuite/ld-scripts/include-sections.t: Likewise.
1352 * testsuite/ld-scripts/pr14962.t: Likewise.
1353 * testsuite/ld-scripts/sane1.t: Likewise.
1355 2020-07-07 Alan Modra <amodra@gmail.com>
1357 * testsuite/ld-scripts/align.exp: Use is_pecoff_format.
1358 * testsuite/ld-scripts/defined.exp: Likewise.
1359 * testsuite/ld-scripts/provide.exp: Likewise.
1360 * testsuite/ld-scripts/weak.exp: Likewise.
1361 * testsuite/ld-scripts/empty-address.exp: Likewise. Reset LDFLAGS
1363 * testsuite/ld-scripts/expr.exp: Set LDFLAGS earlier, and with
1364 --image-base for PE.
1365 * testsuite/ld-scripts/include.exp: Set LDFLAGS for PE.
1366 * testsuite/ld-scripts/script.exp: Use is_pecoff_format, and
1367 set LDFLAGS as well as flags.
1369 2020-07-07 Alan Modra <amodra@gmail.com>
1371 * testsuite/ld-checks/checks.exp: Use is_xcoff_format.
1372 * testsuite/ld-powerpc/powerpc.exp: Likewise.
1373 * testsuite/ld-scripts/print-memory-usage.exp: Likewise.
1374 * testsuite/ld-srec/srec.exp: Likewise.
1375 * testsuite/ld-undefined/require-defined.exp: Likewise.
1376 * testsuite/ld-scripts/expr2.d: Likewise.
1377 * testsuite/ld-scripts/section-match-1.d: Only run for ELF.
1378 * testsuite/ld-elfvers/vers.exp: Delete dead code.
1379 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
1380 * testsuite/ld-elfweak/elfweak.exp: Likewise.
1382 2020-07-07 Alan Modra <amodra@gmail.com>
1384 * emultempl/aix.em (gld${EMULATION_NAME}_find_exp_assignment): Handle
1387 2020-07-07 Alan Modra <amodra@gmail.com>
1389 * testsuite/ld-sh/vxworks1-lib.rd: Update expected output.
1390 * testsuite/ld-sh/vxworks4.d: Likewise.
1392 2020-07-06 Yuri Chornoivan <yurchor@ukr.net>
1395 * lexsup.c: Fix spelling mistake.
1396 * po/ld.pot: Regenerate.
1398 2020-07-06 Nick Clifton <nickc@redhat.com>
1400 * po/bg.po: Updated Bulgarian translation.
1401 * po/fr.po: Updated French translation.
1402 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1403 * po/uk.po: Updated Ukranian translation.
1405 2020-07-04 Nick Clifton <nickc@redhat.com>
1407 * configure: Regenerate.
1409 2020-07-04 Nick Clifton <nickc@redhat.com>
1411 Binutils 2.35 branch created.
1413 2020-07-03 Alan Modra <amodra@gmail.com>
1416 * testsuite/ld-arm/arm-elf.exp (vxworks1): Pass --wide to readelf
1417 when dumping relocs.
1418 * testsuite/ld-i386/i386.exp (vxworks1): Likewise.
1419 * testsuite/ld-sh/sh-vxworks.exp (vxworks1): Likewise.
1420 * testsuite/ld-sparc/sparc.exp (vxworks1): Likewise.
1421 * testsuite/ld-arm/vxworks1.rd: Adjust to suit.
1422 * testsuite/ld-i386/vxworks1.rd: Adjust.
1423 * testsuite/ld-sh/vxworks1.rd: Adjust.
1424 * testsuite/ld-sparc/vxworks1.rd: Adjust.
1426 2020-07-02 Nick Clifton <nickc@redhat.com>
1429 * testsuite/ld-powerpc/powerpc.exp: Add -T option to readelf
1430 command line when running some tests.
1431 * testsuite/ld-arm/arm-elf.exp: Likewise.
1432 * testsuite/ld-mips-elf/mips-elf.exp: Likewise.
1433 * testsuite/ld-mmix/local1.d: Likewise.
1434 * testsuite/ld-mmix/local3.d: Likewise.
1435 * testsuite/ld-mmix/local5.d: Likewise.
1436 * testsuite/ld-mmix/local7.d: Likewise.
1437 * testsuite/ld-powerpc/powerpc.exp: Likewise.
1439 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
1441 * Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_nacl.c,
1442 eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c.
1443 Remove x86 NaCl dep files.
1444 * NEWS: Mention x86 NaCl target support removal.
1445 * configure.tgt: Remove x86 NaCl target support.
1446 * testsuite/ld-elf/binutils.exp: Likewise.
1447 * testsuite/ld-elf/elf.exp: Likewise.
1448 * testsuite/ld-elfvers/vers.exp: Likewise.
1449 * testsuite/ld-i386/align-branch-1.d: Likewise.
1450 * testsuite/ld-i386/export-class.exp: Likewise.
1451 * testsuite/ld-i386/i386.exp: Likewise.
1452 * testsuite/ld-i386/load1.d: Likewise.
1453 * testsuite/ld-i386/pie1.d: Likewise.
1454 * testsuite/ld-i386/pr12570a.d: Likewise.
1455 * testsuite/ld-i386/pr12570b.d: Likewise.
1456 * testsuite/ld-i386/pr19636-1d.d: Likewise.
1457 * testsuite/ld-i386/pr19636-1l.d: Likewise.
1458 * testsuite/ld-i386/pr19636-2c.d: Likewise.
1459 * testsuite/ld-i386/pr19636-2d.d: Likewise.
1460 * testsuite/ld-i386/pr19636-2e.d: Likewise.
1461 * testsuite/ld-i386/pr20244-1a.d: Likewise.
1462 * testsuite/ld-i386/pr20244-1b.d: Likewise.
1463 * testsuite/ld-i386/pr20244-2a.d: Likewise.
1464 * testsuite/ld-i386/pr20244-2b.d: Likewise.
1465 * testsuite/ld-i386/pr20244-2c.d: Likewise.
1466 * testsuite/ld-i386/pr20244-4a.d: Likewise.
1467 * testsuite/ld-i386/pr20244-4b.d: Likewise.
1468 * testsuite/ld-i386/pr21884.d: Likewise.
1469 * testsuite/ld-ifunc/binutils.exp: Likewise.
1470 * testsuite/ld-ifunc/ifunc-10-i386.d: Likewise.
1471 * testsuite/ld-ifunc/ifunc-10-x86-64.d: Likewise.
1472 * testsuite/ld-ifunc/ifunc-11-i386.d: Likewise.
1473 * testsuite/ld-ifunc/ifunc-11-x86-64.d: Likewise.
1474 * testsuite/ld-ifunc/ifunc-12-i386.d: Likewise.
1475 * testsuite/ld-ifunc/ifunc-12-x86-64.d: Likewise.
1476 * testsuite/ld-ifunc/ifunc-13-i386.d: Likewise.
1477 * testsuite/ld-ifunc/ifunc-13-x86-64.d: Likewise.
1478 * testsuite/ld-ifunc/ifunc-14a-i386.d: Likewise.
1479 * testsuite/ld-ifunc/ifunc-14a-x86-64.d: Likewise.
1480 * testsuite/ld-ifunc/ifunc-14b-i386.d: Likewise.
1481 * testsuite/ld-ifunc/ifunc-14b-x86-64.d: Likewise.
1482 * testsuite/ld-ifunc/ifunc-14c-i386.d: Likewise.
1483 * testsuite/ld-ifunc/ifunc-14c-x86-64.d: Likewise.
1484 * testsuite/ld-ifunc/ifunc-14d-i386.d: Likewise.
1485 * testsuite/ld-ifunc/ifunc-14d-x86-64.d: Likewise.
1486 * testsuite/ld-ifunc/ifunc-14e-i386.d: Likewise.
1487 * testsuite/ld-ifunc/ifunc-14e-x86-64.d: Likewise.
1488 * testsuite/ld-ifunc/ifunc-14f-i386.d: Likewise.
1489 * testsuite/ld-ifunc/ifunc-14f-x86-64.d: Likewise.
1490 * testsuite/ld-ifunc/ifunc-15-i386.d: Likewise.
1491 * testsuite/ld-ifunc/ifunc-15-x86-64.d: Likewise.
1492 * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
1493 * testsuite/ld-ifunc/ifunc-16-i386.d: Likewise.
1494 * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: Likewise.
1495 * testsuite/ld-ifunc/ifunc-16-x86-64.d: Likewise.
1496 * testsuite/ld-ifunc/ifunc-17a-i386.d: Likewise.
1497 * testsuite/ld-ifunc/ifunc-17a-x86-64.d: Likewise.
1498 * testsuite/ld-ifunc/ifunc-17b-i386.d: Likewise.
1499 * testsuite/ld-ifunc/ifunc-17b-x86-64.d: Likewise.
1500 * testsuite/ld-ifunc/ifunc-18a-i386.d: Likewise.
1501 * testsuite/ld-ifunc/ifunc-18a-x86-64.d: Likewise.
1502 * testsuite/ld-ifunc/ifunc-18b-i386.d: Likewise.
1503 * testsuite/ld-ifunc/ifunc-18b-x86-64.d: Likewise.
1504 * testsuite/ld-ifunc/ifunc-19a-i386.d: Likewise.
1505 * testsuite/ld-ifunc/ifunc-19a-x86-64.d: Likewise.
1506 * testsuite/ld-ifunc/ifunc-19b-i386.d: Likewise.
1507 * testsuite/ld-ifunc/ifunc-19b-x86-64.d: Likewise.
1508 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1509 * testsuite/ld-ifunc/ifunc-2-i386.d: Likewise.
1510 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1511 * testsuite/ld-ifunc/ifunc-2-local-i386.d: Likewise.
1512 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1513 * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
1514 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1515 * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
1516 * testsuite/ld-ifunc/ifunc-20-i386.d: Likewise.
1517 * testsuite/ld-ifunc/ifunc-20-x86-64.d: Likewise.
1518 * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
1519 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1520 * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
1521 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1522 * testsuite/ld-ifunc/ifunc-5a-i386.d: Likewise.
1523 * testsuite/ld-ifunc/ifunc-5a-local-i386.d: Likewise.
1524 * testsuite/ld-ifunc/ifunc-5a-local-x86-64.d: Likewise.
1525 * testsuite/ld-ifunc/ifunc-5a-x86-64.d: Likewise.
1526 * testsuite/ld-ifunc/ifunc-5b-i386.d: Likewise.
1527 * testsuite/ld-ifunc/ifunc-5b-local-i386.d: Likewise.
1528 * testsuite/ld-ifunc/ifunc-5b-local-x86-64.d: Likewise.
1529 * testsuite/ld-ifunc/ifunc-5b-x86-64.d: Likewise.
1530 * testsuite/ld-ifunc/ifunc-5r-local-i386.d: Likewise.
1531 * testsuite/ld-ifunc/ifunc-5r-local-x86-64.d: Likewise.
1532 * testsuite/ld-ifunc/ifunc-6a-i386.d: Likewise.
1533 * testsuite/ld-ifunc/ifunc-6a-x86-64.d: Likewise.
1534 * testsuite/ld-ifunc/ifunc-6b-i386.d: Likewise.
1535 * testsuite/ld-ifunc/ifunc-6b-x86-64.d: Likewise.
1536 * testsuite/ld-ifunc/ifunc-7a-i386.d: Likewise.
1537 * testsuite/ld-ifunc/ifunc-7a-x86-64.d: Likewise.
1538 * testsuite/ld-ifunc/ifunc-7b-i386.d: Likewise.
1539 * testsuite/ld-ifunc/ifunc-7b-x86-64.d: Likewise.
1540 * testsuite/ld-ifunc/ifunc-8-i386.d: Likewise.
1541 * testsuite/ld-ifunc/ifunc-8-x86-64.d: Likewise.
1542 * testsuite/ld-ifunc/ifunc-9-i386.d: Likewise.
1543 * testsuite/ld-ifunc/ifunc-9-x86-64.d: Likewise.
1544 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1545 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1546 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1547 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1548 * testsuite/ld-plugin/lto.exp: Likewise.
1549 * testsuite/ld-x86-64/align-branch-1.d: Likewise.
1550 * testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
1551 * testsuite/ld-x86-64/line.exp: Likewise.
1552 * testsuite/ld-x86-64/load1a.d: Likewise.
1553 * testsuite/ld-x86-64/load1b.d: Likewise.
1554 * testsuite/ld-x86-64/load1c.d: Likewise.
1555 * testsuite/ld-x86-64/load1d.d: Likewise.
1556 * testsuite/ld-x86-64/pie3.d: Likewise.
1557 * testsuite/ld-x86-64/pr18160.d: Likewise.
1558 * testsuite/ld-x86-64/pr19013-x32.d: Likewise.
1559 * testsuite/ld-x86-64/pr19013.d: Likewise.
1560 * testsuite/ld-x86-64/pr19636-2d.d: Likewise.
1561 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1562 * testsuite/ld-x86-64/pr20253-1b.d: Likewise.
1563 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1564 * testsuite/ld-x86-64/pr20253-1f.d: Likewise.
1565 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1566 * testsuite/ld-x86-64/pr20253-1j.d: Likewise.
1567 * testsuite/ld-x86-64/pr20253-1l.d: Likewise.
1568 * testsuite/ld-x86-64/pr21884.d: Likewise.
1569 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
1570 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
1571 * testsuite/ld-x86-64/tlsgd10.dd: Likewise.
1572 * testsuite/ld-x86-64/tlsgd5.dd: Likewise.
1573 * testsuite/ld-x86-64/tlsgd8.dd: Likewise.
1574 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1575 * emulparams/elf32_x86_64_nacl.sh: Removed.
1576 * emulparams/elf_i386_nacl.sh: Likewise.
1577 * emulparams/elf_x86_64_nacl.sh: Likewise.
1578 * testsuite/ld-i386/emit-relocs-nacl.rd: Likewise.
1579 * testsuite/ld-i386/load1-nacl.d: Likewise.
1580 * testsuite/ld-i386/pie1-nacl.d: Likewise.
1581 * testsuite/ld-i386/plt-nacl.pd: Likewise.
1582 * testsuite/ld-i386/plt-pic-nacl.pd: Likewise.
1583 * testsuite/ld-i386/pr17709-nacl.rd: Likewise.
1584 * testsuite/ld-i386/pr19636-1d-nacl.d: Likewise.
1585 * testsuite/ld-i386/pr19636-2c-nacl.d: Likewise.
1586 * testsuite/ld-i386/pr19636-2d-nacl.d: Likewise.
1587 * testsuite/ld-i386/pr19636-2e-nacl.d: Likewise.
1588 * testsuite/ld-i386/pr19827-nacl.rd: Likewise.
1589 * testsuite/ld-i386/pr21884-nacl.d: Likewise.
1590 * testsuite/ld-i386/pr21884-nacl.t: Likewise.
1591 * testsuite/ld-i386/tlsbin-nacl.rd: Likewise.
1592 * testsuite/ld-i386/tlsbin2-nacl.rd: Likewise.
1593 * testsuite/ld-i386/tlsbindesc-nacl.rd: Likewise.
1594 * testsuite/ld-i386/tlsdesc-nacl.rd: Likewise.
1595 * testsuite/ld-i386/tlsgdesc-nacl.rd: Likewise.
1596 * testsuite/ld-i386/tlsnopic-nacl.rd: Likewise.
1597 * testsuite/ld-i386/tlspic-nacl.rd: Likewise.
1598 * testsuite/ld-i386/tlspic2-nacl.rd: Likewise.
1599 * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
1600 * testsuite/ld-x86-64/load1a-nacl.d: Likewise.
1601 * testsuite/ld-x86-64/load1b-nacl.d: Likewise.
1602 * testsuite/ld-x86-64/load1c-nacl.d: Likewise.
1603 * testsuite/ld-x86-64/load1d-nacl.d: Likewise.
1604 * testsuite/ld-x86-64/pie3-nacl.d: Likewise.
1605 * testsuite/ld-x86-64/plt-nacl.pd: Likewise.
1606 * testsuite/ld-x86-64/pr17709-nacl.rd: Likewise.
1607 * testsuite/ld-x86-64/pr19013-nacl.d: Likewise.
1608 * testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
1609 * testsuite/ld-x86-64/pr19827-nacl.rd: Likewise.
1610 * testsuite/ld-x86-64/pr21884-nacl.d: Likewise.
1611 * testsuite/ld-x86-64/pr21884-nacl.t: Likewise.
1612 * testsuite/ld-x86-64/split-by-file-nacl.rd: Likewise.
1613 * testsuite/ld-x86-64/tlsbin-nacl.rd: Likewise.
1614 * testsuite/ld-x86-64/tlsbin2-nacl.rd: Likewise.
1615 * testsuite/ld-x86-64/tlsbindesc-nacl.rd: Likewise.
1616 * testsuite/ld-x86-64/tlsdesc-nacl.pd: Likewise.
1617 * testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
1618 * testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
1619 * testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
1620 * testsuite/ld-x86-64/tlspic2-nacl.rd: Likewise.
1621 * Makefile.in: Regenerated.
1622 * po/BLD-POTFILES.in: Likewise.
1624 2020-06-30 Alan Modra <amodra@gmail.com>
1626 * testsuite/ld-elf/group1.d: Don't xfail all solaris targets, just
1629 2020-06-30 Alan Modra <amodra@gmail.com>
1631 * testsuite/ld-elf/reloc-discard.d: Don't xfail nds32.
1633 2020-06-30 Alan Modra <amodra@gmail.com>
1635 * scripttempl/elfmicroblaze.sc (.data): Add .data.* entry.
1636 * testsuite/ld-elf/var1.d: Don't xfail microblaze.
1638 2020-06-29 H.J. Lu <hongjiu.lu@intel.com>
1640 * testsuite/ld-tic6x/shlib-1.rd: Move C6000_DSBT_BASE,
1641 C6000_DSBT_SIZE and C6000_DSBT_INDEX dynamic tags to the last.
1642 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1643 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1644 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1645 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1646 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1647 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1648 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1649 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1650 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1651 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1652 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1653 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1655 2020-06-29 Alan Modra <amodra@gmail.com>
1657 * testsuite/ld-x86-64/abs-k1om.d: Run only on x86_64-*-linux*.
1658 * testsuite/ld-x86-64/protected2-k1om.d: Likewise.
1659 * testsuite/ld-x86-64/protected3-k1om.d: Likewise.
1661 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1663 * configure.ac [--enable-libctf]: New, default yes.
1664 Set ENABLE_LIBCTF accordingly.
1665 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF.
1666 * configure: Regenerate.
1667 * config.in: Regenerate.
1668 * Makefile.in: Regenerate.
1669 * aclocal.m4: Regenerate.
1670 * ldlang.c (ctf_output): Conditionalize on ENABLE_LIBCTF.
1671 (ldlang_open_ctf): Likewise.
1672 (lang_merge_ctf): Likewise.
1673 (ldlang_ctf_apply_strsym): Likewise.
1674 (lang_write_ctf): Likewise.
1675 (ldlang_write_ctf_late): Likewise.
1676 (ldlang_open_ctf) [!ENABLE_LIBCTF]: Warn about the presence of CTF
1678 (lang_merge_ctf) [!ENABLE_LIBCTF]: New stub.
1679 (ldlang_ctf_apply_strsym) [!ENABLE_LIBCTF]: Likewise.
1680 (lang_write_ctf) [!ENABLE_LIBCTF]: Likewise.
1681 (ldlang_write_ctf_late) [!ENABLE_LIBCTF]: Likewise.
1682 * ldelfgen.c (ldelf_emit_ctf_early): Conditionalize on
1684 (struct ctf_strsym_iter_cb_arg): Likewise.
1685 (ldelf_ctf_strtab_iter_cb): Likewise.
1686 (ldelf_ctf_symbols_iter_cb): Likewise.
1687 (ldelf_examine_strtab_for_ctf): Likewise.
1688 (ldelf_emit_ctf_early) [!ENABLE_LIBCTF]: New stub.
1689 (ldelf_examine_strtab_for_ctf) [!ENABLE_LIBCTF]: New stub.
1691 2020-06-26 Jan Beulich <jbeulich@suse.com>
1693 * testsuite/ld-x86-64/x86-64.exp: Run K1OM tests.
1695 2020-06-26 Pat Bernardi <bernardi@adacore.com>
1697 * testsuite/ld-m68k/attr-gnu-4-0.s: New file.
1698 * testsuite/ld-m68k/attr-gnu-4-1.s: Likewise.
1699 * testsuite/ld-m68k/attr-gnu-4-2.s: Likewise.
1700 * testsuite/ld-m68k/attr-gnu-4-00.d: Likewise.
1701 * testsuite/ld-m68k/attr-gnu-4-01.d: Likewise.
1702 * testsuite/ld-m68k/attr-gnu-4-02.d: Likewise.
1703 * testsuite/ld-m68k/attr-gnu-4-10.d: Likewise.
1704 * testsuite/ld-m68k/attr-gnu-4-11.d: Likewise.
1705 * testsuite/ld-m68k/attr-gnu-4-12.d: Likewise.
1706 * testsuite/ld-m68k/attr-gnu-4-20.d: Likewise.
1707 * testsuite/ld-m68k/attr-gnu-4-21.d: Likewise.
1708 * testsuite/ld-m68k/attr-gnu-4-22.d: Likewise.
1709 * testsuite/ld-m68k/m68k.exp: Run the new tests.
1711 2020-06-24 H.J. Lu <hongjiu.lu@intel.com>
1714 * lexsup.c (ld_options): Correct --dependency-file order.
1716 2020-06-24 H.J. Lu <hongjiu.lu@intel.com>
1719 * testsuite/ld-csky/tls-ie-v1.d: Updated.
1720 * testsuite/ld-csky/tls-ie.d: Likewise.
1722 2020-06-24 H.J. Lu <hongjiu.lu@intel.com>
1725 * testsuite/ld-cris/libdso-15b.d: Updated.
1726 * testsuite/ld-cris/libdso-1c.d: Likewise.
1727 * testsuite/ld-cris/libdso-1d.d: Likewise.
1728 * testsuite/ld-cris/libdso-15c.d: New file.
1730 2020-06-24 H.J. Lu <hongjiu.lu@intel.com>
1733 * ldexp.c (exp_fold_tree_1): Set non_ir_ref_regular on the source
1735 * testsuite/ld-plugin/lto.exp: Run ld/26163 test.
1736 * testsuite/ld-plugin/pr26163a.c: New file.
1737 * testsuite/ld-plugin/pr26163b.c: Likewise.
1739 2020-06-24 Alan Modra <amodra@gmail.com>
1741 * lexsup.c (elf_shlib_list_options): Properly format help message.
1742 (elf_plt_unwind_list_options): Likewise.
1743 * emultempl/cskyelf.em (PARSE_AND_LIST_OPTIONS): Likewise.
1745 2020-06-23 Roland McGrath <mcgrathr@google.com>
1748 * NEWS: Note --dependency-file.
1749 * ld.texi (Options): Document --dependency-file.
1750 * ldlex.h (enum option_values): Add OPTION_DEPENDENCY_FILE.
1751 * ld.h (ld_config_type): New member dependency_file.
1752 * lexsup.c (ld_options, parse_args): Parse --dependency-file.
1753 * ldmain.c (struct dependency_file): New type.
1754 (dependency_files, dependency_files_tail): New static variables.
1755 (track_dependency_files): New function.
1756 (write_dependency_file): New function.
1757 (main): Call it when --dependency-file was passed.
1758 * ldfile.c (ldfile_try_open_bfd): Call track_dependency_files.
1759 (ldfile_open_command_file_1): Likewise.
1760 * ldelf.c (ldelf_try_needed): Likewise.
1761 * pe-dll.c (pe_implied_import_dll): Likewise.
1763 2020-06-23 Alan Modra <amodra@gmail.com>
1766 * ldlang.c (ldlang_add_file): Assert that we aren't adding the
1767 current end of link.next list again too.
1768 * ldmain.c (add_archive_element): Don't load archive elements
1769 again that have already been loaded.
1771 2020-06-23 Alan Modra <amodra@gmail.com>
1773 * testsuite/ld-elf/shared.exp (pr14170): Clear xfail for
1775 (pr17068, symbolic-func.so, pr22374): Likewise.
1777 2020-06-22 Nelson Chu <nelson.chu@sifive.com>
1779 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1780 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Updated.
1781 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Updated.
1782 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Updated.
1783 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Updated.
1784 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Updated.
1786 2020-06-21 Alan Modra <amodra@gmail.com>
1788 * ldfile.c: Replace uses of ENABLE_PLUGINS with BFD_SUPPORTS_PLUGINS.
1789 * ldlang.c: Likewise.
1790 * ldlang.h: Likewise.
1791 * ldlex.h: Likewise.
1792 * ldmain.c: Likewise.
1793 * lexsup.c: Likewise.
1794 * plugin.c: Wrap body of file in #if BFD_SUPPORTS_PLUGINS.
1795 * testplug.c: Likewise.
1796 * testplug2.c: Likewise.
1797 * testplug3.c: Likewise.
1798 * testplug4.c: Likewise.
1799 * configure.ac (ENABLE_PLUGINS): Don't define AM_CONTITIONAL.
1800 * Makefile.am: Remove ENABLE_PLUGINS conditionals.
1801 (PLUGIN_CFLAGS): Don't define.
1802 (PLUGIN_C, PLUGIN_H, PLUGIN_OBJECT): Likewise. Substitute all
1803 uses with plugin file name.
1804 * configure: Regenerate.
1805 * Makefile.in: Regenerate.
1807 2020-06-20 Alan Modra <amodra@gmail.com>
1809 * testsuite/lib/ld-lib.exp (default_ld_compile): Don't perror on
1811 (default_ld_assemble): Similarly for an assembler error.
1812 (default_ld_nm): Similarly for an nm error.
1813 (run_ld_link_tests): Report ld_assemble errors as a fail.
1814 (check_as_cfi): Remove now unnecessary perror substitution.
1815 * testsuite/ld-elf/exclude.exp: Report ld_nm error return as test
1816 fails rather then unresolved.
1817 * testsuite/ld-gc/gc.exp: Likewise.
1818 * testsuite/ld-scripts/alignof.exp: Likewise.
1819 * testsuite/ld-scripts/defined.exp: Likewise.
1820 * testsuite/ld-scripts/script.exp: Likewise.
1821 * testsuite/ld-scripts/sizeof.exp: Likewise.
1822 * testsuite/ld-selective/selective.exp: Likewise.
1823 * testsuite/ld-scripts/extern.exp: Likewise. Return on ld_link
1825 * testsuite/ld-elfweak/elfweak.exp: Report compiler errors as
1827 * testsuite/ld-fastcall/fastcall.exp: Report assember errors as
1829 * testsuite/ld-i386/i386.exp (iamcu_tests): Likewise.
1830 * testsuite/ld-ia64/line.exp: Likewise.
1831 * testsuite/ld-mep/mep.exp: Likewise.
1832 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
1833 * testsuite/ld-nios2/nios2.exp: Likewise.
1834 * testsuite/ld-scripts/alignof.exp: Likewise.
1835 * testsuite/ld-x86-64/line.exp: Likewise.
1836 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1837 * testsuite/ld-scripts/log2.exp: Formatting.
1838 * testsuite/ld-tic6x/tic6x.exp: Report ld_link errors as a test fail.
1840 2020-06-20 Alan Modra <amodra@gmail.com>
1842 * testsuite/ld-alpha/alpha.exp: Exclude *ecoff targets.
1843 * testsuite/ld-elf/binutils.exp: Likewise.
1844 * testsuite/ld-elf/tls.exp: Likewise.
1845 * testsuite/ld-elf/tls_common.exp: Likewise.
1846 * testsuite/ld-scripts/phdrs2.exp: Likewise.
1848 2020-06-20 Alan Modra <amodra@gmail.com>
1850 * testsuite/ld-sh/sh.exp: Don't run relax tests for non-ELF.
1851 Fail when ld_assemble fails. Use elseif to reduce indentation.
1853 2020-06-19 Alan Modra <amodra@gmail.com>
1855 * testsuite/ld-elf/dynamic-1.rd: Accept st_other notations.
1856 * testsuite/ld-elf/rdynamic-1.rd: Likewise.
1857 * testsuite/ld-elf/pr9676.rd: Likewise.
1858 * testsuite/ld-elf/pr9679.rd: Likewise.
1859 * testsuite/ld-elfvers/vers30.dsym: Likewise.
1860 * testsuite/ld-elfvers/vers31.dsym: Likewise.
1861 * testsuite/ld-plugin/pr22983.1.d: Likewise.
1862 * testsuite/ld-plugin/pr22983.2.d: Likewise.
1863 * testsuite/ld-plugin/pr22983.3.d: Likewise.
1864 * testsuite/ld-plugin/pr22983.4.d: Likewise.
1865 * testsuite/ld-ifunc/ifunc.exp: Exclude alpha.
1867 2020-06-19 Alan Modra <amodra@gmail.com>
1869 * emultempl/elf.em (gld${EMULATION_NAME}_handle_option): Omit
1870 -z relro and -z norelro when target support for GNU_RELRO is lacking.
1871 (gld${EMULATION_NAME}_before_parse): Ignore RELRO default too.
1872 * emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse): Ignore
1873 RELRO default when target support for GNU_RELRO is lacking.
1874 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
1875 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Likewise.
1876 * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
1877 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
1878 * testsuite/ld-elf/pr16322.d: xfail when no relro support.
1879 * testsuite/ld-elf/pr22393-1a.d: Likewise.
1880 * testsuite/ld-elf/pr22393-1b.d: Likewise.
1881 * testsuite/ld-elf/shared.exp (pr20995-2.so, pr20995-2): Likewise.
1882 * testsuite/lib/ld-lib.exp (run_ld_link_tests): Use check_relro_support
1883 to decide whether to pass extra ld option "-z norelro".
1885 2020-06-17 H.J. Lu <hongjiu.lu@intel.com>
1887 * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Append "-w"
1890 2020-06-17 H.J. Lu <hongjiu.lu@intel.com>
1892 * testsuite/ld-elf/linux-x86.exp: Require GCC 5 for Build
1893 pr25749-1b (-pie -fPIE).
1895 2020-06-16 Alan Modra <amodra@gmail.com>
1897 * testsuite/ld-elf/pr23428.c: Define _DEFAULT_SOURCE.
1898 * testsuite/ld-elf/indirect1b.c: Replace asm with __asm__.
1899 * testsuite/ld-elf/indirect2.c: Likewise.
1900 * testsuite/ld-elf/indirect3b.c: Likewise.
1901 * testsuite/ld-elf/indirect4b.c: Likewise.
1902 * testsuite/ld-elf/pr14323-2.c: Likewise.
1903 * testsuite/ld-elf/pr18720b.c: Likewise.
1904 * testsuite/ld-elf/pr19553c.c: Likewise.
1905 * testsuite/ld-elf/pr23428.c: Likewise.
1906 * testsuite/ld-elfvers/vers27b.c: Likewise.
1907 * testsuite/ld-elfvsb/common.c: Likewise.
1908 * testsuite/ld-elfvsb/main.c: Likewise.
1909 * testsuite/ld-elfvsb/sh1.c: Likewise.
1910 * testsuite/ld-elfvsb/test.c: Likewise.
1911 * testsuite/ld-pe/aligncomm-1.c: Likewise.
1912 * testsuite/ld-pe/aligncomm-2.c: Likewise.
1913 * testsuite/ld-pe/aligncomm-3.c: Likewise.
1914 * testsuite/ld-pe/aligncomm-4.c: Likewise.
1915 * testsuite/ld-plugin/pr23958.c: Likewise.
1916 * testsuite/ld-size/size-1b.c: Likewise.
1917 * testsuite/ld-size/size-2b.c: Likewise.
1918 * testsuite/ld-size/size-3a.c: Likewise.
1919 * testsuite/ld-size/size-3b.c: Likewise.
1920 * testsuite/ld-size/size-3c.c: Likewise.
1921 * testsuite/ld-size/size-4b.c: Likewise.
1922 * testsuite/ld-size/size-5b.c: Likewise.
1923 * testsuite/ld-size/size-6a.c: Likewise.
1924 * testsuite/ld-size/size-7a.c: Likewise.
1925 * testsuite/ld-size/size-8a.c: Likewise.
1926 * testsuite/ld-size/size-9b.c: Likewise.
1927 * testsuite/ld-size/size-10b.c: Likewise.
1929 2020-06-16 Alan Modra <amodra@gmail.com>
1931 * emulparams/tic30aout.sh: Delete file.
1932 * scripttempl/tic30aout.sc: Delete file.
1933 * Makefile.am: Remove etic30aout.c from ALL_EMULATION_SOURCES and
1935 * configure.tgt: Delete tic30-*-*aout* entry.
1936 * testsuite/ld-scripts/sane1.d: Delete tic30-*-aout mention.
1937 * testsuite/ld-scripts/segment-start.d: Likewise.
1938 * Makefile.in: Regenerate.
1939 * po/BLD-POTFILES.in: Regenerate.
1941 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
1943 * emultempl/xtensaelf.em (XSHAL_ABI): Remove macro definition.
1944 (XTHAL_ABI_UNDEFINED, XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New
1946 (elf32xtensa_abi): New declaration.
1947 (xt_config_info_unpack_and_check): Set elf32xtensa_abi if it is
1948 undefined. Use xtensa_abi_choice instead of XSHAL_ABI to test
1949 ABI tag consistency.
1950 (xtensa_add_config_info): Use xtensa_abi_choice instead of
1951 XSHAL_ABI to format ABI tag.
1952 (PARSE_AND_LIST_PROLOGUE): Define OPTION_ABI_WINDOWED,
1953 OPTION_ABI_CALL0 and declare elf32xtensa_abi.
1954 (PARSE_AND_LIST_LONGOPTS): Add entries for --abi-windowed and
1956 (PARSE_AND_LIST_OPTIONS): Add help text for --abi-windowed and
1958 (PARSE_AND_LIST_ARGS_CASES): Add handlers for --abi-windowed and
1960 * ld.texi: Add description for options --abi-windowed and
1963 2020-06-15 Roland McGrath <mcgrathr@google.com>
1965 * NEWS: Mention -z start-stop-visibility=... option for ELF.
1966 * ld.texi (Options): Document -z start-stop-visibility=... option.
1967 * ldmain.c (main): Initialize link_info.start_stop_visibility.
1968 * emultempl/elf.em (gld${EMULATION_NAME}_handle_option):
1969 Parse -z start-stop-visibility=... option.
1971 2020-06-15 Alan Modra <amodra@gmail.com>
1973 * testsuite/ld-scripts/include.exp: Don't load ld-lib.exp.
1974 * testsuite/ld-scripts/phdrs3.exp: Likewise.
1975 * testsuite/ld-scripts/rgn-at.exp: Likewise.
1976 * testsuite/ld-scripts/rgn-over.exp: Likewise.
1977 * testsuite/ld-scripts/sort.exp: Likewise.
1978 * testsuite/ld-discard/discard.exp: Likewise. Use is_elf_format.
1980 2020-06-15 Alan Modra <amodra@gmail.com>
1983 * testsuite/ld-linkonce/ref1.s,
1984 * testsuite/ld-linkonce/ref2.s,
1985 * testsuite/ld-linkonce/sym1.s,
1986 * testsuite/ld-linkonce/sym2.s,
1987 * testsuite/ld-linkonce/sym3.s: New test files.
1988 * testsuite/ld-linkonce/linkonce.exp: Run tests for PE too.
1989 Add pr26103 test. Remove unnecessary load_lib.
1991 2020-06-15 Alan Modra <amodra@gmail.com>
1993 * testsuite/ld-linkonce/zeroeh_x.s: Rename from x.s.
1994 * testsuite/ld-linkonce/zeroeh_y.s: Rename from y.s.
1995 * testsuite/ld-linkonce/zeroehl32.d: Adjust for renaming. Support
1996 big-endian output. Run for powerpc.
1998 2020-06-11 Alan Modra <amodra@gmail.com>
2000 * testsuite/ld-plugin/lto.exp (lto_link_tests): Move lto-6,
2001 pr12760, pr23818 and pr23958 tests to..
2002 (lto_link_elf_tests): ..here.
2004 2020-06-11 Nick Clifton <nickc@redhat.com>
2006 * testsuite/ld-elf/pr26094-1b.c (main): Change return type to
2009 2020-06-10 Alan Modra <amodra@gmail.com>
2011 * testsuite/ld-elf/linux-x86.exp: Build tests when non-native.
2012 (check_pr25749b): Add optional args. Set expected pass file
2013 from args. Run -1b and -2a tests with passall.out.
2014 * testsuite/ld-elf/passall.out: New file.
2015 * testsuite/ld-elf/pr25749-1.c: Adjust to pass with older glibc.
2016 * testsuite/ld-elf/pr25749-2.c: Likewise.
2017 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Use
2018 regexp_diff to compare expected output from running binary.
2020 2020-06-10 H.J. Lu <hongjiu.lu@intel.com>
2023 * testsuite/ld-elf/pr26094-1.ver: New fike.
2024 * testsuite/ld-elf/pr26094-1a.c: Likewise.
2025 * testsuite/ld-elf/pr26094-1a.rd: Likewise.
2026 * testsuite/ld-elf/pr26094-1b.c: Likewise.
2027 * testsuite/ld-elf/pr26094-1b.rd: Likewise.
2028 * testsuite/ld-elf/pr26094-1c.c: Likewise.
2029 * testsuite/ld-elf/shared.exp: Run ld/26094 tests.
2031 2020-06-09 H.J. Lu <hongjiu.lu@intel.com>
2034 * testsuite/ld-i386/i386.exp: Run ifunc-textrel-1a,
2035 ifunc-textrel-1b, ifunc-textrel-2a and ifunc-textrel-2b.
2036 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2037 * testsuite/ld-i386/ifunc-textrel-1a.d: Likewise.
2038 * testsuite/ld-i386/ifunc-textrel-1b.d: Likewise.
2039 * testsuite/ld-i386/ifunc-textrel-2a.d: Likewise.
2040 * testsuite/ld-i386/ifunc-textrel-2b.d: Likewise.
2041 * testsuite/ld-x86-64/ifunc-textrel-1.s: Likewise.
2042 * testsuite/ld-x86-64/ifunc-textrel-1a.d: Likewise.
2043 * testsuite/ld-x86-64/ifunc-textrel-1b.d: Likewise.
2044 * testsuite/ld-x86-64/ifunc-textrel-2.s: Likewise.
2045 * testsuite/ld-x86-64/ifunc-textrel-2a.d: Likewise.
2046 * testsuite/ld-x86-64/ifunc-textrel-2b.d: Likewise.
2047 * testsuite/ld-i386/pr18801a.d: Expect warning for IFUNC
2049 * testsuite/ld-i386/pr18801b.d: Likewise.
2050 * estsuite/ld-x86-64/pr18801a.d: Likewise.
2051 * estsuite/ld-x86-64/pr18801b.d: Likewise.
2053 2020-06-09 Alan Modra <amodra@gmail.com>
2056 * testsuite/ld-elf/shared.exp: Compile dl4main.c -fPIC.
2057 (dl4e, dl4f): Expect dl4a.out.
2058 * testsuite/ld-elf/dl4e.out: Delete.
2060 2020-06-07 H.J. Lu <hongjiu.lu@intel.com>
2062 * testsuite/ld-elf/shared.exp: Pass $LFLAGS to PR ld/21703
2065 2020-06-07 H.J. Lu <hongjiu.lu@intel.com>
2067 * testsuite/ld-elf/shared.exp: Xfail pr20995/pr20995-2 for
2070 2020-06-07 H.J. Lu <hongjiu.lu@intel.com>
2072 * testsuite/ld-elf/pr11304.d: Skip tic6x-*-elf.
2074 2020-06-06 Alan Modra <amodra@gmail.com>
2076 * testsuite/ld-elf/comm-data.exp: Don't xfail arm or bfin-linux.
2078 2020-06-06 Alan Modra <amodra@gmail.com>
2080 * lexsup.c (ld_options): Accept -plugin and -plugin-opt when
2082 * testsuite/lib/ld-lib.exp (check_plugin_api_available): Adjust.
2084 2020-06-05 Nelson Chu <nelson.chu@sifive.com>
2086 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Rename to
2087 attr-merge-priv-spec-01.d.
2088 * testsuite/ld-riscv-elf/attr-merge-priv-spec-c.s: Set spec to 1.11.
2089 * testsuite/ld-riscv-elf/attr-merge-priv-spec-d.s: Empty priv spec set.
2090 * testsuite/ld-riscv-elf/attr-merge-priv-spec-02.d: New testcase.
2091 * testsuite/ld-riscv-elf/attr-merge-priv-spec-03.d: Likewise.
2092 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
2093 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
2094 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
2095 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
2096 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
2097 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
2099 2020-06-05 Nelson Chu <nelson.chu@sifive.com>
2101 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: The CSR isn't used,
2102 so ignore the -mpriv-spec setting.
2103 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
2104 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
2105 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
2106 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
2107 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
2108 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
2109 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
2110 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
2111 * testsuite/ld-riscv-elf/call-relax.d: Add -mno-arch-attr.
2113 2020-06-04 H.J. Lu <hongjiu.lu@intel.com>
2116 * testsuite/ld-elf/comm-data.exp: Remove copy_reloc.
2117 * testsuite/ld-elf/comm-data2r.rd: Removed.
2118 * testsuite/ld-elf/comm-data2r.sd: Likewise.
2119 * testsuite/ld-elf/comm-data2r.xd: Likewise.
2121 2020-06-04 Alan Modra <amodra@gmail.com>
2123 * testsuite/config/default.exp: Remove global directive outside
2125 * testsuite/ld-bootstrap/bootstrap.exp: Likewise.
2126 * testsuite/ld-elf/compress.exp: Likewise.
2127 * testsuite/ld-elf/elf.exp: Likewise.
2128 * testsuite/ld-elf/exclude.exp: Likewise.
2129 * testsuite/ld-elf/frame.exp: Likewise.
2130 * testsuite/ld-elf/indirect.exp: Likewise.
2131 * testsuite/ld-elf/linux-x86.exp: Likewise.
2132 * testsuite/ld-elf/shared.exp: Likewise.
2133 * testsuite/ld-elf/tls.exp: Likewise.
2134 * testsuite/ld-elf/tls_common.exp: Likewise.
2135 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
2136 * testsuite/ld-elfweak/elfweak.exp: Likewise.
2137 * testsuite/ld-frv/fdpic.exp: Likewise.
2138 * testsuite/ld-frv/tls.exp: Likewise.
2139 * testsuite/ld-gc/gc.exp: Likewise.
2140 * testsuite/ld-i386/i386.exp: Likewise.
2141 * testsuite/ld-i386/no-plt.exp: Likewise.
2142 * testsuite/ld-ifunc/ifunc.exp: Likewise.
2143 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
2144 * testsuite/ld-nios2/nios2.exp: Likewise.
2145 * testsuite/ld-plugin/lto.exp: Likewise.
2146 * testsuite/ld-plugin/plugin.exp: Likewise.
2147 * testsuite/ld-powerpc/export-class.exp: Likewise.
2148 * testsuite/ld-scripts/align.exp: Likewise.
2149 * testsuite/ld-scripts/crossref.exp: Likewise.
2150 * testsuite/ld-scripts/defined.exp: Likewise.
2151 * testsuite/ld-scripts/overlay-size.exp: Likewise.
2152 * testsuite/ld-scripts/provide.exp: Likewise.
2153 * testsuite/ld-scripts/weak.exp: Likewise.
2154 * testsuite/ld-selective/selective.exp: Likewise.
2155 * testsuite/ld-sh/rd-sh.exp: Likewise.
2156 * testsuite/ld-size/size.exp: Likewise.
2157 * testsuite/ld-srec/srec.exp: Likewise.
2158 * testsuite/ld-x86-64/mpx.exp: Likewise.
2159 * testsuite/ld-x86-64/no-plt.exp: Likewise.
2160 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2162 2020-06-04 Alan Modra <amodra@gmail.com>
2164 * testsuite/ld-dynamic/export-dynamic-symbol-2.d: Match output for
2166 * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: Likewise.
2167 * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: Likewise.
2168 * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: Likewise.
2169 * testsuite/ld-dynamic/export-dynamic-symbol.exp: Exclude targets
2170 with poor PIE support.
2172 2020-06-04 Alan Modra <amodra@gmail.com>
2174 * testsuite/ld-plugin/lto.exp (pr12758.exe): Add NOPIE_LDFLAGS.
2175 * testsuite/ld-unique/unique.exp: Add NOPIE_LDFLAGS to unique
2176 executable and dynamic executable tests.
2178 2020-06-03 H.J. Lu <hongjiu.lu@intel.com>
2180 * testsuite/config/default.exp (NOSANTIZE_CFLAGS): New.
2181 * testsuite/ld-elf/linux-x86.exp: Add $NOSANTIZE_CFLAGS to
2182 tests with run_ld_link_exec_tests.
2183 * testsuite/ld-elf/shared.exp: Add $NOSANTIZE_CFLAGS to tests
2184 with run_ld_link_tests.
2185 * testsuite/ld-elf/tls.exp: Likewise.
2186 * testsuite/ld-elfweak/elfweak.exp: Add $NOSANTIZE_CFLAGS to
2188 * testsuite/ld-gc/gc.exp: Add $NOSANTIZE_CFLAGS to cflags.
2189 * testsuite/ld-plugin/lto.exp: Add $NOSANTIZE_CFLAGS to tests
2190 with run_ld_link_tests.a
2191 * testsuite/ld-plugin/plugin.exp: Append $NOSANTIZE_CFLAGS to
2193 * testsuite/ld-selective/selective.exp: Add $NOSANTIZE_CFLAGS
2194 to cflags and cxxflags.
2195 * testsuite/ld-srec/srec.exp: Append $NOSANTIZE_CFLAGS to CC
2197 * testsuite/ld-x86-64/plt-main-ibt-x32.dd: Updated for
2198 -fsanitize=undefined.
2199 * testsuite/ld-x86-64/plt-main-ibt.dd: Likewise.
2200 * testsuite/ld-x86-64/x86-64.exp: Add $NOSANTIZE_CFLAGS to
2201 tests with run_cc_link_tests and run_ld_link_tests.
2203 2020-06-03 Fangrui Song <maskray@google.com>
2204 H.J. Lu <hongjiu.lu@intel.com>
2207 * NEWS: Mention --export-dynamic-symbol[-list].
2208 * ld.texi: Document --export-dynamic-symbol[-list].
2209 * ldgram.y: Pass current_dynamic_list_p to
2210 lang_append_dynamic_list.
2211 * ldlang.c (current_dynamic_list_p): New.
2212 (ang_append_dynamic_list): Updated to take a pointer to
2213 struct bfd_elf_dynamic_list * argument instead of using
2214 link_info.dynamic_list.
2215 (lang_append_dynamic_list_cpp_typeinfo): Pass
2216 &link_info.dynamic_list to ang_append_dynamic_list.
2217 (lang_append_dynamic_list_cpp_new): Likewise.
2218 * ldlang.h (current_dynamic_list_p): New.
2219 (lang_append_dynamic_list): Add a pointer to
2220 struct bfd_elf_dynamic_list * argument.
2221 * ldlex.h (option_values): Add OPTION_EXPORT_DYNAMIC_SYMBOL and
2222 OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
2223 * lexsup.c (ld_options): Add entries for
2224 OPTION_EXPORT_DYNAMIC_SYMBOL and
2225 OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
2226 (parse_args): Handle --export-dynamic-symbol and
2227 --export-dynamic-symbol-list.
2228 * testsuite/ld-dynamic/export-dynamic-symbol-1.d: New.
2229 * testsuite/ld-dynamic/export-dynamic-symbol-2.d: New.
2230 * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: New.
2231 * testsuite/ld-dynamic/export-dynamic-symbol-list-1.d: New.
2232 * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: New.
2233 * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: New.
2234 * testsuite/ld-dynamic/export-dynamic-symbol.exp: New.
2235 * testsuite/ld-dynamic/export-dynamic-symbol.s: New.
2236 * testsuite/ld-dynamic/foo-bar.list: New.
2237 * testsuite/ld-dynamic/foo.list: New.
2238 * testsuite/ld-dynamic/foo.s: New.
2239 * testsuite/ld-dynamic/fstar.list: New.
2240 * testsuite/ld-elf/dlempty.list: New.
2241 * testsuite/ld-elf/shared.exp: Add tests for
2242 --export-dynamic-symbol and --export-dynamic-symbol-list.
2244 2020-06-03 Jan Beulich <jbeulich@suse.com>
2246 * testsuite/ld-elf/linux-x86.exp: Make copied source files
2249 2020-05-28 Nick Clifton <nickc@redhat.com>
2252 * ldelf.c (ldelf_after_open): Fail if attempting to link one
2253 executable into another. Ensure that the test is made for all
2256 2020-05-28 H.J. Lu <hongjiu.lu@intel.com>
2258 * NEWS: Mention --enable-textrel-check=yes is default for
2260 * configure.tgt (ac_default_ld_textrel_check): Set to yes if
2261 unset for Linux/x86 targets.
2263 2020-05-28 H.J. Lu <hongjiu.lu@intel.com>
2266 * NEWS: Mention --enable-textrel-check=[no|yes|warning|error].
2267 * configure.ac: Add --enable-textrel-check=[no|yes|warning|error].
2268 (DEFAULT_LD_TEXTREL_CHECK): New AC_DEFINE_UNQUOTED.
2269 (DEFAULT_LD_TEXTREL_CHECK_WARNING): Likewise.
2270 * ldmain.c (main): Initialize link_info.textrel_check to
2271 DEFAULT_LD_TEXTREL_CHECK.
2272 * lexsup.c (ld_options): Check DEFAULT_LD_TEXTREL_CHECK_WARNING.
2273 * config.in: Regenerated.
2274 * configure: Likewise.
2276 2020-05-28 Nick Clifton <nickc@redhat.com>
2278 * lexsup.c (parse_args): Generate an error if a name is not
2279 provided to the -Map option.
2280 (ld_options): Mention that the -Map option supports a directory
2281 name as an argument.
2282 * NEWS: Remove mention of support for an empty string as an
2284 * ld.texi: Likewise.
2286 2020-05-27 Hans-Peter Nilsson <hp@axis.com>
2289 * testsuite/ld-elf/pr19539.d: Don't xfail for cris*-*-*.
2291 2020-05-27 Rasmus Villemoes <rv@rasmusvillemoes.dk>
2292 Nick Clifton <nickc@redhat.com>
2294 * lexsup.c (parse_args): If the map filename is defined but empty
2295 create a name based upon the output file name. If the name is
2296 defined but refers to a directory create a file inside the
2297 directory based on the output file name.
2298 * ld.texi: Document the new feature.
2299 * testsuite/ld-script/map-address.exp: Add test of new feature.
2300 * NEWS: Mention the new feature.
2302 2020-05-27 H.J. Lu <hongjiu.lu@intel.com>
2305 * NEWS: Mention --warn-textrel.
2306 * ld.texi: Update -z text/notext/textoff. Add --warn-textrel.
2307 Remove --warn-shared-textrel.
2308 * ldlex.h (option_values): Rename OPTION_WARN_SHARED_TEXTREL to
2309 OPTION_WARN_TEXTREL.
2310 * lexsup.c (ld_options): Add --warn-textrel. Obsolete
2311 --warn-shared-textrel.
2312 (parse_args): Updated.
2313 (elf_shlib_list_options): Check link_info.textrel_check.
2314 * emultempl/elf.em: Updated.
2315 * testsuite/ld-elf/pr19539.d: Replace -z notext with
2316 --warn-textrel. Expect a warning.
2317 * testsuite/ld-i386/warn1.d: Update expected warning.
2319 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
2321 * testsuite/ld-ifunc/ifunc-23a-x86.d: Skip *-*-lynxos *-*-nto*.
2322 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
2323 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
2325 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
2327 * testsuite/ld-x86-64/x86-64.exp: Pass -z notext to linker.
2329 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
2331 * testsuite/ld-elf/eh6.d: Pass -z notext to linker.
2332 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
2333 * testsuite/ld-elf/pr19539.d: Likewise.
2334 * testsuite/ld-elfvers/vers.exp: Likewise.
2335 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
2336 * testsuite/ld-i386/i386.exp: Likewise.
2337 * testsuite/ld-i386/nogot1.d: Likewise.
2338 * testsuite/ld-i386/pr19539.d: Likewise.
2339 * testsuite/ld-i386/pr19636-2a.d: Likewise.
2340 * testsuite/ld-i386/pr19636-2b.d: Likewise.
2341 * testsuite/ld-i386/pr19636-2c.d: Likewise.
2342 * testsuite/ld-i386/pr19636-2d.d: Likewise.
2343 * testsuite/ld-i386/pr19636-2e.d: Likewise.
2344 * testsuite/ld-i386/pr19636-3d.d: Likewise.
2345 * testsuite/ld-i386/pr19636-3e.d: Likewise.
2346 * testsuite/ld-i386/pr19939b.d: Likewise.
2347 * testsuite/ld-i386/undefweaka.d: Likewise.
2348 * testsuite/ld-i386/undefweakb.d: Likewise.
2349 * testsuite/ld-shared/shared.exp: Likewise.
2350 * testsuite/ld-size/size.exp: Likewise.
2351 * testsuite/ld-unique/unique.exp: Likewise.
2352 * testsuite/ld-x86-64/pie1.d: Likewise.
2353 * testsuite/ld-x86-64/pr19539a.d: Likewise.
2354 * testsuite/ld-x86-64/pr19539b.d: Likewise.
2355 * testsuite/ld-x86-64/pr19636-1d.d: Likewise.
2356 * testsuite/ld-x86-64/pr19636-1e.d: Likewise.
2357 * testsuite/ld-x86-64/pr19807-1a.d: Likewise.
2358 * testsuite/ld-x86-64/pr19807-1b.d: Likewise.
2359 * testsuite/ld-x86-64/pr19807-2b.d: Likewise.
2360 * testsuite/ld-x86-64/pr19807-2c.d: Likewise.
2361 * testsuite/ld-x86-64/pr19807-2d.d: Likewise.
2362 * testsuite/ld-x86-64/pr19807-2e.d: Likewise.
2363 * testsuite/ld-x86-64/pr19939b.d: Likewise.
2364 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2366 2020-05-24 Fangrui Song <maskray@google.com>
2369 * lexsup.c (parse_args): Simplify.
2370 * testsuite/ld-elf/dl4e.out: New.
2371 * testsuite/ld-elf/shared.exp: Updated for PR ld/26018 tests.
2373 2020-05-23 H.J. Lu <hongjiu.lu@intel.com>
2376 * testsuite/ld-i386/i386.exp: Add a -Bsymbolic-functions test.
2377 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2378 * testsuite/ld-i386/pr26018.d: New file.
2379 * testsuite/ld-x86-64/pr26018.d: Likewise.
2380 * testsuite/ld-x86-64/pr26018.s: Likewise.
2382 2020-05-21 Alan Modra <amodra@gmail.com>
2384 * deffilep.y: Replace "if (x) free (x)" with "free (x)" thoughout.
2385 * emultempl/elf.em: Likewise.
2386 * emultempl/msp430.em: Likewise.
2387 * emultempl/pe.em: Likewise.
2388 * emultempl/pep.em: Likewise.
2389 * emultempl/ppc64elf.em: Likewise.
2390 * emultempl/xtensaelf.em: Likewise.
2391 * ldelf.c: Likewise.
2392 * ldfile.c: Likewise.
2393 * ldmain.c: Likewise.
2394 * ldmisc.c: Likewise.
2395 * lexsup.c: Likewise.
2396 * pe-dll.c: Likewise.
2398 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
2400 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Updated
2401 priv attributes according to the -mpriv-spec option.
2402 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
2403 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
2404 * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
2405 * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
2406 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
2407 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
2408 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
2409 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
2410 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
2411 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
2412 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
2414 2020-05-20 Alan Modra <amodra@gmail.com>
2417 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't copy
2418 other_bfd_filename for bfd_set_filename, and test result of
2419 bfd_set_filename call. Don't create a new is->filename, simply
2420 copy from bfd filename. Free new_name after bfd_set_filename.
2421 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
2423 2020-05-19 Siddhesh Poyarekar <siddesh.poyarekar@arm.com>
2425 * testsuite/ld-aarch64/aarch64-elf.exp: New test
2427 * testsuite/ld-aarch64/emit-relocs-560.d: New file.
2428 * testsuite/ld-aarch64/emit-relocs-560.s: New file.
2430 2020-05-19 Alan Modra <amodra@gmail.com>
2432 * emultempl/beos.em (sort_by_file_name): Use bfd_get_filename
2433 rather than accessing bfd->filename directly.
2434 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
2435 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
2436 * emultempl/spuelf.em (embedded_spu_file): Likewise.
2437 * ldlang.c (input_statement_is_archive_path, wild_sort),
2438 (check_excluded_libs): Likewise.
2439 * ldmain.c (add_archive_element): Likewise.
2440 * ldmisc.c (vfinfo): Likewise.
2441 * pe-dll.c (auto_export, generate_edata, pe_create_import_fixup),
2442 (pe_dll_generate_implib, pe_process_import_defs): Likewise.
2443 * plugin.c (plugin_object_p): Likewise.
2445 2020-05-18 Douglas B Rupp <rupp@adacore.com>
2447 * ldemul.h (ldemul_print_symbol): New.
2448 (ld_emulation_xfer_type) <print_symbol): Likewise.
2449 * ldemul.c (ldemul_print_symbol): New.
2450 * ldlang.c (SECTION_NAME_MAP_LANGTH): Move to ...
2451 (print_one_symbol): Make global and move declaration to ...
2452 (print_all_symbols): Rename print_one_symbol to ldemul_print_symbol
2453 (print_input_section): Likewise
2454 * ldlang.h: ... here.
2455 * emultempl/aix.em (gld${EMULATION_NAME}_print_symbol): New.
2456 (ld_emulation_xfer_struct): Use it.
2457 * emultempl/armcoff.em (ld_emulation_xfer_struct): Add print_symbol
2458 and default to NULL.
2459 * emultempl/beos.em (ld_emulation_xfer_struct): Likewise
2460 * emultempl/elf.em (ld_emulation_xfer_struct): Likewise
2461 * emultempl/generic.em (ld_emulation_xfer_struct): Likewise
2462 * emultempl/linux.em (ld_emulation_xfer_struct): Likewise
2463 * emultempl/msp430.em (ld_emulation_xfer_struct): Likewise
2464 * emultempl/pe.em (ld_emulation_xfer_struct): Likewise
2465 * emultempl/pep.em (ld_emulation_xfer_struct): Likewise
2466 * emultempl/ticoff.em (ld_emulation_xfer_struct): Likewise
2467 * emultempl/vanilla.em (ld_emulation_xfer_struct): Likewise
2469 2020-05-18 Sergei Trofimovich <siarheit@google.com>
2471 * ldmain.c (add_archive_element): Fix s/claimi/claim/ typo
2474 2020-05-18 Nick Clifton <nickc@redhat.com>
2476 * po/sv.po: Update Swedish translation.
2478 2020-05-18 Nick Clifton <nickc@redhat.com>
2481 * emultempl/pe.em (_after_open): Check for duplicate filename
2482 pointers before renaming the dll.
2483 * emultempl/pep.em (_after_open): Likewise.
2485 2020-05-13 Nick Clifton <nickc@redhat.com>
2488 * lexsup.c (elf_shlib_list_options): Include the default value for
2489 the hash style in the output text.
2491 2020-05-11 Alan Modra <amodra@gmail.com>
2493 * testsuite/ld-powerpc/pcrelopt.s: Add lxvp and stxvp.
2494 * testsuite/ld-powerpc/pcrelopt.d: Update.
2496 2020-05-11 Alan Modra <amodra@gmail.com>
2498 * testsuite/ld-powerpc/callstub-1.d: Use -mpower10/-Mpower10 in
2499 place of -mfuture/-Mfuture.
2500 * testsuite/ld-powerpc/notoc2.d: Likewise.
2501 * testsuite/ld-powerpc/powerpc.exp: Likewise.
2502 * testsuite/ld-powerpc/tlsgd.d: Likewise.
2503 * testsuite/ld-powerpc/tlsie.d: Likewise.
2504 * testsuite/ld-powerpc/tlsld.d: Likewise.
2506 2020-05-11 Nick Clifton <nickc@redhat.com>
2508 * po/es.po: Updated Spanish translation.
2510 2020-05-01 Wilco Dijkstra <wdijkstr@arm.com>
2513 * testsuite/ld-aarch64/farcall-group.s: New large group test.
2514 * testsuite/ld-aarch64/farcall-group.d: New test driver.
2515 * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
2517 2020-05-01 Alan Modra <amodra@gmail.com>
2520 * ldlang.c (lang_check): Call bfd_merge_private_bfd_data for
2523 2020-05-01 Alan Modra <amodra@gmail.com>
2525 * po/BLD-POTFILES.in: Regenerate.
2527 2020-04-30 Alex Coplan <alex.coplan@arm.com>
2529 * testsuite/ld-aarch64/erratum843419_tls_ie.d: Use udf in disassembly.
2530 * testsuite/ld-aarch64/farcall-b-section.d: Likewise.
2531 * testsuite/ld-aarch64/farcall-back.d: Likewise.
2532 * testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
2534 2020-04-30 Nick Clifton <nickc@redhat.com>
2536 * testsuite/ld-elf/compress1c.d: XFAIL if thet target linker does
2537 not support the -shared command line option.
2538 * /ld-elf/compressed1c.d: Likewise.
2539 * /ld-elf/compressed1e.d: Likewise.
2540 * /ld-elf/dynamic1.d: Likewise.
2541 * /ld-elf/dynsym1.d: Likewise.
2542 * /ld-elf/ehdr_start-shared.d: Likewise.
2543 * /ld-elf/exclude3b.d: Likewise.
2544 * /ld-elf/global1.d: Likewise.
2545 * /ld-elf/hash.d: Likewise.
2546 * /ld-elf/local1.d: Likewise.
2547 * /ld-elf/mbind1b.d: Likewise.
2548 * /ld-elf/now-1.d: Likewise.
2549 * /ld-elf/now-2.d: Likewise.
2550 * /ld-elf/now-3.d: Likewise.
2551 * /ld-elf/now-4.d: Likewise.
2552 * /ld-elf/pr12975.d: Likewise.
2553 * /ld-elf/pr13177.d: Likewise.
2554 * /ld-elf/pr13195.d: Likewise.
2555 * /ld-elf/pr16322.d: Likewise.
2556 * /ld-elf/pr16498a.d: Likewise.
2557 * /ld-elf/pr16498b.d: Likewise.
2558 * /ld-elf/pr17615.d: Likewise.
2559 * /ld-elf/pr19162.d: Likewise.
2560 * /ld-elf/pr19698.d: Likewise.
2561 * /ld-elf/pr20513c.d: Likewise.
2562 * /ld-elf/pr20513d.d: Likewise.
2563 * /ld-elf/pr21389a.d: Likewise.
2564 * /ld-elf/pr21389b.d: Likewise.
2565 * /ld-elf/pr21389c.d: Likewise.
2566 * /ld-elf/pr21562a.d: Likewise.
2567 * /ld-elf/pr21562b.d: Likewise.
2568 * /ld-elf/pr21562c.d: Likewise.
2569 * /ld-elf/pr21562d.d: Likewise.
2570 * /ld-elf/pr21562e.d: Likewise.
2571 * /ld-elf/pr21562f.d: Likewise.
2572 * /ld-elf/pr21562g.d: Likewise.
2573 * /ld-elf/pr21562h.d: Likewise.
2574 * /ld-elf/pr21562i.d: Likewise.
2575 * /ld-elf/pr21562j.d: Likewise.
2576 * /ld-elf/pr21562k.d: Likewise.
2577 * /ld-elf/pr21562l.d: Likewise.
2578 * /ld-elf/pr21562m.d: Likewise.
2579 * /ld-elf/pr21562n.d: Likewise.
2580 * /ld-elf/pr21903a.d: Likewise.
2581 * /ld-elf/pr21903b.d: Likewise.
2582 * /ld-elf/pr22269b.d: Likewise.
2583 * /ld-elf/pr22393-1a.d: Likewise.
2584 * /ld-elf/pr22393-1b.d: Likewise.
2585 * /ld-elf/pr23658-1c.d: Likewise.
2586 * /ld-elf/pr25708.d: Likewise.
2587 * /ld-elf/rpath-1.d: Likewise.
2588 * /ld-elf/rpath-2.d: Likewise.
2589 * /ld-elf/runpath-1.d: Likewise.
2590 * /ld-elf/runpath-2.d: Likewise.
2591 * /ld-elf/sizeofb.d: Likewise.
2592 * /ld-elf/startofb.d: Likewise.
2593 * /ld-elf/strtab.d: Likewise.
2594 * /ld-elf/textaddr2.d: Likewise.
2595 * /ld-elf/textaddr5.d: Likewise.
2596 * /ld-elf/textaddr6.d: Likewise.
2597 * /ld-elf/unknown2.d: Likewise.
2598 * /ld-undefined/entry-3.d: Likewise.
2599 * /ld-undefined/entry-4.d: Likewise.
2600 * /ld-elf/mbind1c.d: XFAIL if the target linker does not support
2602 * /ld-elf/pie.d: Likewise.
2603 * /ld-elf/pr19539.d: Likewise.
2604 * /ld-elf/pr21903d.d: Likewise.
2605 * /ld-elf/pr22269a.d: Likewise.
2606 * /ld-elf/pr22393-1c.d: Likewise.
2607 * /ld-elf/pr22393-1d.d: Likewise.
2608 * /ld-elf/pr22423.d: Likewise.
2609 * /ld-elf/loadaddr1.d: Expect to fail on the rx-linux target.
2610 * /ld-elf/loadaddr2.d: Likewise.
2611 * /ld-elf/pr22393-1e.d: Likewise.
2612 * /ld-elf/pr22393-1f.d: Likewise.
2613 * /ld-elf/textaddr1.d: Likewise.
2614 * /ld-elf/textaddr4.d: Likewise.
2616 2020-04-30 Yoshinori Sato <ysato@users.sourceforge.jp>
2618 * emulparams/elf32rx_linux.sh: New rx-linux emulation.
2619 * emultempl/rxlinux.em: New.
2620 * configure.tgt: Add rx-linux.
2621 * Makefile.am: Add eelf32rx_linux.c
2622 * Makefile.in: Regenerate.
2624 2020-04-29 Max Filippov <jcmvbkbc@gmail.com>
2626 * testsuite/ld-xtensa/relax-diff1.d: New test definition.
2627 * testsuite/ld-xtensa/relax-diff1.s: New test source.
2628 * testsuite/ld-xtensa/relax-ndiff.d: New test definition.
2629 * testsuite/ld-xtensa/relax-ndiff.s: New test source.
2630 * testsuite/ld-xtensa/xtensa.exp: (relax-diff1)
2631 (relax-ndiff): New tests.
2633 2020-04-29 Stephen Casner <casner@acm.org>
2636 * testsuite/ld-scripts/default-script.exp: Add --image-base=0 to
2637 LDFLAGS for targets *-*-mingw64 x86_64-*-cygwin.
2638 * testsuite/ld-scripts/default-script1.d: No longer have to skip
2639 test for those targets.
2640 * testsuite/ld-scripts/default-script2.d: Likewise.
2641 * testsuite/ld-scripts/default-script3.d: Likewise.
2642 * testsuite/ld-scripts/default-script4.d: Likewise.
2644 2020-04-27 Tamar Christina <tamar.christina@arm.com>
2646 * pe-dll.c (pe_detail_list): Add pe-bigobj-i386.
2648 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
2651 * testsuite/ld-xtensa/relax-loc.d: New test definition.
2652 * testsuite/ld-xtensa/relax-loc.s: New test source.
2653 * testsuite/ld-xtensa/xtensa.exp (relax-loc): New test.
2655 2020-04-22 Fangrui Song <maskray@google.com>
2658 * ldlang.h (struct lang_input_statement_struct): Add extra_search_path.
2659 * ldlang.c (current_input_file): New.
2661 (new_afile): Add from_filename parameter. Set extra_search_path.
2662 (lang_add_input_file): Pass current_input_file to new_afile.
2663 (load_symbols): Set current_input_file.
2664 * ldfile.c (ldfile_open_file): If extra_search_path has been set
2665 then scan it for the file that needs to be opened.
2666 * ld.texi: Document the new behaviour.
2667 * NEWS: Mention the new feature.
2669 2020-04-22 Alan Modra <amodra@gmail.com>
2671 * testsuite/ld-scripts/default-script1.d: Correct mingw skip.
2672 * testsuite/ld-scripts/default-script2.d: Likewise.
2673 * testsuite/ld-scripts/default-script3.d: Likewise.
2674 * testsuite/ld-scripts/default-script4.d: Likewise.
2676 2020-04-21 Stephen Casner <casner@acm.org>
2679 * testsuite/ld-scripts/script.exp (check_script)
2680 (extract_symbol_test): Make test addresses fit in 16 bits.
2681 * testsuite/ld-scripts/memory.t: Likewise.
2682 * testsuite/ld-scripts/memory_sym.t (TXT_LENGTH): Likewise.
2683 * testsuite/ld-scripts/default-script.t (_START): Likewise.
2684 * testsuite/ld-scripts/default-script1.d: Likewise.
2685 * testsuite/ld-scripts/default-script2.d: Likewise.
2686 * testsuite/ld-scripts/default-script3.d: Likewise.
2687 * testsuite/ld-scripts/default-script4.d: Likewise.
2688 * testsuite/ld-scripts/empty-address-1.t: Likewise.
2689 * testsuite/ld-scripts/empty-address-1.d: Likewise.
2690 * testsuite/ld-scripts/empty-address-2a.d: Likewise.
2691 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
2692 * testsuite/ld-misc/start.s: .long -> .dc.a to allow relocation to
2693 fit target address size.
2694 * testsuite/ld-scripts/empty-address-1.s: Likewise.
2695 * testsuite/ld-scripts/empty-address-2.s: Likewise.
2697 2020-04-21 H.J. Lu <hongjiu.lu@intel.com>
2700 * ldelfgen.c (ldelf_map_segments): Call
2701 elf_backend_strip_zero_sized_dynamic_sections.
2702 * testsuite/ld-alpha/tlsbinr.rd: Updated.
2704 2020-04-20 Alan Modra <amodra@gmail.com>
2706 * testsuite/ld-powerpc/tlsopt5.s: Rename foo to aaaaa.
2707 * testsuite/ld-powerpc/tlsopt5.d: Adjust to suit.
2708 * testsuite/ld-powerpc/tlsopt6.d: Likewise.
2710 2020-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2712 * testsuite/ld-elf/warn1.d: Don't xfail on 64-bit Solaris/SPARC.
2713 * testsuite/ld-elf/warn2.d: Likewise.
2715 2020-04-18 H.J. Lu <hongjiu.lu@intel.com>
2717 * testsuite/ld-elf/elf.exp (ASFLAGS): Add "--defsym NO_SET=1" for
2719 * testsuite/ld-elf/pr19789.s: Use "=" if NO_SET is defined.
2721 2020-04-16 Stephen Casner <casner@acm.org>
2724 * testsuite/ld-scripts/pr18963.t: Reduce section sizes to fit in
2725 16-bit address space.
2726 * testsuite/ld-scripts/pr18963.d: Likewise.
2728 2020-04-17 Juan Manuel Guerrero <juan.guerrero@gmx.de>
2729 Jan W. Jagersma <jwjagersma@gmail.com>
2731 * scripttempl/i386go32.sc: Provide symbol _environ. Link in
2732 .ctors and .dtors. Discard LTO sections.
2734 2020-04-17 Nick Clifton <nickc@redhat.com>
2736 * testsuite/config/default.exp: If not already set then create the
2737 CCC_OVERRIDE_OPTIONS environment variable to help when running the
2738 testsuite with clang.
2739 * testsuite/ld-elf/pr22269-1.c: Add a missing return statement.
2740 * testsuite/ld-elfvers/vers.exp: Add checks to detect if files
2741 were built before attempting to copy them.
2743 2020-04-15 Fangrui Song <maskray@google.com>
2746 * lexsup.c (parse_args): Change RM_GENERATE_WARNING and
2747 RM_GENERATE_ERROR to RM_DIAGNOSE.
2748 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Change
2749 RM_GENERATE_ERROR to RM_DIAGNOSE.
2750 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Likewise.
2752 2020-04-14 Stephen Casner <casner@acm.org>
2755 * emulparams/pdp11.sh (SCRIPT_NAME): Change to pdp11.
2756 (EXTRA_EM_FILE): New, add emulation file pdp11.
2757 * scripttempl/pdp11.sc: New, derived from aout.sc without
2758 irrelevant input sections.
2759 * emultempl/pdp11.em (_add_options, _handle_option)
2760 (_list_options): New. Add options -z, --imagic for pdp11-aout.
2761 (_before_parse): Make --omagic be default instead of --nmagic.
2762 (_get_script): Modify special-case linker script for --imagic.
2763 * lexsup.c (parse_args): Explictly set config.text_read_only for -n.
2764 * ld.texi (Options): Add documentation of PDP11-specific options.
2765 (Options): Fix unrelated typo to --no-compact-branches.
2766 * gen-doc.texi: @set PDP11.
2767 * testsuite/ld-pdp11/pdp11.exp: New, start pdp11 testing.
2768 * testsuite/ld-pdp11/sections.s: New, source for options tests.
2769 * testsuite/ld-pdp11/imagic.d: New, test --imagic format.
2770 * testsuite/ld-pdp11/imagicz.d: New, test -z (imagic) format.
2771 * testsuite/ld-pdp11/nmagic.d: New, test --nmagic format.
2772 * testsuite/ld-pdp11/omagic.d: New, test --omagic format.
2774 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
2777 * testsuite/ld-arm/armthumb-lib.sym: Updated.
2778 * testsuite/ld-arm/farcall-mixed-app.sym: Likewise.
2779 * testsuite/ld-arm/farcall-mixed-app2.sym: Likewise.
2780 * testsuite/ld-arm/fdpic-main-m.sym: Likewise.
2781 * testsuite/ld-arm/fdpic-main.sym: Likewise.
2782 * testsuite/ld-arm/fdpic-shared-m.sym: Likewise.
2783 * testsuite/ld-arm/fdpic-shared.sym: Likewise.
2784 * testsuite/ld-arm/mixed-app.sym: Likewise.
2785 * testsuite/ld-arm/mixed-lib.sym: Likewise.
2786 * testsuite/ld-arm/preempt-app.sym: Likewise.
2787 * testsuite/ld-elf/hash.d: Likewise.
2788 * testsuite/ld-elf/pr13195.d: Likewise.
2789 * testsuite/ld-elfvsb/hidden2.d: Likewise.
2790 * testsuite/ld-mips-elf/hash2.d: Likewise.
2792 2020-04-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2794 * testsuite/ld-shared/shared.exp: Remove dangling comments.
2795 xfail shared non PIC tests on Solaris.
2797 2020-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2799 * testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIC on sparc*-*-*.
2801 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
2803 * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): Replace
2804 nopie with available.
2806 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
2808 * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): New.
2809 Set to "-fcf-protection=none" if target compiler supports it.
2810 * testsuite/ld-srec/srec.exp: Add $NOCF_PROTECTION_CFLAGS to
2812 * testsuite/ld-x86-64/x86-64.exp: Add $NOCF_PROTECTION_CFLAGS
2815 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
2817 * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Compile with
2819 (check_pr25749b): Likewise.
2821 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2823 * testsuite/ld-ifunc/ifunc-10-i386.d: Remove *-*-solaris2* from
2825 * ifunc-11-i386.d: Likewise.
2826 * ifunc-12-i386.d: Likewise.
2827 * ifunc-13-i386.d: Likewise.
2828 * ifunc-14a-i386.d: Likewise.
2829 * ifunc-14b-i386.d: Likewise.
2830 * ifunc-14c-i386.d: Likewise.
2831 * ifunc-14d-i386.d: Likewise.
2832 * ifunc-14e-i386.d: Likewise.
2833 * ifunc-14f-i386.d: Likewise.
2834 * ifunc-15-i386.d: Likewise.
2835 * ifunc-16-i386-now.d: Likewise.
2836 * ifunc-16-i386.d: Likewise.
2837 * ifunc-17a-i386.d: Likewise.
2838 * ifunc-17b-i386.d: Likewise.
2839 * ifunc-18a-i386.d: Likewise.
2840 * ifunc-18b-i386.d: Likewise.
2841 * ifunc-19a-i386.d: Likewise.
2842 * ifunc-19b-i386.d: Likewise.
2843 * ifunc-2-i386-now.d: Likewise.
2844 * ifunc-2-i386.d: Likewise.
2845 * ifunc-2-local-i386-now.d: Likewise.
2846 * ifunc-2-local-i386.d: Likewise.
2847 * ifunc-20-i386.d: Likewise.
2848 * ifunc-21-i386.d: Likewise.
2849 * ifunc-22-i386.d: Likewise.
2850 * ifunc-5a-i386.d: Likewise.
2851 * ifunc-5a-local-i386.d: Likewise.
2852 * ifunc-5b-i386.d: Likewise.
2853 * ifunc-5b-local-i386.d: Likewise.
2854 * ifunc-5r-local-i386.d: Likewise.
2855 * ifunc-6a-i386.d: Likewise.
2856 * ifunc-6b-i386.d: Likewise.
2857 * ifunc-7a-i386.d: Likewise.
2858 * ifunc-7b-i386.d: Likewise.
2859 * ifunc-8-i386.d: Likewise.
2860 * ifunc-9-i386.d: Likewise.
2861 * pr17154-i386-now.d: Likewise.
2862 * pr17154-i386.d: Likewise.
2864 * ifunc-23a-x86.d: Remove notarget.
2865 * ifunc-24a-x86.d: Likewise.
2866 * ifunc-25a-x86.d: Likewise.
2868 2020-04-02 Nick Clifton <nickc@redhat.com>
2871 * ldfile.c (ldfile_open_file): Fix typo in warning message.
2873 2020-04-01 H.J. Lu <hongjiu.lu@intel.com>
2877 * testsuite/ld-elf/linux-x86.exp: Run ld/25749 tests.
2878 * testsuite/ld-elf/pr25749-1.c: New file.
2879 * testsuite/ld-elf/pr25749-1a.c: Likewise.
2880 * testsuite/ld-elf/pr25749-1b.c: Likewise.
2881 * testsuite/ld-elf/pr25749-1b.err: Likewise.
2882 * testsuite/ld-elf/pr25749-1c.c: Likewise.
2883 * testsuite/ld-elf/pr25749-1d.c: Likewise.
2884 * testsuite/ld-elf/pr25749-2.c: Likewise.
2885 * testsuite/ld-elf/pr25749-2a.s: Likewise.
2886 * testsuite/ld-elf/pr25749-2b.s: Likewise.
2887 * testsuite/ld-elf/pr25749.rd: Likewise.
2888 * testsuite/ld-elf/pr25754-1a.c: Likewise.
2889 * testsuite/ld-elf/pr25754-1b.s: Likewise.
2890 * testsuite/ld-elf/pr25754-2a.c: Likewise.
2891 * testsuite/ld-elf/pr25754-2b.err: Likewise.
2892 * testsuite/ld-elf/pr25754-2b.s: Likewise.
2893 * testsuite/ld-elf/pr25754-3a.c: Likewise.
2894 * testsuite/ld-elf/pr25754-3b.s: Likewise.
2895 * testsuite/ld-elf/pr25754-4a.c: Likewise.
2896 * testsuite/ld-elf/pr25754-4b.s: Likewise.
2897 * testsuite/ld-elf/pr25754-4c.s: Likewise.
2898 * testsuite/ld-elf/pr25754-5a.c: Likewise.
2899 * testsuite/ld-elf/pr25754-5b.s: Likewise.
2900 * testsuite/ld-elf/pr25754-5c.s: Likewise.
2901 * testsuite/ld-elf/pr25754-6a.c: Likewise.
2902 * testsuite/ld-elf/pr25754-6b.s: Likewise.
2903 * testsuite/ld-x86-64/pr19609-6a.d: Don't expect linker error.
2905 2020-04-01 Tamar Christina <tamar.christina@arm.com>
2908 * testsuite/ld-arm/arm-elf.exp (thumb-plt, thumb-plt-got): Skip for NaCL.
2910 2020-04-01 Nick Clifton <nickc@redhat.com>
2913 * ldfile.c (ldfile_open_file): If a search for a library fails,
2914 but there is a file that would match if it had a "lib" prefix to
2915 its name, then tell the user.
2917 2020-04-01 Tamar Christina <tamar.christina@arm.com>
2920 * testsuite/ld-arm/arm-elf.exp (thumb-plt-got): New.
2921 * testsuite/ld-arm/thumb-plt-got.d: New test.
2923 2020-04-01 Tamar Christina <tamar.christina@arm.com>
2925 * testsuite/ld-arm/arm-elf.exp (thumb-plt): New.
2926 * testsuite/ld-arm/thumb-plt.d: New test.
2927 * testsuite/ld-arm/thumb-plt.s: New test.
2929 2020-04-01 Hans-Peter Nilsson <hp@bitrange.com>
2931 * testsuite/ld-scripts/defined4.d: Don't xfail mmix-*-*.
2933 2020-03-30 Nick Clifton <nickc@redhat.com>
2936 * emultempl/pe.em (after_open): Replace initialisation of the
2937 insert_timestamp field in the pe_data structure with an
2938 initialisation of the timestamp field.
2939 * emultemp/pep.em: Likewise.
2940 * pe-dll.c (fill_edata): Use the timestamp field in the pe_data
2941 structure instead of the insert_timestamp field.
2943 2020-03-28 H.J. Lu <hongjiu.lu@intel.com>
2946 * emulparams/elf_i386_ldso.sh (COMMONPAGESIZE): New.
2947 * testsuite/ld-elf/shared.exp:Don't xfail pr20995-2 tests for
2950 2020-03-27 H.J. Lu <hongjiu.lu@intel.com>
2953 * testsuite/ld-elf/shared.exp: Xfail pr20995-2 tests for Solaris.
2955 2020-03-27 H.J. Lu <hongjiu.lu@intel.com>
2958 * testsuite/ld-ifunc/ifunc-23a-x86.d: Add notarget for Solaris.
2959 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
2960 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
2962 2020-03-25 Alan Modra <amodra@gmail.com>
2964 * testsuite/ld-elf/compress1c.d: xfail h8300.
2965 * testsuite/ld-elf/compressed1c.d: Likewise.
2966 * testsuite/ld-elf/compressed1e.d: Likewise.
2967 * testsuite/ld-elf/dynamic1.d: Likewise.
2968 * testsuite/ld-elf/dynsym1.d: Likewise.
2969 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
2970 * testsuite/ld-elf/exclude3b.d: Likewise.
2971 * testsuite/ld-elf/export-class.exp: Don't run without -shared support.
2972 * testsuite/ld-elf/global1.d: xfail h8300.
2973 * testsuite/ld-elf/hash.d: Likewise.
2974 * testsuite/ld-elf/loadaddr1.d: Likewise.
2975 * testsuite/ld-elf/loadaddr2.d: Likewise.
2976 * testsuite/ld-elf/local1.d: Likewise.
2977 * testsuite/ld-elf/mbind1b.d: Likewise.
2978 * testsuite/ld-elf/mbind1c.d: Likewise.
2979 * testsuite/ld-elf/now-1.d: Likewise.
2980 * testsuite/ld-elf/now-2.d: Likewise.
2981 * testsuite/ld-elf/now-3.d: Likewise.
2982 * testsuite/ld-elf/now-4.d: Likewise.
2983 * testsuite/ld-elf/pie.d: Likewise.
2984 * testsuite/ld-elf/pr12975.d: Likewise.
2985 * testsuite/ld-elf/pr13177.d: Likewise.
2986 * testsuite/ld-elf/pr13195.d: Likewise.
2987 * testsuite/ld-elf/pr16322.d: Likewise.
2988 * testsuite/ld-elf/pr16498a.d: Likewise.
2989 * testsuite/ld-elf/pr16498b.d: Likewise.
2990 * testsuite/ld-elf/pr17615.d: Likewise.
2991 * testsuite/ld-elf/pr19162.d: Likewise.
2992 * testsuite/ld-elf/pr19539.d: Likewise.
2993 * testsuite/ld-elf/pr19617a.d: Likewise.
2994 * testsuite/ld-elf/pr19698.d: Likewise.
2995 * testsuite/ld-elf/pr20513c.d: Likewise.
2996 * testsuite/ld-elf/pr20513d.d: Likewise.
2997 * testsuite/ld-elf/pr21389a.d: Likewise.
2998 * testsuite/ld-elf/pr21389b.d: Likewise.
2999 * testsuite/ld-elf/pr21389c.d: Likewise.
3000 * testsuite/ld-elf/pr21562a.d: Likewise.
3001 * testsuite/ld-elf/pr21562b.d: Likewise.
3002 * testsuite/ld-elf/pr21562c.d: Likewise.
3003 * testsuite/ld-elf/pr21562d.d: Likewise.
3004 * testsuite/ld-elf/pr21562e.d: Likewise.
3005 * testsuite/ld-elf/pr21562f.d: Likewise.
3006 * testsuite/ld-elf/pr21562g.d: Likewise.
3007 * testsuite/ld-elf/pr21562h.d: Likewise.
3008 * testsuite/ld-elf/pr21562i.d: Likewise.
3009 * testsuite/ld-elf/pr21562j.d: Likewise.
3010 * testsuite/ld-elf/pr21562k.d: Likewise.
3011 * testsuite/ld-elf/pr21562l.d: Likewise.
3012 * testsuite/ld-elf/pr21562m.d: Likewise.
3013 * testsuite/ld-elf/pr21562n.d: Likewise.
3014 * testsuite/ld-elf/pr21903a.d: Likewise.
3015 * testsuite/ld-elf/pr21903b.d: Likewise.
3016 * testsuite/ld-elf/pr21903d.d: Likewise.
3017 * testsuite/ld-elf/pr22269a.d: Likewise.
3018 * testsuite/ld-elf/pr22269b.d: Likewise.
3019 * testsuite/ld-elf/pr22393-1a.d: Likewise.
3020 * testsuite/ld-elf/pr22393-1b.d: Likewise.
3021 * testsuite/ld-elf/pr22393-1c.d: Likewise.
3022 * testsuite/ld-elf/pr22393-1d.d: Likewise.
3023 * testsuite/ld-elf/pr22393-1e.d: Likewise.
3024 * testsuite/ld-elf/pr22393-1f.d: Likewise.
3025 * testsuite/ld-elf/pr22423.d: Likewise.
3026 * testsuite/ld-elf/pr22450.d: xfail avr, crx, h8300, ip2k, m68hc11,
3028 * testsuite/ld-elf/pr23658-1c.d: xfail h8300.
3029 * testsuite/ld-elf/pr25708.d: xfail h8300 and hppa64.
3030 * testsuite/ld-elf/rpath-1.d: xfail h8300.
3031 * testsuite/ld-elf/rpath-2.d: Likewise.
3032 * testsuite/ld-elf/runpath-1.d: Likewise.
3033 * testsuite/ld-elf/runpath-2.d: Likewise.
3034 * testsuite/ld-elf/sizeofb.d: Likewise.
3035 * testsuite/ld-elf/startofb.d: Likewise.
3036 * testsuite/ld-elf/strtab.d: Likewise.
3037 * testsuite/ld-elf/textaddr1.d: Likewise.
3038 * testsuite/ld-elf/textaddr2.d: Likewise.
3039 * testsuite/ld-elf/textaddr4.d: Likewise.
3040 * testsuite/ld-elf/textaddr5.d: Likewise.
3041 * testsuite/ld-elf/textaddr6.d: Likewise.
3042 * testsuite/ld-elf/unknown2.d: Likewise.
3043 * testsuite/ld-undefined/entry-3.d: Likewise.
3044 * testsuite/ld-undefined/entry-4.d: Likewise.
3045 * testsuite/ld-h8300/h8300.exp: Pass appropriate ld -m option.
3046 * testsuite/ld-h8300/gcsection.d: Remove ld -m option and relax
3048 * testsuite/ld-h8300/relax-2.d: Likewise.
3049 * testsuite/ld-h8300/relax-3.d: Likewise.
3050 * testsuite/ld-h8300/relax-4.d: Likewise.
3051 * testsuite/ld-h8300/relax-5.d: Likewise.
3052 * testsuite/ld-h8300/relax-6.d: Likewise.
3053 * testsuite/ld-h8300/relax-7.d: Likewise.
3054 * testsuite/ld-h8300/relax.d: Relax file format match.
3056 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
3059 * testsuite/ld-elf/pr25708.d: New file.
3061 2020-03-23 Alan Modra <amodra@gmail.com>
3063 * Makefile.am (ALL_EMULATION_SOURCES): Reinstate ei386aout.c.
3064 Include ei386aout dep file.
3065 * Makefile.in: Regenerate.
3066 * po/BLD-POTFILES.in: Regenerate.
3068 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
3070 * testsuite/ld-plugin/lto.exp (lto_link_tests): Run PR ld/25355
3071 test only for GCC 10 or newer.
3073 2020-03-20 Alan Modra <amodra@gmail.com>
3075 * testplug.c (parse_symdefstr): Use %hhi to read sym->def, and
3077 * testplug2.c (parse_symdefstr): Likewise.
3078 * testplug3.c (parse_symdefstr): Likewise.
3079 * testplug4.c (parse_symdefstr): Likewise.
3081 2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
3083 * testsuite/ld-arm/non-contiguous-arm4.d: Fix expected output.
3084 * testsuite/ld-powerpc/non-contiguous-powerpc.d: Likewise.
3086 2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
3088 * emultempl/xtensaelf.em: Emit a fatal error message
3089 instead of calling abort.
3090 * ldlang.c: Likewise.
3092 2020-03-14 Alan Modra <amodra@gmail.com>
3094 * testsuite/ld-elf/non-contiguous.d: Don't xfail generic ELF
3095 targets. Don't skip xtensa, xfail instead.
3097 2020-03-13 Christophe Lyon <christophe.lyon@linaro.org>
3099 * ldlang.c (lang_add_section): Add support for
3100 non_contiguous_regions.
3101 (size_input_section): Likewise.
3102 (lang_size_sections_1): Likewise.
3103 (process_insert_statements): Likewise.
3104 * ldlex.h (option_values): Add OPTION_NON_CONTIGUOUS_REGIONS and
3105 OPTION_NON_CONTIGUOUS_REGIONS_WARNINGS.
3106 * lexsup.c (ld_options): Add entries for
3107 --enable-non-contiguous-regions and
3108 --enable-non-contiguous-regions-warnings.
3109 (parse_args): Handle it.
3110 * NEWS: Add --enable-non-contiguous-regions and
3111 --enable-non-contiguous-regions-warnings.
3112 * ld.texi: Add --enable-non-contiguous-regions and
3113 --enable-non-contiguous-regions-warnings documentation.
3114 * emultempl/armelf.em (elf32_arm_add_stub_section): Add
3115 SEC_LINKER_CREATED flag.
3116 * emultempl/xtensaelf.em (ld_build_required_section_dependence):
3117 Emit an error when --enable-non-contiguous-regions is used.
3118 * testsuite/ld-elf/non-contiguous.d: New.
3119 * testsuite/ld-elf/non-contiguous.ld: New.
3120 * testsuite/ld-elf/non-contiguous.s: New.
3121 * testsuite/ld-arm/arm-elf.exp: Run the new tests.
3122 * testsuite/ld-arm/arm-elf/non-contiguous-arm.s: New.
3123 * testsuite/ld-arm/arm-elf/non-contiguous-arm.d: New.
3124 * testsuite/ld-arm/arm-elf/non-contiguous-arm.ld: New.
3125 * testsuite/ld-arm/arm-elf/non-contiguous-arm2.d: New.
3126 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
3127 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.d: New.
3128 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
3129 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.d: New.
3130 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.ld: New.
3131 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.d: New.
3132 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.ld: New.
3133 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.d: New.
3134 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.ld: New.
3135 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
3136 * testsuite/ld-powerpc/non-contiguous-powerpc.d: New.
3137 * testsuite/ld-powerpc/non-contiguous-powerpc.ld: New.
3138 * testsuite/ld-powerpc/non-contiguous-powerpc.sd: New.
3139 * testsuite/ld-powerpc/non-contiguous-powerpc64.d: New.
3141 2020-03-13 H.J. Lu <hongjiu.lu@intel.com>
3144 * emulparams/elf32_x86_64.sh: Use static.sh.
3145 * emulparams/elf_i386.sh: Likewise.
3146 * emulparams/elf_x86_64.sh: Likewise.
3147 * emulparams/static.sh: New file.
3148 * emultempl/elf-x86.em: Include "ldlex.h".
3149 * testsuite/ld-elf/pr24920.err: New file.
3150 * testsuite/ld-elf/linux-x86.exp: Run ld/24920 tests.
3152 2020-03-13 Christian Eggers <ceggers@gmx.de>
3154 * ldexp.c (fold_name): Return SIZEOF_HEADERS in bytes.
3156 2020-03-11 Alan Modra <amodra@gmail.com>
3158 * ldelf.c (elf_orphan_compatible): Return false when two sections
3159 have differing SHF_MASKPROC or SHF_MASKOS flags.
3161 2020-03-05 Alan Modra <amodra@gmail.com>
3164 * ldlang.c (lang_size_sections_1): Don't report changes on
3165 second and subsequent iterations that make no change in
3166 alignment from that already reported.
3168 2020-03-05 Alan Modra <amodra@gmail.com>
3171 * ldlang.c (lang_sizing_iteration): New static var.
3172 (lang_size_sections_1): Warn about no memory region only on first
3173 iteration. Warn about changing start address on first iteration
3174 then any delta from that on subsequent iterations. Report a signed
3176 (one_lang_size_sections_pass): Increment lang_sizing_iteration.
3178 2020-03-03 Nick Clifton <nickc@redhat.com>
3181 * ld.texi (Options): Update the description of the --rpath-link
3184 2020-03-02 Alan Modra <amodra@gmail.com>
3186 * plugin.c (plugin_object_p): Return a bfd_cleanup.
3187 (plugin_cleanup): New function.
3189 2020-03-01 H.J. Lu <hongjiu.lu@intel.com>
3192 * plugin.c (plugin_object_p): Copy the no_export field to the IR
3194 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Add
3196 * testsuite/ld-plugin/pr25618.d: New file.
3197 * testsuite/ld-plugin/pr25618a.cc: Likewise.
3198 * testsuite/ld-plugin/pr25618a.h: Likewise.
3199 * testsuite/ld-plugin/pr25618b.cc: Likewise.
3200 * testsuite/ld-plugin/pr25618b.h: Likewise.
3202 2020-02-27 Alan Modra <amodra@gmail.com>
3205 * testsuite/ld-mmix/b-fixo2.d: Adjust for .data change.
3206 * testsuite/ld-mmix/sec-2.d: Likewise.
3207 * testsuite/ld-mmix/sec-3.d: Likewise.
3208 * testsuite/ld-mmix/sec-4.d: Likewise.
3209 * testsuite/ld-mmix/spec802.d: Likewise.
3210 * testsuite/ld-mmix/spec803.d: Likewise.
3211 * testsuite/ld-mmix/spec804.d: Likewise.
3212 * testsuite/ld-mmix/spec805.d: Likewise.
3213 * testsuite/ld-mmix/spec806.d: Likewise.
3214 * testsuite/ld-mmix/spec807.d: Likewise.
3215 * testsuite/ld-mmix/spec808.d: Likewise.
3217 2020-02-26 H.J. Lu <hongjiu.lu@intel.com>
3220 * testsuite/ld-plugin/lto.exp: Run PR ld/25593 tests.
3221 * testsuite/ld-plugin/pr25593.d: New file.
3222 * testsuite/ld-plugin/pr25593a-1.c: Likewise.
3223 * testsuite/ld-plugin/pr25593a-2.c: Likewise.
3224 * testsuite/ld-plugin/pr25593b.c: Likewise.
3225 * testsuite/ld-plugin/pr25593c.c: Likewise.
3226 * testsuite/ld-plugin/pr25593d.c: Likewise.
3227 * testsuite/ld-plugin/pr25593e.c: Likewise.
3229 2020-02-26 Alan Modra <amodra@gmail.com>
3231 * emultempl/cskyelf.em: Indent labels correctly.
3232 * ldfile.c: Likewise.
3233 * ldlang.c: Likewise.
3234 * plugin.c: Likewise.
3236 2020-02-26 Alan Modra <amodra@gmail.com>
3239 * ldelf.c (ldelf_try_needed): Add DT_NEEDED lib to input_bfds.
3240 (ldelf_after_open): Save state of input_bfds list before loading
3241 DT_NEEDED libs. Traverse input_bfds list adding DT_NEEDED tags.
3242 Restore input_bfds list.
3243 * testsuite/ld-cris/gotplt1.d: Adjust for changed .dynstr order.
3245 2020-02-24 Nick Clifton <nickc@redhat.com>
3247 * po/fr.po: Update French translation.
3249 2020-02-22 Alan Modra <amodra@gmail.com>
3252 * NEWS: Mention better "PHDR segment not covered by LOAD segment"
3255 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
3258 * emultempl/z80.em: Remove machine compatability checking.
3260 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
3263 * testsuite/ld-z80/arch_ez80_adl.d: Update command line.
3264 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
3265 * testsuite/ld-z80/arch_r800.d: Likewise.
3266 * testsuite/ld-z80/arch_z180.d: Likewise.
3267 * testsuite/ld-z80/arch_z80n.d: Likewise.
3268 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
3269 * testsuite/ld-z80/comb_arch_z180_z80.d: Likewise.
3270 * testsuite/ld-z80/comb_arch_z80_ez80.d: Likewise.
3271 * testsuite/ld-z80/comb_arch_z80_z180.d: Likewise.
3272 * testsuite/ld-z80/comb_arch_z80_z80n.d: Likewise.
3273 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
3274 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
3275 * testsuite/ld-z80/relocs_f_ez80.d: Likewise.
3276 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
3277 * testsuite/ld-z80/relocs_f_z80n.d: Likewise.
3279 2020-02-19 Alan Modra <amodra@gmail.com>
3281 * testsuite/ld-plugin/pr25355.d: Allow alpha-linux nm result.
3283 2020-02-10 H.J. Lu <hongjiu.lu@intel.com>
3286 * testsuite/ld-plugin/lto.exp: Run PR binutils/25355 test.
3287 * testsuite/ld-plugin/pr25355.c: New file.
3288 * testsuite/ld-plugin/pr25355.d: Likewise.
3289 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Support compile
3292 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
3294 * testsuite/ld-unique/unique.exp (contains_unique_symbol): Updated.
3296 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
3299 * emulparams/elf32z80.sh: Use z80 emulation.
3300 * emultempl/z80.em: Make generic to both COFF and ELF Z80 emulations.
3301 * emultempl/z80elf.em: Delete.
3302 * testsuite/ld-elf/pr22450.d: Expect to fail for the Z80.
3303 * testsuite/ld-elf/sec64k.exp: Fix Z80 assembly.
3304 * testsuite/ld-unique/pr21529.s: Avoid register name conflict.
3305 * testsuite/ld-unique/unique.s: Likewise.
3306 * testsuite/ld-unique/unique_empty.s: Likewise.
3307 * testsuite/ld-unique/unique_shared.s: Likewise.
3308 * testsuite/ld-unique/unique.d: Updated expected output.
3309 * testsuite/ld-z80/arch_z80n.d: New file.
3310 * testsuite/ld-z80/comb_arch_z80_z80n.d: New file.
3311 * testsuite/ld-z80/labels.s: Add more labels.
3312 * testsuite/ld-z80/relocs.s: Add more reloc tests.
3313 * testsuite/ld-z80/relocs_f_z80n.d: New file
3315 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
3318 * testsuite/ld-elf/pr25022.d: Xfail more targets which don't use
3319 ldelf_before_place_orphans.
3321 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
3324 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
3325 before_place_orphans_default.
3326 * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
3327 * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
3328 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
3329 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
3330 * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
3331 * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
3332 * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
3333 * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
3334 * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
3335 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Use
3336 ldelf_before_place_orphans.
3337 * ldelf.c (ldelf_before_place_orphans): New.
3338 * ldelf.h (ldelf_before_place_orphans): Likewise.
3339 * ldemul.c (ldemul_before_place_orphans): Likewise.
3340 (before_place_orphans_default): Likewise.
3341 * ldemul.h (ldemul_before_place_orphans): Likewise.
3342 (before_place_orphans_default): Likewise.
3343 (ld_emulation_xfer_struct): Add before_place_orphans.
3344 * ldlang.c (lang_process): Call ldemul_before_place_orphans
3345 before lang_place_orphans.
3346 * testsuite/ld-elf/pr25022.d: New file.
3347 * testsuite/ld-elf/pr25022.s: Likewise.
3348 * testsuite/ld-elf/pr25022.t: Likewise.
3350 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
3353 * testsuite/ld-elf/pr25490-1.d: New file.
3354 * testsuite/ld-elf/pr25490-1.s: Likewise.
3356 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
3361 * testsuite/ld-elf/elf.exp: Run PR ld/25490 tests.
3362 * testsuite/ld-elf/pr24526.d: New file.
3363 * testsuite/ld-elf/pr24526.s: Likewise.
3364 * testsuite/ld-elf/pr25021.d: Likewise.
3365 * testsuite/ld-elf/pr25021.s: Likewise.
3366 * testsuite/ld-elf/pr25490-2-16.rd: Likewise.
3367 * testsuite/ld-elf/pr25490-2-32.rd: Likewise.
3368 * testsuite/ld-elf/pr25490-2-64.rd: Likewise.
3369 * testsuite/ld-elf/pr25490-2.s: Likewise.
3370 * testsuite/ld-elf/pr25490-3-16.rd: Likewise.
3371 * testsuite/ld-elf/pr25490-3-32.rd: Likewise.
3372 * testsuite/ld-elf/pr25490-3-64.rd: Likewise.
3373 * testsuite/ld-elf/pr25490-3.s: Likewise.
3374 * testsuite/ld-elf/pr25490-4-16.rd: Likewise.
3375 * testsuite/ld-elf/pr25490-4-32.rd: Likewise.
3376 * testsuite/ld-elf/pr25490-4-64.rd: Likewise.
3377 * testsuite/ld-elf/pr25490-4.s: Likewise.
3378 * testsuite/ld-elf/pr25490-5-16.rd: Likewise.
3379 * testsuite/ld-elf/pr25490-5-32.rd: Likewise.
3380 * testsuite/ld-elf/pr25490-5-64.rd: Likewise.
3381 * testsuite/ld-elf/pr25490-5.s: Likewise.
3382 * testsuite/ld-elf/pr25490-6-16.rd: Likewise.
3383 * testsuite/ld-elf/pr25490-6-32.rd: Likewise.
3384 * testsuite/ld-elf/pr25490-6-64.rd: Likewise.
3385 * testsuite/ld-elf/pr25490-6.s: Likewise.
3387 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
3389 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark
3390 z80 as not supported.
3392 2020-02-06 Alan Modra <amodra@gmail.com>
3394 * testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying
3395 targets that don't support ifunc rather than ones that do.
3396 (contains_irelative_reloc): Match R_PARISC_IPLT.
3397 * testsuite/ld-ifunc/lib.c: Don't use .set in asm.
3398 * testsuite/ld-ifunc/ifunc-23-x86.s,
3399 * testsuite/ld-ifunc/ifunc-24-x86.s,
3400 * testsuite/ld-ifunc/ifunc-25-x86.s,
3401 * testsuite/ld-ifunc/ifunc-4-local-x86.s,
3402 * testsuite/ld-ifunc/ifunc-4-x86.s: Define _main.
3403 * testsuite/ld-ifunc/ifunc-10-i386.d,
3404 * testsuite/ld-ifunc/ifunc-11-i386.d,
3405 * testsuite/ld-ifunc/ifunc-12-i386.d,
3406 * testsuite/ld-ifunc/ifunc-13-i386.d,
3407 * testsuite/ld-ifunc/ifunc-14a-i386.d,
3408 * testsuite/ld-ifunc/ifunc-14b-i386.d,
3409 * testsuite/ld-ifunc/ifunc-14c-i386.d,
3410 * testsuite/ld-ifunc/ifunc-14d-i386.d,
3411 * testsuite/ld-ifunc/ifunc-14e-i386.d,
3412 * testsuite/ld-ifunc/ifunc-14f-i386.d,
3413 * testsuite/ld-ifunc/ifunc-15-i386.d,
3414 * testsuite/ld-ifunc/ifunc-16-i386-now.d,
3415 * testsuite/ld-ifunc/ifunc-16-i386.d,
3416 * testsuite/ld-ifunc/ifunc-17a-i386.d,
3417 * testsuite/ld-ifunc/ifunc-17b-i386.d,
3418 * testsuite/ld-ifunc/ifunc-18a-i386.d,
3419 * testsuite/ld-ifunc/ifunc-18b-i386.d,
3420 * testsuite/ld-ifunc/ifunc-19a-i386.d,
3421 * testsuite/ld-ifunc/ifunc-19b-i386.d,
3422 * testsuite/ld-ifunc/ifunc-2-i386-now.d,
3423 * testsuite/ld-ifunc/ifunc-2-i386.d,
3424 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
3425 * testsuite/ld-ifunc/ifunc-2-local-i386.d,
3426 * testsuite/ld-ifunc/ifunc-20-i386.d,
3427 * testsuite/ld-ifunc/ifunc-21-i386.d,
3428 * testsuite/ld-ifunc/ifunc-22-i386.d,
3429 * testsuite/ld-ifunc/ifunc-26.d,
3430 * testsuite/ld-ifunc/ifunc-5a-i386.d,
3431 * testsuite/ld-ifunc/ifunc-5a-local-i386.d,
3432 * testsuite/ld-ifunc/ifunc-5b-i386.d,
3433 * testsuite/ld-ifunc/ifunc-5b-local-i386.d,
3434 * testsuite/ld-ifunc/ifunc-5r-local-i386.d,
3435 * testsuite/ld-ifunc/ifunc-6a-i386.d,
3436 * testsuite/ld-ifunc/ifunc-6b-i386.d,
3437 * testsuite/ld-ifunc/ifunc-7a-i386.d,
3438 * testsuite/ld-ifunc/ifunc-7b-i386.d,
3439 * testsuite/ld-ifunc/ifunc-8-i386.d,
3440 * testsuite/ld-ifunc/ifunc-9-i386.d,
3441 * testsuite/ld-ifunc/pr17154-i386-now.d,
3442 * testsuite/ld-ifunc/pr17154-i386.d: xfail lynxos, nto, and solaris.
3444 2020-02-06 Alan Modra <amodra@gmail.com>
3446 * testsuite/lib/ld-lib.exp (is_generic): Delete.
3447 * testsuite/ld-unique/unique.exp: Exclude tic6x.
3449 2020-02-06 Alan Modra <amodra@gmail.com>
3451 * configure.tgt (i[3-7]86-*-moss*): Don't clear targ_extra_ofiles.
3452 (i[3-7]86-*-openbsd*, x86_64-*-openbsd*): Add.
3454 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
3457 * testsuite/ld-i386/pr22001-1c.S: Use "unique,N" in .section
3459 * testsuite/ld-i386/tls-gd1.S: Likewise.
3460 * testsuite/ld-x86-64/pr21481b.S: Likewise.
3462 2020-01-30 Jan Beulich <jbeulich@suse.com>
3464 * ld.texi: Remove space between @option and brace.
3466 2020-01-29 Alan Modra <amodra@gmail.com>
3469 * ldelf.c (ldelf_check_ld_so_conf): Add prefix parameter and
3471 (ldelf_after_open): Add prefix parameter.
3472 * ldelf.h (ldelf_after_open): Update prototype.
3473 * emultempl/elf.em (gld${EMULATION_NAME}_after_open): Pass $prefix
3474 to ldelf_after_open.
3475 * Makefile.am: Correct z80 dependencies.
3476 * Makefile.in: Regenerate.
3478 2020-01-28 Alan Modra <amodra@gmail.com>
3480 * ldexp.c (fold_name): Don't print bfd_link_hash_lookup failed
3483 2020-01-27 Alan Modra <amodra@gmail.com>
3485 * testsuite/ld-elfvers/vers.exp: Replace case statements with
3487 * testsuite/ld-ifunc/ifunc.exp: Likewise.
3488 * testsuite/ld-unique/unique.exp: Likewise.
3490 2020-01-27 H.J. Lu <hongjiu.lu@intel.com>
3491 Alan Modra <amodra@gmail.com>
3494 * testsuite/ld-elf/pr25458.map: New file.
3495 * testsuite/ld-elf/pr25458.rd: Likewise.
3496 * testsuite/ld-elf/pr25458a.s: Likewise.
3497 * testsuite/ld-elf/pr25458b.s: Likewise.
3498 * testsuite/ld-elf/shared.exp: Run PR ld/25458 test.
3500 2020-01-22 H.J. Lu <hongjiu.lu@intel.com>
3503 * testsuite/ld-x86-64/tls.exp: Skip GNU2 TLS tests only without
3506 2020-01-22 Alan Modra <amodra@gmail.com>
3508 * testsuite/ld-powerpc/tlsdesc3.d,
3509 * testsuite/ld-powerpc/tlsdesc3.wf,
3510 * testsuite/ld-powerpc/tlsdesc4.d,
3511 * testsuite/ld-powerpc/tlsdesc4.s,
3512 * testsuite/ld-powerpc/tlsdesc4.wf: New tests.
3513 * testsuite/ld-powerpc/powerpc.exp: Run them.
3515 2020-01-22 Alan Modra <amodra@gmail.com>
3517 * emultempl/ppc64elf.em (ppc64_opt, PARSE_AND_LIST_LONGOPTS),
3518 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Support
3519 --tls-get-addr-regsave and --no-tls-get-addr-regsave.
3520 (params): Init new field.
3521 * ld.texi (--tls-get-addr-regsave, --no-tls-get-addr-regsave):
3523 * testsuite/ld-powerpc/tlsdesc.s,
3524 * testsuite/ld-powerpc/tlsdesc.d,
3525 * testsuite/ld-powerpc/tlsdesc.wf,
3526 * testsuite/ld-powerpc/tlsdesc2.d,
3527 * testsuite/ld-powerpc/tlsdesc2.wf,
3528 * testsuite/ld-powerpc/tlsexenors.d,
3529 * testsuite/ld-powerpc/tlsexenors.r,
3530 * testsuite/ld-powerpc/tlsexers.d,
3531 * testsuite/ld-powerpc/tlsexers.r,
3532 * testsuite/ld-powerpc/tlsexetocnors.d,
3533 * testsuite/ld-powerpc/tlsexetocrs.d,
3534 * testsuite/ld-powerpc/tlsexetocrs.r,
3535 * testsuite/ld-powerpc/tlsopt6.d,
3536 * testsuite/ld-powerpc/tlsopt6.wf: New.
3537 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
3539 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
3542 * ldlang.c (ldlang_open_ctf): Fix error message typo.
3543 * emultempl/z80elf.em (z80_elf_after_open): Likewise.
3545 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
3547 * testsuite/ld-elf/pr23900-1.d: Adjusted.
3549 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
3551 * testsuite/ld-elf/pr23900-1.d: Also pass -l to readelf.
3553 2020-01-20 Nick Clifton <nickc@redhat.com>
3555 * po/pt_BR.po: Updated Brazilian Portuguese translation.
3556 * po/uk.po: Updated Ukranian translation.
3558 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
3561 * testsuite/ld-x86-64/pr25416-1.s: New file
3562 * testsuite/ld-x86-64/pr25416-1a.d: Likewise.
3563 * testsuite/ld-x86-64/pr25416-1b.d: Likewise.
3564 * testsuite/ld-x86-64/pr25416-1.s: Likewise.
3565 * testsuite/ld-x86-64/pr25416-2.s: Likewise.
3566 * testsuite/ld-x86-64/pr25416-2a.d: Likewise.
3567 * testsuite/ld-x86-64/pr25416-2b.d: Likewise.
3568 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
3569 * testsuite/ld-x86-64/pr25416-3.s: Likewise.
3570 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
3571 * testsuite/ld-x86-64/pr25416-4.s: Likewise.
3572 * testsuite/ld-x86-64/pr25416-5a.c: Likewise.
3573 * testsuite/ld-x86-64/pr25416-5b.s: Likewise.
3574 * testsuite/ld-x86-64/pr25416-5c.s: Likewise.
3575 * testsuite/ld-x86-64/pr25416-5d.s: Likewise.
3576 * testsuite/ld-x86-64/pr25416-5e.s: Likewise.
3577 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/25416 tests.
3579 2020-01-20 Alan Modra <amodra@gmail.com>
3581 * testsuite/ld-powerpc/tlsexe.d: Match new __tls_get_addr stub.
3582 * testsuite/ld-powerpc/tlsexeno.d: Likewise.
3583 * testsuite/ld-powerpc/tlsexetoc.d: Likewise.
3584 * testsuite/ld-powerpc/tlsexetocno.d: Likewise.
3585 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
3587 2020-01-18 Roland McGrath <mcgrathr@google.com>
3589 * testsuite/ld-x86-64/align-branch-1.d: Loosen instruction regexps
3590 to admit whatever absolute address. The label-relative address is
3591 what the test needs to verify.
3593 2020-01-18 Nick Clifton <nickc@redhat.com>
3595 * configure: Regenerate.
3596 * po/ld.pot: Regenerate.
3598 2020-01-18 Nick Clifton <nickc@redhat.com>
3600 Binutils 2.34 branch created.
3602 2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3604 * scripttempl/elf32msp430_3.sc: Remove.
3606 2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3608 * scripttempl/elf32msp430.sc: Add input section rules for
3609 .upper.{text,data,rodata,bss}.
3610 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
3611 * testsuite/ld-msp430-elf/upper-input-sections.s: New test.
3613 2020-01-15 Lars Brinkhoff <lars@nocrew.org>
3616 * temulparams/pdp11.sh (TARGET_PAGE_SIZE): Set to 8192.
3618 2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3620 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
3621 * testsuite/ld-msp430-elf/reloc-lo-430x.s: New test.
3623 2020-01-15 Alan Modra <amodra@gmail.com>
3625 * testsuite/ld-powerpc/ambiguousv1b.d: Adjust expected output.
3626 * testsuite/ld-powerpc/funref.s: Align func_tab.
3627 * testsuite/ld-powerpc/funref2.s: Likewise.
3628 * testsuite/ld-powerpc/funv1.s: Add dot symbols.
3630 2020-01-14 Lili Cui <lili.cui@intel.com>
3632 * testsuite/ld-i386/align-branch-1.d: Updated for i686-pc-elf.
3634 2020-01-13 Alan Modra <amodra@gmail.com>
3636 * po/BLD-POTFILES.in: Regenerate.
3638 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
3640 * testsuite/ld-arc/relax-local-pic.d: Improve matching patterns.
3642 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
3644 * Makefile.am: Remove earcelf_prof.c and earclinux_prof.c
3646 * configure.tgt: Likewise.
3647 * Makefile.in: Regenerate.
3648 * emulparams/arcelf_prof.sh: Remove file.
3649 * emulparams/arclinux_prof.sh: Likewise.
3651 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
3653 * scripttempl/elfarcv2.sc : Allow interrupt vector table to be
3654 located at an arbitrary address. Use DWARF.sc file.
3655 * scripttempl/elfarc.sc: Use DWARF.sc file.
3657 2020-01-07 Alan Modra <amodra@gmail.com>
3659 * testsuite/ld-mips-elf/eh-frame5.s,
3660 * testsuite/ld-mips-elf/ehdr_start-new.s,
3661 * testsuite/ld-mips-elf/ehdr_start-o32.s,
3662 * testsuite/ld-mips-elf/mips16-call-global-1.s,
3663 * testsuite/ld-mips-elf/mips16-intermix-1.s,
3664 * testsuite/ld-mips-elf/mips16-pic-1b.s,
3665 * testsuite/ld-mips-elf/mips16-pic-4c.s,
3666 * testsuite/ld-mips-elf/no-shared-1-n64.s,
3667 * testsuite/ld-mips-elf/no-shared-1-o32.s,
3668 * testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s,
3669 * testsuite/ld-mips-elf/pic-and-nonpic-1b.s,
3670 * testsuite/ld-mips-elf/pic-and-nonpic-2a.s,
3671 * testsuite/ld-mips-elf/pic-and-nonpic-3b.s,
3672 * testsuite/ld-mips-elf/pic-and-nonpic-4b.s,
3673 * testsuite/ld-mips-elf/pic-and-nonpic-5a.s,
3674 * testsuite/ld-mips-elf/pic-and-nonpic-6-n32c.s,
3675 * testsuite/ld-mips-elf/pic-and-nonpic-6-n64c.s,
3676 * testsuite/ld-mips-elf/pic-and-nonpic-6-o32c.s,
3677 * testsuite/ld-mips-elf/pie.s,
3678 * testsuite/ld-mips-elf/relax-jalr.s: Revert 2019-12-17 change.
3680 2020-01-06 Nick Clifton <nickc@redhat.com>
3683 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
3684 command line when building libcomm1.o and pr13250 tests.
3685 * testsuite/ld-plugin/lto.exp: Likewise for pr20267 tests.
3687 2020-01-06 Nick Clifton <nickc@redhat.com>
3690 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
3691 command line when building pr19579 binaries.
3693 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
3695 * emultempl/pe.em: Add new option --enable-reloc-section.
3696 * emultempl/pep.em: Likewise.
3697 * ld.texi: Document --enable-reloc-section.
3698 * pe-dll.c (pe_dll_build_sections): Use pe_dll_enable_reloc_section.
3699 (pe_dll_fill_sections): Simplify by calling pe_exe_fill_sections.
3700 * pe-dll.h: Add extern declaration of option flag.
3701 * pep-dll.c (pe_dll_enable_reloc_section):
3702 Add alias define for pep_dll_enable_reloc_section.
3703 * pep-dll.h: Add extern declaration of option flag.
3705 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
3707 * Makefile.am: Add new target z80-elf
3708 * configure.tgt: Likewise.
3709 * Makefile.in: Regenerate.
3710 * emultempl/z80.em: Add support for eZ80 and Z180 architectures.
3711 * emulparams/elf32z80.sh: New file.
3712 * emultempl/z80elf.em: Likewise.
3713 * testsuite/ld-elf/comm-data4.s: Fix for Z80.
3714 * testsuite/ld-elf/comm-data5.s: Fix for Z80.
3715 * testsuite/ld-scripts/fill16.d: Fix for Z80.
3716 * testsuite/ld-z80/arch_ez80_adl.d: Likewise.
3717 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
3718 * testsuite/ld-z80/arch_r800.d: Likewise.
3719 * testsuite/ld-z80/arch_z180.d: Likewise.
3720 * testsuite/ld-z80/arch_z80.d: Likewise.
3721 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
3722 * testsuite/ld-z80/comb_arch_z180.d: Likewise.
3723 * testsuite/ld-z80/labels.s: Likewise.
3724 * testsuite/ld-z80/relocs.s: Likewise.
3725 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
3726 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
3727 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
3728 * testsuite/ld-z80/z80.exp: Likewise.
3729 * NEWS: Mention the new support.
3731 2020-01-02 Tamar Christina <tamar.christina@arm.com>
3735 * emultempl/aarch64elf.em (elf${ELFSIZE}_aarch64_add_stub_section):
3736 Remove SEC_LINKER_CREATED.
3737 * testsuite/ld-aarch64/aarch64-elf.exp: Add erratum835769-843419.
3738 * testsuite/ld-aarch64/erratum835769-843419.d: New test.
3740 2020-01-01 Alan Modra <amodra@gmail.com>
3742 Update year range in copyright notice of all files.
3744 For older changes see ChangeLog-2019
3746 Copyright (C) 2020 Free Software Foundation, Inc.
3748 Copying and distribution of this file, with or without modification,
3749 are permitted in any medium without royalty provided the copyright
3750 notice and this notice are preserved.
3756 version-control: never