Add a new option to the linker: --error-handling-script=<NAME>. Run the script ...
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
23ae20f5
NC
12020-10-16 Nick Clifton <nickc@redhat.com>
2
3 PR 26626
4 * ldmain.c (undefined_symbol): If an error handlign script is
5 available, call it.
6 * ldfile.c (error_handling_script): Declare.
7 (ldfile_open_file): If a library cannot be found and an error
8 handling script is available, call it.
9 * ldmain.h (error_handling_script): Prototype.
10 * ldlex.h (OPTION_ERROR_HANDLING_SCRIPT): Define.
11 * lexsup.c (ld_options): Add --error-handling-script.
12 (parse_args): Add support for --errror-handling-script.
13 * ld.texi: Document the new feature.
14 * configure.ac: Add --error-handling-script option to disable
15 support for the new feature.
16 * NEWS: Mention the new feature.
17 * config.in: Regenerate.
18 * configure: Regenerate.
19
51a8a7c2
NC
202020-10-16 Nelson Chu <nelson.chu@sifive.com>
21
22 * testsuite/ld-riscv-elf/ifunc-plt-got-overwrite.s: New testcase.
23 * testsuite/ld-riscv-elf/ifunc-plt-got-overwrite.d: Likewise.
24 * testsuite/ld-riscv-elf/ifunc-plt-got-overwrite-exe.rd: Likewise.
25 * testsuite/ld-riscv-elf/ifunc-plt-got-overwrite-pic.rd: Likewise.
26 * testsuite/ld-riscv-elf/ifunc-plt-got-overwrite-pie.rd: Likewise.
27 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
28
02dd9d25
NC
292020-10-16 Nelson Chu <nelson.chu@sifive.com>
30
31 * emulparams/elf32lriscv-defs.sh: Add IREL_IN_PLT.
32 * testsuite/ld-ifunc/ifunc.exp: Enable ifunc tests for RISC-V.
33 * testsuite/ld-riscv-elf/ld-riscv-elf.exp (run_dump_test_ifunc):
34 New dump test for ifunc. There are two arguments, 'target` and
35 `output`. The `target` is rv32 or rv64, and the `output` is used
36 to choose which output you want to test (exe, pie or .so).
37 * testsuite/ld-riscv-elf/ifunc-reloc-call-01.s: New testcase.
38 * testsuite/ld-riscv-elf/ifunc-reloc-call-01.d: Likewise.
39 * testsuite/ld-riscv-elf/ifunc-reloc-call-01-exe.rd: Likewise.
40 * testsuite/ld-riscv-elf/ifunc-reloc-call-01-pic.rd: Likewise.
41 * testsuite/ld-riscv-elf/ifunc-reloc-call-01-pie.rd: Likewise.
42 * testsuite/ld-riscv-elf/ifunc-reloc-call-02.s: Likewise.
43 * testsuite/ld-riscv-elf/ifunc-reloc-call-02.d: Likewise.
44 * testsuite/ld-riscv-elf/ifunc-reloc-call-02-exe.rd: Likewise.
45 * testsuite/ld-riscv-elf/ifunc-reloc-call-02-pic.rd: Likewise.
46 * testsuite/ld-riscv-elf/ifunc-reloc-call-02-pie.rd: Likewise.
47 * testsuite/ld-riscv-elf/ifunc-reloc-data.s: Likewise.
48 * testsuite/ld-riscv-elf/ifunc-reloc-data.d: Likewise.
49 * testsuite/ld-riscv-elf/ifunc-reloc-data-exe.rd: Likewise.
50 * testsuite/ld-riscv-elf/ifunc-reloc-data-pic.rd: Likewise.
51 * testsuite/ld-riscv-elf/ifunc-reloc-data-pie.rd: Likewise.
52 * testsuite/ld-riscv-elf/ifunc-reloc-got.s: Likewise.
53 * testsuite/ld-riscv-elf/ifunc-reloc-got.d: Likewise.
54 * testsuite/ld-riscv-elf/ifunc-reloc-got-exe.rd: Likewise.
55 * testsuite/ld-riscv-elf/ifunc-reloc-got-pic.rd: Likewise.
56 * testsuite/ld-riscv-elf/ifunc-reloc-got-pie.rd: Likewise.
57 * testsuite/ld-riscv-elf/ifunc-reloc-pcrel.s: Likewise.
58 * testsuite/ld-riscv-elf/ifunc-reloc-pcrel.d: Likewise.
59 * testsuite/ld-riscv-elf/ifunc-reloc-pcrel-exe.rd: Likewise.
60 * testsuite/ld-riscv-elf/ifunc-reloc-pcrel-pic.rd: Likewise.
61 * testsuite/ld-riscv-elf/ifunc-reloc-pcrel-pie.rd: Likewise.
62 * testsuite/ld-riscv-elf/ifunc-nonplt.s: Likewise.
63 * testsuite/ld-riscv-elf/ifunc-nonplt.d: Likewise.
64 * testsuite/ld-riscv-elf/ifunc-nonplt-exe.rd: Likewise.
65 * testsuite/ld-riscv-elf/ifunc-nonplt-pic.rd: Likewise.
66 * testsuite/ld-riscv-elf/ifunc-nonplt-pie.rd: Likewise.
67 * testsuite/ld-riscv-elf/ifunc-plt-01.s: Likewise.
68 * testsuite/ld-riscv-elf/ifunc-plt-01.d: Likewise.
69 * testsuite/ld-riscv-elf/ifunc-plt-01-exe.rd: Likewise.
70 * testsuite/ld-riscv-elf/ifunc-plt-01-pic.rd: Likewise.
71 * testsuite/ld-riscv-elf/ifunc-plt-01-pie.rd: Likewise.
72 * testsuite/ld-riscv-elf/ifunc-plt-02.s: Likewise.
73 * testsuite/ld-riscv-elf/ifunc-plt-02.d: Likewise.
74 * testsuite/ld-riscv-elf/ifunc-plt-02-exe.rd: Likewise.
75 * testsuite/ld-riscv-elf/ifunc-plt-02-pic.rd: Likewise.
76 * testsuite/ld-riscv-elf/ifunc-plt-02-pie.rd: Likewise.
77 * testsuite/ld-riscv-elf/ifunc-seperate-resolver.s: Likewise.
78 * testsuite/ld-riscv-elf/ifunc-seperate-caller.s: Likewise.
79 * testsuite/ld-riscv-elf/ifunc-seperate-exe.d: Likewise.
80 * testsuite/ld-riscv-elf/ifunc-seperate-pic.d: Likewise.
81 * testsuite/ld-riscv-elf/ifunc-seperate-pie.d: Likewise.
82 * testsuite/ld-riscv-elf/ifunc-seperate-caller-pcrel.s: Likewise.
83 * testsuite/ld-riscv-elf/ifunc-seperate-pcrel-pic.d: Likewise.
84 * testsuite/ld-riscv-elf/ifunc-seperate-pcrel-pie.d: Likewise.
85
32930e4e
L
862020-10-09 H.J. Lu <hongjiu.lu@intel.com>
87
88 PR gas/26703
89 * NEWS: Mention -z x86-64-v[234].
90 * ld.texi: Document -z x86-64-v[234].
91 * emulparams/elf32_x86_64.sh: Use x86-64-level.sh.
92 * emulparams/elf_i386.sh: Likewise.
93 * emulparams/elf_x86_64.sh: Likewise.
94 * emulparams/x86-64-level.sh: New file.
95 * testsuite/ld-elf/x86-feature-1a.rd: Update.
96 * testsuite/ld-elf/x86-feature-1b.rd: Likewise.
97 * testsuite/ld-elf/x86-feature-1c.rd: Likewise.
98 * testsuite/ld-elf/x86-feature-1d.rd: Likewise.
99 * testsuite/ld-elf/x86-feature-1e.rd: Likewise.
100 * testsuite/ld-i386/pr23372c.d: Likewise.
101 * testsuite/ld-i386/pr23486c.d: Likewise.
102 * testsuite/ld-i386/pr23486d.d: Likewise.
103 * testsuite/ld-i386/pr24322a.d: Likewise.
104 * testsuite/ld-i386/pr24322b.d: Likewise.
105 * testsuite/ld-i386/property-1a.r: Likewise.
106 * testsuite/ld-i386/property-2a.r: Likewise.
107 * testsuite/ld-i386/property-3.r: Likewise.
108 * testsuite/ld-i386/property-3a.r: Likewise.
109 * testsuite/ld-i386/property-4.r: Likewise.
110 * testsuite/ld-i386/property-4a.r: Likewise.
111 * testsuite/ld-i386/property-5.r: Likewise.
112 * testsuite/ld-i386/property-5a.r: Likewise.
113 * testsuite/ld-i386/property-7a.r: Likewise.
114 * testsuite/ld-i386/property-x86-3.d: Likewise.
115 * testsuite/ld-i386/property-x86-4a.d: Likewise.
116 * testsuite/ld-i386/property-x86-5.d: Likewise.
117 * testsuite/ld-i386/property-x86-cet1.d: Likewise.
118 * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
119 * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
120 * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
121 * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
122 * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
123 * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
124 * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
125 * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
126 * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
127 * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
128 * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
129 * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
130 * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
131 * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
132 * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
133 * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
134 * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
135 * testsuite/ld-x86-64/pr23372c-x32.d: Likewise.
136 * testsuite/ld-x86-64/pr23372c.d: Likewise.
137 * testsuite/ld-x86-64/pr23486c.d: Likewise.
138 * testsuite/ld-x86-64/pr23486d-x32.d: Likewise.
139 * testsuite/ld-x86-64/pr23486d.d: Likewise.
140 * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
141 * testsuite/ld-x86-64/pr24322a.d: Likewise.
142 * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
143 * testsuite/ld-x86-64/pr24322b.d: Likewise.
144 * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
145 * testsuite/ld-x86-64/pr24458a.d: Likewise.
146 * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
147 * testsuite/ld-x86-64/pr24458b.d: Likewise.
148 * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
149 * testsuite/ld-x86-64/pr24458c.d: Likewise.
150 * testsuite/ld-x86-64/property-1a.r: Likewise.
151 * testsuite/ld-x86-64/property-2a.r: Likewise.
152 * testsuite/ld-x86-64/property-3.r: Likewise.
153 * testsuite/ld-x86-64/property-3a.r: Likewise.
154 * testsuite/ld-x86-64/property-4.r: Likewise.
155 * testsuite/ld-x86-64/property-4a.r: Likewise.
156 * testsuite/ld-x86-64/property-5.r: Likewise.
157 * testsuite/ld-x86-64/property-5a.r: Likewise.
158 * testsuite/ld-x86-64/property-7a.r: Likewise.
159 * testsuite/ld-x86-64/property-x86-3-x32.d: Likewise.
160 * testsuite/ld-x86-64/property-x86-3.d: Likewise.
161 * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
162 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
163 * testsuite/ld-x86-64/property-x86-5-x32.d: Likewise.
164 * testsuite/ld-x86-64/property-x86-5.d: Likewise.
165 * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
166 * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
167 * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
168 * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
169 * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
170 * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
171 * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
172 * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
173 * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
174 * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
175 * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
176 * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
177 * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
178 * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
179 * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
180 * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
181 * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
182 * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
183 * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
184 * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
185 * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
186 * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
187 * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
188 * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
189 * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
190 * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
191 * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
192 * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
193 * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
194 * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
195 * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
196 * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
197 * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
198 * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
199 * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
200 * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
201 * testsuite/ld-i386/i386.exp: Run property-x86-6,
202 property-x86-isa1, property-x86-isa2 and property-x86-isa3.
203 * testsuite/ld-i386/property-x86-1.S: Updated to the current
204 GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
205 values.
206 * testsuite/ld-i386/property-x86-2.S: Likewise.
207 * testsuite/ld-i386/property-x86-3.s: Likewise.
208 * testsuite/ld-x86-64/pr23372d.s: Likewise.
209 * testsuite/ld-x86-64/pr23372e.s: Likewise.
210 * testsuite/ld-x86-64/pr23372f.s: Likewise.
211 * testsuite/ld-x86-64/pr23486c.s: Likewise.
212 * testsuite/ld-x86-64/pr23486d.s: Likewise.
213 * testsuite/ld-x86-64/property-x86-1.S: Likewise.
214 * testsuite/ld-x86-64/property-x86-2.S: Likewise.
215 * testsuite/ld-x86-64/property-x86-3.s: Likewise.
216 * testsuite/ld-x86-64/property-x86-5a.s: Likewise.
217 * testsuite/ld-x86-64/property-x86-5b.s: Likewise.
218 * testsuite/ld-i386/property-x86-6.d: New file.
219 * testsuite/ld-i386/property-x86-isa1.d: Likewise.
220 * testsuite/ld-i386/property-x86-isa2.d: Likewise.
221 * testsuite/ld-i386/property-x86-isa3.d: Likewise.
222 * testsuite/ld-x86-64/property-x86-6-x32.d: Likewise.
223 * testsuite/ld-x86-64/property-x86-6.d: Likewise.
224 * testsuite/ld-x86-64/property-x86-6.s: Likewise.
225 * testsuite/ld-x86-64/property-x86-isa1-x32.d: Likewise.
226 * testsuite/ld-x86-64/property-x86-isa1.d: Likewise.
227 * testsuite/ld-x86-64/property-x86-isa1.s: Likewise.
228 * testsuite/ld-x86-64/property-x86-isa2-x32.d: Likewise.
229 * testsuite/ld-x86-64/property-x86-isa2.d: Likewise.
230 * testsuite/ld-x86-64/property-x86-isa3-x32.d: Likewise.
231 * testsuite/ld-x86-64/property-x86-isa3.d: Likewise.
232 * testsuite/ld-x86-64/simple.s: Likewise.
233 * ld/testsuite/ld-x86-64/x86-64.exp: Run property-x86-6,
234 property-x86-6-x32, property-x86-isa1, property-x86-isa1-x32,
235 property-x86-isa2, property-x86-isa2-x32, property-x86-isa3-x32
236 and property-x86-isa3.
237
3d08aa66
L
2382020-10-06 H.J. Lu <hongjiu.lu@intel.com>
239
240 * testsuite/ld-i386/property-3.r: Updated for Fedora binary
241 annotation plugin for GCC.
242 * testsuite/ld-i386/property-4.r: Likewise.
243 * testsuite/ld-i386/property-5.r: Likewise.
244 * testsuite/ld-x86-64/property-3.r: Likewise.
245 * testsuite/ld-x86-64/property-4.r: Likewise.
246 * testsuite/ld-x86-64/property-5.r: Likewise.
247
574df58f
L
2482020-10-06 H.J. Lu <hongjiu.lu@intel.com>
249
250 PR ld/26711
251 * testsuite/ld-i386/i386.exp: Run ld/26711 tests.
252 * testsuite/ld-x86-64/x86-64.exp: Likewise.
253 * testsuite/ld-i386/pr26711-1.d: Likewise.
254 * testsuite/ld-i386/pr26711-2.d: Likewise.
255 * testsuite/ld-i386/pr26711-3.d: Likewise.
256 * testsuite/ld-x86-64/pr26711-1-x32.d: Likewise.
257 * testsuite/ld-x86-64/pr26711-1.d: Likewise.
258 * testsuite/ld-x86-64/pr26711-2-x32.d: Likewise.
259 * testsuite/ld-x86-64/pr26711-2.d: Likewise.
260 * testsuite/ld-x86-64/pr26711-3-x32.d: Likewise.
261 * testsuite/ld-x86-64/pr26711-3.d: Likewise.
262 * testsuite/ld-x86-64/pr26711.s: Likewise.
263
6afcdeb3
BB
2642020-10-06 Brandon Bergren <bdragon@FreeBSD.org>
265
266 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64lppc_fbsd.c.
267 Include $(DEPDIR)/eelf64lppc_fbsd.Pc.
268 * configure.tgt: Add powerpc64le-*-freebsd*.
269 * emulparams/elf64lppc_fbsd.sh: New file.
270 * Makefile.in: Regenerate.
271 * po/BLD-POTFILES.in: Regenerate.
272
6d96a594
C
2732020-10-05 T.K. Chia <u1049321969@caramail.com>
274
275 PR gas/26694
276 * testsuite/ld-i386/ljmp.s,
277 * testsuite/ld-i386/ljmp1.d,
278 * testsuite/ld-i386/ljmp1.s,
279 * testsuite/ld-i386/ljmp2.d,
280 * testsuite/ld-i386/ljmp2.s,
281 * testsuite/ld-x86-64/ljmp1.d,
282 * testsuite/ld-x86-64/ljmp2.d: New testcases.
283 * testsuite/ld-i386/i386.exp,
284 * testsuite/ld-x86-64/x86-64.exp: Run them.
285
983d925d
NC
2862020-10-05 Nick Clifton <nickc@redhat.com>
287
288 * lexsup.c (parse_args): Generate an error or warning message when
289 multiple short options are used together.
290
7026832e
L
2912020-10-01 H.J. Lu <hongjiu.lu@intel.com>
292
293 PR 26681
294 * testsuite/ld-elf/pr26681.s: New test.
295 * testsuite/ld-elf/pr26681.d: New test driver.
296 * testsuite/ld-elf/pr26681.l: New test output.
297
04e433a8
L
2982020-09-30 H.J. Lu <hongjiu.lu@intel.com>
299
300 PR ld/26675
301 * plugin.c (plugin_notice): Override the IR definition before
302 all LTO symbols have been read for non-ELF targets.
303
51dee44b
JD
3042020-09-30 Jeremy Drake <sourceware-bugzilla@jdrake.com>
305
306 PR 26588
307 * emultempl/pe.em (_finish): Generate an import library for DLLs,
308 even if they have no exports.
309 * emultempl/pep.em (_finish): Likewise.
310
f243e458
AM
3112020-09-28 Alan Modra <amodra@gmail.com>
312
313 * testsuite/ld-powerpc/tlsget.d,
314 * testsuite/ld-powerpc/tlsget.s,
315 * testsuite/ld-powerpc/tlsget.wf,
316 * testsuite/ld-powerpc/tlsget2.d.
317 * testsuite/ld-powerpc/tlsget2.wf: New testcases.
318 * testsuite/ld-powerpc/powerpc.exp: Run them.
319
3cd7c7d7
AM
3202020-09-26 Alan Modra <amodra@gmail.com>
321
322 * testsuite/ld-powerpc/elfv2so.d,
323 * testsuite/ld-powerpc/notoc2.d,
324 * testsuite/ld-powerpc/tlsdesc.wf,
325 * testsuite/ld-powerpc/tlsdesc2.d,
326 * testsuite/ld-powerpc/tlsdesc2.wf,
327 * testsuite/ld-powerpc/tlsopt5.d,
328 * testsuite/ld-powerpc/tlsopt5.wf,
329 * testsuite/ld-powerpc/tlsopt6.d,
330 * testsuite/ld-powerpc/tlsopt6.wf: Update __glink_PLTresolve.
331
c9405344
AM
3322020-09-24 Alan Modra <amodra@gmail.com>
333
334 PR 26655
335 * emultempl/ppc64elf.em (params): Add ppc_edit.
336 (ppc_before_allocation): Split off some edit functions to..
337 (ppc_edit): ..this, new function.
338
307f2595
FZ
3392020-09-22 Frediano Ziglio <fziglio@redhat.com>
340
341 * emultempl/pe.em (set_entry_point): Only use the DLL entry point
342 for DLLs.
343 * emultempl/pep.em (set_entry_point): Likewise.
344
be7628ca
MP
3452020-09-16 Mikael Pettersson <mikpelinux@gmail.com>
346
347 * testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIE on sparc.
348 * testsuite/ld-elf/tls.exp: Add -Av9 to AFLAGS_PIC on sparc.
349
36068e2f
L
3502020-09-16 H.J. Lu <hongjiu.lu@intel.com>
351
352 PR ld/26583
353 * testsuite/ld-x86-64/pe-x86-64-1.od: New file.
354 * testsuite/ld-x86-64/pe-x86-64-1a.obj.bz2: Likewise.
355 * testsuite/ld-x86-64/pe-x86-64-1b.obj.bz2: Likewise.
356 * testsuite/ld-x86-64/pe-x86-64-1c.obj.bz2: Likewise.
357 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
358 * testsuite/ld-x86-64/pe-x86-64-2a.obj.bz2: Likewise.
359 * testsuite/ld-x86-64/pe-x86-64-2b.obj.bz2: Likewise.
360 * testsuite/ld-x86-64/pe-x86-64-2c.obj.bz2: Likewise.
361 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
362 * testsuite/ld-x86-64/pe-x86-64-3a.obj.bz2: Likewise.
363 * testsuite/ld-x86-64/pe-x86-64-3b.obj.bz2: Likewise.
364 * testsuite/ld-x86-64/pe-x86-64-3c.obj.bz2: Likewise.
365 * testsuite/ld-x86-64/pe-x86-64-3d.obj.bz2: Likewise.
366 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
367 * testsuite/ld-x86-64/pe-x86-64-4a.obj.bz2: Likewise.
368 * testsuite/ld-x86-64/pe-x86-64-4b.obj.bz2: Likewise.
369 * testsuite/ld-x86-64/pe-x86-64-4c.obj.bz2: Likewise.
370 * testsuite/ld-x86-64/pe-x86-64-4d.obj.bz2: Likewise.
371 * testsuite/ld-x86-64/pe-x86-64.exp: Likewise.
372 * testsuite/lib/ld-lib.exp (run_ld_link_tests): Handle bz2 binary
373 inputs.
374
c1229f84
AM
3752020-09-16 Alan Modra <amodra@gmail.com>
376
377 * plugin.c (asymbol_from_plugin_symbol): Adjust elf_symbol_from
378 invocation.
379
0403e9cc
L
3802020-09-15 H.J. Lu <hongjiu.lu@intel.com>
381
382 * ldelf.c (ldelf_after_open): Check bfd_target_elf_flavour first.
383
4a8f181d
HPN
3842020-09-15 Hans-Peter Nilsson <hp@axis.com>
385
386 PR ld/26589
387 * testsuite/ld-elf/pr26589.d, testsuite/ld-elf/locref3.s: New test.
388
1f656a65
AM
3892020-09-13 Alan Modra <amodra@gmail.com>
390
391 PR 26391
392 * testsuite/ld-elf/pr26391.nd: Adjust to match powerpc64 function
393 descriptors.
394
496afd17
L
3952020-09-12 H.J. Lu <hongjiu.lu@intel.com>
396
397 PR ld/26391
398 * NEWS: Mention "-z unique-symbol".
399 * emultempl/elf.em (gld${EMULATION_NAME}_handle_option): Handle
400 "-z unique-symbol" and "-z nounique-symbol".
401 * ld.texi: Document "-z unique-symbol" and "-z nounique-symbol".
402 * lexsup.c (elf_static_list_options): Add "-z unique-symbol" and
403 "-z nounique-symbol".
404 * testsuite/ld-elf/elf.exp: Add PR ld/26391 tests.
405 * testsuite/ld-elf/pr26391.nd: New file.
406 * testsuite/ld-elf/pr26391.out: Likewise.
407 * testsuite/ld-elf/pr26391a.c: Likewise.
408 * testsuite/ld-elf/pr26391b.c: Likewise.
409 * testsuite/ld-elf/pr26391c.c: Likewise.
410 * testsuite/ld-elf/pr26391d.c: Likewise.
411
9cdc5bac
JD
4122020-09-11 Jeremy Drake <sourceware-bugzilla@jdrake.com>
413
414 PR 26588
415 * emultempl/pe.em (_finish): Only generate a import library if not
416 exporting relocs.
417 * emultempl/pep.em: Likewise.
418
c7cd2917
SP
4192020-09-10 Siddhesh Poyarekar <siddesh.poyarekar@arm.com>
420
421 * testsuite/ld-aarch64/emit-relocs-560.d: Expect error instead
422 of valid output.
423
93d49941
L
4242020-09-10 H.J. Lu <hongjiu.lu@intel.com>
425
426 PR ld/26590
427 * testsuite/ld-elf/pr26590.err: New file.
428 * testsuite/ld-elf/pr26590a.c: Likewise.
429 * testsuite/ld-elf/pr26590b.c: Likewise.
430 * testsuite/ld-elf/pr26590c.c: Likewise.
431 * testsuite/ld-elf/pr26590d.c: Likewise.
432 * testsuite/ld-elf/shared.exp: Run ld/26590 tests.
433
36efe0ae
AM
4342020-09-10 Alan Modra <amodra@gmail.com>
435
436 * testsuite/ld-elf/pr26580-2.sd: Accept undefined symbol.
437
36dcb3a9
AM
4382020-09-10 Alan Modra <amodra@gmail.com>
439
440 * testsuite/ld-plugin/lto-18b.c (select): Remove.
441 * testsuite/ld-plugin/lto-18c.c (select): Remove.
442 * testsuite/ld-plugin/lto.exp: Build archives for lto-18 too,
443 and run static versions of the test.
444
fb7331ae
AM
4452020-09-09 Alan Modra <amodra@gmail.com>
446
447 * testsuite/ld-plugin/lto-18a.c,
448 * testsuite/ld-plugin/lto-18b.c,
449 * testsuite/ld-plugin/lto-18c.c,
450 * testsuite/ld-plugin/lto-18d.c,
451 * testsuite/ld-plugin/lto-18.out: New test.
452 * testsuite/ld-plugin/lto.exp: Run it.
453
7d81bc93
JL
4542020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
455
456 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new tests.
457 * testsuite/ld-msp430-elf/uleb128.s: New test.
458 * testsuite/ld-msp430-elf/uleb128_430.d: New test.
459 * testsuite/ld-msp430-elf/uleb128_430x.d: New test.
460
7ba11550
AM
4612020-09-08 Alan Modra <amodra@gmail.com>
462
463 * testsuite/ld-elf/pr26580-a.s,
464 * testsuite/ld-elf/pr26580-b.s,
465 * testsuite/ld-elf/pr26580-1.sd,
466 * testsuite/ld-elf/pr26580-2.sd: New tests
467 * testsuite/ld-elf/comm-data.exp: Run new tests.
468 * testsuite/ld-elf/pr26580-a.c,
469 * testsuite/ld-elf/pr26580-b.c,
470 * testsuite/ld-elf/pr26580-3.out,
471 * testsuite/ld-elf/pr26580-4.out: New tests.
472 * testsuite/ld-elf/shared.exp: Run new tests.
473
1e3b96fd
AM
4742020-09-04 Alan Modra <amodra@gmail.com>
475
476 * testsuite/ld-plugin/lto.exp: Don't run pr15146 tests.
477 * testsuite/ld-plugin/pr15146.d: Delete.
478 * testsuite/ld-plugin/pr15146a.c: Delete.
479 * testsuite/ld-plugin/pr15146b.c: Delete.
480 * testsuite/ld-plugin/pr15146c.c: Delete.
481 * testsuite/ld-plugin/pr15146d.c: Delete.
482
e062fcc8
L
4832020-09-03 H.J. Lu <hongjiu.lu@intel.com>
484
485 * testsuite/config/default.exp: Change NOSANTIZE_CFLAGS to
486 NOSANITIZE_CFLAGS.
487 * testsuite/ld-elf/dwarf.exp: Likewise.
488 * testsuite/ld-elf/indirect.exp: Likewise.
489 * testsuite/ld-elf/linux-x86.exp: Likewise.
490 * testsuite/ld-elf/shared.exp: Likewise.
491 * testsuite/ld-elf/tls.exp: Likewise.
492 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
493 * testsuite/ld-elfvers/vers.exp: Likewise.
494 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
495 * testsuite/ld-elfweak/elfweak.exp: Likewise.
496 * testsuite/ld-gc/gc.exp: Likewise.
497 * testsuite/ld-plugin/lto.exp: Likewise.
498 * testsuite/ld-plugin/plugin.exp: Likewise.
499 * testsuite/ld-scripts/crossref.exp: Likewise.
500 * testsuite/ld-selective/selective.exp: Likewise.
501 * testsuite/ld-shared/shared.exp: Likewise.
502 * testsuite/ld-size/size.exp: Likewise.
503 * testsuite/ld-srec/srec.exp: Likewise.
504 * testsuite/ld-x86-64/x86-64.exp: Likewise.
505
9184ef8a
NC
5062020-09-03 Nelson Chu <nelson.chu@sifive.com>
507
508 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Remove
509 the useless `warnings` keywords.
510 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
511 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
512 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
513 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
514 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
515
32f0ce4d
NC
5162020-09-03 Nelson Chu <nelson.chu@sifive.com>
517
518 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Update the
519 message from error to warning.
520 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: New testcases.
521 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02a.s: Likewise.
522 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02b.s: Likewise.
523 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02c.s: Likewise.
524 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02d.s: Likewise.
525 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
526
72bd6912
KC
5272020-09-03 Kito Cheng <kito.cheng@sifive.com>
528
529 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Updated.
530 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01a.s: Likewise.
531 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01b.s: Likewise.
532
d48b742b
AM
5332020-09-03 Alan Modra <amodra@gmail.com>
534
535 * testsuite/ld-scripts/sysroot-prefix.exp (single_sysroot_prefix_test):
536 Log $scriptname.
537
42afa120
L
5382020-08-30 H.J. Lu <hongjiu.lu@intel.com>
539
540 * testsuite/ld-elf/dwarf.exp: Append $NOSANTIZE_CFLAGS to CFLAGS.
541 * testsuite/ld-elf/shared.exp: Likewise.
542 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
543 * testsuite/ld-shared/shared.exp: Likewise.
544 * testsuite/ld-size/size.exp: Likewise.
545
64b63c29
JL
5462020-08-28 Jozef Lawrynowicz <jozef.l@mittosystems.com>
547
548 * emultempl/msp430.em (input_section_exists): New.
549 (check_array_section_alignment): New.
550 (gld${EMULATION_NAME}_finish): New.
551 * scripttempl/elf32msp430.sc: Add ALIGN directives before the
552 definition of __*_array_start symbols.
553 * testsuite/ld-msp430-elf/finiarray-warn.ld: New test.
554 * testsuite/ld-msp430-elf/finiarray-warn.r: New test.
555 * testsuite/ld-msp430-elf/initarray-nowarn.ld: New test.
556 * testsuite/ld-msp430-elf/initarray-warn.ld: New test.
557 * testsuite/ld-msp430-elf/initarray-warn.r: New test.
558 * testsuite/ld-msp430-elf/initarray.s: New test.
559 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new tests.
560 * testsuite/ld-msp430-elf/preinitarray-warn.ld: New test.
561 * testsuite/ld-msp430-elf/preinitarray-warn.r: New test.
562
87870682
JL
5632020-08-28 Jozef Lawrynowicz <jozef.l@mittosystems.com>
564
565 * ldmisc.c (vfinfo): Support new "%pU" format specifier.
566
0861f561
CQ
5672020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
568
569 * emulparams/cskyelf.sh: Support attribute section.
570 * testsuite/ld-csky/tls-le-v1.d: Match .csky.attributes section.
571 * ld/testsuite/ld-csky/tls-le.d: Likewise.
572 * testsuite/ld-elf/non-contiguous.ld: Ignore .csky.attributes
573 section.
574
6194b866
NC
5752020-08-28 Nick Clifton <nickc@redhat.com>
576
577 PR 19011
578 * testsuite/lib/ld-lib.exp (ld_link_defsyms): For PE based targets
579 define the __main and ___main symbols in terms of the main symbol.
580
16f9c644
AM
5812020-08-28 Alan Modra <amodra@gmail.com>
582
583 PR 19011
584 * testsuite/ld-plugin/plugin.exp: Use modified CFLAGS throughout
585 file. Add --image-base for pecoff.
586
3b1450b3
NC
5872020-08-28 Nelson Chu <nelson.chu@sifive.com>
588
589 testsuite/ld-riscv-elf/lib-nopic-01a.s: Use R_RISCV_JAL rather
590 than R_RISCV_CALL.
591 testsuite/ld-riscv-elf/lib-nopic-01b.d: Likewise.
592 testsuite/ld-riscv-elf/lib-nopic-01b.s: Likewise.
593
82b94616
JL
5942020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
595
596 * emultempl/msp430.em: Remove unused variable "buf".
597
5e9b84f7
NA
5982020-08-27 Nick Alcock <nick.alcock@oracle.com>
599
600 * ldlang.c (dump_ctf_errs): Unquote CTF error messages.
601 (ldlang_open_ctf): Likewise.
602 (lang_merge_ctf): Likewise.
603 (lang_write_ctf): Likewise.
604 * testsuite/ld-ctf/diag-ctf-version-f.d: Adjust.
605 * testsuite/ld-ctf/diag-cttname-invalid.d: Adjust.
606 * testsuite/ld-ctf/diag-decompression-failure.d: Adjust.
607 * testsuite/ld-ctf/diag-parname.d: Adjust.
608 * testsuite/ld-ctf/diag-unsupported-flag.d: Adjust.
609 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Adjust.
610 * testsuite/ld-ctf/diag-wrong-magic-number.d: Adjust.
611
926c9e76
NA
6122020-08-27 Nick Alcock <nick.alcock@oracle.com>
613
614 * ldlang.c (lang_ctf_errs_warnings): Support calls with NULL fp.
615 Adjust for new err parameter to ctf_errwarning_next. Only
616 check for assertion failures when fp is non-NULL.
617 (ldlang_open_ctf): Call it on open errors.
618 * testsuite/ld-ctf/ctf.exp: Always use the C locale to avoid
619 breaking the diags tests.
620
514b4e19
JD
6212020-08-27 Jeremy Drake <sourceware-bugzilla@jdrake.com>
622
623 PR 19011
624 * emultempl/pe.em (DEFAULT_DLL_CHARACTERISTICS): Define.
625 (pe_dll_characteristics): Initialise to DEFAULT_DLL_CHARACTERISTICS.
626 (add_options): Add options to disable DLL characteristics.
627 (list_options): List the new options.
628 (handle_options): Handle the new options.
629 * emultempl/pep.em: Similar changes to above.
630 (NT_EXE_IMAGE_BASE): Default to an address above 4G.
631 (NT_DLL_IMAGE_BASE, NT_DLL_AUTO_IMAGE_BASE,
632 (NT_DLL_AUTO_IMAGE_MASK): Likewise.
633 * ld.texi: Document the new options.
634 * pe-dll.c (pe_dll_enable_reloc_section): Change to default to
635 true.
636 (generate_reloc): Do nothing if there is no reloc section.
637 (pe_exe_fill_sections): Only assign the reloc section contents if
638 the section exists.
639 * testsuite/ld-pe/pe.exp: Add the --disable-reloc-section flag to
640 the .secrel32 tests.
641 * testsuite/ld-scripts/provide-8.d: Expect for fail on PE targets.
642 * NEWS: Mention the change in DLL generation.
643
05fd99cc
L
6442020-08-26 H.J. Lu <hongjiu.lu@intel.com>
645
646 * testsuite/ld-elf/indirect.exp: Append $NOSANTIZE_CFLAGS to CC.
647 * testsuite/ld-elf/shared.exp: Likewise.
648 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
649 * testsuite/ld-elfvers/vers.exp: Likewise.
650 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
651 * testsuite/ld-elfweak/elfweak.exp: Likewise.
652 * testsuite/ld-plugin/lto.exp: Likewise.
653 * testsuite/ld-plugin/plugin.exp: Likewise.
654 * testsuite/ld-scripts/crossref.exp: Likewise.
655
32168ca6
AM
6562020-08-26 Alan Modra <amodra@gmail.com>
657
658 PR 26499
659 * emultempl/spuelf.em (spu_elf_relink): Check for NULL tmp_file_list.
660
aaf9875e
AM
6612020-08-26 Alan Modra <amodra@gmail.com>
662
663 PR 26431
664 * pe-dll.c (auto_export): Don't call bsearch with zero count.
665
8d303546
AM
6662020-08-25 Alan Modra <amodra@gmail.com>
667
668 * testsuite/ld-libs/libs.exp: Don't run on sh-pe, tic30 or tic54x.
669 * testsuite/ld-scripts/data.d: xfail tic4x and tic54x.
670 * testsuite/ld-scripts/empty-address-2a.d: xfail tic54x.
671 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
672 * testsuite/ld-scripts/include-1.d: xfail tic4x and tic54x.
673 * testsuite/ld-scripts/provide-1.d: xfail tic54x.
674 * testsuite/ld-scripts/provide-2.d: Likewise.
675 * testsuite/ld-scripts/provide-4.d: Likewise.
676
f1a9fbd9
AM
6772020-08-24 Alan Modra <amodra@gmail.com>
678
679 * testsuite/ld-sparc/tlssunbin32.rd: Update for new readelf output.
680 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
681
252dcdf4
AM
6822020-08-24 Alan Modra <amodra@gmail.com>
683
684 * testsuite/ld-powerpc/tls32.d: Update for TPREL_HA/LO optimisation.
685 * testsuite/ld-powerpc/tlsexe32.d: Likewise.
686 * testsuite/ld-powerpc/tlsldopt32.d: Likewise.
687 * testsuite/ld-powerpc/tlsmark32.d: Likewise.
688 * testsuite/ld-powerpc/tlsopt4_32.d: Likewise.
689 * testsuite/ld-powerpc/tprel.s,
690 * testsuite/ld-powerpc/tprel.d,
691 * testsuite/ld-powerpc/tprel32.d: New tests.
692 * testsuite/ld-powerpc/tprelbad.s,
693 * testsuite/ld-powerpc/tprelbad.d: New test.
694 * testsuite/ld-powerpc/powerpc.exp: Run them.
695
3f2e9699
L
6962020-08-22 H.J. Lu <hongjiu.lu@intel.com>
697
698 PR ld/26382
699 * testsuite/ld-elf/pr26302.nd: Updated.
700 * testsuite/ld-elf/pr26302.rd: New file.
701 * testsuite/ld-elf/shared.exp: Add a test for readelf -sW.
702
01147b20
NC
7032020-08-20 Nick Clifton <nickc@redhat.com>
704
705 PR 26428
706 * testsuite/ld-elf/zlibbegin.rS: Update expected output.
707 * testsuite/ld-elf/zlibnormal.rS: Likewise.
708
0dbd452a
AM
7092020-08-16 Alan Modra <amodra@gmail.com>
710
711 * testsuite/ld-powerpc/inline.s,
712 * testsuite/ld-powerpc/inline-1.d,
713 * testsuite/ld-powerpc/inline-2.d,
714 * testsuite/ld-powerpc/inline-3.d,
715 * testsuite/ld-powerpc/inline-4.d,
716 * testsuite/ld-powerpc/inlinepcrel.s,
717 * testsuite/ld-powerpc/inlinepcrel-1.d,
718 * testsuite/ld-powerpc/inlinepcrel-2.d,
719 * testsuite/ld-powerpc/inlinepcrel-3.d: New tests.
720 * testsuite/ld-powerpc/powerpc.exp: Run them.
721
246b9ea1
L
7222020-08-16 H.J. Lu <hongjiu.lu@intel.com>
723
724 PR binutils/26389
725 * testsuite/ld-plugin/lto.exp: Run PR binutils/26389 test.
726 * testsuite/ld-plugin/pr26389.c: New file.
727 * testsuite/ld-plugin/pr26389.d: Likewise.
728
95c21066
TC
7292020-08-14 Tamar Christina <tamar.christina@arm.com>
730
731 * testsuite/ld-arm/thumb-plt-got.d: Relax regexpr.
732 * testsuite/ld-arm/thumb-plt.d: Likewise.
733
6738c8a7
AM
7342020-08-13 Alan Modra <amodra@gmail.com>
735
736 * emultempl/ppc64elf.em (params): Init new field.
737 (enum ppc64_opt): Add OPTION_NO_PCREL_OPT.
738 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS),
739 (PARSE_AND_LIST_ARGS_CASES): Support --no-pcrel-optimize.
740
ccd9fae5
NC
7412020-08-10 Nick Clifton <nickc@redhat.com>
742
743 PR ld/21351
744 * ld.texi: Clarify the behaviour of the --relax and --no-relax
745 options on systems that do not support them.
746
9b0ac51b
L
7472020-08-10 H.J. Lu <hongjiu.lu@intel.com>
748
749 PR binutils/26302
750 * testsuite/ld-elf/pr26302.nd: New file.
751 * testsuite/ld-elf/pr26302.ver: Likewise.
752 * testsuite/ld-elf/pr26302a.c: Likewise.
753 * testsuite/ld-elf/pr26302b.c: Likewise.
754 * testsuite/ld-elf/shared.exp: Run binutils/26302 tests.
755
d844f10a
DF
7562020-08-07 David Faust <david.faust@oracle.com>
757
758 * testsuite/ld-bpf/call-3.s: New file.
759 * testsuite/ld-bpf/call-3.d: Likewise.
760
3ee9565c
DF
7612020-08-05 David Faust <david.faust@oracle.com>
762
763 * testsuite/ld-bpf/call-2.s: New file.
764 * testsuite/ld-bpf/call-2.d: Likewise.
765 * testsuite/ld-bpf/reloc-data-be.d: Likewise.
766 * testsuite/ld-bpf/reloc-data-le.d: Likewise.
767 * testsuite/ld-bpf/reloc-data.s: Likewise.
768 * testsuite/ld-bpf/reloc-insn-external-be.d: Likewise.
769 * testsuite/ld-bpf/reloc-insn-external-le.d: Likewise.
770 * testsuite/ld-bpf/reloc-insn-external.s: Likewise.
771 * testsuite/ld-bpf/reloc-insn32-be.d: Likewise.
772 * testsuite/ld-bpf/reloc-insn32-le.d: Likewise.
773 * testsuite/ld-bpf/reloc-insn32.s: Likewise.
774 * testsuite/ld-bpf/reloc-insn64-be.d: Likewise.
775 * testsuite/ld-bpf/reloc-insn64-le.d: Likewise.
776 * testsuite/ld-bpf/reloc-insn64.s: Likewise.
777
1a9f72a7
JL
7782020-08-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
779
780 * emultempl/msp430.em (change_output_section): Update the tail
781 of the output section statement list when moving the original
782 tail to a different output section.
783 (eval_upper_either_sections): Don't move sections from the upper
784 region to the lower region unless the upper region is
785 overflowing.
786
ee44c2ac
AM
7872020-08-03 Alan Modra <amodra@gmail.com>
788
789 * ldlex.l (yy_create_string_buffer): Use xmalloc rather than malloc.
790 * lexsup.c (parse_args): Likewise.
791
bfd133d0
AM
7922020-08-03 Alan Modra <amodra@gmail.com>
793
794 PR 26328
795 * configure.ac: AC_CHECK_DECLS asprintf.
796 * configure: Regenerate.
797 * config.in: Regenerate.
798
39d744bd
AM
7992020-08-03 Alan Modra <amodra@gmail.com>
800
801 * testsuite/ld-elfvers/vers.exp (objdump_symstuff): Remove unused
802 variable. Init list_a and list_b to empty.
803 (objdump_dynsymstuff): Likewise, and remove undefined list_a
804 handling.
805 * testsuite/ld-elfweak/elfweak.exp (objdump_symstuff): Similarly.
806 (objdump_dynsymstuff): Similarly.
807
e6a6c767
L
8082020-07-31 H.J. Lu <hongjiu.lu@intel.com>
809
810 * testsuite/ld-elf/indirect.exp: Append -fno-lto to CC.
811 * testsuite/ld-elfvers/vers.exp: Likewise.
812 * testsuite/ld-elfweak/elfweak.exp: Likewise.
813 * testsuite/ld-ifunc/ifunc.exp: Likewise.
814 * testsuite/ld-plugin/lto.exp (no_lto): New.
815 Add $no_lto to build pr15146c.so.
816 * testsuite/lib/ld-lib.exp (at_least_gcc_version): Filter out
817 -Wl,xxx options.
818 (check_gcc_plugin_enabled): Likewise.
819 (run_ld_link_exec_tests): Prepend -fno-lto to $cflags.
820 (run_cc_link_tests): Likewise.
821
223d5266
SV
8222020-07-31 Shahab Vahedi <shahab@synopsys.com>
823
824 * scripttempl/elfarc.sc (.init_array): Keep ".init_array.*".
825 (.fini_array): Keep ".fini_array.*".
826
c8693053
RO
8272020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
828
829 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
830 * Makefile.in: Regenerate.
831 * configure: Regenerate.
832
c77cb2a0
MR
8332020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
834
835 * testsuite/ld-elf/sec64k.exp: Also accept a section symbol with
836 a name.
837 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: New
838 test.
839 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: New
840 test.
841 * testsuite/ld-mips-elf/global-local-symtab-sort-n32.d: New
842 test.
843 * testsuite/ld-mips-elf/global-local-symtab-sort-n32t.d: New
844 test.
845 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: New
846 test.
847 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: New
848 test.
849 * testsuite/ld-mips-elf/global-local-symtab-final-o32.d: New
850 test.
851 * testsuite/ld-mips-elf/global-local-symtab-final-n32.d: New
852 test.
853 * testsuite/ld-mips-elf/global-local-symtab-final-n64.d: New
854 test.
855 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
856
3f1b17bb
MR
8572020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
858
859 * testsuite/ld-mips-elf/global-local-symtab-o32.d: New test.
860 * testsuite/ld-mips-elf/global-local-symtab-o32t.d: New test.
861 * testsuite/ld-mips-elf/global-local-symtab-n32.d: New test.
862 * testsuite/ld-mips-elf/global-local-symtab-n32t.d: New test.
863 * testsuite/ld-mips-elf/global-local-symtab-n64.d: New test.
864 * testsuite/ld-mips-elf/global-local-symtab.ld: New test linker
865 script.
866 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
867
5987401f
AM
8682020-07-29 Alan Modra <amodra@gmail.com>
869
870 * ldelf.c (ldelf_before_place_orphans): Set SEC_EXCLUDE for
871 discarded sections.
872
f437dadd
AM
8732020-07-28 Alan Modra <amodra@gmail.com>
874
875 * ldlang.c (lang_check): Don't complain about relocs or merge
876 attributes from --just-symbols input.
877 * testsuite/ld-misc/just-symbols.exp: Just dump .data section.
878 Don't run test on a number of targets.
879
c38166b3
AM
8802020-07-28 Alan Modra <amodra@gmail.com>
881
882 * testsuite/ld-misc/just-symbols-1.dd: Revert last change.
883
32377a80
AM
8842020-07-27 Alan Modra <amodra@gmail.com>
885
886 * testsuite/ld-misc/just-symbols.exp: Run for x86_64 PE too.
887 Set LDFLAGS for PE and XCOFF.
888 * testsuite/ld-misc/just-symbols.ld: Accept XCOFF mapped .data.
c38166b3
AM
889 * testsuite/ld-misc/just-symbols-1.dd: Don't check format or
890 "Contents of section" lines.
32377a80 891
344e6653
AM
8922020-07-27 Alan Modra <amodra@gmail.com>
893
894 * testsuite/lib/ld-lib.exp (check_ctf_available): Check first that
895 target compiler is available.
896
97c79e21
MR
8972020-07-23 Maciej W. Rozycki <macro@wdc.com>
898
899 PR ld/26288
900 * ldelf.c (ldelf_after_open): Do not reject ET_EXEC input
901 supplied with `--just-symbols'.
902 * testsuite/ld-misc/just-symbols.exp: New test script.
903 * testsuite/ld-misc/just-symbols-1.dd: New test dump.
904 * testsuite/ld-misc/just-symbols.ld: New test linker script.
905 * testsuite/ld-misc/just-symbols-0.s: New test source.
906 * testsuite/ld-misc/just-symbols-1.s: New test source.
907
b5dd7120
MR
9082020-07-23 Maciej W. Rozycki <macro@wdc.com>
909
910 PR ld/26288
911
912 Revert:
913 PR 26047
914 * ldelf.c (ldelf_after_open): Fail if attempting to link one
915 executable into another.
916
62cdd7b1
NA
9172020-07-22 Nick Alcock <nick.alcock@oracle.com>
918
919 * testsuite/ld-ctf/ctf.exp: Skip on non-ELF for now.
920
fa03171f
NA
9212020-07-22 Nick Alcock <nick.alcock@oracle.com>
922
923 * ldlang.c (ldlang_open_ctf): Set SEC_EXCLUDE on all but the
924 first input .ctf section.
925
7cdfc346
NA
9262020-07-22 Nick Alcock <nick.alcock@oracle.com>
927
928 * configure.ac (enable_libctf): Substitute it.
929 * Makefile.am (enablings.exp): New.
930 (EXTRA_DEJAGNU_SITE_CONFIG): Add it.
931 (DISTCLEANFILES): Likewise.
932 * Makefile.in: Regenerate.
933 * configure: Likewise.
934 * testsuite/lib/ld-lib.exp (compile_one_cc): New.
935 (check_ctf_available): Likewise.
936 (skip_ctf_tests): Likewise.
937 * testsuite/ld-ctf/ctf.exp: Call skip_ctf_tests.
938
b1b33524
EB
9392020-07-22 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
940
941 * testsuite/ld-ctf/ctf.exp: New file.
942 * testsuite/ld-ctf/A-2.c: New file.
943 * testsuite/ld-ctf/A.c: New file.
944 * testsuite/ld-ctf/B-2.c: New file.
945 * testsuite/ld-ctf/B.c: New file.
946 * testsuite/ld-ctf/C-2.c: New file.
947 * testsuite/ld-ctf/C.c: New file.
948 * testsuite/ld-ctf/array-char.c: New file.
949 * testsuite/ld-ctf/array-int.c: New file.
950 * testsuite/ld-ctf/array.d: New file.
951 * testsuite/ld-ctf/child-float.c: New file.
952 * testsuite/ld-ctf/child-int.c: New file.
953 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: New file.
954 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: New file.
955 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: New file.
956 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: New file.
957 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: New file.
958 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: New file.
959 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: New file.
960 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: New file.
961 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: New file.
962 * testsuite/ld-ctf/conflicting-enums.d: New file.
963 * testsuite/ld-ctf/conflicting-typedefs.d: New file.
964 * testsuite/ld-ctf/cross-tu-1.c: New file.
965 * testsuite/ld-ctf/cross-tu-2.c: New file.
966 * testsuite/ld-ctf/cross-tu-conflicting-2.c: New file.
967 * testsuite/ld-ctf/cross-tu-cyclic-1.c: New file.
968 * testsuite/ld-ctf/cross-tu-cyclic-2.c: New file.
969 * testsuite/ld-ctf/cross-tu-cyclic-3.c: New file.
970 * testsuite/ld-ctf/cross-tu-cyclic-4.c: New file.
971 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: New file.
972 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: New file.
973 * testsuite/ld-ctf/cross-tu-into-cycle.d: New file.
974 * testsuite/ld-ctf/cross-tu-noncyclic.d: New file.
975 * testsuite/ld-ctf/cycle-1.c: New file.
976 * testsuite/ld-ctf/cycle-1.d: New file.
977 * testsuite/ld-ctf/cycle-2.A.d: New file.
978 * testsuite/ld-ctf/cycle-2.B.d: New file.
979 * testsuite/ld-ctf/cycle-2.C.d: New file.
980 * testsuite/ld-ctf/diag-ctf-version-0.d: New file.
981 * testsuite/ld-ctf/diag-ctf-version-0.s: New file.
982 * testsuite/ld-ctf/diag-ctf-version-2-unsupported-feature.d: New file.
983 * testsuite/ld-ctf/diag-ctf-version-2-unsupported-feature.s: New file.
984 * testsuite/ld-ctf/diag-ctf-version-f.d: New file.
985 * testsuite/ld-ctf/diag-ctf-version-f.s: New file.
986 * testsuite/ld-ctf/diag-cttname-invalid.d: New file.
987 * testsuite/ld-ctf/diag-cttname-invalid.s: New file.
988 * testsuite/ld-ctf/diag-cttname-null.d: New file.
989 * testsuite/ld-ctf/diag-cttname-null.s: New file.
990 * testsuite/ld-ctf/diag-cuname.d: New file.
991 * testsuite/ld-ctf/diag-cuname.s: New file.
992 * testsuite/ld-ctf/diag-decompression-failure.d: New file.
993 * testsuite/ld-ctf/diag-decompression-failure.s: New file.
994 * testsuite/ld-ctf/diag-parlabel.d: New file.
995 * testsuite/ld-ctf/diag-parlabel.s: New file.
996 * testsuite/ld-ctf/diag-parname.d: New file.
997 * testsuite/ld-ctf/diag-parname.s: New file.
998 * testsuite/ld-ctf/diag-unsupported-flag.d: New file.
999 * testsuite/ld-ctf/diag-unsupported-flag.s: New file.
1000 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: New file.
1001 * testsuite/ld-ctf/diag-wrong-magic-number.d: New file.
1002 * testsuite/ld-ctf/diag-wrong-magic-number.s: New file.
1003 * testsuite/ld-ctf/enum-2.c: New file.
1004 * testsuite/ld-ctf/enum.c: New file.
1005 * testsuite/ld-ctf/function.c: New file.
1006 * testsuite/ld-ctf/function.d: New file.
1007 * testsuite/ld-ctf/slice.c: New file.
1008 * testsuite/ld-ctf/slice.d: New file.
1009 * testsuite/ld-ctf/super-sub-cycles.c: New file.
1010 * testsuite/ld-ctf/super-sub-cycles.d: New file.
1011 * testsuite/ld-ctf/typedef-int.c: New file.
1012 * testsuite/ld-ctf/typedef-long.c: New file.
1013 * testsuite/ld-ctf/union-1.c: New file.
1014
5dba6f05
NA
10152020-07-22 Nick Alcock <nick.alcock@oracle.com>
1016
1017 * ldlex.h (option_values) <OPTION_CTF_VARIABLES,
1018 OPTION_NO_CTF_VARIABLES, OPTION_CTF_SHARE_TYPES>: New.
1019 * ld.h (ld_config_type) <ctf_variables, ctf_share_duplicated>:
1020 New fields.
1021 * ldlang.c (lang_merge_ctf): Use them.
1022 * lexsup.c (ld_options): Add ctf-variables, no-ctf-variables,
1023 ctf-share-types.
1024 (parse_args) <OPTION_CTF_VARIABLES, OPTION_NO_CTF_VARIABLES,
1025 OPTION_CTF_SHARE_TYPES>: New cases.
1026 * ld.texi: Document new options.
1027 * NEWS: Likewise.
1028
f320bba5
EB
10292020-07-22 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
1030
1031 * ldlang.c (lang_merge_ctf): Turn errors into warnings.
1032 Fix a comment typo.
1033 (lang_write_ctf): Turn an error into a warning.
1034 (ldlang_open_ctf): Reformat warnings. Fix printing file names.
1035
8b37e7b6
NA
10362020-07-22 Nick Alcock <nick.alcock@oracle.com>
1037
1038 * ldlang.c (lang_ctf_errs_warnings): New, print CTF errors
1039 and warnings. Assert when libctf asserts.
1040 (lang_merge_ctf): Call it.
1041 (land_write_ctf): Likewise.
1042
0e6a3f07
L
10432020-07-22 H.J. Lu <hongjiu.lu@intel.com>
1044
1045 PR ld/26262
1046 PR ld/26267
1047 * ldlang.c (lang_process): Set lto_all_symbols_read after all
1048 LTO IR symbols have been read.
1049 * plugin.c (plugin_notice): Override the IR definition only if
1050 all LTO IR symbols have been read or the new definition is
1051 non-weak and the the IR definition is weak
1052 * testsuite/ld-plugin/lto.exp: Run PR ld/26262 and ld/26267
1053 tests.
1054 * testsuite/ld-plugin/pr26262a.c: New file.
1055 * testsuite/ld-plugin/pr26262b.c: Likewise.
1056 * testsuite/ld-plugin/pr26262c.c: Likewise.
1057 * testsuite/ld-plugin/pr26267.err: Likewise.
1058 * testsuite/ld-plugin/pr26267a.c: Likewise.
1059 * testsuite/ld-plugin/pr26267b.c: Likewise.
1060 * testsuite/ld-plugin/pr26267c.c: Likewise.
1061
39326c35
NC
10622020-07-20 Nick Clifton <nickc@redhat.com>
1063
1064 * testsuite/ld-powerpc/powerpc.exp (ppcelftests): Use section name
1065 .PPC.EMB.apuinfo instead of section number 2 in apuinfo tests.
1066
2f5541f3
AM
10672020-07-20 Alan Modra <amodra@gmail.com>
1068
1069 PR 26265
1070 * ldlang.c (undef_from_cmdline): Delete.
1071 (ldlang_add_undef): Mark "cmdline" param unused.
1072 (lang_end): Traverse gc_sym_list to determine whether a symbol root
1073 has been specified. Update error message.
1074 * testsuite/ld-gc/noent.d: Adjust for changed error message.
1075
98b3697b
L
10762020-07-20 H.J. Lu <hongjiu.lu@intel.com>
1077
1078 PR gas/26263
1079 * testsuite/ld-i386/pr26263.d: Updated.
1080 * testsuite/ld-x86-64/pr26263.d: Likewise.
1081 * testsuite/ld-x86-64/x86-64.exp: Run gas/26263 test for all ELF
1082 targets.
1083
2585b7a5
L
10842020-07-19 H.J. Lu <hongjiu.lu@intel.com>
1085
1086 PR gas/26263
1087 * testsuite/ld-i386/i386.exp: Run PR gas/26263 test.
1088 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1089 * testsuite/ld-i386/pr26263.d: New file.
1090 * testsuite/ld-x86-64/pr26263.d: Likewise.
1091 * testsuite/ld-x86-64/pr26263.s: Likewise.
1092
4609ada4
HPN
10932020-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1094
1095 * scripttempl/elf.sc (ETEXT_LAST_IN_RODATA_SEGMENT): New variable.
1096 * emulparams/elf64mmix.sh (ETEXT_LAST_IN_RODATA_SEGMENT): Define.
1097 * testsuite/ld-mmix/sec-1.d: Adjust.
1098
e10a07b3
AM
10992020-07-19 Alan Modra <amodra@gmail.com>
1100
1101 * emultempl/ppc64elf.em (power10-stubs): Accept optional "auto" arg.
1102 * ld.texi (power10-stubs): Update.
1103 * testsuite/ld-powerpc/callstub-1.d: Force --power10-stubs.
1104 * testsuite/ld-powerpc/callstub-2.d: Relax branch offset comparison.
1105 * testsuite/ld-powerpc/callstub-4.d: New test.
1106 * testsuite/ld-powerpc/notoc.d: Force --no-power10-stubs.
1107 * testsuite/ld-powerpc/notoc3.d,
1108 * testsuite/ld-powerpc/notoc3.s,
1109 * testsuite/ld-powerpc/notoc3.wf: New test.
1110 * testsuite/ld-powerpc/powerpc.exp: Run new tests. Pass
1111 --no-power10-stubs for notoc link.
1112
555a5789
HPN
11132020-07-17 Hans-Peter Nilsson <hp@bitrange.com>
1114
1115 * scripttempt/mmo.sc: Move .init first in .text output section.
1116 * testsuite/ld-mmix/bpo-9m.d: Adjust accordingly.
1117
36938cab
JB
11182020-07-15 Jan Beulich <jbeulich@suse.com>
1119
1120 * testsuite/ld-i386/ibt-plt-1.d, testsuite/ld-i386/ibt-plt-2a.d,
1121 testsuite/ld-i386/ibt-plt-2c.d, testsuite/ld-i386/ibt-plt-3a.d,
1122 testsuite/ld-i386/ibt-plt-3c.d, testsuite/ld-i386/plt-pic.pd,
1123 testsuite/ld-i386/plt-pic2.dd, testsuite/ld-i386/plt.pd,
1124 testsuite/ld-i386/plt2.dd, testsuite/ld-i386/pr19636-1d.d,
1125 testsuite/ld-i386/pr19636-1l.d, testsuite/ld-i386/pr19636-2c.d,
1126 testsuite/ld-i386/pr20830.d, testsuite/ld-i386/vxworks1-lib.dd,
1127 testsuite/ld-i386/vxworks1.dd,
1128 testsuite/ld-ifunc/ifunc-2-i386-now.d,
1129 testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
1130 testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d,
1131 testsuite/ld-ifunc/ifunc-2-x86-64-now.d,
1132 testsuite/ld-ifunc/ifunc-21-x86-64.d,
1133 testsuite/ld-ifunc/ifunc-22-x86-64.d,
1134 testsuite/ld-ifunc/pr17154-i386-now.d,
1135 testsuite/ld-ifunc/pr17154-i386.d,
1136 testsuite/ld-ifunc/pr17154-x86-64-now.d,
1137 testsuite/ld-ifunc/pr17154-x86-64.d,
1138 testsuite/ld-x86-64/align-branch-1.d,
1139 testsuite/ld-x86-64/bnd-branch-1-now.d,
1140 testsuite/ld-x86-64/bnd-branch-1.d,
1141 testsuite/ld-x86-64/bnd-ifunc-1-now.d,
1142 testsuite/ld-x86-64/bnd-ifunc-1.d,
1143 testsuite/ld-x86-64/bnd-ifunc-2-now.d,
1144 testsuite/ld-x86-64/bnd-ifunc-2.d,
1145 testsuite/ld-x86-64/bnd-plt-1-now.d,
1146 testsuite/ld-x86-64/bnd-plt-1.d,
1147 testsuite/ld-x86-64/call1a.d, testsuite/ld-x86-64/call1b.d,
1148 testsuite/ld-x86-64/call1d.d, testsuite/ld-x86-64/call1e.d,
1149 testsuite/ld-x86-64/call1f.d, testsuite/ld-x86-64/call1g.d,
1150 testsuite/ld-x86-64/call1h.d, testsuite/ld-x86-64/call1i.d,
1151 testsuite/ld-x86-64/gotpcrel1.dd,
1152 testsuite/ld-x86-64/hidden2.d,
1153 testsuite/ld-x86-64/ibt-plt-1-x32.d,
1154 testsuite/ld-x86-64/ibt-plt-1.d,
1155 testsuite/ld-x86-64/ibt-plt-2a-x32.d,
1156 testsuite/ld-x86-64/ibt-plt-2a.d,
1157 testsuite/ld-x86-64/ibt-plt-2c-x32.d,
1158 testsuite/ld-x86-64/ibt-plt-2c.d,
1159 testsuite/ld-x86-64/ibt-plt-3a-x32.d,
1160 testsuite/ld-x86-64/ibt-plt-3a.d,
1161 testsuite/ld-x86-64/ibt-plt-3c-x32.d,
1162 testsuite/ld-x86-64/ibt-plt-3c.d,
1163 testsuite/ld-x86-64/libno-plt-1b.dd,
1164 testsuite/ld-x86-64/mpx3.dd, testsuite/ld-x86-64/mpx3n.dd,
1165 testsuite/ld-x86-64/mpx4.dd, testsuite/ld-x86-64/mpx4n.dd,
1166 testsuite/ld-x86-64/no-plt-1a.dd,
1167 testsuite/ld-x86-64/no-plt-1b.dd,
1168 testsuite/ld-x86-64/no-plt-1c.dd,
1169 testsuite/ld-x86-64/no-plt-1d.dd,
1170 testsuite/ld-x86-64/no-plt-1e.dd,
1171 testsuite/ld-x86-64/no-plt-1f.dd,
1172 testsuite/ld-x86-64/no-plt-1g.dd,
1173 testsuite/ld-x86-64/plt-main-bnd.dd,
1174 testsuite/ld-x86-64/plt-main-ibt-x32.dd,
1175 testsuite/ld-x86-64/plt-main-ibt.dd,
1176 testsuite/ld-x86-64/plt.pd, testsuite/ld-x86-64/plt2.dd,
1177 testsuite/ld-x86-64/pr19609-5a.d,
1178 testsuite/ld-x86-64/pr19609-5b.d,
1179 testsuite/ld-x86-64/pr19609-5c.d,
1180 testsuite/ld-x86-64/pr19609-5e.d,
1181 testsuite/ld-x86-64/pr19609-7b.d,
1182 testsuite/ld-x86-64/pr19609-7d.d,
1183 testsuite/ld-x86-64/pr19636-2d.d,
1184 testsuite/ld-x86-64/pr19636-2l.d,
1185 testsuite/ld-x86-64/pr20253-1b.d,
1186 testsuite/ld-x86-64/pr20253-1d.d,
1187 testsuite/ld-x86-64/pr20253-1f.d,
1188 testsuite/ld-x86-64/pr20253-1h.d,
1189 testsuite/ld-x86-64/pr20253-1j.d,
1190 testsuite/ld-x86-64/pr20253-1l.d,
1191 testsuite/ld-x86-64/pr20830a-now.d,
1192 testsuite/ld-x86-64/pr20830a.d,
1193 testsuite/ld-x86-64/pr20830b-now.d,
1194 testsuite/ld-x86-64/pr20830b.d,
1195 testsuite/ld-x86-64/pr21038a-now.d,
1196 testsuite/ld-x86-64/pr21038a.d,
1197 testsuite/ld-x86-64/pr21038b-now.d,
1198 testsuite/ld-x86-64/pr21038b.d,
1199 testsuite/ld-x86-64/pr21038c-now.d,
1200 testsuite/ld-x86-64/pr21038c.d,
1201 testsuite/ld-x86-64/pr23930-x32.d,
1202 testsuite/ld-x86-64/pr23930.d,
1203 testsuite/ld-x86-64/pr25416-1a.d,
1204 testsuite/ld-x86-64/pr25416-2a.d,
1205 testsuite/ld-x86-64/pr26018.d,
1206 testsuite/ld-x86-64/protected2-k1om.d,
1207 testsuite/ld-x86-64/protected2-l1om.d,
1208 testsuite/ld-x86-64/protected2.d,
1209 testsuite/ld-x86-64/protected3.d,
1210 testsuite/ld-x86-64/protected8.d,
1211 testsuite/ld-x86-64/tlsbin.dd, testsuite/ld-x86-64/tlsbin2.dd,
1212 testsuite/ld-x86-64/tlsbindesc.dd,
1213 testsuite/ld-x86-64/tlsdesc.dd,
1214 testsuite/ld-x86-64/tlsdesc.pd,
1215 testsuite/ld-x86-64/tlsgd10.dd,
1216 testsuite/ld-x86-64/tlsgd7.dd, testsuite/ld-x86-64/tlsgd8.dd,
1217 testsuite/ld-x86-64/tlsgd9.dd,
1218 testsuite/ld-x86-64/tlsgdesc.dd,
1219 testsuite/ld-x86-64/tlsld3.dd, testsuite/ld-x86-64/tlsld4.dd,
1220 testsuite/ld-x86-64/tlspic.dd, testsuite/ld-x86-64/tlspic2.dd,
1221 testsuite/ld-x86-64/tlspie2b.d, testsuite/ld-x86-64/tlspie2c.d:
1222 Adjust expectations.
1223
a8a48c75
HPN
12242020-07-15 Hans-Peter Nilsson <hp@bitrange.com>
1225
1226 * testsuite/ld-mmix/undef-1.d, testsuite/ld-mmix/undef-1m.d,
1227 testsuite/ld-mmix/undef-2.d, testsuite/ld-mmix/undef-2m.d: Add
1228 start- and end-anchors to error-string to match just a
1229 single-line error-message.
1230
7a34d0ea
AM
12312020-07-13 Alan Modra <amodra@gmail.com>
1232
1233 * testsuite/ld-scripts/default-script1.d: Don't skip, xfail
1234 using is_pecoff_format.
1235 * testsuite/ld-scripts/default-script2.d: Likewise.
1236 * testsuite/ld-scripts/default-script3.d: Likewise.
1237 * testsuite/ld-scripts/default-script4.d: Likewise.
1238 * testsuite/ld-scripts/pr20302.d: Remove x86_64-*-cygwin from notarget.
1239 * testsuite/ld-scripts/provide-6.d: Remove x86_64-*-cygwin from xfail.
1240 * testsuite/ld-scripts/provide-8.d: Likewise.
1241
d882c988
AM
12422020-07-10 Alan Modra <amodra@gmail.com>
1243
1244 * ld.texi (PowerPC64 ELF64): Document --no-inline-optimize,
1245 --power10-stubs and --no-power10-stubs.
1246
d3b10ee7
AM
12472020-07-10 Alan Modra <amodra@gmail.com>
1248
1249 * emultempl/ppc64elf.em (params): Init new field.
1250 (enum ppc64_opt): Add OPTION_POWER10_STUBS and OPTION_NO_POWER10_STUBS.
1251 (PARSE_AND_LIST_LONGOPTS): Support --power10-stubs and
1252 --no-power10-stubs.
1253 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1254 * testsuite/ld-powerpc/callstub-3.d: New test.
1255 * testsuite/ld-powerpc/powerpc.exp: Run it.
1256
fe49679d
AM
12572020-07-09 Alan Modra <amodra@gmail.com>
1258
1259 * emulparams/ppcpe.sh: Delete.
1260 * scripttempl/ppcpe.sc: Delete.
1261 * emulparams/ppclynx.sh: Delete.
1262 * Makefile.am (ALL_EMULATION_SOURCES): Remove ppc PE and lynxos.
1263 * configure.tgt: Likewise.
1264 * emultempl/beos.em: Remove powerpc PE support.
1265 * emultempl/pe.em: Likewise.
1266 * po/BLD-POTFILES.in: Regenerate.
1267 * Makefile.in: Regenerate.
1268
c560184e
AM
12692020-07-09 Alan Modra <amodra@gmail.com>
1270
1271 * testsuite/ld-gc/gc.exp: Don't set -mminimal-toc for powerpc64,
1272 and remove powerpc64 xfail. Use -fno-PIE for ppc32.
1273
470cd0fa
AM
12742020-07-09 Alan Modra <amodra@gmail.com>
1275
1276 PR 18841
1277 * testsuite/ld-ifunc/ifunc.exp: Run pr18841 tests non-pie.
1278
babcb2ea
AM
12792020-07-08 Alan Modra <amodra@gmail.com>
1280
1281 * testsuite/lib/ld-lib.exp (ar_simple_create): Pass options before
1282 ar command.
1283 * testsuite/ld-powerpc/aix52.exp: Run for rs6000-aix5.2. Update
1284 match files.
1285 * testsuite/ld-powerpc/aix-abs-branch-1.dd: Update.
1286 * testsuite/ld-powerpc/aix-core-sec-1.hd: Update.
1287 * testsuite/ld-powerpc/aix-gc-1-32.dd: Update.
1288 * testsuite/ld-powerpc/aix-gc-1-64.dd: Update.
1289 * testsuite/ld-powerpc/aix-glink-1-32.dd: Update.
1290 * testsuite/ld-powerpc/aix-glink-1-64.dd: Update.
1291 * testsuite/ld-powerpc/aix-glink-2-32.dd: Update.
1292 * testsuite/ld-powerpc/aix-glink-2-64.dd: Update.
1293 * testsuite/ld-powerpc/aix-no-dup-syms-1-rel.rd: Update.
1294 * testsuite/ld-powerpc/aix-ref-1-32.od: Update.
1295 * testsuite/ld-powerpc/aix-ref-1-64.od: Update.
1296 * testsuite/ld-powerpc/aix-toc-1-32.dd: Update.
1297 * testsuite/ld-powerpc/aix-toc-1-64.dd: Update.
1298 * testsuite/ld-powerpc/aix-weak-3-32.dd: Update.
1299 * testsuite/ld-powerpc/aix-weak-3-64.dd: Update.
1300 * testsuite/ld-powerpc/aix-abs-branch-1.nd: Delete, replace with..
1301 * testsuite/ld-powerpc/aix-abs-branch-1-32.nd,
1302 * testsuite/ld-powerpc/aix-abs-branch-1-64.nd: ..these new files.
1303 * testsuite/ld-powerpc/aix-abs-reloc-1.nd: Delete, replace with..
1304 * testsuite/ld-powerpc/aix-abs-reloc-1-32.nd,
1305 * testsuite/ld-powerpc/aix-abs-reloc-1-64.nd: ..these new files.
1306 * testsuite/ld-powerpc/aix-abs-reloc-1.od: Delete, replace with..
1307 * testsuite/ld-powerpc/aix-abs-reloc-1-32.od,
1308 * testsuite/ld-powerpc/aix-abs-reloc-1-64.od: ..these new files.
1309 * testsuite/ld-powerpc/aix-export-1-all.dd: Delete, replace with..
1310 * testsuite/ld-powerpc/aix-export-1-all-32.dd,
1311 * testsuite/ld-powerpc/aix-export-1-all-64.dd: ..these new files.
1312 * testsuite/ld-powerpc/aix-export-1-full.dd: Delete, replace with..
1313 * testsuite/ld-powerpc/aix-export-1-full-32.dd,
1314 * testsuite/ld-powerpc/aix-export-1-full-64.dd: ..these new files.
1315 * testsuite/ld-powerpc/aix-export-2.nd: Delete, replace with..
1316 * testsuite/ld-powerpc/aix-export-2-32.nd,
1317 * testsuite/ld-powerpc/aix-export-2-64.nd: ..these new files.
1318 * testsuite/ld-powerpc/aix-gc-1.nd: Delete, replace with..
1319 * testsuite/ld-powerpc/aix-gc-1-32.nd,
1320 * testsuite/ld-powerpc/aix-gc-1-64.nd: ..these new files.
1321 * testsuite/ld-powerpc/aix-glink-3.dd: Delete, replace with..
1322 * testsuite/ld-powerpc/aix-glink-3-32.dd,
1323 * testsuite/ld-powerpc/aix-glink-3-64.dd: ..these new files.
1324 * testsuite/ld-powerpc/aix-lineno-1a.dd: Delete, replace with..
1325 * testsuite/ld-powerpc/aix-lineno-1a-32.dd,
1326 * testsuite/ld-powerpc/aix-lineno-1a-64.dd: ..these new files.
1327 * testsuite/ld-powerpc/aix-lineno-1a.nd: Delete, replace with..
1328 * testsuite/ld-powerpc/aix-lineno-1a-32.nd,
1329 * testsuite/ld-powerpc/aix-lineno-1a-64.nd: ..these new files.
1330 * testsuite/ld-powerpc/aix-lineno-1b.dd: Delete, replace with..
1331 * testsuite/ld-powerpc/aix-lineno-1b-32.dd,
1332 * testsuite/ld-powerpc/aix-lineno-1b-64.dd: ..these new files.
1333 * testsuite/ld-powerpc/aix-lineno-1b.nd: Delete, replace with..
1334 * testsuite/ld-powerpc/aix-lineno-1b-32.nd,
1335 * testsuite/ld-powerpc/aix-lineno-1b-64.nd: ..these new files.
1336 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso.dnd: Delete, replace with..
1337 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.dnd,
1338 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.dnd: ..these new files.
1339 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso.drd: Delete, replace with..
1340 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.drd,
1341 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.drd: ..these new files.
1342 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso.nd: Delete, replace with..
1343 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.nd,
1344 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.nd: ..these new files.
1345 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso.rd: Delete, replace with..
1346 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.rd,
1347 * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.rd: ..these new files.
1348 * testsuite/ld-powerpc/aix-weak-1-dso.dnd: Delete, replace with..
1349 * testsuite/ld-powerpc/aix-weak-1-dso-32.dnd,
1350 * testsuite/ld-powerpc/aix-weak-1-dso-64.dnd: ..these new files.
1351 * testsuite/ld-powerpc/aix-weak-1-dso.hd: Delete, replace with..
1352 * testsuite/ld-powerpc/aix-weak-1-dso-32.hd,
1353 * testsuite/ld-powerpc/aix-weak-1-dso-64.hd: ..these new files.
1354 * testsuite/ld-powerpc/aix-weak-1-dso.nd: Delete, replace with..
1355 * testsuite/ld-powerpc/aix-weak-1-dso-32.nd,
1356 * testsuite/ld-powerpc/aix-weak-1-dso-64.nd: ..these new files.
1357 * testsuite/ld-powerpc/aix-weak-1-gcdso.dnd: Delete, replace with..
1358 * testsuite/ld-powerpc/aix-weak-1-gcdso-32.dnd,
1359 * testsuite/ld-powerpc/aix-weak-1-gcdso-64.dnd: ..these new files.
1360 * testsuite/ld-powerpc/aix-weak-1-gcdso.hd: Delete, replace with..
1361 * testsuite/ld-powerpc/aix-weak-1-gcdso-32.hd,
1362 * testsuite/ld-powerpc/aix-weak-1-gcdso-64.hd: ..these new files.
1363 * testsuite/ld-powerpc/aix-weak-1-gcdso.nd: Delete, replace with..
1364 * testsuite/ld-powerpc/aix-weak-1-gcdso-32.nd,
1365 * testsuite/ld-powerpc/aix-weak-1-gcdso-64.nd: ..these new files.
1366 * testsuite/ld-powerpc/aix-weak-2a.nd: Delete, replace with..
1367 * testsuite/ld-powerpc/aix-weak-2a-32.nd,
1368 * testsuite/ld-powerpc/aix-weak-2a-64.nd: ..these new files.
1369 * testsuite/ld-powerpc/aix-weak-2b.nd: Delete, replace with..
1370 * testsuite/ld-powerpc/aix-weak-2b-32.nd,
1371 * testsuite/ld-powerpc/aix-weak-2b-64.nd: ..these new files.
1372 * testsuite/ld-powerpc/aix-weak-2c.nd: Delete, replace with..
1373 * testsuite/ld-powerpc/aix-weak-2c-32.nd,
1374 * testsuite/ld-powerpc/aix-weak-2c-64.nd: ..these new files.
1375 * testsuite/ld-powerpc/aix-weak-2c.od: Delete, replace with..
1376 * testsuite/ld-powerpc/aix-weak-2c-32.od,
1377 * testsuite/ld-powerpc/aix-weak-2c-64.od: ..these new files.
1378
35097e10
AM
13792020-07-07 Alan Modra <amodra@gmail.com>
1380
1381 * testsuite/ld-scripts/section-match-1.d: xfail h8300.
1382
e553d5b2
AM
13832020-07-07 Alan Modra <amodra@gmail.com>
1384
1385 * testsuite/ld-scripts/align.exp: Don't exclude xcoff. Pass
1386 -bnogc ld option for xcoff.
1387 * testsuite/ld-scripts/provide.exp: Likewise.
1388 * testsuite/ld-scripts/data.exp: Pass -bnogc ld option for xcoff.
1389 * testsuite/ld-scripts/default-script.exp: Likewise.
1390 * testsuite/ld-scripts/defined.exp: Likewise.
1391 * testsuite/ld-scripts/empty-address.exp: Likewise.
1392 * testsuite/ld-scripts/expr.exp: Likewise.
1393 * testsuite/ld-scripts/include.exp: Likewise.
1394 * testsuite/ld-scripts/script.exp: Likewise.
1395 * testsuite/ld-scripts/assign-loc.d: Don't exclude xcoff.
1396 * testsuite/ld-scripts/defined3.d: Likewise.
1397 * testsuite/ld-scripts/defined4.d: Likewise.
1398 * testsuite/ld-scripts/pr18963.d: Likewise.
1399 * testsuite/ld-scripts/sane1.d: Likewise.
1400 * testsuite/ld-scripts/segment-start.d: Likewise.
1401 * testsuite/ld-scripts/include-1.d: Likewise, and relax text vma.
1402 * testsuite/ld-scripts/defined5.d: Update xfail and comment.
1403 * testsuite/ld-scripts/defined5.s: Tweak "defined" to be at
1404 non-zero section offset.
1405 * testsuite/ld-scripts/fill16.d: xfail for xcoff.
1406 * testsuite/ld-scripts/provide-2.d: Accept more symbols.
1407 * testsuite/ld-scripts/provide-4.d: Likewise.
1408 * testsuite/ld-scripts/provide-5.d: Likewise.
1409 * testsuite/ld-scripts/provide-6.d: Likewise.
1410 * testsuite/ld-scripts/provide-7.d: Likewise.
1411 * testsuite/ld-scripts/align.t: Accept xcoff mapped .text and .data.
1412 * testsuite/ld-scripts/defined3.t: Likewise.
1413 * testsuite/ld-scripts/defined4.t: Likewise.
1414 * testsuite/ld-scripts/defined5.t: Likewise.
1415 * testsuite/ld-scripts/fill.t: Likewise.
1416 * testsuite/ld-scripts/include-subdata.t: Likewise.
1417 * testsuite/ld-scripts/provide-1.t: Likewise.
1418 * testsuite/ld-scripts/provide-2.t: Likewise.
1419 * testsuite/ld-scripts/provide-3.t: Likewise.
1420 * testsuite/ld-scripts/provide-4.t: Likewise.
1421 * testsuite/ld-scripts/provide-5.t: Likewise.
1422 * testsuite/ld-scripts/provide-6.t: Likewise.
1423 * testsuite/ld-scripts/provide-7.t: Likewise.
1424 * testsuite/ld-scripts/provide-8.t: Likewise.
1425 * testsuite/ld-scripts/assign-loc.t: Add required xcoff sections.
1426 * testsuite/ld-scripts/sizeof.t: Likewise.
1427 * testsuite/ld-scripts/align2.t: Likewise, and mapped sections.
1428 * testsuite/ld-scripts/align5.t: Likewise.
1429 * testsuite/ld-scripts/default-script.t: Likewise.
1430 * testsuite/ld-scripts/empty-address-1.t: Likewise.
1431 * testsuite/ld-scripts/empty-address-2a.t: Likewise.
1432 * testsuite/ld-scripts/empty-address-2b.t: Likewise.
1433 * testsuite/ld-scripts/empty-address-3a.t: Likewise.
1434 * testsuite/ld-scripts/empty-address-3b.t: Likewise.
1435 * testsuite/ld-scripts/empty-address-3c.t: Likewise.
1436 * testsuite/ld-scripts/include-sections.t: Likewise.
1437 * testsuite/ld-scripts/pr14962.t: Likewise.
1438 * testsuite/ld-scripts/sane1.t: Likewise.
1439
231b7382
AM
14402020-07-07 Alan Modra <amodra@gmail.com>
1441
1442 * testsuite/ld-scripts/align.exp: Use is_pecoff_format.
1443 * testsuite/ld-scripts/defined.exp: Likewise.
1444 * testsuite/ld-scripts/provide.exp: Likewise.
1445 * testsuite/ld-scripts/weak.exp: Likewise.
1446 * testsuite/ld-scripts/empty-address.exp: Likewise. Reset LDFLAGS
1447 on exit.
1448 * testsuite/ld-scripts/expr.exp: Set LDFLAGS earlier, and with
1449 --image-base for PE.
1450 * testsuite/ld-scripts/include.exp: Set LDFLAGS for PE.
1451 * testsuite/ld-scripts/script.exp: Use is_pecoff_format, and
1452 set LDFLAGS as well as flags.
1453
7193487f
AM
14542020-07-07 Alan Modra <amodra@gmail.com>
1455
1456 * testsuite/ld-checks/checks.exp: Use is_xcoff_format.
1457 * testsuite/ld-powerpc/powerpc.exp: Likewise.
1458 * testsuite/ld-scripts/print-memory-usage.exp: Likewise.
1459 * testsuite/ld-srec/srec.exp: Likewise.
1460 * testsuite/ld-undefined/require-defined.exp: Likewise.
1461 * testsuite/ld-scripts/expr2.d: Likewise.
1462 * testsuite/ld-scripts/section-match-1.d: Only run for ELF.
1463 * testsuite/ld-elfvers/vers.exp: Delete dead code.
1464 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
1465 * testsuite/ld-elfweak/elfweak.exp: Likewise.
1466
fb3dc213
AM
14672020-07-07 Alan Modra <amodra@gmail.com>
1468
1469 * emultempl/aix.em (gld${EMULATION_NAME}_find_exp_assignment): Handle
1470 etree_provided.
1471
3bde5ad1
AM
14722020-07-07 Alan Modra <amodra@gmail.com>
1473
1474 * testsuite/ld-sh/vxworks1-lib.rd: Update expected output.
1475 * testsuite/ld-sh/vxworks4.d: Likewise.
1476
ddc73fa9
NC
14772020-07-06 Yuri Chornoivan <yurchor@ukr.net>
1478
1479 PR 26204
1480 * lexsup.c: Fix spelling mistake.
1481 * po/ld.pot: Regenerate.
1482
17550be7
NC
14832020-07-06 Nick Clifton <nickc@redhat.com>
1484
1485 * po/bg.po: Updated Bulgarian translation.
1486 * po/fr.po: Updated French translation.
1487 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1488 * po/uk.po: Updated Ukranian translation.
1489
b19d852d
NC
14902020-07-04 Nick Clifton <nickc@redhat.com>
1491
1492 * configure: Regenerate.
1493
b115b9fd
NC
14942020-07-04 Nick Clifton <nickc@redhat.com>
1495
1496 Binutils 2.35 branch created.
1497
b657622c
AM
14982020-07-03 Alan Modra <amodra@gmail.com>
1499
1500 PR 26028
1501 * testsuite/ld-arm/arm-elf.exp (vxworks1): Pass --wide to readelf
1502 when dumping relocs.
1503 * testsuite/ld-i386/i386.exp (vxworks1): Likewise.
1504 * testsuite/ld-sh/sh-vxworks.exp (vxworks1): Likewise.
1505 * testsuite/ld-sparc/sparc.exp (vxworks1): Likewise.
1506 * testsuite/ld-arm/vxworks1.rd: Adjust to suit.
1507 * testsuite/ld-i386/vxworks1.rd: Adjust.
1508 * testsuite/ld-sh/vxworks1.rd: Adjust.
1509 * testsuite/ld-sparc/vxworks1.rd: Adjust.
1510
0942c7ab
NC
15112020-07-02 Nick Clifton <nickc@redhat.com>
1512
1513 PR 26028
1514 * testsuite/ld-powerpc/powerpc.exp: Add -T option to readelf
1515 command line when running some tests.
1516 * testsuite/ld-arm/arm-elf.exp: Likewise.
1517 * testsuite/ld-mips-elf/mips-elf.exp: Likewise.
1518 * testsuite/ld-mmix/local1.d: Likewise.
1519 * testsuite/ld-mmix/local3.d: Likewise.
1520 * testsuite/ld-mmix/local5.d: Likewise.
1521 * testsuite/ld-mmix/local7.d: Likewise.
1522 * testsuite/ld-powerpc/powerpc.exp: Likewise.
1523
bbd19b19
L
15242020-06-30 H.J. Lu <hongjiu.lu@intel.com>
1525
1526 * Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_nacl.c,
1527 eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c.
1528 Remove x86 NaCl dep files.
1529 * NEWS: Mention x86 NaCl target support removal.
1530 * configure.tgt: Remove x86 NaCl target support.
1531 * testsuite/ld-elf/binutils.exp: Likewise.
1532 * testsuite/ld-elf/elf.exp: Likewise.
1533 * testsuite/ld-elfvers/vers.exp: Likewise.
1534 * testsuite/ld-i386/align-branch-1.d: Likewise.
1535 * testsuite/ld-i386/export-class.exp: Likewise.
1536 * testsuite/ld-i386/i386.exp: Likewise.
1537 * testsuite/ld-i386/load1.d: Likewise.
1538 * testsuite/ld-i386/pie1.d: Likewise.
1539 * testsuite/ld-i386/pr12570a.d: Likewise.
1540 * testsuite/ld-i386/pr12570b.d: Likewise.
1541 * testsuite/ld-i386/pr19636-1d.d: Likewise.
1542 * testsuite/ld-i386/pr19636-1l.d: Likewise.
1543 * testsuite/ld-i386/pr19636-2c.d: Likewise.
1544 * testsuite/ld-i386/pr19636-2d.d: Likewise.
1545 * testsuite/ld-i386/pr19636-2e.d: Likewise.
1546 * testsuite/ld-i386/pr20244-1a.d: Likewise.
1547 * testsuite/ld-i386/pr20244-1b.d: Likewise.
1548 * testsuite/ld-i386/pr20244-2a.d: Likewise.
1549 * testsuite/ld-i386/pr20244-2b.d: Likewise.
1550 * testsuite/ld-i386/pr20244-2c.d: Likewise.
1551 * testsuite/ld-i386/pr20244-4a.d: Likewise.
1552 * testsuite/ld-i386/pr20244-4b.d: Likewise.
1553 * testsuite/ld-i386/pr21884.d: Likewise.
1554 * testsuite/ld-ifunc/binutils.exp: Likewise.
1555 * testsuite/ld-ifunc/ifunc-10-i386.d: Likewise.
1556 * testsuite/ld-ifunc/ifunc-10-x86-64.d: Likewise.
1557 * testsuite/ld-ifunc/ifunc-11-i386.d: Likewise.
1558 * testsuite/ld-ifunc/ifunc-11-x86-64.d: Likewise.
1559 * testsuite/ld-ifunc/ifunc-12-i386.d: Likewise.
1560 * testsuite/ld-ifunc/ifunc-12-x86-64.d: Likewise.
1561 * testsuite/ld-ifunc/ifunc-13-i386.d: Likewise.
1562 * testsuite/ld-ifunc/ifunc-13-x86-64.d: Likewise.
1563 * testsuite/ld-ifunc/ifunc-14a-i386.d: Likewise.
1564 * testsuite/ld-ifunc/ifunc-14a-x86-64.d: Likewise.
1565 * testsuite/ld-ifunc/ifunc-14b-i386.d: Likewise.
1566 * testsuite/ld-ifunc/ifunc-14b-x86-64.d: Likewise.
1567 * testsuite/ld-ifunc/ifunc-14c-i386.d: Likewise.
1568 * testsuite/ld-ifunc/ifunc-14c-x86-64.d: Likewise.
1569 * testsuite/ld-ifunc/ifunc-14d-i386.d: Likewise.
1570 * testsuite/ld-ifunc/ifunc-14d-x86-64.d: Likewise.
1571 * testsuite/ld-ifunc/ifunc-14e-i386.d: Likewise.
1572 * testsuite/ld-ifunc/ifunc-14e-x86-64.d: Likewise.
1573 * testsuite/ld-ifunc/ifunc-14f-i386.d: Likewise.
1574 * testsuite/ld-ifunc/ifunc-14f-x86-64.d: Likewise.
1575 * testsuite/ld-ifunc/ifunc-15-i386.d: Likewise.
1576 * testsuite/ld-ifunc/ifunc-15-x86-64.d: Likewise.
1577 * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
1578 * testsuite/ld-ifunc/ifunc-16-i386.d: Likewise.
1579 * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: Likewise.
1580 * testsuite/ld-ifunc/ifunc-16-x86-64.d: Likewise.
1581 * testsuite/ld-ifunc/ifunc-17a-i386.d: Likewise.
1582 * testsuite/ld-ifunc/ifunc-17a-x86-64.d: Likewise.
1583 * testsuite/ld-ifunc/ifunc-17b-i386.d: Likewise.
1584 * testsuite/ld-ifunc/ifunc-17b-x86-64.d: Likewise.
1585 * testsuite/ld-ifunc/ifunc-18a-i386.d: Likewise.
1586 * testsuite/ld-ifunc/ifunc-18a-x86-64.d: Likewise.
1587 * testsuite/ld-ifunc/ifunc-18b-i386.d: Likewise.
1588 * testsuite/ld-ifunc/ifunc-18b-x86-64.d: Likewise.
1589 * testsuite/ld-ifunc/ifunc-19a-i386.d: Likewise.
1590 * testsuite/ld-ifunc/ifunc-19a-x86-64.d: Likewise.
1591 * testsuite/ld-ifunc/ifunc-19b-i386.d: Likewise.
1592 * testsuite/ld-ifunc/ifunc-19b-x86-64.d: Likewise.
1593 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1594 * testsuite/ld-ifunc/ifunc-2-i386.d: Likewise.
1595 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1596 * testsuite/ld-ifunc/ifunc-2-local-i386.d: Likewise.
1597 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1598 * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
1599 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1600 * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
1601 * testsuite/ld-ifunc/ifunc-20-i386.d: Likewise.
1602 * testsuite/ld-ifunc/ifunc-20-x86-64.d: Likewise.
1603 * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
1604 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1605 * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
1606 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1607 * testsuite/ld-ifunc/ifunc-5a-i386.d: Likewise.
1608 * testsuite/ld-ifunc/ifunc-5a-local-i386.d: Likewise.
1609 * testsuite/ld-ifunc/ifunc-5a-local-x86-64.d: Likewise.
1610 * testsuite/ld-ifunc/ifunc-5a-x86-64.d: Likewise.
1611 * testsuite/ld-ifunc/ifunc-5b-i386.d: Likewise.
1612 * testsuite/ld-ifunc/ifunc-5b-local-i386.d: Likewise.
1613 * testsuite/ld-ifunc/ifunc-5b-local-x86-64.d: Likewise.
1614 * testsuite/ld-ifunc/ifunc-5b-x86-64.d: Likewise.
1615 * testsuite/ld-ifunc/ifunc-5r-local-i386.d: Likewise.
1616 * testsuite/ld-ifunc/ifunc-5r-local-x86-64.d: Likewise.
1617 * testsuite/ld-ifunc/ifunc-6a-i386.d: Likewise.
1618 * testsuite/ld-ifunc/ifunc-6a-x86-64.d: Likewise.
1619 * testsuite/ld-ifunc/ifunc-6b-i386.d: Likewise.
1620 * testsuite/ld-ifunc/ifunc-6b-x86-64.d: Likewise.
1621 * testsuite/ld-ifunc/ifunc-7a-i386.d: Likewise.
1622 * testsuite/ld-ifunc/ifunc-7a-x86-64.d: Likewise.
1623 * testsuite/ld-ifunc/ifunc-7b-i386.d: Likewise.
1624 * testsuite/ld-ifunc/ifunc-7b-x86-64.d: Likewise.
1625 * testsuite/ld-ifunc/ifunc-8-i386.d: Likewise.
1626 * testsuite/ld-ifunc/ifunc-8-x86-64.d: Likewise.
1627 * testsuite/ld-ifunc/ifunc-9-i386.d: Likewise.
1628 * testsuite/ld-ifunc/ifunc-9-x86-64.d: Likewise.
1629 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1630 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1631 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1632 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1633 * testsuite/ld-plugin/lto.exp: Likewise.
1634 * testsuite/ld-x86-64/align-branch-1.d: Likewise.
1635 * testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
1636 * testsuite/ld-x86-64/line.exp: Likewise.
1637 * testsuite/ld-x86-64/load1a.d: Likewise.
1638 * testsuite/ld-x86-64/load1b.d: Likewise.
1639 * testsuite/ld-x86-64/load1c.d: Likewise.
1640 * testsuite/ld-x86-64/load1d.d: Likewise.
1641 * testsuite/ld-x86-64/pie3.d: Likewise.
1642 * testsuite/ld-x86-64/pr18160.d: Likewise.
1643 * testsuite/ld-x86-64/pr19013-x32.d: Likewise.
1644 * testsuite/ld-x86-64/pr19013.d: Likewise.
1645 * testsuite/ld-x86-64/pr19636-2d.d: Likewise.
1646 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1647 * testsuite/ld-x86-64/pr20253-1b.d: Likewise.
1648 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1649 * testsuite/ld-x86-64/pr20253-1f.d: Likewise.
1650 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1651 * testsuite/ld-x86-64/pr20253-1j.d: Likewise.
1652 * testsuite/ld-x86-64/pr20253-1l.d: Likewise.
1653 * testsuite/ld-x86-64/pr21884.d: Likewise.
1654 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
1655 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
1656 * testsuite/ld-x86-64/tlsgd10.dd: Likewise.
1657 * testsuite/ld-x86-64/tlsgd5.dd: Likewise.
1658 * testsuite/ld-x86-64/tlsgd8.dd: Likewise.
1659 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1660 * emulparams/elf32_x86_64_nacl.sh: Removed.
1661 * emulparams/elf_i386_nacl.sh: Likewise.
1662 * emulparams/elf_x86_64_nacl.sh: Likewise.
1663 * testsuite/ld-i386/emit-relocs-nacl.rd: Likewise.
1664 * testsuite/ld-i386/load1-nacl.d: Likewise.
1665 * testsuite/ld-i386/pie1-nacl.d: Likewise.
1666 * testsuite/ld-i386/plt-nacl.pd: Likewise.
1667 * testsuite/ld-i386/plt-pic-nacl.pd: Likewise.
1668 * testsuite/ld-i386/pr17709-nacl.rd: Likewise.
1669 * testsuite/ld-i386/pr19636-1d-nacl.d: Likewise.
1670 * testsuite/ld-i386/pr19636-2c-nacl.d: Likewise.
1671 * testsuite/ld-i386/pr19636-2d-nacl.d: Likewise.
1672 * testsuite/ld-i386/pr19636-2e-nacl.d: Likewise.
1673 * testsuite/ld-i386/pr19827-nacl.rd: Likewise.
1674 * testsuite/ld-i386/pr21884-nacl.d: Likewise.
1675 * testsuite/ld-i386/pr21884-nacl.t: Likewise.
1676 * testsuite/ld-i386/tlsbin-nacl.rd: Likewise.
1677 * testsuite/ld-i386/tlsbin2-nacl.rd: Likewise.
1678 * testsuite/ld-i386/tlsbindesc-nacl.rd: Likewise.
1679 * testsuite/ld-i386/tlsdesc-nacl.rd: Likewise.
1680 * testsuite/ld-i386/tlsgdesc-nacl.rd: Likewise.
1681 * testsuite/ld-i386/tlsnopic-nacl.rd: Likewise.
1682 * testsuite/ld-i386/tlspic-nacl.rd: Likewise.
1683 * testsuite/ld-i386/tlspic2-nacl.rd: Likewise.
1684 * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
1685 * testsuite/ld-x86-64/load1a-nacl.d: Likewise.
1686 * testsuite/ld-x86-64/load1b-nacl.d: Likewise.
1687 * testsuite/ld-x86-64/load1c-nacl.d: Likewise.
1688 * testsuite/ld-x86-64/load1d-nacl.d: Likewise.
1689 * testsuite/ld-x86-64/pie3-nacl.d: Likewise.
1690 * testsuite/ld-x86-64/plt-nacl.pd: Likewise.
1691 * testsuite/ld-x86-64/pr17709-nacl.rd: Likewise.
1692 * testsuite/ld-x86-64/pr19013-nacl.d: Likewise.
1693 * testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
1694 * testsuite/ld-x86-64/pr19827-nacl.rd: Likewise.
1695 * testsuite/ld-x86-64/pr21884-nacl.d: Likewise.
1696 * testsuite/ld-x86-64/pr21884-nacl.t: Likewise.
1697 * testsuite/ld-x86-64/split-by-file-nacl.rd: Likewise.
1698 * testsuite/ld-x86-64/tlsbin-nacl.rd: Likewise.
1699 * testsuite/ld-x86-64/tlsbin2-nacl.rd: Likewise.
1700 * testsuite/ld-x86-64/tlsbindesc-nacl.rd: Likewise.
1701 * testsuite/ld-x86-64/tlsdesc-nacl.pd: Likewise.
1702 * testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
1703 * testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
1704 * testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
1705 * testsuite/ld-x86-64/tlspic2-nacl.rd: Likewise.
1706 * Makefile.in: Regenerated.
1707 * po/BLD-POTFILES.in: Likewise.
1708
fb4a044b
AM
17092020-06-30 Alan Modra <amodra@gmail.com>
1710
1711 * testsuite/ld-elf/group1.d: Don't xfail all solaris targets, just
1712 ix86 and x86_64.
1713
b9b9b0ef
AM
17142020-06-30 Alan Modra <amodra@gmail.com>
1715
1716 * testsuite/ld-elf/reloc-discard.d: Don't xfail nds32.
1717
39d050ee
AM
17182020-06-30 Alan Modra <amodra@gmail.com>
1719
1720 * scripttempl/elfmicroblaze.sc (.data): Add .data.* entry.
1721 * testsuite/ld-elf/var1.d: Don't xfail microblaze.
1722
a57f74bb
L
17232020-06-29 H.J. Lu <hongjiu.lu@intel.com>
1724
1725 * testsuite/ld-tic6x/shlib-1.rd: Move C6000_DSBT_BASE,
1726 C6000_DSBT_SIZE and C6000_DSBT_INDEX dynamic tags to the last.
1727 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1728 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1729 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1730 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1731 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1732 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1733 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1734 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1735 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1736 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1737 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1738 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1739
290a25dc
AM
17402020-06-29 Alan Modra <amodra@gmail.com>
1741
1742 * testsuite/ld-x86-64/abs-k1om.d: Run only on x86_64-*-linux*.
1743 * testsuite/ld-x86-64/protected2-k1om.d: Likewise.
1744 * testsuite/ld-x86-64/protected3-k1om.d: Likewise.
1745
094e34f2
NA
17462020-06-26 Nick Alcock <nick.alcock@oracle.com>
1747
1748 * configure.ac [--enable-libctf]: New, default yes.
1749 Set ENABLE_LIBCTF accordingly.
1750 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF.
1751 * configure: Regenerate.
1752 * config.in: Regenerate.
1753 * Makefile.in: Regenerate.
1754 * aclocal.m4: Regenerate.
1755 * ldlang.c (ctf_output): Conditionalize on ENABLE_LIBCTF.
1756 (ldlang_open_ctf): Likewise.
1757 (lang_merge_ctf): Likewise.
1758 (ldlang_ctf_apply_strsym): Likewise.
1759 (lang_write_ctf): Likewise.
1760 (ldlang_write_ctf_late): Likewise.
1761 (ldlang_open_ctf) [!ENABLE_LIBCTF]: Warn about the presence of CTF
1762 sections.
1763 (lang_merge_ctf) [!ENABLE_LIBCTF]: New stub.
1764 (ldlang_ctf_apply_strsym) [!ENABLE_LIBCTF]: Likewise.
1765 (lang_write_ctf) [!ENABLE_LIBCTF]: Likewise.
1766 (ldlang_write_ctf_late) [!ENABLE_LIBCTF]: Likewise.
1767 * ldelfgen.c (ldelf_emit_ctf_early): Conditionalize on
1768 ENABLE_LIBCTF.
1769 (struct ctf_strsym_iter_cb_arg): Likewise.
1770 (ldelf_ctf_strtab_iter_cb): Likewise.
1771 (ldelf_ctf_symbols_iter_cb): Likewise.
1772 (ldelf_examine_strtab_for_ctf): Likewise.
1773 (ldelf_emit_ctf_early) [!ENABLE_LIBCTF]: New stub.
1774 (ldelf_examine_strtab_for_ctf) [!ENABLE_LIBCTF]: New stub.
1775
198e1db7
JB
17762020-06-26 Jan Beulich <jbeulich@suse.com>
1777
1778 * testsuite/ld-x86-64/x86-64.exp: Run K1OM tests.
1779
85f7484a
PB
17802020-06-26 Pat Bernardi <bernardi@adacore.com>
1781
1782 * testsuite/ld-m68k/attr-gnu-4-0.s: New file.
1783 * testsuite/ld-m68k/attr-gnu-4-1.s: Likewise.
1784 * testsuite/ld-m68k/attr-gnu-4-2.s: Likewise.
1785 * testsuite/ld-m68k/attr-gnu-4-00.d: Likewise.
1786 * testsuite/ld-m68k/attr-gnu-4-01.d: Likewise.
1787 * testsuite/ld-m68k/attr-gnu-4-02.d: Likewise.
1788 * testsuite/ld-m68k/attr-gnu-4-10.d: Likewise.
1789 * testsuite/ld-m68k/attr-gnu-4-11.d: Likewise.
1790 * testsuite/ld-m68k/attr-gnu-4-12.d: Likewise.
1791 * testsuite/ld-m68k/attr-gnu-4-20.d: Likewise.
1792 * testsuite/ld-m68k/attr-gnu-4-21.d: Likewise.
1793 * testsuite/ld-m68k/attr-gnu-4-22.d: Likewise.
1794 * testsuite/ld-m68k/m68k.exp: Run the new tests.
1795
4bf05d4a
L
17962020-06-24 H.J. Lu <hongjiu.lu@intel.com>
1797
1798 PR ld/26165
1799 * lexsup.c (ld_options): Correct --dependency-file order.
1800
2c8e3708
L
18012020-06-24 H.J. Lu <hongjiu.lu@intel.com>
1802
1803 PR ld/26083
1804 * testsuite/ld-csky/tls-ie-v1.d: Updated.
1805 * testsuite/ld-csky/tls-ie.d: Likewise.
1806
c679ec98
L
18072020-06-24 H.J. Lu <hongjiu.lu@intel.com>
1808
1809 PR ld/26083
1810 * testsuite/ld-cris/libdso-15b.d: Updated.
1811 * testsuite/ld-cris/libdso-1c.d: Likewise.
1812 * testsuite/ld-cris/libdso-1d.d: Likewise.
1813 * testsuite/ld-cris/libdso-15c.d: New file.
1814
5376d47f
L
18152020-06-24 H.J. Lu <hongjiu.lu@intel.com>
1816
1817 PR ld/26163
1818 * ldexp.c (exp_fold_tree_1): Set non_ir_ref_regular on the source
1819 for assignment.
1820 * testsuite/ld-plugin/lto.exp: Run ld/26163 test.
1821 * testsuite/ld-plugin/pr26163a.c: New file.
1822 * testsuite/ld-plugin/pr26163b.c: Likewise.
1823
a5aae508
AM
18242020-06-24 Alan Modra <amodra@gmail.com>
1825
1826 * lexsup.c (elf_shlib_list_options): Properly format help message.
1827 (elf_plt_unwind_list_options): Likewise.
1828 * emultempl/cskyelf.em (PARSE_AND_LIST_OPTIONS): Likewise.
1829
f37b21b4
RM
18302020-06-23 Roland McGrath <mcgrathr@google.com>
1831
1832 PR 22843
1833 * NEWS: Note --dependency-file.
1834 * ld.texi (Options): Document --dependency-file.
1835 * ldlex.h (enum option_values): Add OPTION_DEPENDENCY_FILE.
1836 * ld.h (ld_config_type): New member dependency_file.
1837 * lexsup.c (ld_options, parse_args): Parse --dependency-file.
1838 * ldmain.c (struct dependency_file): New type.
1839 (dependency_files, dependency_files_tail): New static variables.
1840 (track_dependency_files): New function.
1841 (write_dependency_file): New function.
1842 (main): Call it when --dependency-file was passed.
1843 * ldfile.c (ldfile_try_open_bfd): Call track_dependency_files.
1844 (ldfile_open_command_file_1): Likewise.
1845 * ldelf.c (ldelf_try_needed): Likewise.
1846 * pe-dll.c (pe_implied_import_dll): Likewise.
1847
9221725d
AM
18482020-06-23 Alan Modra <amodra@gmail.com>
1849
1850 PR 26150
1851 * ldlang.c (ldlang_add_file): Assert that we aren't adding the
1852 current end of link.next list again too.
1853 * ldmain.c (add_archive_element): Don't load archive elements
1854 again that have already been loaded.
1855
c7c970e4
AM
18562020-06-23 Alan Modra <amodra@gmail.com>
1857
1858 * testsuite/ld-elf/shared.exp (pr14170): Clear xfail for
1859 bfin-*-linux*.
1860 (pr17068, symbolic-func.so, pr22374): Likewise.
1861
39ff0b81
NC
18622020-06-22 Nelson Chu <nelson.chu@sifive.com>
1863
1864 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1865 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Updated.
1866 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Updated.
1867 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Updated.
1868 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Updated.
1869 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Updated.
1870
0381901e
AM
18712020-06-21 Alan Modra <amodra@gmail.com>
1872
1873 * ldfile.c: Replace uses of ENABLE_PLUGINS with BFD_SUPPORTS_PLUGINS.
1874 * ldlang.c: Likewise.
1875 * ldlang.h: Likewise.
1876 * ldlex.h: Likewise.
1877 * ldmain.c: Likewise.
1878 * lexsup.c: Likewise.
1879 * plugin.c: Wrap body of file in #if BFD_SUPPORTS_PLUGINS.
1880 * testplug.c: Likewise.
1881 * testplug2.c: Likewise.
1882 * testplug3.c: Likewise.
1883 * testplug4.c: Likewise.
1884 * configure.ac (ENABLE_PLUGINS): Don't define AM_CONTITIONAL.
1885 * Makefile.am: Remove ENABLE_PLUGINS conditionals.
1886 (PLUGIN_CFLAGS): Don't define.
1887 (PLUGIN_C, PLUGIN_H, PLUGIN_OBJECT): Likewise. Substitute all
1888 uses with plugin file name.
1889 * configure: Regenerate.
1890 * Makefile.in: Regenerate.
1891
348fe36b
AM
18922020-06-20 Alan Modra <amodra@gmail.com>
1893
1894 * testsuite/lib/ld-lib.exp (default_ld_compile): Don't perror on
1895 a compiler error.
1896 (default_ld_assemble): Similarly for an assembler error.
1897 (default_ld_nm): Similarly for an nm error.
1898 (run_ld_link_tests): Report ld_assemble errors as a fail.
1899 (check_as_cfi): Remove now unnecessary perror substitution.
1900 * testsuite/ld-elf/exclude.exp: Report ld_nm error return as test
1901 fails rather then unresolved.
1902 * testsuite/ld-gc/gc.exp: Likewise.
1903 * testsuite/ld-scripts/alignof.exp: Likewise.
1904 * testsuite/ld-scripts/defined.exp: Likewise.
1905 * testsuite/ld-scripts/script.exp: Likewise.
1906 * testsuite/ld-scripts/sizeof.exp: Likewise.
1907 * testsuite/ld-selective/selective.exp: Likewise.
1908 * testsuite/ld-scripts/extern.exp: Likewise. Return on ld_link
1909 failure.
1910 * testsuite/ld-elfweak/elfweak.exp: Report compiler errors as
1911 test unresolved.
1912 * testsuite/ld-fastcall/fastcall.exp: Report assember errors as
1913 test fails.
1914 * testsuite/ld-i386/i386.exp (iamcu_tests): Likewise.
1915 * testsuite/ld-ia64/line.exp: Likewise.
1916 * testsuite/ld-mep/mep.exp: Likewise.
1917 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
1918 * testsuite/ld-nios2/nios2.exp: Likewise.
1919 * testsuite/ld-scripts/alignof.exp: Likewise.
1920 * testsuite/ld-x86-64/line.exp: Likewise.
1921 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1922 * testsuite/ld-scripts/log2.exp: Formatting.
1923 * testsuite/ld-tic6x/tic6x.exp: Report ld_link errors as a test fail.
1924
b0ee49d2
AM
19252020-06-20 Alan Modra <amodra@gmail.com>
1926
1927 * testsuite/ld-alpha/alpha.exp: Exclude *ecoff targets.
1928 * testsuite/ld-elf/binutils.exp: Likewise.
1929 * testsuite/ld-elf/tls.exp: Likewise.
1930 * testsuite/ld-elf/tls_common.exp: Likewise.
1931 * testsuite/ld-scripts/phdrs2.exp: Likewise.
1932
e2201c2a
AM
19332020-06-20 Alan Modra <amodra@gmail.com>
1934
1935 * testsuite/ld-sh/sh.exp: Don't run relax tests for non-ELF.
1936 Fail when ld_assemble fails. Use elseif to reduce indentation.
1937
2d0a923c
AM
19382020-06-19 Alan Modra <amodra@gmail.com>
1939
1940 * testsuite/ld-elf/dynamic-1.rd: Accept st_other notations.
1941 * testsuite/ld-elf/rdynamic-1.rd: Likewise.
1942 * testsuite/ld-elf/pr9676.rd: Likewise.
1943 * testsuite/ld-elf/pr9679.rd: Likewise.
1944 * testsuite/ld-elfvers/vers30.dsym: Likewise.
1945 * testsuite/ld-elfvers/vers31.dsym: Likewise.
e4433988
AM
1946 * testsuite/ld-plugin/pr22983.1.d: Likewise.
1947 * testsuite/ld-plugin/pr22983.2.d: Likewise.
2d0a923c 1948 * testsuite/ld-plugin/pr22983.3.d: Likewise.
e4433988 1949 * testsuite/ld-plugin/pr22983.4.d: Likewise.
2d0a923c
AM
1950 * testsuite/ld-ifunc/ifunc.exp: Exclude alpha.
1951
5fd104ad
AM
19522020-06-19 Alan Modra <amodra@gmail.com>
1953
1954 * emultempl/elf.em (gld${EMULATION_NAME}_handle_option): Omit
1955 -z relro and -z norelro when target support for GNU_RELRO is lacking.
1956 (gld${EMULATION_NAME}_before_parse): Ignore RELRO default too.
1957 * emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse): Ignore
1958 RELRO default when target support for GNU_RELRO is lacking.
1959 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
1960 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Likewise.
1961 * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
1962 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
1963 * testsuite/ld-elf/pr16322.d: xfail when no relro support.
1964 * testsuite/ld-elf/pr22393-1a.d: Likewise.
1965 * testsuite/ld-elf/pr22393-1b.d: Likewise.
1966 * testsuite/ld-elf/shared.exp (pr20995-2.so, pr20995-2): Likewise.
1967 * testsuite/lib/ld-lib.exp (run_ld_link_tests): Use check_relro_support
1968 to decide whether to pass extra ld option "-z norelro".
1969
00401e65
L
19702020-06-17 H.J. Lu <hongjiu.lu@intel.com>
1971
1972 * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Append "-w"
1973 to cflags.
1974
22aa1d51
L
19752020-06-17 H.J. Lu <hongjiu.lu@intel.com>
1976
1977 * testsuite/ld-elf/linux-x86.exp: Require GCC 5 for Build
1978 pr25749-1b (-pie -fPIE).
1979
07e7fdfd
AM
19802020-06-16 Alan Modra <amodra@gmail.com>
1981
1982 * testsuite/ld-elf/pr23428.c: Define _DEFAULT_SOURCE.
1983 * testsuite/ld-elf/indirect1b.c: Replace asm with __asm__.
1984 * testsuite/ld-elf/indirect2.c: Likewise.
1985 * testsuite/ld-elf/indirect3b.c: Likewise.
1986 * testsuite/ld-elf/indirect4b.c: Likewise.
1987 * testsuite/ld-elf/pr14323-2.c: Likewise.
1988 * testsuite/ld-elf/pr18720b.c: Likewise.
5f898994 1989 * testsuite/ld-elf/pr19553c.c: Likewise.
07e7fdfd 1990 * testsuite/ld-elf/pr23428.c: Likewise.
5f898994 1991 * testsuite/ld-elfvers/vers27b.c: Likewise.
07e7fdfd
AM
1992 * testsuite/ld-elfvsb/common.c: Likewise.
1993 * testsuite/ld-elfvsb/main.c: Likewise.
1994 * testsuite/ld-elfvsb/sh1.c: Likewise.
1995 * testsuite/ld-elfvsb/test.c: Likewise.
1996 * testsuite/ld-pe/aligncomm-1.c: Likewise.
1997 * testsuite/ld-pe/aligncomm-2.c: Likewise.
1998 * testsuite/ld-pe/aligncomm-3.c: Likewise.
1999 * testsuite/ld-pe/aligncomm-4.c: Likewise.
2000 * testsuite/ld-plugin/pr23958.c: Likewise.
2001 * testsuite/ld-size/size-1b.c: Likewise.
2002 * testsuite/ld-size/size-2b.c: Likewise.
2003 * testsuite/ld-size/size-3a.c: Likewise.
2004 * testsuite/ld-size/size-3b.c: Likewise.
2005 * testsuite/ld-size/size-3c.c: Likewise.
2006 * testsuite/ld-size/size-4b.c: Likewise.
2007 * testsuite/ld-size/size-5b.c: Likewise.
2008 * testsuite/ld-size/size-6a.c: Likewise.
2009 * testsuite/ld-size/size-7a.c: Likewise.
2010 * testsuite/ld-size/size-8a.c: Likewise.
2011 * testsuite/ld-size/size-9b.c: Likewise.
2012 * testsuite/ld-size/size-10b.c: Likewise.
2013
a435742a
AM
20142020-06-16 Alan Modra <amodra@gmail.com>
2015
2016 * emulparams/tic30aout.sh: Delete file.
2017 * scripttempl/tic30aout.sc: Delete file.
2018 * Makefile.am: Remove etic30aout.c from ALL_EMULATION_SOURCES and
2019 delete dependency.
2020 * configure.tgt: Delete tic30-*-*aout* entry.
2021 * testsuite/ld-scripts/sane1.d: Delete tic30-*-aout mention.
2022 * testsuite/ld-scripts/segment-start.d: Likewise.
2023 * Makefile.in: Regenerate.
2024 * po/BLD-POTFILES.in: Regenerate.
2025
7a77f1ac
MF
20262020-06-15 Max Filippov <jcmvbkbc@gmail.com>
2027
2028 * emultempl/xtensaelf.em (XSHAL_ABI): Remove macro definition.
2029 (XTHAL_ABI_UNDEFINED, XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New
2030 macros.
2031 (elf32xtensa_abi): New declaration.
2032 (xt_config_info_unpack_and_check): Set elf32xtensa_abi if it is
2033 undefined. Use xtensa_abi_choice instead of XSHAL_ABI to test
2034 ABI tag consistency.
2035 (xtensa_add_config_info): Use xtensa_abi_choice instead of
2036 XSHAL_ABI to format ABI tag.
2037 (PARSE_AND_LIST_PROLOGUE): Define OPTION_ABI_WINDOWED,
2038 OPTION_ABI_CALL0 and declare elf32xtensa_abi.
2039 (PARSE_AND_LIST_LONGOPTS): Add entries for --abi-windowed and
2040 --abi-call0.
2041 (PARSE_AND_LIST_OPTIONS): Add help text for --abi-windowed and
2042 --abi-call0.
2043 (PARSE_AND_LIST_ARGS_CASES): Add handlers for --abi-windowed and
2044 --abi-call0.
2045 * ld.texi: Add description for options --abi-windowed and
2046 --abi-call0.
2047
cae64165
RM
20482020-06-15 Roland McGrath <mcgrathr@google.com>
2049
2050 * NEWS: Mention -z start-stop-visibility=... option for ELF.
2051 * ld.texi (Options): Document -z start-stop-visibility=... option.
2052 * ldmain.c (main): Initialize link_info.start_stop_visibility.
2053 * emultempl/elf.em (gld${EMULATION_NAME}_handle_option):
2054 Parse -z start-stop-visibility=... option.
2055
12984639
AM
20562020-06-15 Alan Modra <amodra@gmail.com>
2057
2058 * testsuite/ld-scripts/include.exp: Don't load ld-lib.exp.
2059 * testsuite/ld-scripts/phdrs3.exp: Likewise.
2060 * testsuite/ld-scripts/rgn-at.exp: Likewise.
2061 * testsuite/ld-scripts/rgn-over.exp: Likewise.
2062 * testsuite/ld-scripts/sort.exp: Likewise.
2063 * testsuite/ld-discard/discard.exp: Likewise. Use is_elf_format.
2064
ea4b3731
AM
20652020-06-15 Alan Modra <amodra@gmail.com>
2066
2067 PR 26103
2068 * testsuite/ld-linkonce/ref1.s,
2069 * testsuite/ld-linkonce/ref2.s,
2070 * testsuite/ld-linkonce/sym1.s,
2071 * testsuite/ld-linkonce/sym2.s,
2072 * testsuite/ld-linkonce/sym3.s: New test files.
2073 * testsuite/ld-linkonce/linkonce.exp: Run tests for PE too.
2074 Add pr26103 test. Remove unnecessary load_lib.
2075
cda58d5f
AM
20762020-06-15 Alan Modra <amodra@gmail.com>
2077
2078 * testsuite/ld-linkonce/zeroeh_x.s: Rename from x.s.
2079 * testsuite/ld-linkonce/zeroeh_y.s: Rename from y.s.
2080 * testsuite/ld-linkonce/zeroehl32.d: Adjust for renaming. Support
2081 big-endian output. Run for powerpc.
2082
38226418
AM
20832020-06-11 Alan Modra <amodra@gmail.com>
2084
2085 * testsuite/ld-plugin/lto.exp (lto_link_tests): Move lto-6,
2086 pr12760, pr23818 and pr23958 tests to..
2087 (lto_link_elf_tests): ..here.
2088
928055a3
NC
20892020-06-11 Nick Clifton <nickc@redhat.com>
2090
2091 * testsuite/ld-elf/pr26094-1b.c (main): Change return type to
2092 int.
2093
84df1f9d
AM
20942020-06-10 Alan Modra <amodra@gmail.com>
2095
2096 * testsuite/ld-elf/linux-x86.exp: Build tests when non-native.
2097 (check_pr25749b): Add optional args. Set expected pass file
2098 from args. Run -1b and -2a tests with passall.out.
2099 * testsuite/ld-elf/passall.out: New file.
2100 * testsuite/ld-elf/pr25749-1.c: Adjust to pass with older glibc.
2101 * testsuite/ld-elf/pr25749-2.c: Likewise.
2102 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Use
2103 regexp_diff to compare expected output from running binary.
2104
e1b5d517
L
21052020-06-10 H.J. Lu <hongjiu.lu@intel.com>
2106
2107 PR ld/26094
2108 * testsuite/ld-elf/pr26094-1.ver: New fike.
2109 * testsuite/ld-elf/pr26094-1a.c: Likewise.
2110 * testsuite/ld-elf/pr26094-1a.rd: Likewise.
2111 * testsuite/ld-elf/pr26094-1b.c: Likewise.
2112 * testsuite/ld-elf/pr26094-1b.rd: Likewise.
2113 * testsuite/ld-elf/pr26094-1c.c: Likewise.
2114 * testsuite/ld-elf/shared.exp: Run ld/26094 tests.
2115
cebd6b8a
L
21162020-06-09 H.J. Lu <hongjiu.lu@intel.com>
2117
2118 PR ld/18801
2119 * testsuite/ld-i386/i386.exp: Run ifunc-textrel-1a,
2120 ifunc-textrel-1b, ifunc-textrel-2a and ifunc-textrel-2b.
2121 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2122 * testsuite/ld-i386/ifunc-textrel-1a.d: Likewise.
2123 * testsuite/ld-i386/ifunc-textrel-1b.d: Likewise.
2124 * testsuite/ld-i386/ifunc-textrel-2a.d: Likewise.
2125 * testsuite/ld-i386/ifunc-textrel-2b.d: Likewise.
2126 * testsuite/ld-x86-64/ifunc-textrel-1.s: Likewise.
2127 * testsuite/ld-x86-64/ifunc-textrel-1a.d: Likewise.
2128 * testsuite/ld-x86-64/ifunc-textrel-1b.d: Likewise.
2129 * testsuite/ld-x86-64/ifunc-textrel-2.s: Likewise.
2130 * testsuite/ld-x86-64/ifunc-textrel-2a.d: Likewise.
2131 * testsuite/ld-x86-64/ifunc-textrel-2b.d: Likewise.
2132 * testsuite/ld-i386/pr18801a.d: Expect warning for IFUNC
2133 resolvers.
2134 * testsuite/ld-i386/pr18801b.d: Likewise.
2135 * estsuite/ld-x86-64/pr18801a.d: Likewise.
2136 * estsuite/ld-x86-64/pr18801b.d: Likewise.
2137
a61e3060
AM
21382020-06-09 Alan Modra <amodra@gmail.com>
2139
2140 PR 26065
2141 * testsuite/ld-elf/shared.exp: Compile dl4main.c -fPIC.
2142 (dl4e, dl4f): Expect dl4a.out.
2143 * testsuite/ld-elf/dl4e.out: Delete.
2144
597344c9
L
21452020-06-07 H.J. Lu <hongjiu.lu@intel.com>
2146
2147 * testsuite/ld-elf/shared.exp: Pass $LFLAGS to PR ld/21703
2148 shared test.
2149
656e4a22
L
21502020-06-07 H.J. Lu <hongjiu.lu@intel.com>
2151
2152 * testsuite/ld-elf/shared.exp: Xfail pr20995/pr20995-2 for
2153 tic6x-*-*.
2154
0fd91d25
L
21552020-06-07 H.J. Lu <hongjiu.lu@intel.com>
2156
2157 * testsuite/ld-elf/pr11304.d: Skip tic6x-*-elf.
2158
1fc47f80
AM
21592020-06-06 Alan Modra <amodra@gmail.com>
2160
2161 * testsuite/ld-elf/comm-data.exp: Don't xfail arm or bfin-linux.
2162
070558eb
AM
21632020-06-06 Alan Modra <amodra@gmail.com>
2164
2165 * lexsup.c (ld_options): Accept -plugin and -plugin-opt when
2166 !ENABLE_PLUGINS.
2167 * testsuite/lib/ld-lib.exp (check_plugin_api_available): Adjust.
2168
41285764
NC
21692020-06-05 Nelson Chu <nelson.chu@sifive.com>
2170
2171 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Rename to
2172 attr-merge-priv-spec-01.d.
2173 * testsuite/ld-riscv-elf/attr-merge-priv-spec-c.s: Set spec to 1.11.
2174 * testsuite/ld-riscv-elf/attr-merge-priv-spec-d.s: Empty priv spec set.
2175 * testsuite/ld-riscv-elf/attr-merge-priv-spec-02.d: New testcase.
2176 * testsuite/ld-riscv-elf/attr-merge-priv-spec-03.d: Likewise.
2177 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
2178 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
2179 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
2180 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
2181 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
2182 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
2183
3fc6c3dc
NC
21842020-06-05 Nelson Chu <nelson.chu@sifive.com>
2185
2186 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: The CSR isn't used,
2187 so ignore the -mpriv-spec setting.
2188 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
2189 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
2190 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
2191 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
2192 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
2193 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
2194 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
2195 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
2196 * testsuite/ld-riscv-elf/call-relax.d: Add -mno-arch-attr.
2197
c4b126b8
L
21982020-06-04 H.J. Lu <hongjiu.lu@intel.com>
2199
2200 PR ld/26080
2201 * testsuite/ld-elf/comm-data.exp: Remove copy_reloc.
2202 * testsuite/ld-elf/comm-data2r.rd: Removed.
2203 * testsuite/ld-elf/comm-data2r.sd: Likewise.
2204 * testsuite/ld-elf/comm-data2r.xd: Likewise.
2205
e2c8dab6
AM
22062020-06-04 Alan Modra <amodra@gmail.com>
2207
2208 * testsuite/config/default.exp: Remove global directive outside
2209 proc body.
2210 * testsuite/ld-bootstrap/bootstrap.exp: Likewise.
2211 * testsuite/ld-elf/compress.exp: Likewise.
2212 * testsuite/ld-elf/elf.exp: Likewise.
2213 * testsuite/ld-elf/exclude.exp: Likewise.
2214 * testsuite/ld-elf/frame.exp: Likewise.
2215 * testsuite/ld-elf/indirect.exp: Likewise.
2216 * testsuite/ld-elf/linux-x86.exp: Likewise.
2217 * testsuite/ld-elf/shared.exp: Likewise.
2218 * testsuite/ld-elf/tls.exp: Likewise.
2219 * testsuite/ld-elf/tls_common.exp: Likewise.
2220 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
2221 * testsuite/ld-elfweak/elfweak.exp: Likewise.
2222 * testsuite/ld-frv/fdpic.exp: Likewise.
2223 * testsuite/ld-frv/tls.exp: Likewise.
2224 * testsuite/ld-gc/gc.exp: Likewise.
2225 * testsuite/ld-i386/i386.exp: Likewise.
2226 * testsuite/ld-i386/no-plt.exp: Likewise.
2227 * testsuite/ld-ifunc/ifunc.exp: Likewise.
2228 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
2229 * testsuite/ld-nios2/nios2.exp: Likewise.
2230 * testsuite/ld-plugin/lto.exp: Likewise.
2231 * testsuite/ld-plugin/plugin.exp: Likewise.
2232 * testsuite/ld-powerpc/export-class.exp: Likewise.
2233 * testsuite/ld-scripts/align.exp: Likewise.
2234 * testsuite/ld-scripts/crossref.exp: Likewise.
2235 * testsuite/ld-scripts/defined.exp: Likewise.
2236 * testsuite/ld-scripts/overlay-size.exp: Likewise.
2237 * testsuite/ld-scripts/provide.exp: Likewise.
2238 * testsuite/ld-scripts/weak.exp: Likewise.
2239 * testsuite/ld-selective/selective.exp: Likewise.
2240 * testsuite/ld-sh/rd-sh.exp: Likewise.
2241 * testsuite/ld-size/size.exp: Likewise.
2242 * testsuite/ld-srec/srec.exp: Likewise.
2243 * testsuite/ld-x86-64/mpx.exp: Likewise.
2244 * testsuite/ld-x86-64/no-plt.exp: Likewise.
2245 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2246
a0c0ad56
AM
22472020-06-04 Alan Modra <amodra@gmail.com>
2248
2249 * testsuite/ld-dynamic/export-dynamic-symbol-2.d: Match output for
2250 mips-sgi-irix6.
2251 * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: Likewise.
2252 * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: Likewise.
2253 * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: Likewise.
2254 * testsuite/ld-dynamic/export-dynamic-symbol.exp: Exclude targets
2255 with poor PIE support.
2256
60f207b4
AM
22572020-06-04 Alan Modra <amodra@gmail.com>
2258
2259 * testsuite/ld-plugin/lto.exp (pr12758.exe): Add NOPIE_LDFLAGS.
2260 * testsuite/ld-unique/unique.exp: Add NOPIE_LDFLAGS to unique
2261 executable and dynamic executable tests.
2262
1949ad04
L
22632020-06-03 H.J. Lu <hongjiu.lu@intel.com>
2264
2265 * testsuite/config/default.exp (NOSANTIZE_CFLAGS): New.
2266 * testsuite/ld-elf/linux-x86.exp: Add $NOSANTIZE_CFLAGS to
2267 tests with run_ld_link_exec_tests.
2268 * testsuite/ld-elf/shared.exp: Add $NOSANTIZE_CFLAGS to tests
2269 with run_ld_link_tests.
2270 * testsuite/ld-elf/tls.exp: Likewise.
2271 * testsuite/ld-elfweak/elfweak.exp: Add $NOSANTIZE_CFLAGS to
2272 tests with ld_link.
2273 * testsuite/ld-gc/gc.exp: Add $NOSANTIZE_CFLAGS to cflags.
2274 * testsuite/ld-plugin/lto.exp: Add $NOSANTIZE_CFLAGS to tests
2275 with run_ld_link_tests.a
2276 * testsuite/ld-plugin/plugin.exp: Append $NOSANTIZE_CFLAGS to
2277 CFLAGS.
2278 * testsuite/ld-selective/selective.exp: Add $NOSANTIZE_CFLAGS
2279 to cflags and cxxflags.
2280 * testsuite/ld-srec/srec.exp: Append $NOSANTIZE_CFLAGS to CC
2281 and CXX.
2282 * testsuite/ld-x86-64/plt-main-ibt-x32.dd: Updated for
2283 -fsanitize=undefined.
2284 * testsuite/ld-x86-64/plt-main-ibt.dd: Likewise.
2285 * testsuite/ld-x86-64/x86-64.exp: Add $NOSANTIZE_CFLAGS to
2286 tests with run_cc_link_tests and run_ld_link_tests.
2287
37a141bf
FS
22882020-06-03 Fangrui Song <maskray@google.com>
2289 H.J. Lu <hongjiu.lu@intel.com>
2290
2291 PR ld/25910
2292 * NEWS: Mention --export-dynamic-symbol[-list].
2293 * ld.texi: Document --export-dynamic-symbol[-list].
2294 * ldgram.y: Pass current_dynamic_list_p to
2295 lang_append_dynamic_list.
2296 * ldlang.c (current_dynamic_list_p): New.
2297 (ang_append_dynamic_list): Updated to take a pointer to
2298 struct bfd_elf_dynamic_list * argument instead of using
2299 link_info.dynamic_list.
2300 (lang_append_dynamic_list_cpp_typeinfo): Pass
2301 &link_info.dynamic_list to ang_append_dynamic_list.
2302 (lang_append_dynamic_list_cpp_new): Likewise.
2303 * ldlang.h (current_dynamic_list_p): New.
2304 (lang_append_dynamic_list): Add a pointer to
2305 struct bfd_elf_dynamic_list * argument.
2306 * ldlex.h (option_values): Add OPTION_EXPORT_DYNAMIC_SYMBOL and
2307 OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
2308 * lexsup.c (ld_options): Add entries for
2309 OPTION_EXPORT_DYNAMIC_SYMBOL and
2310 OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
2311 (parse_args): Handle --export-dynamic-symbol and
2312 --export-dynamic-symbol-list.
2313 * testsuite/ld-dynamic/export-dynamic-symbol-1.d: New.
2314 * testsuite/ld-dynamic/export-dynamic-symbol-2.d: New.
2315 * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: New.
2316 * testsuite/ld-dynamic/export-dynamic-symbol-list-1.d: New.
2317 * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: New.
2318 * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: New.
2319 * testsuite/ld-dynamic/export-dynamic-symbol.exp: New.
2320 * testsuite/ld-dynamic/export-dynamic-symbol.s: New.
2321 * testsuite/ld-dynamic/foo-bar.list: New.
2322 * testsuite/ld-dynamic/foo.list: New.
2323 * testsuite/ld-dynamic/foo.s: New.
2324 * testsuite/ld-dynamic/fstar.list: New.
2325 * testsuite/ld-elf/dlempty.list: New.
2326 * testsuite/ld-elf/shared.exp: Add tests for
2327 --export-dynamic-symbol and --export-dynamic-symbol-list.
2328
bbd2d6bf
JB
23292020-06-03 Jan Beulich <jbeulich@suse.com>
2330
2331 * testsuite/ld-elf/linux-x86.exp: Make copied source files
2332 writeable.
2333
a3fc9418
NC
23342020-05-28 Nick Clifton <nickc@redhat.com>
2335
2336 PR 26047
2337 * ldelf.c (ldelf_after_open): Fail if attempting to link one
a87e1817
NC
2338 executable into another. Ensure that the test is made for all
2339 forms of linking.
a3fc9418 2340
fa6ecf94
L
23412020-05-28 H.J. Lu <hongjiu.lu@intel.com>
2342
6f028f3c
L
2343 * NEWS: Mention --enable-textrel-check=yes is default for
2344 Linux/x86 targets.
2345 * configure.tgt (ac_default_ld_textrel_check): Set to yes if
2346 unset for Linux/x86 targets.
fa6ecf94 2347
b32632c4
L
23482020-05-28 H.J. Lu <hongjiu.lu@intel.com>
2349
2350 PR ld/20824
2351 * NEWS: Mention --enable-textrel-check=[no|yes|warning|error].
2352 * configure.ac: Add --enable-textrel-check=[no|yes|warning|error].
2353 (DEFAULT_LD_TEXTREL_CHECK): New AC_DEFINE_UNQUOTED.
2354 (DEFAULT_LD_TEXTREL_CHECK_WARNING): Likewise.
2355 * ldmain.c (main): Initialize link_info.textrel_check to
2356 DEFAULT_LD_TEXTREL_CHECK.
2357 * lexsup.c (ld_options): Check DEFAULT_LD_TEXTREL_CHECK_WARNING.
2358 * config.in: Regenerated.
2359 * configure: Likewise.
2360
72a3b182
NC
23612020-05-28 Nick Clifton <nickc@redhat.com>
2362
2363 * lexsup.c (parse_args): Generate an error if a name is not
2364 provided to the -Map option.
2365 (ld_options): Mention that the -Map option supports a directory
2366 name as an argument.
2367 * NEWS: Remove mention of support for an empty string as an
2368 argument to -Map.
2369 * ld.texi: Likewise.
2370
2a37823b
HPN
23712020-05-27 Hans-Peter Nilsson <hp@axis.com>
2372
2373 PR ld/22909
2374 * testsuite/ld-elf/pr19539.d: Don't xfail for cris*-*-*.
2375
198204a7
NC
23762020-05-27 Rasmus Villemoes <rv@rasmusvillemoes.dk>
2377 Nick Clifton <nickc@redhat.com>
2378
2379 * lexsup.c (parse_args): If the map filename is defined but empty
2380 create a name based upon the output file name. If the name is
2381 defined but refers to a directory create a file inside the
2382 directory based on the output file name.
2383 * ld.texi: Document the new feature.
2384 * testsuite/ld-script/map-address.exp: Add test of new feature.
2385 * NEWS: Mention the new feature.
2386
a6dbf402
L
23872020-05-27 H.J. Lu <hongjiu.lu@intel.com>
2388
2389 PR ld/22909
2390 * NEWS: Mention --warn-textrel.
2391 * ld.texi: Update -z text/notext/textoff. Add --warn-textrel.
2392 Remove --warn-shared-textrel.
2393 * ldlex.h (option_values): Rename OPTION_WARN_SHARED_TEXTREL to
2394 OPTION_WARN_TEXTREL.
2395 * lexsup.c (ld_options): Add --warn-textrel. Obsolete
2396 --warn-shared-textrel.
2397 (parse_args): Updated.
2398 (elf_shlib_list_options): Check link_info.textrel_check.
2399 * emultempl/elf.em: Updated.
2400 * testsuite/ld-elf/pr19539.d: Replace -z notext with
2401 --warn-textrel. Expect a warning.
2402 * testsuite/ld-i386/warn1.d: Update expected warning.
2403
368584aa
L
24042020-05-26 H.J. Lu <hongjiu.lu@intel.com>
2405
2406 * testsuite/ld-ifunc/ifunc-23a-x86.d: Skip *-*-lynxos *-*-nto*.
2407 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
2408 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
2409
07e0bb0f
L
24102020-05-25 H.J. Lu <hongjiu.lu@intel.com>
2411
2412 * testsuite/ld-x86-64/x86-64.exp: Pass -z notext to linker.
2413
af2c48d8
L
24142020-05-25 H.J. Lu <hongjiu.lu@intel.com>
2415
2416 * testsuite/ld-elf/eh6.d: Pass -z notext to linker.
2417 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
2418 * testsuite/ld-elf/pr19539.d: Likewise.
2419 * testsuite/ld-elfvers/vers.exp: Likewise.
2420 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
2421 * testsuite/ld-i386/i386.exp: Likewise.
2422 * testsuite/ld-i386/nogot1.d: Likewise.
2423 * testsuite/ld-i386/pr19539.d: Likewise.
2424 * testsuite/ld-i386/pr19636-2a.d: Likewise.
2425 * testsuite/ld-i386/pr19636-2b.d: Likewise.
2426 * testsuite/ld-i386/pr19636-2c.d: Likewise.
2427 * testsuite/ld-i386/pr19636-2d.d: Likewise.
2428 * testsuite/ld-i386/pr19636-2e.d: Likewise.
2429 * testsuite/ld-i386/pr19636-3d.d: Likewise.
2430 * testsuite/ld-i386/pr19636-3e.d: Likewise.
2431 * testsuite/ld-i386/pr19939b.d: Likewise.
2432 * testsuite/ld-i386/undefweaka.d: Likewise.
2433 * testsuite/ld-i386/undefweakb.d: Likewise.
2434 * testsuite/ld-shared/shared.exp: Likewise.
2435 * testsuite/ld-size/size.exp: Likewise.
2436 * testsuite/ld-unique/unique.exp: Likewise.
2437 * testsuite/ld-x86-64/pie1.d: Likewise.
2438 * testsuite/ld-x86-64/pr19539a.d: Likewise.
2439 * testsuite/ld-x86-64/pr19539b.d: Likewise.
2440 * testsuite/ld-x86-64/pr19636-1d.d: Likewise.
2441 * testsuite/ld-x86-64/pr19636-1e.d: Likewise.
2442 * testsuite/ld-x86-64/pr19807-1a.d: Likewise.
2443 * testsuite/ld-x86-64/pr19807-1b.d: Likewise.
2444 * testsuite/ld-x86-64/pr19807-2b.d: Likewise.
2445 * testsuite/ld-x86-64/pr19807-2c.d: Likewise.
2446 * testsuite/ld-x86-64/pr19807-2d.d: Likewise.
2447 * testsuite/ld-x86-64/pr19807-2e.d: Likewise.
2448 * testsuite/ld-x86-64/pr19939b.d: Likewise.
2449 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2450
bb68f22c
FS
24512020-05-24 Fangrui Song <maskray@google.com>
2452
2453 PR ld/26018
2454 * lexsup.c (parse_args): Simplify.
2455 * testsuite/ld-elf/dl4e.out: New.
2456 * testsuite/ld-elf/shared.exp: Updated for PR ld/26018 tests.
2457
309cae1f
L
24582020-05-23 H.J. Lu <hongjiu.lu@intel.com>
2459
2460 PR ld/26018
2461 * testsuite/ld-i386/i386.exp: Add a -Bsymbolic-functions test.
2462 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2463 * testsuite/ld-i386/pr26018.d: New file.
2464 * testsuite/ld-x86-64/pr26018.d: Likewise.
2465 * testsuite/ld-x86-64/pr26018.s: Likewise.
2466
5e2ab612
AM
24672020-05-21 Alan Modra <amodra@gmail.com>
2468
2469 * deffilep.y: Replace "if (x) free (x)" with "free (x)" thoughout.
2470 * emultempl/elf.em: Likewise.
2471 * emultempl/msp430.em: Likewise.
2472 * emultempl/pe.em: Likewise.
2473 * emultempl/pep.em: Likewise.
2474 * emultempl/ppc64elf.em: Likewise.
2475 * emultempl/xtensaelf.em: Likewise.
2476 * ldelf.c: Likewise.
2477 * ldfile.c: Likewise.
2478 * ldmain.c: Likewise.
2479 * ldmisc.c: Likewise.
2480 * lexsup.c: Likewise.
2481 * pe-dll.c: Likewise.
2482
8f595e9b
NC
24832020-05-20 Nelson Chu <nelson.chu@sifive.com>
2484
2485 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Updated
2486 priv attributes according to the -mpriv-spec option.
2487 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
2488 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
2489 * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
2490 * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
2491 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
2492 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
2493 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
2494 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
2495 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
2496 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
2497 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
2498
7b958a48
AM
24992020-05-20 Alan Modra <amodra@gmail.com>
2500
2501 PR 25993
2502 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't copy
2503 other_bfd_filename for bfd_set_filename, and test result of
2504 bfd_set_filename call. Don't create a new is->filename, simply
2505 copy from bfd filename. Free new_name after bfd_set_filename.
2506 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
2507
7e057737
SP
25082020-05-19 Siddhesh Poyarekar <siddesh.poyarekar@arm.com>
2509
2510 * testsuite/ld-aarch64/aarch64-elf.exp: New test
2511 emit-relocs-560.
2512 * testsuite/ld-aarch64/emit-relocs-560.d: New file.
2513 * testsuite/ld-aarch64/emit-relocs-560.s: New file.
2514
607b4833
AM
25152020-05-19 Alan Modra <amodra@gmail.com>
2516
2517 * emultempl/beos.em (sort_by_file_name): Use bfd_get_filename
2518 rather than accessing bfd->filename directly.
2519 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
2520 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
2521 * emultempl/spuelf.em (embedded_spu_file): Likewise.
2522 * ldlang.c (input_statement_is_archive_path, wild_sort),
2523 (check_excluded_libs): Likewise.
2524 * ldmain.c (add_archive_element): Likewise.
2525 * ldmisc.c (vfinfo): Likewise.
2526 * pe-dll.c (auto_export, generate_edata, pe_create_import_fixup),
2527 (pe_dll_generate_implib, pe_process_import_defs): Likewise.
2528 * plugin.c (plugin_object_p): Likewise.
2529
3edf7b9f
DR
25302020-05-18 Douglas B Rupp <rupp@adacore.com>
2531
2532 * ldemul.h (ldemul_print_symbol): New.
2533 (ld_emulation_xfer_type) <print_symbol): Likewise.
2534 * ldemul.c (ldemul_print_symbol): New.
2535 * ldlang.c (SECTION_NAME_MAP_LANGTH): Move to ...
2536 (print_one_symbol): Make global and move declaration to ...
2537 (print_all_symbols): Rename print_one_symbol to ldemul_print_symbol
2538 (print_input_section): Likewise
2539 * ldlang.h: ... here.
2540 * emultempl/aix.em (gld${EMULATION_NAME}_print_symbol): New.
2541 (ld_emulation_xfer_struct): Use it.
2542 * emultempl/armcoff.em (ld_emulation_xfer_struct): Add print_symbol
2543 and default to NULL.
2544 * emultempl/beos.em (ld_emulation_xfer_struct): Likewise
2545 * emultempl/elf.em (ld_emulation_xfer_struct): Likewise
2546 * emultempl/generic.em (ld_emulation_xfer_struct): Likewise
2547 * emultempl/linux.em (ld_emulation_xfer_struct): Likewise
2548 * emultempl/msp430.em (ld_emulation_xfer_struct): Likewise
2549 * emultempl/pe.em (ld_emulation_xfer_struct): Likewise
2550 * emultempl/pep.em (ld_emulation_xfer_struct): Likewise
2551 * emultempl/ticoff.em (ld_emulation_xfer_struct): Likewise
2552 * emultempl/vanilla.em (ld_emulation_xfer_struct): Likewise
2553
6e0c75f7
ST
25542020-05-18 Sergei Trofimovich <siarheit@google.com>
2555
2556 * ldmain.c (add_archive_element): Fix s/claimi/claim/ typo
2557 in info message.
2558
e6ddf2af
NC
25592020-05-18 Nick Clifton <nickc@redhat.com>
2560
2561 * po/sv.po: Update Swedish translation.
2562
5e365e47
NC
25632020-05-18 Nick Clifton <nickc@redhat.com>
2564
2565 PR 25993
2566 * emultempl/pe.em (_after_open): Check for duplicate filename
2567 pointers before renaming the dll.
2568 * emultempl/pep.em (_after_open): Likewise.
2569
ba311c5b
NC
25702020-05-13 Nick Clifton <nickc@redhat.com>
2571
2572 PR 25979
2573 * lexsup.c (elf_shlib_list_options): Include the default value for
2574 the hash style in the output text.
2575
94ba9882
AM
25762020-05-11 Alan Modra <amodra@gmail.com>
2577
2578 * testsuite/ld-powerpc/pcrelopt.s: Add lxvp and stxvp.
2579 * testsuite/ld-powerpc/pcrelopt.d: Update.
2580
7c1f4227
AM
25812020-05-11 Alan Modra <amodra@gmail.com>
2582
2583 * testsuite/ld-powerpc/callstub-1.d: Use -mpower10/-Mpower10 in
2584 place of -mfuture/-Mfuture.
2585 * testsuite/ld-powerpc/notoc2.d: Likewise.
2586 * testsuite/ld-powerpc/powerpc.exp: Likewise.
2587 * testsuite/ld-powerpc/tlsgd.d: Likewise.
2588 * testsuite/ld-powerpc/tlsie.d: Likewise.
2589 * testsuite/ld-powerpc/tlsld.d: Likewise.
2590
73199c2b
NC
25912020-05-11 Nick Clifton <nickc@redhat.com>
2592
2593 * po/es.po: Updated Spanish translation.
2594
cff69cf4
WD
25952020-05-01 Wilco Dijkstra <wdijkstr@arm.com>
2596
2597 PR ld/25665
2598 * testsuite/ld-aarch64/farcall-group.s: New large group test.
2599 * testsuite/ld-aarch64/farcall-group.d: New test driver.
2600 * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
2601
a8acd6ee
AM
26022020-05-01 Alan Modra <amodra@gmail.com>
2603
2604 PR 25882
2605 * ldlang.c (lang_check): Call bfd_merge_private_bfd_data for
2606 shared libraries.
2607
94a8e7b0
AM
26082020-05-01 Alan Modra <amodra@gmail.com>
2609
2610 * po/BLD-POTFILES.in: Regenerate.
2611
09c1e68a
AC
26122020-04-30 Alex Coplan <alex.coplan@arm.com>
2613
2614 * testsuite/ld-aarch64/erratum843419_tls_ie.d: Use udf in disassembly.
2615 * testsuite/ld-aarch64/farcall-b-section.d: Likewise.
2616 * testsuite/ld-aarch64/farcall-back.d: Likewise.
2617 * testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
2618
8a8a1171
NC
26192020-04-30 Nick Clifton <nickc@redhat.com>
2620
2621 * testsuite/ld-elf/compress1c.d: XFAIL if thet target linker does
2622 not support the -shared command line option.
2623 * /ld-elf/compressed1c.d: Likewise.
2624 * /ld-elf/compressed1e.d: Likewise.
2625 * /ld-elf/dynamic1.d: Likewise.
2626 * /ld-elf/dynsym1.d: Likewise.
2627 * /ld-elf/ehdr_start-shared.d: Likewise.
2628 * /ld-elf/exclude3b.d: Likewise.
2629 * /ld-elf/global1.d: Likewise.
2630 * /ld-elf/hash.d: Likewise.
2631 * /ld-elf/local1.d: Likewise.
2632 * /ld-elf/mbind1b.d: Likewise.
2633 * /ld-elf/now-1.d: Likewise.
2634 * /ld-elf/now-2.d: Likewise.
2635 * /ld-elf/now-3.d: Likewise.
2636 * /ld-elf/now-4.d: Likewise.
2637 * /ld-elf/pr12975.d: Likewise.
2638 * /ld-elf/pr13177.d: Likewise.
2639 * /ld-elf/pr13195.d: Likewise.
2640 * /ld-elf/pr16322.d: Likewise.
2641 * /ld-elf/pr16498a.d: Likewise.
2642 * /ld-elf/pr16498b.d: Likewise.
2643 * /ld-elf/pr17615.d: Likewise.
2644 * /ld-elf/pr19162.d: Likewise.
2645 * /ld-elf/pr19698.d: Likewise.
2646 * /ld-elf/pr20513c.d: Likewise.
2647 * /ld-elf/pr20513d.d: Likewise.
2648 * /ld-elf/pr21389a.d: Likewise.
2649 * /ld-elf/pr21389b.d: Likewise.
2650 * /ld-elf/pr21389c.d: Likewise.
2651 * /ld-elf/pr21562a.d: Likewise.
2652 * /ld-elf/pr21562b.d: Likewise.
2653 * /ld-elf/pr21562c.d: Likewise.
2654 * /ld-elf/pr21562d.d: Likewise.
2655 * /ld-elf/pr21562e.d: Likewise.
2656 * /ld-elf/pr21562f.d: Likewise.
2657 * /ld-elf/pr21562g.d: Likewise.
2658 * /ld-elf/pr21562h.d: Likewise.
2659 * /ld-elf/pr21562i.d: Likewise.
2660 * /ld-elf/pr21562j.d: Likewise.
2661 * /ld-elf/pr21562k.d: Likewise.
2662 * /ld-elf/pr21562l.d: Likewise.
2663 * /ld-elf/pr21562m.d: Likewise.
2664 * /ld-elf/pr21562n.d: Likewise.
2665 * /ld-elf/pr21903a.d: Likewise.
2666 * /ld-elf/pr21903b.d: Likewise.
2667 * /ld-elf/pr22269b.d: Likewise.
2668 * /ld-elf/pr22393-1a.d: Likewise.
2669 * /ld-elf/pr22393-1b.d: Likewise.
2670 * /ld-elf/pr23658-1c.d: Likewise.
2671 * /ld-elf/pr25708.d: Likewise.
2672 * /ld-elf/rpath-1.d: Likewise.
2673 * /ld-elf/rpath-2.d: Likewise.
2674 * /ld-elf/runpath-1.d: Likewise.
2675 * /ld-elf/runpath-2.d: Likewise.
2676 * /ld-elf/sizeofb.d: Likewise.
2677 * /ld-elf/startofb.d: Likewise.
2678 * /ld-elf/strtab.d: Likewise.
2679 * /ld-elf/textaddr2.d: Likewise.
2680 * /ld-elf/textaddr5.d: Likewise.
2681 * /ld-elf/textaddr6.d: Likewise.
2682 * /ld-elf/unknown2.d: Likewise.
2683 * /ld-undefined/entry-3.d: Likewise.
2684 * /ld-undefined/entry-4.d: Likewise.
2685 * /ld-elf/mbind1c.d: XFAIL if the target linker does not support
2686 the -pie option.
2687 * /ld-elf/pie.d: Likewise.
2688 * /ld-elf/pr19539.d: Likewise.
2689 * /ld-elf/pr21903d.d: Likewise.
2690 * /ld-elf/pr22269a.d: Likewise.
2691 * /ld-elf/pr22393-1c.d: Likewise.
2692 * /ld-elf/pr22393-1d.d: Likewise.
2693 * /ld-elf/pr22423.d: Likewise.
2694 * /ld-elf/loadaddr1.d: Expect to fail on the rx-linux target.
2695 * /ld-elf/loadaddr2.d: Likewise.
2696 * /ld-elf/pr22393-1e.d: Likewise.
2697 * /ld-elf/pr22393-1f.d: Likewise.
2698 * /ld-elf/textaddr1.d: Likewise.
2699 * /ld-elf/textaddr4.d: Likewise.
2700
c578f16e
YS
27012020-04-30 Yoshinori Sato <ysato@users.sourceforge.jp>
2702
2703 * emulparams/elf32rx_linux.sh: New rx-linux emulation.
2704 * emultempl/rxlinux.em: New.
2705 * configure.tgt: Add rx-linux.
2706 * Makefile.am: Add eelf32rx_linux.c
2707 * Makefile.in: Regenerate.
2708
d548f47d
MF
27092020-04-29 Max Filippov <jcmvbkbc@gmail.com>
2710
2711 * testsuite/ld-xtensa/relax-diff1.d: New test definition.
2712 * testsuite/ld-xtensa/relax-diff1.s: New test source.
2713 * testsuite/ld-xtensa/relax-ndiff.d: New test definition.
2714 * testsuite/ld-xtensa/relax-ndiff.s: New test source.
2715 * testsuite/ld-xtensa/xtensa.exp: (relax-diff1)
2716 (relax-ndiff): New tests.
2717
4849fabc
SC
27182020-04-29 Stephen Casner <casner@acm.org>
2719
2720 PR 25829
2721 * testsuite/ld-scripts/default-script.exp: Add --image-base=0 to
2722 LDFLAGS for targets *-*-mingw64 x86_64-*-cygwin.
2723 * testsuite/ld-scripts/default-script1.d: No longer have to skip
2724 test for those targets.
2725 * testsuite/ld-scripts/default-script2.d: Likewise.
2726 * testsuite/ld-scripts/default-script3.d: Likewise.
2727 * testsuite/ld-scripts/default-script4.d: Likewise.
2728
251dae91
TC
27292020-04-27 Tamar Christina <tamar.christina@arm.com>
2730
2731 * pe-dll.c (pe_detail_list): Add pe-bigobj-i386.
2732
30ce8e47
MF
27332020-04-22 Max Filippov <jcmvbkbc@gmail.com>
2734
2735 PR ld/25861
2736 * testsuite/ld-xtensa/relax-loc.d: New test definition.
2737 * testsuite/ld-xtensa/relax-loc.s: New test source.
2738 * testsuite/ld-xtensa/xtensa.exp (relax-loc): New test.
2739
16171946
FS
27402020-04-22 Fangrui Song <maskray@google.com>
2741
2742 PR ld/25806
2743 * ldlang.h (struct lang_input_statement_struct): Add extra_search_path.
2744 * ldlang.c (current_input_file): New.
2745 (ldirname): New.
2746 (new_afile): Add from_filename parameter. Set extra_search_path.
2747 (lang_add_input_file): Pass current_input_file to new_afile.
2748 (load_symbols): Set current_input_file.
2749 * ldfile.c (ldfile_open_file): If extra_search_path has been set
2750 then scan it for the file that needs to be opened.
2751 * ld.texi: Document the new behaviour.
2752 * NEWS: Mention the new feature.
2753
1d934d76
AM
27542020-04-22 Alan Modra <amodra@gmail.com>
2755
2756 * testsuite/ld-scripts/default-script1.d: Correct mingw skip.
2757 * testsuite/ld-scripts/default-script2.d: Likewise.
2758 * testsuite/ld-scripts/default-script3.d: Likewise.
2759 * testsuite/ld-scripts/default-script4.d: Likewise.
2760
39a7b38f
SC
27612020-04-21 Stephen Casner <casner@acm.org>
2762
2763 PR 25829
2764 * testsuite/ld-scripts/script.exp (check_script)
2765 (extract_symbol_test): Make test addresses fit in 16 bits.
2766 * testsuite/ld-scripts/memory.t: Likewise.
2767 * testsuite/ld-scripts/memory_sym.t (TXT_LENGTH): Likewise.
2768 * testsuite/ld-scripts/default-script.t (_START): Likewise.
2769 * testsuite/ld-scripts/default-script1.d: Likewise.
2770 * testsuite/ld-scripts/default-script2.d: Likewise.
2771 * testsuite/ld-scripts/default-script3.d: Likewise.
2772 * testsuite/ld-scripts/default-script4.d: Likewise.
2773 * testsuite/ld-scripts/empty-address-1.t: Likewise.
2774 * testsuite/ld-scripts/empty-address-1.d: Likewise.
2775 * testsuite/ld-scripts/empty-address-2a.d: Likewise.
2776 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
2777 * testsuite/ld-misc/start.s: .long -> .dc.a to allow relocation to
2778 fit target address size.
1d934d76 2779 * testsuite/ld-scripts/empty-address-1.s: Likewise.
39a7b38f
SC
2780 * testsuite/ld-scripts/empty-address-2.s: Likewise.
2781
6f6fd151
L
27822020-04-21 H.J. Lu <hongjiu.lu@intel.com>
2783
2784 PR ld/25849
2785 * ldelfgen.c (ldelf_map_segments): Call
2786 elf_backend_strip_zero_sized_dynamic_sections.
2787 * testsuite/ld-alpha/tlsbinr.rd: Updated.
2788
2efec98b
AM
27892020-04-20 Alan Modra <amodra@gmail.com>
2790
2791 * testsuite/ld-powerpc/tlsopt5.s: Rename foo to aaaaa.
2792 * testsuite/ld-powerpc/tlsopt5.d: Adjust to suit.
2793 * testsuite/ld-powerpc/tlsopt6.d: Likewise.
2794
dbe23755
RO
27952020-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2796
2797 * testsuite/ld-elf/warn1.d: Don't xfail on 64-bit Solaris/SPARC.
2798 * testsuite/ld-elf/warn2.d: Likewise.
2799
54975ae9
L
28002020-04-18 H.J. Lu <hongjiu.lu@intel.com>
2801
2802 * testsuite/ld-elf/elf.exp (ASFLAGS): Add "--defsym NO_SET=1" for
2803 alpha target.
2804 * testsuite/ld-elf/pr19789.s: Use "=" if NO_SET is defined.
2805
0203cad2
SC
28062020-04-16 Stephen Casner <casner@acm.org>
2807
2808 PR 18963
2809 * testsuite/ld-scripts/pr18963.t: Reduce section sizes to fit in
2810 16-bit address space.
2811 * testsuite/ld-scripts/pr18963.d: Likewise.
2812
0fe0f2d6
JMG
28132020-04-17 Juan Manuel Guerrero <juan.guerrero@gmx.de>
2814 Jan W. Jagersma <jwjagersma@gmail.com>
2815
2816 * scripttempl/i386go32.sc: Provide symbol _environ. Link in
2817 .ctors and .dtors. Discard LTO sections.
2818
49c16254
NC
28192020-04-17 Nick Clifton <nickc@redhat.com>
2820
2821 * testsuite/config/default.exp: If not already set then create the
2822 CCC_OVERRIDE_OPTIONS environment variable to help when running the
2823 testsuite with clang.
2824 * testsuite/ld-elf/pr22269-1.c: Add a missing return statement.
2825 * testsuite/ld-elfvers/vers.exp: Add checks to detect if files
2826 were built before attempting to copy them.
2827
95a51568
FS
28282020-04-15 Fangrui Song <maskray@google.com>
2829
2830 PR binutils/24613
2831 * lexsup.c (parse_args): Change RM_GENERATE_WARNING and
2832 RM_GENERATE_ERROR to RM_DIAGNOSE.
2833 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Change
2834 RM_GENERATE_ERROR to RM_DIAGNOSE.
2835 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Likewise.
2836
fa1477dc
SC
28372020-04-14 Stephen Casner <casner@acm.org>
2838
2839 PR ld/25677
2840 * emulparams/pdp11.sh (SCRIPT_NAME): Change to pdp11.
2841 (EXTRA_EM_FILE): New, add emulation file pdp11.
2842 * scripttempl/pdp11.sc: New, derived from aout.sc without
2843 irrelevant input sections.
2844 * emultempl/pdp11.em (_add_options, _handle_option)
2845 (_list_options): New. Add options -z, --imagic for pdp11-aout.
2846 (_before_parse): Make --omagic be default instead of --nmagic.
2847 (_get_script): Modify special-case linker script for --imagic.
2848 * lexsup.c (parse_args): Explictly set config.text_read_only for -n.
2849 * ld.texi (Options): Add documentation of PDP11-specific options.
2850 (Options): Fix unrelated typo to --no-compact-branches.
2851 * gen-doc.texi: @set PDP11.
2852 * testsuite/ld-pdp11/pdp11.exp: New, start pdp11 testing.
2853 * testsuite/ld-pdp11/sections.s: New, source for options tests.
2854 * testsuite/ld-pdp11/imagic.d: New, test --imagic format.
2855 * testsuite/ld-pdp11/imagicz.d: New, test -z (imagic) format.
2856 * testsuite/ld-pdp11/nmagic.d: New, test --nmagic format.
2857 * testsuite/ld-pdp11/omagic.d: New, test --omagic format.
2858
10ca4b04
L
28592020-04-14 H.J. Lu <hongjiu.lu@intel.com>
2860
2861 PR binutils/25707
2862 * testsuite/ld-arm/armthumb-lib.sym: Updated.
2863 * testsuite/ld-arm/farcall-mixed-app.sym: Likewise.
2864 * testsuite/ld-arm/farcall-mixed-app2.sym: Likewise.
2865 * testsuite/ld-arm/fdpic-main-m.sym: Likewise.
2866 * testsuite/ld-arm/fdpic-main.sym: Likewise.
2867 * testsuite/ld-arm/fdpic-shared-m.sym: Likewise.
2868 * testsuite/ld-arm/fdpic-shared.sym: Likewise.
2869 * testsuite/ld-arm/mixed-app.sym: Likewise.
2870 * testsuite/ld-arm/mixed-lib.sym: Likewise.
2871 * testsuite/ld-arm/preempt-app.sym: Likewise.
2872 * testsuite/ld-elf/hash.d: Likewise.
2873 * testsuite/ld-elf/pr13195.d: Likewise.
2874 * testsuite/ld-elfvsb/hidden2.d: Likewise.
2875 * testsuite/ld-mips-elf/hash2.d: Likewise.
2876
a5d21497
RO
28772020-04-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2878
2879 * testsuite/ld-shared/shared.exp: Remove dangling comments.
2880 xfail shared non PIC tests on Solaris.
2881
ae4b1d73
RO
28822020-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2883
2884 * testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIC on sparc*-*-*.
2885
aa350065
L
28862020-04-02 H.J. Lu <hongjiu.lu@intel.com>
2887
2888 * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): Replace
2889 nopie with available.
2890
8be5def6
L
28912020-04-02 H.J. Lu <hongjiu.lu@intel.com>
2892
2893 * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): New.
2894 Set to "-fcf-protection=none" if target compiler supports it.
2895 * testsuite/ld-srec/srec.exp: Add $NOCF_PROTECTION_CFLAGS to
2896 CC and CXX.
2897 * testsuite/ld-x86-64/x86-64.exp: Add $NOCF_PROTECTION_CFLAGS
2898 to PLT BND tests.
2899
516231b7
L
29002020-04-02 H.J. Lu <hongjiu.lu@intel.com>
2901
2902 * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Compile with
2903 -I../bfd.
2904 (check_pr25749b): Likewise.
2905
bb897477
RO
29062020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2907
2908 * testsuite/ld-ifunc/ifunc-10-i386.d: Remove *-*-solaris2* from
2909 notarget.
2910 * ifunc-11-i386.d: Likewise.
2911 * ifunc-12-i386.d: Likewise.
2912 * ifunc-13-i386.d: Likewise.
2913 * ifunc-14a-i386.d: Likewise.
2914 * ifunc-14b-i386.d: Likewise.
2915 * ifunc-14c-i386.d: Likewise.
2916 * ifunc-14d-i386.d: Likewise.
2917 * ifunc-14e-i386.d: Likewise.
2918 * ifunc-14f-i386.d: Likewise.
2919 * ifunc-15-i386.d: Likewise.
2920 * ifunc-16-i386-now.d: Likewise.
2921 * ifunc-16-i386.d: Likewise.
2922 * ifunc-17a-i386.d: Likewise.
2923 * ifunc-17b-i386.d: Likewise.
2924 * ifunc-18a-i386.d: Likewise.
2925 * ifunc-18b-i386.d: Likewise.
2926 * ifunc-19a-i386.d: Likewise.
2927 * ifunc-19b-i386.d: Likewise.
2928 * ifunc-2-i386-now.d: Likewise.
2929 * ifunc-2-i386.d: Likewise.
2930 * ifunc-2-local-i386-now.d: Likewise.
2931 * ifunc-2-local-i386.d: Likewise.
2932 * ifunc-20-i386.d: Likewise.
2933 * ifunc-21-i386.d: Likewise.
2934 * ifunc-22-i386.d: Likewise.
2935 * ifunc-5a-i386.d: Likewise.
2936 * ifunc-5a-local-i386.d: Likewise.
2937 * ifunc-5b-i386.d: Likewise.
2938 * ifunc-5b-local-i386.d: Likewise.
2939 * ifunc-5r-local-i386.d: Likewise.
2940 * ifunc-6a-i386.d: Likewise.
2941 * ifunc-6b-i386.d: Likewise.
2942 * ifunc-7a-i386.d: Likewise.
2943 * ifunc-7b-i386.d: Likewise.
2944 * ifunc-8-i386.d: Likewise.
2945 * ifunc-9-i386.d: Likewise.
2946 * pr17154-i386-now.d: Likewise.
2947 * pr17154-i386.d: Likewise.
2948
2949 * ifunc-23a-x86.d: Remove notarget.
2950 * ifunc-24a-x86.d: Likewise.
2951 * ifunc-25a-x86.d: Likewise.
2952
4f5bd885
NC
29532020-04-02 Nick Clifton <nickc@redhat.com>
2954
2955 PR ld/25747
2956 * ldfile.c (ldfile_open_file): Fix typo in warning message.
2957
382aae06
L
29582020-04-01 H.J. Lu <hongjiu.lu@intel.com>
2959
2960 PR ld/25749
2961 PR ld/25754
2962 * testsuite/ld-elf/linux-x86.exp: Run ld/25749 tests.
2963 * testsuite/ld-elf/pr25749-1.c: New file.
2964 * testsuite/ld-elf/pr25749-1a.c: Likewise.
2965 * testsuite/ld-elf/pr25749-1b.c: Likewise.
2966 * testsuite/ld-elf/pr25749-1b.err: Likewise.
2967 * testsuite/ld-elf/pr25749-1c.c: Likewise.
2968 * testsuite/ld-elf/pr25749-1d.c: Likewise.
2969 * testsuite/ld-elf/pr25749-2.c: Likewise.
2970 * testsuite/ld-elf/pr25749-2a.s: Likewise.
2971 * testsuite/ld-elf/pr25749-2b.s: Likewise.
2972 * testsuite/ld-elf/pr25749.rd: Likewise.
2973 * testsuite/ld-elf/pr25754-1a.c: Likewise.
2974 * testsuite/ld-elf/pr25754-1b.s: Likewise.
2975 * testsuite/ld-elf/pr25754-2a.c: Likewise.
2976 * testsuite/ld-elf/pr25754-2b.err: Likewise.
2977 * testsuite/ld-elf/pr25754-2b.s: Likewise.
2978 * testsuite/ld-elf/pr25754-3a.c: Likewise.
2979 * testsuite/ld-elf/pr25754-3b.s: Likewise.
2980 * testsuite/ld-elf/pr25754-4a.c: Likewise.
2981 * testsuite/ld-elf/pr25754-4b.s: Likewise.
2982 * testsuite/ld-elf/pr25754-4c.s: Likewise.
2983 * testsuite/ld-elf/pr25754-5a.c: Likewise.
2984 * testsuite/ld-elf/pr25754-5b.s: Likewise.
2985 * testsuite/ld-elf/pr25754-5c.s: Likewise.
2986 * testsuite/ld-elf/pr25754-6a.c: Likewise.
2987 * testsuite/ld-elf/pr25754-6b.s: Likewise.
2988 * testsuite/ld-x86-64/pr19609-6a.d: Don't expect linker error.
2989
3ce23ca1
TC
29902020-04-01 Tamar Christina <tamar.christina@arm.com>
2991
2992 PR ld/16017
2993 * testsuite/ld-arm/arm-elf.exp (thumb-plt, thumb-plt-got): Skip for NaCL.
2994
77bf7b53
NC
29952020-04-01 Nick Clifton <nickc@redhat.com>
2996
2997 PR ld/25747
2998 * ldfile.c (ldfile_open_file): If a search for a library fails,
2999 but there is a file that would match if it had a "lib" prefix to
3000 its name, then tell the user.
3001
a7618269
TC
30022020-04-01 Tamar Christina <tamar.christina@arm.com>
3003
3004 PR ld/16017
3005 * testsuite/ld-arm/arm-elf.exp (thumb-plt-got): New.
3006 * testsuite/ld-arm/thumb-plt-got.d: New test.
3007
15ccbdd7
TC
30082020-04-01 Tamar Christina <tamar.christina@arm.com>
3009
3010 * testsuite/ld-arm/arm-elf.exp (thumb-plt): New.
3011 * testsuite/ld-arm/thumb-plt.d: New test.
3012 * testsuite/ld-arm/thumb-plt.s: New test.
3013
41ff29bf
HPN
30142020-04-01 Hans-Peter Nilsson <hp@bitrange.com>
3015
3016 * testsuite/ld-scripts/defined4.d: Don't xfail mmix-*-*.
3017
00386881
NC
30182020-03-30 Nick Clifton <nickc@redhat.com>
3019
3020 PR binutils/25662
3021 * emultempl/pe.em (after_open): Replace initialisation of the
3022 insert_timestamp field in the pe_data structure with an
3023 initialisation of the timestamp field.
3024 * emultemp/pep.em: Likewise.
3025 * pe-dll.c (fill_edata): Use the timestamp field in the pe_data
3026 structure instead of the insert_timestamp field.
3027
767be9d9
L
30282020-03-28 H.J. Lu <hongjiu.lu@intel.com>
3029
3030 PR 25732
3031 * emulparams/elf_i386_ldso.sh (COMMONPAGESIZE): New.
3032 * testsuite/ld-elf/shared.exp:Don't xfail pr20995-2 tests for
3033 Solaris.
3034
258e8844
L
30352020-03-27 H.J. Lu <hongjiu.lu@intel.com>
3036
3037 PR 25732
3038 * testsuite/ld-elf/shared.exp: Xfail pr20995-2 tests for Solaris.
3039
cacb9d87
L
30402020-03-27 H.J. Lu <hongjiu.lu@intel.com>
3041
3042 PR 25732
3043 * testsuite/ld-ifunc/ifunc-23a-x86.d: Add notarget for Solaris.
3044 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
3045 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
3046
86fd7e2e
AM
30472020-03-25 Alan Modra <amodra@gmail.com>
3048
3049 * testsuite/ld-elf/compress1c.d: xfail h8300.
3050 * testsuite/ld-elf/compressed1c.d: Likewise.
3051 * testsuite/ld-elf/compressed1e.d: Likewise.
3052 * testsuite/ld-elf/dynamic1.d: Likewise.
3053 * testsuite/ld-elf/dynsym1.d: Likewise.
3054 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
3055 * testsuite/ld-elf/exclude3b.d: Likewise.
3056 * testsuite/ld-elf/export-class.exp: Don't run without -shared support.
3057 * testsuite/ld-elf/global1.d: xfail h8300.
3058 * testsuite/ld-elf/hash.d: Likewise.
3059 * testsuite/ld-elf/loadaddr1.d: Likewise.
3060 * testsuite/ld-elf/loadaddr2.d: Likewise.
3061 * testsuite/ld-elf/local1.d: Likewise.
3062 * testsuite/ld-elf/mbind1b.d: Likewise.
3063 * testsuite/ld-elf/mbind1c.d: Likewise.
3064 * testsuite/ld-elf/now-1.d: Likewise.
3065 * testsuite/ld-elf/now-2.d: Likewise.
3066 * testsuite/ld-elf/now-3.d: Likewise.
3067 * testsuite/ld-elf/now-4.d: Likewise.
3068 * testsuite/ld-elf/pie.d: Likewise.
3069 * testsuite/ld-elf/pr12975.d: Likewise.
3070 * testsuite/ld-elf/pr13177.d: Likewise.
3071 * testsuite/ld-elf/pr13195.d: Likewise.
3072 * testsuite/ld-elf/pr16322.d: Likewise.
3073 * testsuite/ld-elf/pr16498a.d: Likewise.
3074 * testsuite/ld-elf/pr16498b.d: Likewise.
3075 * testsuite/ld-elf/pr17615.d: Likewise.
3076 * testsuite/ld-elf/pr19162.d: Likewise.
3077 * testsuite/ld-elf/pr19539.d: Likewise.
3078 * testsuite/ld-elf/pr19617a.d: Likewise.
3079 * testsuite/ld-elf/pr19698.d: Likewise.
3080 * testsuite/ld-elf/pr20513c.d: Likewise.
3081 * testsuite/ld-elf/pr20513d.d: Likewise.
3082 * testsuite/ld-elf/pr21389a.d: Likewise.
3083 * testsuite/ld-elf/pr21389b.d: Likewise.
3084 * testsuite/ld-elf/pr21389c.d: Likewise.
3085 * testsuite/ld-elf/pr21562a.d: Likewise.
3086 * testsuite/ld-elf/pr21562b.d: Likewise.
3087 * testsuite/ld-elf/pr21562c.d: Likewise.
3088 * testsuite/ld-elf/pr21562d.d: Likewise.
3089 * testsuite/ld-elf/pr21562e.d: Likewise.
3090 * testsuite/ld-elf/pr21562f.d: Likewise.
3091 * testsuite/ld-elf/pr21562g.d: Likewise.
3092 * testsuite/ld-elf/pr21562h.d: Likewise.
3093 * testsuite/ld-elf/pr21562i.d: Likewise.
3094 * testsuite/ld-elf/pr21562j.d: Likewise.
3095 * testsuite/ld-elf/pr21562k.d: Likewise.
3096 * testsuite/ld-elf/pr21562l.d: Likewise.
3097 * testsuite/ld-elf/pr21562m.d: Likewise.
3098 * testsuite/ld-elf/pr21562n.d: Likewise.
3099 * testsuite/ld-elf/pr21903a.d: Likewise.
3100 * testsuite/ld-elf/pr21903b.d: Likewise.
3101 * testsuite/ld-elf/pr21903d.d: Likewise.
3102 * testsuite/ld-elf/pr22269a.d: Likewise.
3103 * testsuite/ld-elf/pr22269b.d: Likewise.
3104 * testsuite/ld-elf/pr22393-1a.d: Likewise.
3105 * testsuite/ld-elf/pr22393-1b.d: Likewise.
3106 * testsuite/ld-elf/pr22393-1c.d: Likewise.
3107 * testsuite/ld-elf/pr22393-1d.d: Likewise.
3108 * testsuite/ld-elf/pr22393-1e.d: Likewise.
3109 * testsuite/ld-elf/pr22393-1f.d: Likewise.
3110 * testsuite/ld-elf/pr22423.d: Likewise.
3111 * testsuite/ld-elf/pr22450.d: xfail avr, crx, h8300, ip2k, m68hc11,
3112 and xc16x.
3113 * testsuite/ld-elf/pr23658-1c.d: xfail h8300.
3114 * testsuite/ld-elf/pr25708.d: xfail h8300 and hppa64.
3115 * testsuite/ld-elf/rpath-1.d: xfail h8300.
3116 * testsuite/ld-elf/rpath-2.d: Likewise.
3117 * testsuite/ld-elf/runpath-1.d: Likewise.
3118 * testsuite/ld-elf/runpath-2.d: Likewise.
3119 * testsuite/ld-elf/sizeofb.d: Likewise.
3120 * testsuite/ld-elf/startofb.d: Likewise.
3121 * testsuite/ld-elf/strtab.d: Likewise.
3122 * testsuite/ld-elf/textaddr1.d: Likewise.
3123 * testsuite/ld-elf/textaddr2.d: Likewise.
3124 * testsuite/ld-elf/textaddr4.d: Likewise.
3125 * testsuite/ld-elf/textaddr5.d: Likewise.
3126 * testsuite/ld-elf/textaddr6.d: Likewise.
3127 * testsuite/ld-elf/unknown2.d: Likewise.
3128 * testsuite/ld-undefined/entry-3.d: Likewise.
3129 * testsuite/ld-undefined/entry-4.d: Likewise.
3130 * testsuite/ld-h8300/h8300.exp: Pass appropriate ld -m option.
3131 * testsuite/ld-h8300/gcsection.d: Remove ld -m option and relax
3132 file format match.
3133 * testsuite/ld-h8300/relax-2.d: Likewise.
3134 * testsuite/ld-h8300/relax-3.d: Likewise.
3135 * testsuite/ld-h8300/relax-4.d: Likewise.
3136 * testsuite/ld-h8300/relax-5.d: Likewise.
3137 * testsuite/ld-h8300/relax-6.d: Likewise.
3138 * testsuite/ld-h8300/relax-7.d: Likewise.
3139 * testsuite/ld-h8300/relax.d: Relax file format match.
3140
7e6e972f
L
31412020-03-24 H.J. Lu <hongjiu.lu@intel.com>
3142
3143 PR binutils/25708
3144 * testsuite/ld-elf/pr25708.d: New file.
3145
5e737279
AM
31462020-03-23 Alan Modra <amodra@gmail.com>
3147
3148 * Makefile.am (ALL_EMULATION_SOURCES): Reinstate ei386aout.c.
3149 Include ei386aout dep file.
3150 * Makefile.in: Regenerate.
3151 * po/BLD-POTFILES.in: Regenerate.
3152
3d98c460
L
31532020-03-20 H.J. Lu <hongjiu.lu@intel.com>
3154
3155 * testsuite/ld-plugin/lto.exp (lto_link_tests): Run PR ld/25355
3156 test only for GCC 10 or newer.
3157
c02d6661
AM
31582020-03-20 Alan Modra <amodra@gmail.com>
3159
3160 * testplug.c (parse_symdefstr): Use %hhi to read sym->def, and
3161 clear new fields.
3162 * testplug2.c (parse_symdefstr): Likewise.
3163 * testplug3.c (parse_symdefstr): Likewise.
3164 * testplug4.c (parse_symdefstr): Likewise.
3165
aef397a1
CL
31662020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
3167
3168 * testsuite/ld-arm/non-contiguous-arm4.d: Fix expected output.
3169 * testsuite/ld-powerpc/non-contiguous-powerpc.d: Likewise.
3170
53215f21
CL
31712020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
3172
3173 * emultempl/xtensaelf.em: Emit a fatal error message
3174 instead of calling abort.
3175 * ldlang.c: Likewise.
3176
02a8180e
AM
31772020-03-14 Alan Modra <amodra@gmail.com>
3178
3179 * testsuite/ld-elf/non-contiguous.d: Don't xfail generic ELF
3180 targets. Don't skip xtensa, xfail instead.
3181
abf874aa
CL
31822020-03-13 Christophe Lyon <christophe.lyon@linaro.org>
3183
3184 * ldlang.c (lang_add_section): Add support for
3185 non_contiguous_regions.
3186 (size_input_section): Likewise.
3187 (lang_size_sections_1): Likewise.
3188 (process_insert_statements): Likewise.
3189 * ldlex.h (option_values): Add OPTION_NON_CONTIGUOUS_REGIONS and
3190 OPTION_NON_CONTIGUOUS_REGIONS_WARNINGS.
3191 * lexsup.c (ld_options): Add entries for
3192 --enable-non-contiguous-regions and
3193 --enable-non-contiguous-regions-warnings.
3194 (parse_args): Handle it.
3195 * NEWS: Add --enable-non-contiguous-regions and
3196 --enable-non-contiguous-regions-warnings.
3197 * ld.texi: Add --enable-non-contiguous-regions and
3198 --enable-non-contiguous-regions-warnings documentation.
3199 * emultempl/armelf.em (elf32_arm_add_stub_section): Add
3200 SEC_LINKER_CREATED flag.
3201 * emultempl/xtensaelf.em (ld_build_required_section_dependence):
3202 Emit an error when --enable-non-contiguous-regions is used.
3203 * testsuite/ld-elf/non-contiguous.d: New.
3204 * testsuite/ld-elf/non-contiguous.ld: New.
3205 * testsuite/ld-elf/non-contiguous.s: New.
3206 * testsuite/ld-arm/arm-elf.exp: Run the new tests.
3207 * testsuite/ld-arm/arm-elf/non-contiguous-arm.s: New.
3208 * testsuite/ld-arm/arm-elf/non-contiguous-arm.d: New.
3209 * testsuite/ld-arm/arm-elf/non-contiguous-arm.ld: New.
3210 * testsuite/ld-arm/arm-elf/non-contiguous-arm2.d: New.
3211 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
3212 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.d: New.
3213 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
3214 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.d: New.
3215 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.ld: New.
3216 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.d: New.
3217 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.ld: New.
3218 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.d: New.
3219 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.ld: New.
3220 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
3221 * testsuite/ld-powerpc/non-contiguous-powerpc.d: New.
3222 * testsuite/ld-powerpc/non-contiguous-powerpc.ld: New.
3223 * testsuite/ld-powerpc/non-contiguous-powerpc.sd: New.
3224 * testsuite/ld-powerpc/non-contiguous-powerpc64.d: New.
3225
74e10d17
L
32262020-03-13 H.J. Lu <hongjiu.lu@intel.com>
3227
3228 PR ld/24920
3229 * emulparams/elf32_x86_64.sh: Use static.sh.
3230 * emulparams/elf_i386.sh: Likewise.
3231 * emulparams/elf_x86_64.sh: Likewise.
3232 * emulparams/static.sh: New file.
3233 * emultempl/elf-x86.em: Include "ldlex.h".
3234 * testsuite/ld-elf/pr24920.err: New file.
3235 * testsuite/ld-elf/linux-x86.exp: Run ld/24920 tests.
3236
502794d4
CE
32372020-03-13 Christian Eggers <ceggers@gmx.de>
3238
3239 * ldexp.c (fold_name): Return SIZEOF_HEADERS in bytes.
3240
1db6f990
AM
32412020-03-11 Alan Modra <amodra@gmail.com>
3242
3243 * ldelf.c (elf_orphan_compatible): Return false when two sections
3244 have differing SHF_MASKPROC or SHF_MASKOS flags.
3245
92d4b13b
AM
32462020-03-05 Alan Modra <amodra@gmail.com>
3247
3248 PR 25570
3249 * ldlang.c (lang_size_sections_1): Don't report changes on
3250 second and subsequent iterations that make no change in
3251 alignment from that already reported.
3252
baf09cba
AM
32532020-03-05 Alan Modra <amodra@gmail.com>
3254
3255 PR 25570
3256 * ldlang.c (lang_sizing_iteration): New static var.
3257 (lang_size_sections_1): Warn about no memory region only on first
3258 iteration. Warn about changing start address on first iteration
3259 then any delta from that on subsequent iterations. Report a signed
3260 delta.
3261 (one_lang_size_sections_pass): Increment lang_sizing_iteration.
3262
d8e4137b
NC
32632020-03-03 Nick Clifton <nickc@redhat.com>
3264
3265 PR 25588
3266 * ld.texi (Options): Update the description of the --rpath-link
3267 option.
3268
cb001c0d
AM
32692020-03-02 Alan Modra <amodra@gmail.com>
3270
3271 * plugin.c (plugin_object_p): Return a bfd_cleanup.
3272 (plugin_cleanup): New function.
3273
2aa90762
L
32742020-03-01 H.J. Lu <hongjiu.lu@intel.com>
3275
3276 PR ld/25618
3277 * plugin.c (plugin_object_p): Copy the no_export field to the IR
3278 dummy object.
3279 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Add
3280 PR ld/25618 tests.
3281 * testsuite/ld-plugin/pr25618.d: New file.
3282 * testsuite/ld-plugin/pr25618a.cc: Likewise.
3283 * testsuite/ld-plugin/pr25618a.h: Likewise.
3284 * testsuite/ld-plugin/pr25618b.cc: Likewise.
3285 * testsuite/ld-plugin/pr25618b.h: Likewise.
3286
5f602802
AM
32872020-02-27 Alan Modra <amodra@gmail.com>
3288
3289 PR 24511
3290 * testsuite/ld-mmix/b-fixo2.d: Adjust for .data change.
3291 * testsuite/ld-mmix/sec-2.d: Likewise.
3292 * testsuite/ld-mmix/sec-3.d: Likewise.
3293 * testsuite/ld-mmix/sec-4.d: Likewise.
3294 * testsuite/ld-mmix/spec802.d: Likewise.
3295 * testsuite/ld-mmix/spec803.d: Likewise.
3296 * testsuite/ld-mmix/spec804.d: Likewise.
3297 * testsuite/ld-mmix/spec805.d: Likewise.
3298 * testsuite/ld-mmix/spec806.d: Likewise.
3299 * testsuite/ld-mmix/spec807.d: Likewise.
3300 * testsuite/ld-mmix/spec808.d: Likewise.
3301
3312f67c
L
33022020-02-26 H.J. Lu <hongjiu.lu@intel.com>
3303
3304 PR ld/25593
3305 * testsuite/ld-plugin/lto.exp: Run PR ld/25593 tests.
3306 * testsuite/ld-plugin/pr25593.d: New file.
3307 * testsuite/ld-plugin/pr25593a-1.c: Likewise.
3308 * testsuite/ld-plugin/pr25593a-2.c: Likewise.
3309 * testsuite/ld-plugin/pr25593b.c: Likewise.
3310 * testsuite/ld-plugin/pr25593c.c: Likewise.
3311 * testsuite/ld-plugin/pr25593d.c: Likewise.
3312 * testsuite/ld-plugin/pr25593e.c: Likewise.
3313
dc1e8a47
AM
33142020-02-26 Alan Modra <amodra@gmail.com>
3315
3316 * emultempl/cskyelf.em: Indent labels correctly.
3317 * ldfile.c: Likewise.
3318 * ldlang.c: Likewise.
3319 * plugin.c: Likewise.
3320
e310298c
AM
33212020-02-26 Alan Modra <amodra@gmail.com>
3322
3323 PR 25593
3324 * ldelf.c (ldelf_try_needed): Add DT_NEEDED lib to input_bfds.
3325 (ldelf_after_open): Save state of input_bfds list before loading
3326 DT_NEEDED libs. Traverse input_bfds list adding DT_NEEDED tags.
3327 Restore input_bfds list.
3328 * testsuite/ld-cris/gotplt1.d: Adjust for changed .dynstr order.
3329
45c63c0f
NC
33302020-02-24 Nick Clifton <nickc@redhat.com>
3331
3332 * po/fr.po: Update French translation.
3333
7b3c2715
AM
33342020-02-22 Alan Modra <amodra@gmail.com>
3335
3336 PR 25585
3337 * NEWS: Mention better "PHDR segment not covered by LOAD segment"
3338 checking.
3339
fcaaac0a
SB
33402020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
3341
3342 PR 25537
3343 * emultempl/z80.em: Remove machine compatability checking.
3344
33452020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
3346
3347 PR 25517
3348 * testsuite/ld-z80/arch_ez80_adl.d: Update command line.
3349 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
3350 * testsuite/ld-z80/arch_r800.d: Likewise.
3351 * testsuite/ld-z80/arch_z180.d: Likewise.
3352 * testsuite/ld-z80/arch_z80n.d: Likewise.
3353 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
3354 * testsuite/ld-z80/comb_arch_z180_z80.d: Likewise.
3355 * testsuite/ld-z80/comb_arch_z80_ez80.d: Likewise.
3356 * testsuite/ld-z80/comb_arch_z80_z180.d: Likewise.
3357 * testsuite/ld-z80/comb_arch_z80_z80n.d: Likewise.
3358 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
3359 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
3360 * testsuite/ld-z80/relocs_f_ez80.d: Likewise.
3361 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
3362 * testsuite/ld-z80/relocs_f_z80n.d: Likewise.
3363
2e3cd5d0
AM
33642020-02-19 Alan Modra <amodra@gmail.com>
3365
3366 * testsuite/ld-plugin/pr25355.d: Allow alpha-linux nm result.
3367
0aa99dcd
L
33682020-02-10 H.J. Lu <hongjiu.lu@intel.com>
3369
3370 PR binutils/25355
3371 * testsuite/ld-plugin/lto.exp: Run PR binutils/25355 test.
3372 * testsuite/ld-plugin/pr25355.c: New file.
3373 * testsuite/ld-plugin/pr25355.d: Likewise.
3374 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Support compile
3375 only dump.
3376
6e569656
L
33772020-02-07 H.J. Lu <hongjiu.lu@intel.com>
3378
3379 * testsuite/ld-unique/unique.exp (contains_unique_symbol): Updated.
3380
9fc0b501
SB
33812020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
3382
3383 PR 25469
3384 * emulparams/elf32z80.sh: Use z80 emulation.
3385 * emultempl/z80.em: Make generic to both COFF and ELF Z80 emulations.
3386 * emultempl/z80elf.em: Delete.
3387 * testsuite/ld-elf/pr22450.d: Expect to fail for the Z80.
3388 * testsuite/ld-elf/sec64k.exp: Fix Z80 assembly.
3389 * testsuite/ld-unique/pr21529.s: Avoid register name conflict.
3390 * testsuite/ld-unique/unique.s: Likewise.
3391 * testsuite/ld-unique/unique_empty.s: Likewise.
3392 * testsuite/ld-unique/unique_shared.s: Likewise.
3393 * testsuite/ld-unique/unique.d: Updated expected output.
3394 * testsuite/ld-z80/arch_z80n.d: New file.
3395 * testsuite/ld-z80/comb_arch_z80_z80n.d: New file.
3396 * testsuite/ld-z80/labels.s: Add more labels.
3397 * testsuite/ld-z80/relocs.s: Add more reloc tests.
3398 * testsuite/ld-z80/relocs_f_z80n.d: New file
3399
adb8754e
L
34002020-02-07 H.J. Lu <hongjiu.lu@intel.com>
3401
3402 PR ld/25022
3403 * testsuite/ld-elf/pr25022.d: Xfail more targets which don't use
3404 ldelf_before_place_orphans.
3405
9b538ba7
L
34062020-02-06 H.J. Lu <hongjiu.lu@intel.com>
3407
3408 PR ld/25022
3409 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
3410 before_place_orphans_default.
3411 * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
3412 * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
3413 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
3414 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
3415 * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
3416 * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
3417 * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
3418 * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
3419 * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
3420 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Use
3421 ldelf_before_place_orphans.
3422 * ldelf.c (ldelf_before_place_orphans): New.
3423 * ldelf.h (ldelf_before_place_orphans): Likewise.
3424 * ldemul.c (ldemul_before_place_orphans): Likewise.
3425 (before_place_orphans_default): Likewise.
3426 * ldemul.h (ldemul_before_place_orphans): Likewise.
3427 (before_place_orphans_default): Likewise.
3428 (ld_emulation_xfer_struct): Add before_place_orphans.
3429 * ldlang.c (lang_process): Call ldemul_before_place_orphans
3430 before lang_place_orphans.
3431 * testsuite/ld-elf/pr25022.d: New file.
3432 * testsuite/ld-elf/pr25022.s: Likewise.
3433 * testsuite/ld-elf/pr25022.t: Likewise.
3434
5242a0a0
L
34352020-02-06 H.J. Lu <hongjiu.lu@intel.com>
3436
3437 PR ld/25490
3438 * testsuite/ld-elf/pr25490-1.d: New file.
3439 * testsuite/ld-elf/pr25490-1.s: Likewise.
3440
b7d07216
L
34412020-02-06 H.J. Lu <hongjiu.lu@intel.com>
3442
3443 PR ld/24526
3444 PR ld/25021
3445 PR ld/25490
3446 * testsuite/ld-elf/elf.exp: Run PR ld/25490 tests.
3447 * testsuite/ld-elf/pr24526.d: New file.
3448 * testsuite/ld-elf/pr24526.s: Likewise.
3449 * testsuite/ld-elf/pr25021.d: Likewise.
3450 * testsuite/ld-elf/pr25021.s: Likewise.
3451 * testsuite/ld-elf/pr25490-2-16.rd: Likewise.
3452 * testsuite/ld-elf/pr25490-2-32.rd: Likewise.
3453 * testsuite/ld-elf/pr25490-2-64.rd: Likewise.
3454 * testsuite/ld-elf/pr25490-2.s: Likewise.
3455 * testsuite/ld-elf/pr25490-3-16.rd: Likewise.
3456 * testsuite/ld-elf/pr25490-3-32.rd: Likewise.
3457 * testsuite/ld-elf/pr25490-3-64.rd: Likewise.
3458 * testsuite/ld-elf/pr25490-3.s: Likewise.
3459 * testsuite/ld-elf/pr25490-4-16.rd: Likewise.
3460 * testsuite/ld-elf/pr25490-4-32.rd: Likewise.
3461 * testsuite/ld-elf/pr25490-4-64.rd: Likewise.
3462 * testsuite/ld-elf/pr25490-4.s: Likewise.
3463 * testsuite/ld-elf/pr25490-5-16.rd: Likewise.
3464 * testsuite/ld-elf/pr25490-5-32.rd: Likewise.
3465 * testsuite/ld-elf/pr25490-5-64.rd: Likewise.
3466 * testsuite/ld-elf/pr25490-5.s: Likewise.
3467 * testsuite/ld-elf/pr25490-6-16.rd: Likewise.
3468 * testsuite/ld-elf/pr25490-6-32.rd: Likewise.
3469 * testsuite/ld-elf/pr25490-6-64.rd: Likewise.
3470 * testsuite/ld-elf/pr25490-6.s: Likewise.
3471
34722020-02-06 H.J. Lu <hongjiu.lu@intel.com>
9e4d08bb
L
3473
3474 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark
3475 z80 as not supported.
3476
bb4e012c
AM
34772020-02-06 Alan Modra <amodra@gmail.com>
3478
3479 * testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying
3480 targets that don't support ifunc rather than ones that do.
3481 (contains_irelative_reloc): Match R_PARISC_IPLT.
3482 * testsuite/ld-ifunc/lib.c: Don't use .set in asm.
3483 * testsuite/ld-ifunc/ifunc-23-x86.s,
3484 * testsuite/ld-ifunc/ifunc-24-x86.s,
3485 * testsuite/ld-ifunc/ifunc-25-x86.s,
3486 * testsuite/ld-ifunc/ifunc-4-local-x86.s,
3487 * testsuite/ld-ifunc/ifunc-4-x86.s: Define _main.
3488 * testsuite/ld-ifunc/ifunc-10-i386.d,
3489 * testsuite/ld-ifunc/ifunc-11-i386.d,
3490 * testsuite/ld-ifunc/ifunc-12-i386.d,
3491 * testsuite/ld-ifunc/ifunc-13-i386.d,
3492 * testsuite/ld-ifunc/ifunc-14a-i386.d,
3493 * testsuite/ld-ifunc/ifunc-14b-i386.d,
3494 * testsuite/ld-ifunc/ifunc-14c-i386.d,
3495 * testsuite/ld-ifunc/ifunc-14d-i386.d,
3496 * testsuite/ld-ifunc/ifunc-14e-i386.d,
3497 * testsuite/ld-ifunc/ifunc-14f-i386.d,
3498 * testsuite/ld-ifunc/ifunc-15-i386.d,
3499 * testsuite/ld-ifunc/ifunc-16-i386-now.d,
3500 * testsuite/ld-ifunc/ifunc-16-i386.d,
3501 * testsuite/ld-ifunc/ifunc-17a-i386.d,
3502 * testsuite/ld-ifunc/ifunc-17b-i386.d,
3503 * testsuite/ld-ifunc/ifunc-18a-i386.d,
3504 * testsuite/ld-ifunc/ifunc-18b-i386.d,
3505 * testsuite/ld-ifunc/ifunc-19a-i386.d,
3506 * testsuite/ld-ifunc/ifunc-19b-i386.d,
3507 * testsuite/ld-ifunc/ifunc-2-i386-now.d,
3508 * testsuite/ld-ifunc/ifunc-2-i386.d,
3509 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
3510 * testsuite/ld-ifunc/ifunc-2-local-i386.d,
3511 * testsuite/ld-ifunc/ifunc-20-i386.d,
3512 * testsuite/ld-ifunc/ifunc-21-i386.d,
3513 * testsuite/ld-ifunc/ifunc-22-i386.d,
3514 * testsuite/ld-ifunc/ifunc-26.d,
3515 * testsuite/ld-ifunc/ifunc-5a-i386.d,
3516 * testsuite/ld-ifunc/ifunc-5a-local-i386.d,
3517 * testsuite/ld-ifunc/ifunc-5b-i386.d,
3518 * testsuite/ld-ifunc/ifunc-5b-local-i386.d,
3519 * testsuite/ld-ifunc/ifunc-5r-local-i386.d,
3520 * testsuite/ld-ifunc/ifunc-6a-i386.d,
3521 * testsuite/ld-ifunc/ifunc-6b-i386.d,
3522 * testsuite/ld-ifunc/ifunc-7a-i386.d,
3523 * testsuite/ld-ifunc/ifunc-7b-i386.d,
3524 * testsuite/ld-ifunc/ifunc-8-i386.d,
3525 * testsuite/ld-ifunc/ifunc-9-i386.d,
3526 * testsuite/ld-ifunc/pr17154-i386-now.d,
3527 * testsuite/ld-ifunc/pr17154-i386.d: xfail lynxos, nto, and solaris.
3528
02e0be69
AM
35292020-02-06 Alan Modra <amodra@gmail.com>
3530
3531 * testsuite/lib/ld-lib.exp (is_generic): Delete.
3532 * testsuite/ld-unique/unique.exp: Exclude tic6x.
3533
b88237bc
AM
35342020-02-06 Alan Modra <amodra@gmail.com>
3535
3536 * configure.tgt (i[3-7]86-*-moss*): Don't clear targ_extra_ofiles.
3537 (i[3-7]86-*-openbsd*, x86_64-*-openbsd*): Add.
3538
a8c4d40b
L
35392020-02-02 H.J. Lu <hongjiu.lu@intel.com>
3540
3541 PR gas/25380
3542 * testsuite/ld-i386/pr22001-1c.S: Use "unique,N" in .section
3543 directives.
3544 * testsuite/ld-i386/tls-gd1.S: Likewise.
3545 * testsuite/ld-x86-64/pr21481b.S: Likewise.
3546
5cebc931
JB
35472020-01-30 Jan Beulich <jbeulich@suse.com>
3548
3549 * ld.texi: Remove space between @option and brace.
3550
ef8f08ca
AM
35512020-01-29 Alan Modra <amodra@gmail.com>
3552
3553 PR 25477
3554 * ldelf.c (ldelf_check_ld_so_conf): Add prefix parameter and
3555 correct concat.
3556 (ldelf_after_open): Add prefix parameter.
3557 * ldelf.h (ldelf_after_open): Update prototype.
3558 * emultempl/elf.em (gld${EMULATION_NAME}_after_open): Pass $prefix
3559 to ldelf_after_open.
3560 * Makefile.am: Correct z80 dependencies.
3561 * Makefile.in: Regenerate.
3562
738174e1
AM
35632020-01-28 Alan Modra <amodra@gmail.com>
3564
3565 * ldexp.c (fold_name): Don't print bfd_link_hash_lookup failed
3566 in first phase.
3567
e3696f67
AM
35682020-01-27 Alan Modra <amodra@gmail.com>
3569
3570 * testsuite/ld-elfvers/vers.exp: Replace case statements with
3571 switch statements.
3572 * testsuite/ld-ifunc/ifunc.exp: Likewise.
3573 * testsuite/ld-unique/unique.exp: Likewise.
3574
3024a17a
AM
35752020-01-27 H.J. Lu <hongjiu.lu@intel.com>
3576 Alan Modra <amodra@gmail.com>
3577
3578 PR ld/25458
3579 * testsuite/ld-elf/pr25458.map: New file.
3580 * testsuite/ld-elf/pr25458.rd: Likewise.
3581 * testsuite/ld-elf/pr25458a.s: Likewise.
3582 * testsuite/ld-elf/pr25458b.s: Likewise.
3583 * testsuite/ld-elf/shared.exp: Run PR ld/25458 test.
3584
6a462ad4
L
35852020-01-22 H.J. Lu <hongjiu.lu@intel.com>
3586
3587 PR ld/25416
3588 * testsuite/ld-x86-64/tls.exp: Skip GNU2 TLS tests only without
3589 compiler support.
3590
a804e476
AM
35912020-01-22 Alan Modra <amodra@gmail.com>
3592
3593 * testsuite/ld-powerpc/tlsdesc3.d,
3594 * testsuite/ld-powerpc/tlsdesc3.wf,
3595 * testsuite/ld-powerpc/tlsdesc4.d,
3596 * testsuite/ld-powerpc/tlsdesc4.s,
3597 * testsuite/ld-powerpc/tlsdesc4.wf: New tests.
3598 * testsuite/ld-powerpc/powerpc.exp: Run them.
3599
9e7028aa
AM
36002020-01-22 Alan Modra <amodra@gmail.com>
3601
3602 * emultempl/ppc64elf.em (ppc64_opt, PARSE_AND_LIST_LONGOPTS),
3603 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Support
3604 --tls-get-addr-regsave and --no-tls-get-addr-regsave.
3605 (params): Init new field.
3606 * ld.texi (--tls-get-addr-regsave, --no-tls-get-addr-regsave):
3607 Document.
3608 * testsuite/ld-powerpc/tlsdesc.s,
3609 * testsuite/ld-powerpc/tlsdesc.d,
3610 * testsuite/ld-powerpc/tlsdesc.wf,
3611 * testsuite/ld-powerpc/tlsdesc2.d,
3612 * testsuite/ld-powerpc/tlsdesc2.wf,
3613 * testsuite/ld-powerpc/tlsexenors.d,
3614 * testsuite/ld-powerpc/tlsexenors.r,
3615 * testsuite/ld-powerpc/tlsexers.d,
3616 * testsuite/ld-powerpc/tlsexers.r,
3617 * testsuite/ld-powerpc/tlsexetocnors.d,
3618 * testsuite/ld-powerpc/tlsexetocrs.d,
3619 * testsuite/ld-powerpc/tlsexetocrs.r,
3620 * testsuite/ld-powerpc/tlsopt6.d,
3621 * testsuite/ld-powerpc/tlsopt6.wf: New.
3622 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
3623
c48acf6f
YC
36242020-01-22 Yuri Chornoivan <yurchor@mageia.org>
3625
3626 PR 25417
3627 * ldlang.c (ldlang_open_ctf): Fix error message typo.
3628 * emultempl/z80elf.em (z80_elf_after_open): Likewise.
3629
1e161364
L
36302020-01-21 H.J. Lu <hongjiu.lu@intel.com>
3631
3632 * testsuite/ld-elf/pr23900-1.d: Adjusted.
3633
b4654b10
L
36342020-01-21 H.J. Lu <hongjiu.lu@intel.com>
3635
3636 * testsuite/ld-elf/pr23900-1.d: Also pass -l to readelf.
3637
26916852
NC
36382020-01-20 Nick Clifton <nickc@redhat.com>
3639
3640 * po/pt_BR.po: Updated Brazilian Portuguese translation.
3641 * po/uk.po: Updated Ukranian translation.
3642
14470f07
L
36432020-01-20 H.J. Lu <hongjiu.lu@intel.com>
3644
3645 PR ld/25416
3646 * testsuite/ld-x86-64/pr25416-1.s: New file
3647 * testsuite/ld-x86-64/pr25416-1a.d: Likewise.
3648 * testsuite/ld-x86-64/pr25416-1b.d: Likewise.
3649 * testsuite/ld-x86-64/pr25416-1.s: Likewise.
3650 * testsuite/ld-x86-64/pr25416-2.s: Likewise.
3651 * testsuite/ld-x86-64/pr25416-2a.d: Likewise.
3652 * testsuite/ld-x86-64/pr25416-2b.d: Likewise.
3653 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
3654 * testsuite/ld-x86-64/pr25416-3.s: Likewise.
3655 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
3656 * testsuite/ld-x86-64/pr25416-4.s: Likewise.
3657 * testsuite/ld-x86-64/pr25416-5a.c: Likewise.
3658 * testsuite/ld-x86-64/pr25416-5b.s: Likewise.
3659 * testsuite/ld-x86-64/pr25416-5c.s: Likewise.
3660 * testsuite/ld-x86-64/pr25416-5d.s: Likewise.
3661 * testsuite/ld-x86-64/pr25416-5e.s: Likewise.
3662 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/25416 tests.
3663
b9ca1af6
AM
36642020-01-20 Alan Modra <amodra@gmail.com>
3665
3666 * testsuite/ld-powerpc/tlsexe.d: Match new __tls_get_addr stub.
3667 * testsuite/ld-powerpc/tlsexeno.d: Likewise.
3668 * testsuite/ld-powerpc/tlsexetoc.d: Likewise.
3669 * testsuite/ld-powerpc/tlsexetocno.d: Likewise.
3670 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
3671
69d24618
RM
36722020-01-18 Roland McGrath <mcgrathr@google.com>
3673
3674 * testsuite/ld-x86-64/align-branch-1.d: Loosen instruction regexps
3675 to admit whatever absolute address. The label-relative address is
3676 what the test needs to verify.
3677
1b1bb2c6
NC
36782020-01-18 Nick Clifton <nickc@redhat.com>
3679
3680 * configure: Regenerate.
3681 * po/ld.pot: Regenerate.
3682
ae774686
NC
36832020-01-18 Nick Clifton <nickc@redhat.com>
3684
3685 Binutils 2.34 branch created.
3686
6d0be74b
JL
36872020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3688
3689 * scripttempl/elf32msp430_3.sc: Remove.
3690
0c3d9485
JL
36912020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3692
3693 * scripttempl/elf32msp430.sc: Add input section rules for
3694 .upper.{text,data,rodata,bss}.
3695 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
3696 * testsuite/ld-msp430-elf/upper-input-sections.s: New test.
3697
0d1cc75d
LB
36982020-01-15 Lars Brinkhoff <lars@nocrew.org>
3699
3700 PR 20694
3701 * temulparams/pdp11.sh (TARGET_PAGE_SIZE): Set to 8192.
3702
131cb553
JL
37032020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3704
3705 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
3706 * testsuite/ld-msp430-elf/reloc-lo-430x.s: New test.
3707
e1c6cf61
AM
37082020-01-15 Alan Modra <amodra@gmail.com>
3709
3710 * testsuite/ld-powerpc/ambiguousv1b.d: Adjust expected output.
3711 * testsuite/ld-powerpc/funref.s: Align func_tab.
3712 * testsuite/ld-powerpc/funref2.s: Likewise.
3713 * testsuite/ld-powerpc/funv1.s: Add dot symbols.
3714
e44925ae
LC
37152020-01-14 Lili Cui <lili.cui@intel.com>
3716
3717 * testsuite/ld-i386/align-branch-1.d: Updated for i686-pc-elf.
3718
8c7e1c04
AM
37192020-01-13 Alan Modra <amodra@gmail.com>
3720
3721 * po/BLD-POTFILES.in: Regenerate.
3722
4f18d742
CZ
37232020-01-13 Claudiu Zissulescu <claziss@gmail.com>
3724
3725 * testsuite/ld-arc/relax-local-pic.d: Improve matching patterns.
3726
5e4f7e05
CZ
37272020-01-13 Claudiu Zissulescu <claziss@gmail.com>
3728
3729 * Makefile.am: Remove earcelf_prof.c and earclinux_prof.c
3730 emulations.
3731 * configure.tgt: Likewise.
3732 * Makefile.in: Regenerate.
3733 * emulparams/arcelf_prof.sh: Remove file.
3734 * emulparams/arclinux_prof.sh: Likewise.
3735
8cb31bad
CZ
37362020-01-13 Claudiu Zissulescu <claziss@gmail.com>
3737
3738 * scripttempl/elfarcv2.sc : Allow interrupt vector table to be
3739 located at an arbitrary address. Use DWARF.sc file.
3740 * scripttempl/elfarc.sc: Use DWARF.sc file.
3741
85e290dc
AM
37422020-01-07 Alan Modra <amodra@gmail.com>
3743
3744 * testsuite/ld-mips-elf/eh-frame5.s,
3745 * testsuite/ld-mips-elf/ehdr_start-new.s,
3746 * testsuite/ld-mips-elf/ehdr_start-o32.s,
3747 * testsuite/ld-mips-elf/mips16-call-global-1.s,
3748 * testsuite/ld-mips-elf/mips16-intermix-1.s,
3749 * testsuite/ld-mips-elf/mips16-pic-1b.s,
3750 * testsuite/ld-mips-elf/mips16-pic-4c.s,
3751 * testsuite/ld-mips-elf/no-shared-1-n64.s,
3752 * testsuite/ld-mips-elf/no-shared-1-o32.s,
3753 * testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s,
3754 * testsuite/ld-mips-elf/pic-and-nonpic-1b.s,
3755 * testsuite/ld-mips-elf/pic-and-nonpic-2a.s,
3756 * testsuite/ld-mips-elf/pic-and-nonpic-3b.s,
3757 * testsuite/ld-mips-elf/pic-and-nonpic-4b.s,
3758 * testsuite/ld-mips-elf/pic-and-nonpic-5a.s,
3759 * testsuite/ld-mips-elf/pic-and-nonpic-6-n32c.s,
3760 * testsuite/ld-mips-elf/pic-and-nonpic-6-n64c.s,
3761 * testsuite/ld-mips-elf/pic-and-nonpic-6-o32c.s,
3762 * testsuite/ld-mips-elf/pie.s,
3763 * testsuite/ld-mips-elf/relax-jalr.s: Revert 2019-12-17 change.
3764
0e1f1593
NC
37652020-01-06 Nick Clifton <nickc@redhat.com>
3766
3767 PR 25327
3768 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
3769 command line when building libcomm1.o and pr13250 tests.
3770 * testsuite/ld-plugin/lto.exp: Likewise for pr20267 tests.
3771
d2dbcb18
NC
37722020-01-06 Nick Clifton <nickc@redhat.com>
3773
3774 PR 25326
3775 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
3776 command line when building pr19579 binaries.
3777
dc9bd8c9
HD
37782020-01-03 Hannes Domani <ssbssa@yahoo.de>
3779
3780 * emultempl/pe.em: Add new option --enable-reloc-section.
3781 * emultempl/pep.em: Likewise.
3782 * ld.texi: Document --enable-reloc-section.
3783 * pe-dll.c (pe_dll_build_sections): Use pe_dll_enable_reloc_section.
3784 (pe_dll_fill_sections): Simplify by calling pe_exe_fill_sections.
3785 * pe-dll.h: Add extern declaration of option flag.
3786 * pep-dll.c (pe_dll_enable_reloc_section):
3787 Add alias define for pep_dll_enable_reloc_section.
3788 * pep-dll.h: Add extern declaration of option flag.
3789
6655dba2
SB
37902020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
3791
3792 * Makefile.am: Add new target z80-elf
3793 * configure.tgt: Likewise.
3794 * Makefile.in: Regenerate.
3795 * emultempl/z80.em: Add support for eZ80 and Z180 architectures.
3796 * emulparams/elf32z80.sh: New file.
3797 * emultempl/z80elf.em: Likewise.
3798 * testsuite/ld-elf/comm-data4.s: Fix for Z80.
3799 * testsuite/ld-elf/comm-data5.s: Fix for Z80.
3800 * testsuite/ld-scripts/fill16.d: Fix for Z80.
3801 * testsuite/ld-z80/arch_ez80_adl.d: Likewise.
3802 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
3803 * testsuite/ld-z80/arch_r800.d: Likewise.
3804 * testsuite/ld-z80/arch_z180.d: Likewise.
3805 * testsuite/ld-z80/arch_z80.d: Likewise.
3806 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
3807 * testsuite/ld-z80/comb_arch_z180.d: Likewise.
3808 * testsuite/ld-z80/labels.s: Likewise.
3809 * testsuite/ld-z80/relocs.s: Likewise.
3810 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
3811 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
3812 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
3813 * testsuite/ld-z80/z80.exp: Likewise.
3814 * NEWS: Mention the new support.
3815
0db131fb
TC
38162020-01-02 Tamar Christina <tamar.christina@arm.com>
3817
3818 PR 25210
3819 PR 24753
3820 * emultempl/aarch64elf.em (elf${ELFSIZE}_aarch64_add_stub_section):
3821 Remove SEC_LINKER_CREATED.
3822 * testsuite/ld-aarch64/aarch64-elf.exp: Add erratum835769-843419.
3823 * testsuite/ld-aarch64/erratum835769-843419.d: New test.
3824
b14ce8bf
AM
38252020-01-01 Alan Modra <amodra@gmail.com>
3826
3827 Update year range in copyright notice of all files.
3828
0b114740 3829For older changes see ChangeLog-2019
3499769a 3830\f
0b114740 3831Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
3832
3833Copying and distribution of this file, with or without modification,
3834are permitted in any medium without royalty provided the copyright
3835notice and this notice are preserved.
3836
3837Local Variables:
3838mode: change-log
3839left-margin: 8
3840fill-column: 74
3841version-control: never
3842End:
This page took 0.46825 seconds and 4 git commands to generate.