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