PR 22843: ld, gold: Add --dependency-file option.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
f37b21b4
RM
12020-06-23 Roland McGrath <mcgrathr@google.com>
2
3 PR 22843
4 * NEWS: Note --dependency-file.
5 * ld.texi (Options): Document --dependency-file.
6 * ldlex.h (enum option_values): Add OPTION_DEPENDENCY_FILE.
7 * ld.h (ld_config_type): New member dependency_file.
8 * lexsup.c (ld_options, parse_args): Parse --dependency-file.
9 * ldmain.c (struct dependency_file): New type.
10 (dependency_files, dependency_files_tail): New static variables.
11 (track_dependency_files): New function.
12 (write_dependency_file): New function.
13 (main): Call it when --dependency-file was passed.
14 * ldfile.c (ldfile_try_open_bfd): Call track_dependency_files.
15 (ldfile_open_command_file_1): Likewise.
16 * ldelf.c (ldelf_try_needed): Likewise.
17 * pe-dll.c (pe_implied_import_dll): Likewise.
18
9221725d
AM
192020-06-23 Alan Modra <amodra@gmail.com>
20
21 PR 26150
22 * ldlang.c (ldlang_add_file): Assert that we aren't adding the
23 current end of link.next list again too.
24 * ldmain.c (add_archive_element): Don't load archive elements
25 again that have already been loaded.
26
c7c970e4
AM
272020-06-23 Alan Modra <amodra@gmail.com>
28
29 * testsuite/ld-elf/shared.exp (pr14170): Clear xfail for
30 bfin-*-linux*.
31 (pr17068, symbolic-func.so, pr22374): Likewise.
32
39ff0b81
NC
332020-06-22 Nelson Chu <nelson.chu@sifive.com>
34
35 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
36 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Updated.
37 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Updated.
38 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Updated.
39 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Updated.
40 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Updated.
41
0381901e
AM
422020-06-21 Alan Modra <amodra@gmail.com>
43
44 * ldfile.c: Replace uses of ENABLE_PLUGINS with BFD_SUPPORTS_PLUGINS.
45 * ldlang.c: Likewise.
46 * ldlang.h: Likewise.
47 * ldlex.h: Likewise.
48 * ldmain.c: Likewise.
49 * lexsup.c: Likewise.
50 * plugin.c: Wrap body of file in #if BFD_SUPPORTS_PLUGINS.
51 * testplug.c: Likewise.
52 * testplug2.c: Likewise.
53 * testplug3.c: Likewise.
54 * testplug4.c: Likewise.
55 * configure.ac (ENABLE_PLUGINS): Don't define AM_CONTITIONAL.
56 * Makefile.am: Remove ENABLE_PLUGINS conditionals.
57 (PLUGIN_CFLAGS): Don't define.
58 (PLUGIN_C, PLUGIN_H, PLUGIN_OBJECT): Likewise. Substitute all
59 uses with plugin file name.
60 * configure: Regenerate.
61 * Makefile.in: Regenerate.
62
348fe36b
AM
632020-06-20 Alan Modra <amodra@gmail.com>
64
65 * testsuite/lib/ld-lib.exp (default_ld_compile): Don't perror on
66 a compiler error.
67 (default_ld_assemble): Similarly for an assembler error.
68 (default_ld_nm): Similarly for an nm error.
69 (run_ld_link_tests): Report ld_assemble errors as a fail.
70 (check_as_cfi): Remove now unnecessary perror substitution.
71 * testsuite/ld-elf/exclude.exp: Report ld_nm error return as test
72 fails rather then unresolved.
73 * testsuite/ld-gc/gc.exp: Likewise.
74 * testsuite/ld-scripts/alignof.exp: Likewise.
75 * testsuite/ld-scripts/defined.exp: Likewise.
76 * testsuite/ld-scripts/script.exp: Likewise.
77 * testsuite/ld-scripts/sizeof.exp: Likewise.
78 * testsuite/ld-selective/selective.exp: Likewise.
79 * testsuite/ld-scripts/extern.exp: Likewise. Return on ld_link
80 failure.
81 * testsuite/ld-elfweak/elfweak.exp: Report compiler errors as
82 test unresolved.
83 * testsuite/ld-fastcall/fastcall.exp: Report assember errors as
84 test fails.
85 * testsuite/ld-i386/i386.exp (iamcu_tests): Likewise.
86 * testsuite/ld-ia64/line.exp: Likewise.
87 * testsuite/ld-mep/mep.exp: Likewise.
88 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
89 * testsuite/ld-nios2/nios2.exp: Likewise.
90 * testsuite/ld-scripts/alignof.exp: Likewise.
91 * testsuite/ld-x86-64/line.exp: Likewise.
92 * testsuite/ld-x86-64/x86-64.exp: Likewise.
93 * testsuite/ld-scripts/log2.exp: Formatting.
94 * testsuite/ld-tic6x/tic6x.exp: Report ld_link errors as a test fail.
95
b0ee49d2
AM
962020-06-20 Alan Modra <amodra@gmail.com>
97
98 * testsuite/ld-alpha/alpha.exp: Exclude *ecoff targets.
99 * testsuite/ld-elf/binutils.exp: Likewise.
100 * testsuite/ld-elf/tls.exp: Likewise.
101 * testsuite/ld-elf/tls_common.exp: Likewise.
102 * testsuite/ld-scripts/phdrs2.exp: Likewise.
103
e2201c2a
AM
1042020-06-20 Alan Modra <amodra@gmail.com>
105
106 * testsuite/ld-sh/sh.exp: Don't run relax tests for non-ELF.
107 Fail when ld_assemble fails. Use elseif to reduce indentation.
108
2d0a923c
AM
1092020-06-19 Alan Modra <amodra@gmail.com>
110
111 * testsuite/ld-elf/dynamic-1.rd: Accept st_other notations.
112 * testsuite/ld-elf/rdynamic-1.rd: Likewise.
113 * testsuite/ld-elf/pr9676.rd: Likewise.
114 * testsuite/ld-elf/pr9679.rd: Likewise.
115 * testsuite/ld-elfvers/vers30.dsym: Likewise.
116 * testsuite/ld-elfvers/vers31.dsym: Likewise.
e4433988
AM
117 * testsuite/ld-plugin/pr22983.1.d: Likewise.
118 * testsuite/ld-plugin/pr22983.2.d: Likewise.
2d0a923c 119 * testsuite/ld-plugin/pr22983.3.d: Likewise.
e4433988 120 * testsuite/ld-plugin/pr22983.4.d: Likewise.
2d0a923c
AM
121 * testsuite/ld-ifunc/ifunc.exp: Exclude alpha.
122
5fd104ad
AM
1232020-06-19 Alan Modra <amodra@gmail.com>
124
125 * emultempl/elf.em (gld${EMULATION_NAME}_handle_option): Omit
126 -z relro and -z norelro when target support for GNU_RELRO is lacking.
127 (gld${EMULATION_NAME}_before_parse): Ignore RELRO default too.
128 * emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse): Ignore
129 RELRO default when target support for GNU_RELRO is lacking.
130 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
131 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Likewise.
132 * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
133 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
134 * testsuite/ld-elf/pr16322.d: xfail when no relro support.
135 * testsuite/ld-elf/pr22393-1a.d: Likewise.
136 * testsuite/ld-elf/pr22393-1b.d: Likewise.
137 * testsuite/ld-elf/shared.exp (pr20995-2.so, pr20995-2): Likewise.
138 * testsuite/lib/ld-lib.exp (run_ld_link_tests): Use check_relro_support
139 to decide whether to pass extra ld option "-z norelro".
140
00401e65
L
1412020-06-17 H.J. Lu <hongjiu.lu@intel.com>
142
143 * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Append "-w"
144 to cflags.
145
22aa1d51
L
1462020-06-17 H.J. Lu <hongjiu.lu@intel.com>
147
148 * testsuite/ld-elf/linux-x86.exp: Require GCC 5 for Build
149 pr25749-1b (-pie -fPIE).
150
07e7fdfd
AM
1512020-06-16 Alan Modra <amodra@gmail.com>
152
153 * testsuite/ld-elf/pr23428.c: Define _DEFAULT_SOURCE.
154 * testsuite/ld-elf/indirect1b.c: Replace asm with __asm__.
155 * testsuite/ld-elf/indirect2.c: Likewise.
156 * testsuite/ld-elf/indirect3b.c: Likewise.
157 * testsuite/ld-elf/indirect4b.c: Likewise.
158 * testsuite/ld-elf/pr14323-2.c: Likewise.
159 * testsuite/ld-elf/pr18720b.c: Likewise.
5f898994 160 * testsuite/ld-elf/pr19553c.c: Likewise.
07e7fdfd 161 * testsuite/ld-elf/pr23428.c: Likewise.
5f898994 162 * testsuite/ld-elfvers/vers27b.c: Likewise.
07e7fdfd
AM
163 * testsuite/ld-elfvsb/common.c: Likewise.
164 * testsuite/ld-elfvsb/main.c: Likewise.
165 * testsuite/ld-elfvsb/sh1.c: Likewise.
166 * testsuite/ld-elfvsb/test.c: Likewise.
167 * testsuite/ld-pe/aligncomm-1.c: Likewise.
168 * testsuite/ld-pe/aligncomm-2.c: Likewise.
169 * testsuite/ld-pe/aligncomm-3.c: Likewise.
170 * testsuite/ld-pe/aligncomm-4.c: Likewise.
171 * testsuite/ld-plugin/pr23958.c: Likewise.
172 * testsuite/ld-size/size-1b.c: Likewise.
173 * testsuite/ld-size/size-2b.c: Likewise.
174 * testsuite/ld-size/size-3a.c: Likewise.
175 * testsuite/ld-size/size-3b.c: Likewise.
176 * testsuite/ld-size/size-3c.c: Likewise.
177 * testsuite/ld-size/size-4b.c: Likewise.
178 * testsuite/ld-size/size-5b.c: Likewise.
179 * testsuite/ld-size/size-6a.c: Likewise.
180 * testsuite/ld-size/size-7a.c: Likewise.
181 * testsuite/ld-size/size-8a.c: Likewise.
182 * testsuite/ld-size/size-9b.c: Likewise.
183 * testsuite/ld-size/size-10b.c: Likewise.
184
a435742a
AM
1852020-06-16 Alan Modra <amodra@gmail.com>
186
187 * emulparams/tic30aout.sh: Delete file.
188 * scripttempl/tic30aout.sc: Delete file.
189 * Makefile.am: Remove etic30aout.c from ALL_EMULATION_SOURCES and
190 delete dependency.
191 * configure.tgt: Delete tic30-*-*aout* entry.
192 * testsuite/ld-scripts/sane1.d: Delete tic30-*-aout mention.
193 * testsuite/ld-scripts/segment-start.d: Likewise.
194 * Makefile.in: Regenerate.
195 * po/BLD-POTFILES.in: Regenerate.
196
7a77f1ac
MF
1972020-06-15 Max Filippov <jcmvbkbc@gmail.com>
198
199 * emultempl/xtensaelf.em (XSHAL_ABI): Remove macro definition.
200 (XTHAL_ABI_UNDEFINED, XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New
201 macros.
202 (elf32xtensa_abi): New declaration.
203 (xt_config_info_unpack_and_check): Set elf32xtensa_abi if it is
204 undefined. Use xtensa_abi_choice instead of XSHAL_ABI to test
205 ABI tag consistency.
206 (xtensa_add_config_info): Use xtensa_abi_choice instead of
207 XSHAL_ABI to format ABI tag.
208 (PARSE_AND_LIST_PROLOGUE): Define OPTION_ABI_WINDOWED,
209 OPTION_ABI_CALL0 and declare elf32xtensa_abi.
210 (PARSE_AND_LIST_LONGOPTS): Add entries for --abi-windowed and
211 --abi-call0.
212 (PARSE_AND_LIST_OPTIONS): Add help text for --abi-windowed and
213 --abi-call0.
214 (PARSE_AND_LIST_ARGS_CASES): Add handlers for --abi-windowed and
215 --abi-call0.
216 * ld.texi: Add description for options --abi-windowed and
217 --abi-call0.
218
cae64165
RM
2192020-06-15 Roland McGrath <mcgrathr@google.com>
220
221 * NEWS: Mention -z start-stop-visibility=... option for ELF.
222 * ld.texi (Options): Document -z start-stop-visibility=... option.
223 * ldmain.c (main): Initialize link_info.start_stop_visibility.
224 * emultempl/elf.em (gld${EMULATION_NAME}_handle_option):
225 Parse -z start-stop-visibility=... option.
226
12984639
AM
2272020-06-15 Alan Modra <amodra@gmail.com>
228
229 * testsuite/ld-scripts/include.exp: Don't load ld-lib.exp.
230 * testsuite/ld-scripts/phdrs3.exp: Likewise.
231 * testsuite/ld-scripts/rgn-at.exp: Likewise.
232 * testsuite/ld-scripts/rgn-over.exp: Likewise.
233 * testsuite/ld-scripts/sort.exp: Likewise.
234 * testsuite/ld-discard/discard.exp: Likewise. Use is_elf_format.
235
ea4b3731
AM
2362020-06-15 Alan Modra <amodra@gmail.com>
237
238 PR 26103
239 * testsuite/ld-linkonce/ref1.s,
240 * testsuite/ld-linkonce/ref2.s,
241 * testsuite/ld-linkonce/sym1.s,
242 * testsuite/ld-linkonce/sym2.s,
243 * testsuite/ld-linkonce/sym3.s: New test files.
244 * testsuite/ld-linkonce/linkonce.exp: Run tests for PE too.
245 Add pr26103 test. Remove unnecessary load_lib.
246
cda58d5f
AM
2472020-06-15 Alan Modra <amodra@gmail.com>
248
249 * testsuite/ld-linkonce/zeroeh_x.s: Rename from x.s.
250 * testsuite/ld-linkonce/zeroeh_y.s: Rename from y.s.
251 * testsuite/ld-linkonce/zeroehl32.d: Adjust for renaming. Support
252 big-endian output. Run for powerpc.
253
38226418
AM
2542020-06-11 Alan Modra <amodra@gmail.com>
255
256 * testsuite/ld-plugin/lto.exp (lto_link_tests): Move lto-6,
257 pr12760, pr23818 and pr23958 tests to..
258 (lto_link_elf_tests): ..here.
259
928055a3
NC
2602020-06-11 Nick Clifton <nickc@redhat.com>
261
262 * testsuite/ld-elf/pr26094-1b.c (main): Change return type to
263 int.
264
84df1f9d
AM
2652020-06-10 Alan Modra <amodra@gmail.com>
266
267 * testsuite/ld-elf/linux-x86.exp: Build tests when non-native.
268 (check_pr25749b): Add optional args. Set expected pass file
269 from args. Run -1b and -2a tests with passall.out.
270 * testsuite/ld-elf/passall.out: New file.
271 * testsuite/ld-elf/pr25749-1.c: Adjust to pass with older glibc.
272 * testsuite/ld-elf/pr25749-2.c: Likewise.
273 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Use
274 regexp_diff to compare expected output from running binary.
275
e1b5d517
L
2762020-06-10 H.J. Lu <hongjiu.lu@intel.com>
277
278 PR ld/26094
279 * testsuite/ld-elf/pr26094-1.ver: New fike.
280 * testsuite/ld-elf/pr26094-1a.c: Likewise.
281 * testsuite/ld-elf/pr26094-1a.rd: Likewise.
282 * testsuite/ld-elf/pr26094-1b.c: Likewise.
283 * testsuite/ld-elf/pr26094-1b.rd: Likewise.
284 * testsuite/ld-elf/pr26094-1c.c: Likewise.
285 * testsuite/ld-elf/shared.exp: Run ld/26094 tests.
286
cebd6b8a
L
2872020-06-09 H.J. Lu <hongjiu.lu@intel.com>
288
289 PR ld/18801
290 * testsuite/ld-i386/i386.exp: Run ifunc-textrel-1a,
291 ifunc-textrel-1b, ifunc-textrel-2a and ifunc-textrel-2b.
292 * testsuite/ld-x86-64/x86-64.exp: Likewise.
293 * testsuite/ld-i386/ifunc-textrel-1a.d: Likewise.
294 * testsuite/ld-i386/ifunc-textrel-1b.d: Likewise.
295 * testsuite/ld-i386/ifunc-textrel-2a.d: Likewise.
296 * testsuite/ld-i386/ifunc-textrel-2b.d: Likewise.
297 * testsuite/ld-x86-64/ifunc-textrel-1.s: Likewise.
298 * testsuite/ld-x86-64/ifunc-textrel-1a.d: Likewise.
299 * testsuite/ld-x86-64/ifunc-textrel-1b.d: Likewise.
300 * testsuite/ld-x86-64/ifunc-textrel-2.s: Likewise.
301 * testsuite/ld-x86-64/ifunc-textrel-2a.d: Likewise.
302 * testsuite/ld-x86-64/ifunc-textrel-2b.d: Likewise.
303 * testsuite/ld-i386/pr18801a.d: Expect warning for IFUNC
304 resolvers.
305 * testsuite/ld-i386/pr18801b.d: Likewise.
306 * estsuite/ld-x86-64/pr18801a.d: Likewise.
307 * estsuite/ld-x86-64/pr18801b.d: Likewise.
308
a61e3060
AM
3092020-06-09 Alan Modra <amodra@gmail.com>
310
311 PR 26065
312 * testsuite/ld-elf/shared.exp: Compile dl4main.c -fPIC.
313 (dl4e, dl4f): Expect dl4a.out.
314 * testsuite/ld-elf/dl4e.out: Delete.
315
597344c9
L
3162020-06-07 H.J. Lu <hongjiu.lu@intel.com>
317
318 * testsuite/ld-elf/shared.exp: Pass $LFLAGS to PR ld/21703
319 shared test.
320
656e4a22
L
3212020-06-07 H.J. Lu <hongjiu.lu@intel.com>
322
323 * testsuite/ld-elf/shared.exp: Xfail pr20995/pr20995-2 for
324 tic6x-*-*.
325
0fd91d25
L
3262020-06-07 H.J. Lu <hongjiu.lu@intel.com>
327
328 * testsuite/ld-elf/pr11304.d: Skip tic6x-*-elf.
329
1fc47f80
AM
3302020-06-06 Alan Modra <amodra@gmail.com>
331
332 * testsuite/ld-elf/comm-data.exp: Don't xfail arm or bfin-linux.
333
070558eb
AM
3342020-06-06 Alan Modra <amodra@gmail.com>
335
336 * lexsup.c (ld_options): Accept -plugin and -plugin-opt when
337 !ENABLE_PLUGINS.
338 * testsuite/lib/ld-lib.exp (check_plugin_api_available): Adjust.
339
41285764
NC
3402020-06-05 Nelson Chu <nelson.chu@sifive.com>
341
342 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Rename to
343 attr-merge-priv-spec-01.d.
344 * testsuite/ld-riscv-elf/attr-merge-priv-spec-c.s: Set spec to 1.11.
345 * testsuite/ld-riscv-elf/attr-merge-priv-spec-d.s: Empty priv spec set.
346 * testsuite/ld-riscv-elf/attr-merge-priv-spec-02.d: New testcase.
347 * testsuite/ld-riscv-elf/attr-merge-priv-spec-03.d: Likewise.
348 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
349 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
350 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
351 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
352 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
353 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
354
3fc6c3dc
NC
3552020-06-05 Nelson Chu <nelson.chu@sifive.com>
356
357 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: The CSR isn't used,
358 so ignore the -mpriv-spec setting.
359 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
360 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
361 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
362 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
363 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
364 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
365 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
366 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
367 * testsuite/ld-riscv-elf/call-relax.d: Add -mno-arch-attr.
368
c4b126b8
L
3692020-06-04 H.J. Lu <hongjiu.lu@intel.com>
370
371 PR ld/26080
372 * testsuite/ld-elf/comm-data.exp: Remove copy_reloc.
373 * testsuite/ld-elf/comm-data2r.rd: Removed.
374 * testsuite/ld-elf/comm-data2r.sd: Likewise.
375 * testsuite/ld-elf/comm-data2r.xd: Likewise.
376
e2c8dab6
AM
3772020-06-04 Alan Modra <amodra@gmail.com>
378
379 * testsuite/config/default.exp: Remove global directive outside
380 proc body.
381 * testsuite/ld-bootstrap/bootstrap.exp: Likewise.
382 * testsuite/ld-elf/compress.exp: Likewise.
383 * testsuite/ld-elf/elf.exp: Likewise.
384 * testsuite/ld-elf/exclude.exp: Likewise.
385 * testsuite/ld-elf/frame.exp: Likewise.
386 * testsuite/ld-elf/indirect.exp: Likewise.
387 * testsuite/ld-elf/linux-x86.exp: Likewise.
388 * testsuite/ld-elf/shared.exp: Likewise.
389 * testsuite/ld-elf/tls.exp: Likewise.
390 * testsuite/ld-elf/tls_common.exp: Likewise.
391 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
392 * testsuite/ld-elfweak/elfweak.exp: Likewise.
393 * testsuite/ld-frv/fdpic.exp: Likewise.
394 * testsuite/ld-frv/tls.exp: Likewise.
395 * testsuite/ld-gc/gc.exp: Likewise.
396 * testsuite/ld-i386/i386.exp: Likewise.
397 * testsuite/ld-i386/no-plt.exp: Likewise.
398 * testsuite/ld-ifunc/ifunc.exp: Likewise.
399 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
400 * testsuite/ld-nios2/nios2.exp: Likewise.
401 * testsuite/ld-plugin/lto.exp: Likewise.
402 * testsuite/ld-plugin/plugin.exp: Likewise.
403 * testsuite/ld-powerpc/export-class.exp: Likewise.
404 * testsuite/ld-scripts/align.exp: Likewise.
405 * testsuite/ld-scripts/crossref.exp: Likewise.
406 * testsuite/ld-scripts/defined.exp: Likewise.
407 * testsuite/ld-scripts/overlay-size.exp: Likewise.
408 * testsuite/ld-scripts/provide.exp: Likewise.
409 * testsuite/ld-scripts/weak.exp: Likewise.
410 * testsuite/ld-selective/selective.exp: Likewise.
411 * testsuite/ld-sh/rd-sh.exp: Likewise.
412 * testsuite/ld-size/size.exp: Likewise.
413 * testsuite/ld-srec/srec.exp: Likewise.
414 * testsuite/ld-x86-64/mpx.exp: Likewise.
415 * testsuite/ld-x86-64/no-plt.exp: Likewise.
416 * testsuite/ld-x86-64/x86-64.exp: Likewise.
417
a0c0ad56
AM
4182020-06-04 Alan Modra <amodra@gmail.com>
419
420 * testsuite/ld-dynamic/export-dynamic-symbol-2.d: Match output for
421 mips-sgi-irix6.
422 * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: Likewise.
423 * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: Likewise.
424 * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: Likewise.
425 * testsuite/ld-dynamic/export-dynamic-symbol.exp: Exclude targets
426 with poor PIE support.
427
60f207b4
AM
4282020-06-04 Alan Modra <amodra@gmail.com>
429
430 * testsuite/ld-plugin/lto.exp (pr12758.exe): Add NOPIE_LDFLAGS.
431 * testsuite/ld-unique/unique.exp: Add NOPIE_LDFLAGS to unique
432 executable and dynamic executable tests.
433
1949ad04
L
4342020-06-03 H.J. Lu <hongjiu.lu@intel.com>
435
436 * testsuite/config/default.exp (NOSANTIZE_CFLAGS): New.
437 * testsuite/ld-elf/linux-x86.exp: Add $NOSANTIZE_CFLAGS to
438 tests with run_ld_link_exec_tests.
439 * testsuite/ld-elf/shared.exp: Add $NOSANTIZE_CFLAGS to tests
440 with run_ld_link_tests.
441 * testsuite/ld-elf/tls.exp: Likewise.
442 * testsuite/ld-elfweak/elfweak.exp: Add $NOSANTIZE_CFLAGS to
443 tests with ld_link.
444 * testsuite/ld-gc/gc.exp: Add $NOSANTIZE_CFLAGS to cflags.
445 * testsuite/ld-plugin/lto.exp: Add $NOSANTIZE_CFLAGS to tests
446 with run_ld_link_tests.a
447 * testsuite/ld-plugin/plugin.exp: Append $NOSANTIZE_CFLAGS to
448 CFLAGS.
449 * testsuite/ld-selective/selective.exp: Add $NOSANTIZE_CFLAGS
450 to cflags and cxxflags.
451 * testsuite/ld-srec/srec.exp: Append $NOSANTIZE_CFLAGS to CC
452 and CXX.
453 * testsuite/ld-x86-64/plt-main-ibt-x32.dd: Updated for
454 -fsanitize=undefined.
455 * testsuite/ld-x86-64/plt-main-ibt.dd: Likewise.
456 * testsuite/ld-x86-64/x86-64.exp: Add $NOSANTIZE_CFLAGS to
457 tests with run_cc_link_tests and run_ld_link_tests.
458
37a141bf
FS
4592020-06-03 Fangrui Song <maskray@google.com>
460 H.J. Lu <hongjiu.lu@intel.com>
461
462 PR ld/25910
463 * NEWS: Mention --export-dynamic-symbol[-list].
464 * ld.texi: Document --export-dynamic-symbol[-list].
465 * ldgram.y: Pass current_dynamic_list_p to
466 lang_append_dynamic_list.
467 * ldlang.c (current_dynamic_list_p): New.
468 (ang_append_dynamic_list): Updated to take a pointer to
469 struct bfd_elf_dynamic_list * argument instead of using
470 link_info.dynamic_list.
471 (lang_append_dynamic_list_cpp_typeinfo): Pass
472 &link_info.dynamic_list to ang_append_dynamic_list.
473 (lang_append_dynamic_list_cpp_new): Likewise.
474 * ldlang.h (current_dynamic_list_p): New.
475 (lang_append_dynamic_list): Add a pointer to
476 struct bfd_elf_dynamic_list * argument.
477 * ldlex.h (option_values): Add OPTION_EXPORT_DYNAMIC_SYMBOL and
478 OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
479 * lexsup.c (ld_options): Add entries for
480 OPTION_EXPORT_DYNAMIC_SYMBOL and
481 OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
482 (parse_args): Handle --export-dynamic-symbol and
483 --export-dynamic-symbol-list.
484 * testsuite/ld-dynamic/export-dynamic-symbol-1.d: New.
485 * testsuite/ld-dynamic/export-dynamic-symbol-2.d: New.
486 * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: New.
487 * testsuite/ld-dynamic/export-dynamic-symbol-list-1.d: New.
488 * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: New.
489 * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: New.
490 * testsuite/ld-dynamic/export-dynamic-symbol.exp: New.
491 * testsuite/ld-dynamic/export-dynamic-symbol.s: New.
492 * testsuite/ld-dynamic/foo-bar.list: New.
493 * testsuite/ld-dynamic/foo.list: New.
494 * testsuite/ld-dynamic/foo.s: New.
495 * testsuite/ld-dynamic/fstar.list: New.
496 * testsuite/ld-elf/dlempty.list: New.
497 * testsuite/ld-elf/shared.exp: Add tests for
498 --export-dynamic-symbol and --export-dynamic-symbol-list.
499
bbd2d6bf
JB
5002020-06-03 Jan Beulich <jbeulich@suse.com>
501
502 * testsuite/ld-elf/linux-x86.exp: Make copied source files
503 writeable.
504
a3fc9418
NC
5052020-05-28 Nick Clifton <nickc@redhat.com>
506
507 PR 26047
508 * ldelf.c (ldelf_after_open): Fail if attempting to link one
a87e1817
NC
509 executable into another. Ensure that the test is made for all
510 forms of linking.
a3fc9418 511
fa6ecf94
L
5122020-05-28 H.J. Lu <hongjiu.lu@intel.com>
513
6f028f3c
L
514 * NEWS: Mention --enable-textrel-check=yes is default for
515 Linux/x86 targets.
516 * configure.tgt (ac_default_ld_textrel_check): Set to yes if
517 unset for Linux/x86 targets.
fa6ecf94 518
b32632c4
L
5192020-05-28 H.J. Lu <hongjiu.lu@intel.com>
520
521 PR ld/20824
522 * NEWS: Mention --enable-textrel-check=[no|yes|warning|error].
523 * configure.ac: Add --enable-textrel-check=[no|yes|warning|error].
524 (DEFAULT_LD_TEXTREL_CHECK): New AC_DEFINE_UNQUOTED.
525 (DEFAULT_LD_TEXTREL_CHECK_WARNING): Likewise.
526 * ldmain.c (main): Initialize link_info.textrel_check to
527 DEFAULT_LD_TEXTREL_CHECK.
528 * lexsup.c (ld_options): Check DEFAULT_LD_TEXTREL_CHECK_WARNING.
529 * config.in: Regenerated.
530 * configure: Likewise.
531
72a3b182
NC
5322020-05-28 Nick Clifton <nickc@redhat.com>
533
534 * lexsup.c (parse_args): Generate an error if a name is not
535 provided to the -Map option.
536 (ld_options): Mention that the -Map option supports a directory
537 name as an argument.
538 * NEWS: Remove mention of support for an empty string as an
539 argument to -Map.
540 * ld.texi: Likewise.
541
2a37823b
HPN
5422020-05-27 Hans-Peter Nilsson <hp@axis.com>
543
544 PR ld/22909
545 * testsuite/ld-elf/pr19539.d: Don't xfail for cris*-*-*.
546
198204a7
NC
5472020-05-27 Rasmus Villemoes <rv@rasmusvillemoes.dk>
548 Nick Clifton <nickc@redhat.com>
549
550 * lexsup.c (parse_args): If the map filename is defined but empty
551 create a name based upon the output file name. If the name is
552 defined but refers to a directory create a file inside the
553 directory based on the output file name.
554 * ld.texi: Document the new feature.
555 * testsuite/ld-script/map-address.exp: Add test of new feature.
556 * NEWS: Mention the new feature.
557
a6dbf402
L
5582020-05-27 H.J. Lu <hongjiu.lu@intel.com>
559
560 PR ld/22909
561 * NEWS: Mention --warn-textrel.
562 * ld.texi: Update -z text/notext/textoff. Add --warn-textrel.
563 Remove --warn-shared-textrel.
564 * ldlex.h (option_values): Rename OPTION_WARN_SHARED_TEXTREL to
565 OPTION_WARN_TEXTREL.
566 * lexsup.c (ld_options): Add --warn-textrel. Obsolete
567 --warn-shared-textrel.
568 (parse_args): Updated.
569 (elf_shlib_list_options): Check link_info.textrel_check.
570 * emultempl/elf.em: Updated.
571 * testsuite/ld-elf/pr19539.d: Replace -z notext with
572 --warn-textrel. Expect a warning.
573 * testsuite/ld-i386/warn1.d: Update expected warning.
574
368584aa
L
5752020-05-26 H.J. Lu <hongjiu.lu@intel.com>
576
577 * testsuite/ld-ifunc/ifunc-23a-x86.d: Skip *-*-lynxos *-*-nto*.
578 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
579 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
580
07e0bb0f
L
5812020-05-25 H.J. Lu <hongjiu.lu@intel.com>
582
583 * testsuite/ld-x86-64/x86-64.exp: Pass -z notext to linker.
584
af2c48d8
L
5852020-05-25 H.J. Lu <hongjiu.lu@intel.com>
586
587 * testsuite/ld-elf/eh6.d: Pass -z notext to linker.
588 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
589 * testsuite/ld-elf/pr19539.d: Likewise.
590 * testsuite/ld-elfvers/vers.exp: Likewise.
591 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
592 * testsuite/ld-i386/i386.exp: Likewise.
593 * testsuite/ld-i386/nogot1.d: Likewise.
594 * testsuite/ld-i386/pr19539.d: Likewise.
595 * testsuite/ld-i386/pr19636-2a.d: Likewise.
596 * testsuite/ld-i386/pr19636-2b.d: Likewise.
597 * testsuite/ld-i386/pr19636-2c.d: Likewise.
598 * testsuite/ld-i386/pr19636-2d.d: Likewise.
599 * testsuite/ld-i386/pr19636-2e.d: Likewise.
600 * testsuite/ld-i386/pr19636-3d.d: Likewise.
601 * testsuite/ld-i386/pr19636-3e.d: Likewise.
602 * testsuite/ld-i386/pr19939b.d: Likewise.
603 * testsuite/ld-i386/undefweaka.d: Likewise.
604 * testsuite/ld-i386/undefweakb.d: Likewise.
605 * testsuite/ld-shared/shared.exp: Likewise.
606 * testsuite/ld-size/size.exp: Likewise.
607 * testsuite/ld-unique/unique.exp: Likewise.
608 * testsuite/ld-x86-64/pie1.d: Likewise.
609 * testsuite/ld-x86-64/pr19539a.d: Likewise.
610 * testsuite/ld-x86-64/pr19539b.d: Likewise.
611 * testsuite/ld-x86-64/pr19636-1d.d: Likewise.
612 * testsuite/ld-x86-64/pr19636-1e.d: Likewise.
613 * testsuite/ld-x86-64/pr19807-1a.d: Likewise.
614 * testsuite/ld-x86-64/pr19807-1b.d: Likewise.
615 * testsuite/ld-x86-64/pr19807-2b.d: Likewise.
616 * testsuite/ld-x86-64/pr19807-2c.d: Likewise.
617 * testsuite/ld-x86-64/pr19807-2d.d: Likewise.
618 * testsuite/ld-x86-64/pr19807-2e.d: Likewise.
619 * testsuite/ld-x86-64/pr19939b.d: Likewise.
620 * testsuite/ld-x86-64/x86-64.exp: Likewise.
621
bb68f22c
FS
6222020-05-24 Fangrui Song <maskray@google.com>
623
624 PR ld/26018
625 * lexsup.c (parse_args): Simplify.
626 * testsuite/ld-elf/dl4e.out: New.
627 * testsuite/ld-elf/shared.exp: Updated for PR ld/26018 tests.
628
309cae1f
L
6292020-05-23 H.J. Lu <hongjiu.lu@intel.com>
630
631 PR ld/26018
632 * testsuite/ld-i386/i386.exp: Add a -Bsymbolic-functions test.
633 * testsuite/ld-x86-64/x86-64.exp: Likewise.
634 * testsuite/ld-i386/pr26018.d: New file.
635 * testsuite/ld-x86-64/pr26018.d: Likewise.
636 * testsuite/ld-x86-64/pr26018.s: Likewise.
637
5e2ab612
AM
6382020-05-21 Alan Modra <amodra@gmail.com>
639
640 * deffilep.y: Replace "if (x) free (x)" with "free (x)" thoughout.
641 * emultempl/elf.em: Likewise.
642 * emultempl/msp430.em: Likewise.
643 * emultempl/pe.em: Likewise.
644 * emultempl/pep.em: Likewise.
645 * emultempl/ppc64elf.em: Likewise.
646 * emultempl/xtensaelf.em: Likewise.
647 * ldelf.c: Likewise.
648 * ldfile.c: Likewise.
649 * ldmain.c: Likewise.
650 * ldmisc.c: Likewise.
651 * lexsup.c: Likewise.
652 * pe-dll.c: Likewise.
653
8f595e9b
NC
6542020-05-20 Nelson Chu <nelson.chu@sifive.com>
655
656 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Updated
657 priv attributes according to the -mpriv-spec option.
658 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
659 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
660 * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
661 * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
662 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
663 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
664 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
665 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
666 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
667 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
668 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
669
7b958a48
AM
6702020-05-20 Alan Modra <amodra@gmail.com>
671
672 PR 25993
673 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't copy
674 other_bfd_filename for bfd_set_filename, and test result of
675 bfd_set_filename call. Don't create a new is->filename, simply
676 copy from bfd filename. Free new_name after bfd_set_filename.
677 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
678
7e057737
SP
6792020-05-19 Siddhesh Poyarekar <siddesh.poyarekar@arm.com>
680
681 * testsuite/ld-aarch64/aarch64-elf.exp: New test
682 emit-relocs-560.
683 * testsuite/ld-aarch64/emit-relocs-560.d: New file.
684 * testsuite/ld-aarch64/emit-relocs-560.s: New file.
685
607b4833
AM
6862020-05-19 Alan Modra <amodra@gmail.com>
687
688 * emultempl/beos.em (sort_by_file_name): Use bfd_get_filename
689 rather than accessing bfd->filename directly.
690 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
691 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
692 * emultempl/spuelf.em (embedded_spu_file): Likewise.
693 * ldlang.c (input_statement_is_archive_path, wild_sort),
694 (check_excluded_libs): Likewise.
695 * ldmain.c (add_archive_element): Likewise.
696 * ldmisc.c (vfinfo): Likewise.
697 * pe-dll.c (auto_export, generate_edata, pe_create_import_fixup),
698 (pe_dll_generate_implib, pe_process_import_defs): Likewise.
699 * plugin.c (plugin_object_p): Likewise.
700
3edf7b9f
DR
7012020-05-18 Douglas B Rupp <rupp@adacore.com>
702
703 * ldemul.h (ldemul_print_symbol): New.
704 (ld_emulation_xfer_type) <print_symbol): Likewise.
705 * ldemul.c (ldemul_print_symbol): New.
706 * ldlang.c (SECTION_NAME_MAP_LANGTH): Move to ...
707 (print_one_symbol): Make global and move declaration to ...
708 (print_all_symbols): Rename print_one_symbol to ldemul_print_symbol
709 (print_input_section): Likewise
710 * ldlang.h: ... here.
711 * emultempl/aix.em (gld${EMULATION_NAME}_print_symbol): New.
712 (ld_emulation_xfer_struct): Use it.
713 * emultempl/armcoff.em (ld_emulation_xfer_struct): Add print_symbol
714 and default to NULL.
715 * emultempl/beos.em (ld_emulation_xfer_struct): Likewise
716 * emultempl/elf.em (ld_emulation_xfer_struct): Likewise
717 * emultempl/generic.em (ld_emulation_xfer_struct): Likewise
718 * emultempl/linux.em (ld_emulation_xfer_struct): Likewise
719 * emultempl/msp430.em (ld_emulation_xfer_struct): Likewise
720 * emultempl/pe.em (ld_emulation_xfer_struct): Likewise
721 * emultempl/pep.em (ld_emulation_xfer_struct): Likewise
722 * emultempl/ticoff.em (ld_emulation_xfer_struct): Likewise
723 * emultempl/vanilla.em (ld_emulation_xfer_struct): Likewise
724
6e0c75f7
ST
7252020-05-18 Sergei Trofimovich <siarheit@google.com>
726
727 * ldmain.c (add_archive_element): Fix s/claimi/claim/ typo
728 in info message.
729
e6ddf2af
NC
7302020-05-18 Nick Clifton <nickc@redhat.com>
731
732 * po/sv.po: Update Swedish translation.
733
5e365e47
NC
7342020-05-18 Nick Clifton <nickc@redhat.com>
735
736 PR 25993
737 * emultempl/pe.em (_after_open): Check for duplicate filename
738 pointers before renaming the dll.
739 * emultempl/pep.em (_after_open): Likewise.
740
ba311c5b
NC
7412020-05-13 Nick Clifton <nickc@redhat.com>
742
743 PR 25979
744 * lexsup.c (elf_shlib_list_options): Include the default value for
745 the hash style in the output text.
746
94ba9882
AM
7472020-05-11 Alan Modra <amodra@gmail.com>
748
749 * testsuite/ld-powerpc/pcrelopt.s: Add lxvp and stxvp.
750 * testsuite/ld-powerpc/pcrelopt.d: Update.
751
7c1f4227
AM
7522020-05-11 Alan Modra <amodra@gmail.com>
753
754 * testsuite/ld-powerpc/callstub-1.d: Use -mpower10/-Mpower10 in
755 place of -mfuture/-Mfuture.
756 * testsuite/ld-powerpc/notoc2.d: Likewise.
757 * testsuite/ld-powerpc/powerpc.exp: Likewise.
758 * testsuite/ld-powerpc/tlsgd.d: Likewise.
759 * testsuite/ld-powerpc/tlsie.d: Likewise.
760 * testsuite/ld-powerpc/tlsld.d: Likewise.
761
73199c2b
NC
7622020-05-11 Nick Clifton <nickc@redhat.com>
763
764 * po/es.po: Updated Spanish translation.
765
cff69cf4
WD
7662020-05-01 Wilco Dijkstra <wdijkstr@arm.com>
767
768 PR ld/25665
769 * testsuite/ld-aarch64/farcall-group.s: New large group test.
770 * testsuite/ld-aarch64/farcall-group.d: New test driver.
771 * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
772
a8acd6ee
AM
7732020-05-01 Alan Modra <amodra@gmail.com>
774
775 PR 25882
776 * ldlang.c (lang_check): Call bfd_merge_private_bfd_data for
777 shared libraries.
778
94a8e7b0
AM
7792020-05-01 Alan Modra <amodra@gmail.com>
780
781 * po/BLD-POTFILES.in: Regenerate.
782
09c1e68a
AC
7832020-04-30 Alex Coplan <alex.coplan@arm.com>
784
785 * testsuite/ld-aarch64/erratum843419_tls_ie.d: Use udf in disassembly.
786 * testsuite/ld-aarch64/farcall-b-section.d: Likewise.
787 * testsuite/ld-aarch64/farcall-back.d: Likewise.
788 * testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
789
8a8a1171
NC
7902020-04-30 Nick Clifton <nickc@redhat.com>
791
792 * testsuite/ld-elf/compress1c.d: XFAIL if thet target linker does
793 not support the -shared command line option.
794 * /ld-elf/compressed1c.d: Likewise.
795 * /ld-elf/compressed1e.d: Likewise.
796 * /ld-elf/dynamic1.d: Likewise.
797 * /ld-elf/dynsym1.d: Likewise.
798 * /ld-elf/ehdr_start-shared.d: Likewise.
799 * /ld-elf/exclude3b.d: Likewise.
800 * /ld-elf/global1.d: Likewise.
801 * /ld-elf/hash.d: Likewise.
802 * /ld-elf/local1.d: Likewise.
803 * /ld-elf/mbind1b.d: Likewise.
804 * /ld-elf/now-1.d: Likewise.
805 * /ld-elf/now-2.d: Likewise.
806 * /ld-elf/now-3.d: Likewise.
807 * /ld-elf/now-4.d: Likewise.
808 * /ld-elf/pr12975.d: Likewise.
809 * /ld-elf/pr13177.d: Likewise.
810 * /ld-elf/pr13195.d: Likewise.
811 * /ld-elf/pr16322.d: Likewise.
812 * /ld-elf/pr16498a.d: Likewise.
813 * /ld-elf/pr16498b.d: Likewise.
814 * /ld-elf/pr17615.d: Likewise.
815 * /ld-elf/pr19162.d: Likewise.
816 * /ld-elf/pr19698.d: Likewise.
817 * /ld-elf/pr20513c.d: Likewise.
818 * /ld-elf/pr20513d.d: Likewise.
819 * /ld-elf/pr21389a.d: Likewise.
820 * /ld-elf/pr21389b.d: Likewise.
821 * /ld-elf/pr21389c.d: Likewise.
822 * /ld-elf/pr21562a.d: Likewise.
823 * /ld-elf/pr21562b.d: Likewise.
824 * /ld-elf/pr21562c.d: Likewise.
825 * /ld-elf/pr21562d.d: Likewise.
826 * /ld-elf/pr21562e.d: Likewise.
827 * /ld-elf/pr21562f.d: Likewise.
828 * /ld-elf/pr21562g.d: Likewise.
829 * /ld-elf/pr21562h.d: Likewise.
830 * /ld-elf/pr21562i.d: Likewise.
831 * /ld-elf/pr21562j.d: Likewise.
832 * /ld-elf/pr21562k.d: Likewise.
833 * /ld-elf/pr21562l.d: Likewise.
834 * /ld-elf/pr21562m.d: Likewise.
835 * /ld-elf/pr21562n.d: Likewise.
836 * /ld-elf/pr21903a.d: Likewise.
837 * /ld-elf/pr21903b.d: Likewise.
838 * /ld-elf/pr22269b.d: Likewise.
839 * /ld-elf/pr22393-1a.d: Likewise.
840 * /ld-elf/pr22393-1b.d: Likewise.
841 * /ld-elf/pr23658-1c.d: Likewise.
842 * /ld-elf/pr25708.d: Likewise.
843 * /ld-elf/rpath-1.d: Likewise.
844 * /ld-elf/rpath-2.d: Likewise.
845 * /ld-elf/runpath-1.d: Likewise.
846 * /ld-elf/runpath-2.d: Likewise.
847 * /ld-elf/sizeofb.d: Likewise.
848 * /ld-elf/startofb.d: Likewise.
849 * /ld-elf/strtab.d: Likewise.
850 * /ld-elf/textaddr2.d: Likewise.
851 * /ld-elf/textaddr5.d: Likewise.
852 * /ld-elf/textaddr6.d: Likewise.
853 * /ld-elf/unknown2.d: Likewise.
854 * /ld-undefined/entry-3.d: Likewise.
855 * /ld-undefined/entry-4.d: Likewise.
856 * /ld-elf/mbind1c.d: XFAIL if the target linker does not support
857 the -pie option.
858 * /ld-elf/pie.d: Likewise.
859 * /ld-elf/pr19539.d: Likewise.
860 * /ld-elf/pr21903d.d: Likewise.
861 * /ld-elf/pr22269a.d: Likewise.
862 * /ld-elf/pr22393-1c.d: Likewise.
863 * /ld-elf/pr22393-1d.d: Likewise.
864 * /ld-elf/pr22423.d: Likewise.
865 * /ld-elf/loadaddr1.d: Expect to fail on the rx-linux target.
866 * /ld-elf/loadaddr2.d: Likewise.
867 * /ld-elf/pr22393-1e.d: Likewise.
868 * /ld-elf/pr22393-1f.d: Likewise.
869 * /ld-elf/textaddr1.d: Likewise.
870 * /ld-elf/textaddr4.d: Likewise.
871
c578f16e
YS
8722020-04-30 Yoshinori Sato <ysato@users.sourceforge.jp>
873
874 * emulparams/elf32rx_linux.sh: New rx-linux emulation.
875 * emultempl/rxlinux.em: New.
876 * configure.tgt: Add rx-linux.
877 * Makefile.am: Add eelf32rx_linux.c
878 * Makefile.in: Regenerate.
879
d548f47d
MF
8802020-04-29 Max Filippov <jcmvbkbc@gmail.com>
881
882 * testsuite/ld-xtensa/relax-diff1.d: New test definition.
883 * testsuite/ld-xtensa/relax-diff1.s: New test source.
884 * testsuite/ld-xtensa/relax-ndiff.d: New test definition.
885 * testsuite/ld-xtensa/relax-ndiff.s: New test source.
886 * testsuite/ld-xtensa/xtensa.exp: (relax-diff1)
887 (relax-ndiff): New tests.
888
4849fabc
SC
8892020-04-29 Stephen Casner <casner@acm.org>
890
891 PR 25829
892 * testsuite/ld-scripts/default-script.exp: Add --image-base=0 to
893 LDFLAGS for targets *-*-mingw64 x86_64-*-cygwin.
894 * testsuite/ld-scripts/default-script1.d: No longer have to skip
895 test for those targets.
896 * testsuite/ld-scripts/default-script2.d: Likewise.
897 * testsuite/ld-scripts/default-script3.d: Likewise.
898 * testsuite/ld-scripts/default-script4.d: Likewise.
899
251dae91
TC
9002020-04-27 Tamar Christina <tamar.christina@arm.com>
901
902 * pe-dll.c (pe_detail_list): Add pe-bigobj-i386.
903
30ce8e47
MF
9042020-04-22 Max Filippov <jcmvbkbc@gmail.com>
905
906 PR ld/25861
907 * testsuite/ld-xtensa/relax-loc.d: New test definition.
908 * testsuite/ld-xtensa/relax-loc.s: New test source.
909 * testsuite/ld-xtensa/xtensa.exp (relax-loc): New test.
910
16171946
FS
9112020-04-22 Fangrui Song <maskray@google.com>
912
913 PR ld/25806
914 * ldlang.h (struct lang_input_statement_struct): Add extra_search_path.
915 * ldlang.c (current_input_file): New.
916 (ldirname): New.
917 (new_afile): Add from_filename parameter. Set extra_search_path.
918 (lang_add_input_file): Pass current_input_file to new_afile.
919 (load_symbols): Set current_input_file.
920 * ldfile.c (ldfile_open_file): If extra_search_path has been set
921 then scan it for the file that needs to be opened.
922 * ld.texi: Document the new behaviour.
923 * NEWS: Mention the new feature.
924
1d934d76
AM
9252020-04-22 Alan Modra <amodra@gmail.com>
926
927 * testsuite/ld-scripts/default-script1.d: Correct mingw skip.
928 * testsuite/ld-scripts/default-script2.d: Likewise.
929 * testsuite/ld-scripts/default-script3.d: Likewise.
930 * testsuite/ld-scripts/default-script4.d: Likewise.
931
39a7b38f
SC
9322020-04-21 Stephen Casner <casner@acm.org>
933
934 PR 25829
935 * testsuite/ld-scripts/script.exp (check_script)
936 (extract_symbol_test): Make test addresses fit in 16 bits.
937 * testsuite/ld-scripts/memory.t: Likewise.
938 * testsuite/ld-scripts/memory_sym.t (TXT_LENGTH): Likewise.
939 * testsuite/ld-scripts/default-script.t (_START): Likewise.
940 * testsuite/ld-scripts/default-script1.d: Likewise.
941 * testsuite/ld-scripts/default-script2.d: Likewise.
942 * testsuite/ld-scripts/default-script3.d: Likewise.
943 * testsuite/ld-scripts/default-script4.d: Likewise.
944 * testsuite/ld-scripts/empty-address-1.t: Likewise.
945 * testsuite/ld-scripts/empty-address-1.d: Likewise.
946 * testsuite/ld-scripts/empty-address-2a.d: Likewise.
947 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
948 * testsuite/ld-misc/start.s: .long -> .dc.a to allow relocation to
949 fit target address size.
1d934d76 950 * testsuite/ld-scripts/empty-address-1.s: Likewise.
39a7b38f
SC
951 * testsuite/ld-scripts/empty-address-2.s: Likewise.
952
6f6fd151
L
9532020-04-21 H.J. Lu <hongjiu.lu@intel.com>
954
955 PR ld/25849
956 * ldelfgen.c (ldelf_map_segments): Call
957 elf_backend_strip_zero_sized_dynamic_sections.
958 * testsuite/ld-alpha/tlsbinr.rd: Updated.
959
2efec98b
AM
9602020-04-20 Alan Modra <amodra@gmail.com>
961
962 * testsuite/ld-powerpc/tlsopt5.s: Rename foo to aaaaa.
963 * testsuite/ld-powerpc/tlsopt5.d: Adjust to suit.
964 * testsuite/ld-powerpc/tlsopt6.d: Likewise.
965
dbe23755
RO
9662020-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
967
968 * testsuite/ld-elf/warn1.d: Don't xfail on 64-bit Solaris/SPARC.
969 * testsuite/ld-elf/warn2.d: Likewise.
970
54975ae9
L
9712020-04-18 H.J. Lu <hongjiu.lu@intel.com>
972
973 * testsuite/ld-elf/elf.exp (ASFLAGS): Add "--defsym NO_SET=1" for
974 alpha target.
975 * testsuite/ld-elf/pr19789.s: Use "=" if NO_SET is defined.
976
0203cad2
SC
9772020-04-16 Stephen Casner <casner@acm.org>
978
979 PR 18963
980 * testsuite/ld-scripts/pr18963.t: Reduce section sizes to fit in
981 16-bit address space.
982 * testsuite/ld-scripts/pr18963.d: Likewise.
983
0fe0f2d6
JMG
9842020-04-17 Juan Manuel Guerrero <juan.guerrero@gmx.de>
985 Jan W. Jagersma <jwjagersma@gmail.com>
986
987 * scripttempl/i386go32.sc: Provide symbol _environ. Link in
988 .ctors and .dtors. Discard LTO sections.
989
49c16254
NC
9902020-04-17 Nick Clifton <nickc@redhat.com>
991
992 * testsuite/config/default.exp: If not already set then create the
993 CCC_OVERRIDE_OPTIONS environment variable to help when running the
994 testsuite with clang.
995 * testsuite/ld-elf/pr22269-1.c: Add a missing return statement.
996 * testsuite/ld-elfvers/vers.exp: Add checks to detect if files
997 were built before attempting to copy them.
998
95a51568
FS
9992020-04-15 Fangrui Song <maskray@google.com>
1000
1001 PR binutils/24613
1002 * lexsup.c (parse_args): Change RM_GENERATE_WARNING and
1003 RM_GENERATE_ERROR to RM_DIAGNOSE.
1004 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Change
1005 RM_GENERATE_ERROR to RM_DIAGNOSE.
1006 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Likewise.
1007
fa1477dc
SC
10082020-04-14 Stephen Casner <casner@acm.org>
1009
1010 PR ld/25677
1011 * emulparams/pdp11.sh (SCRIPT_NAME): Change to pdp11.
1012 (EXTRA_EM_FILE): New, add emulation file pdp11.
1013 * scripttempl/pdp11.sc: New, derived from aout.sc without
1014 irrelevant input sections.
1015 * emultempl/pdp11.em (_add_options, _handle_option)
1016 (_list_options): New. Add options -z, --imagic for pdp11-aout.
1017 (_before_parse): Make --omagic be default instead of --nmagic.
1018 (_get_script): Modify special-case linker script for --imagic.
1019 * lexsup.c (parse_args): Explictly set config.text_read_only for -n.
1020 * ld.texi (Options): Add documentation of PDP11-specific options.
1021 (Options): Fix unrelated typo to --no-compact-branches.
1022 * gen-doc.texi: @set PDP11.
1023 * testsuite/ld-pdp11/pdp11.exp: New, start pdp11 testing.
1024 * testsuite/ld-pdp11/sections.s: New, source for options tests.
1025 * testsuite/ld-pdp11/imagic.d: New, test --imagic format.
1026 * testsuite/ld-pdp11/imagicz.d: New, test -z (imagic) format.
1027 * testsuite/ld-pdp11/nmagic.d: New, test --nmagic format.
1028 * testsuite/ld-pdp11/omagic.d: New, test --omagic format.
1029
10ca4b04
L
10302020-04-14 H.J. Lu <hongjiu.lu@intel.com>
1031
1032 PR binutils/25707
1033 * testsuite/ld-arm/armthumb-lib.sym: Updated.
1034 * testsuite/ld-arm/farcall-mixed-app.sym: Likewise.
1035 * testsuite/ld-arm/farcall-mixed-app2.sym: Likewise.
1036 * testsuite/ld-arm/fdpic-main-m.sym: Likewise.
1037 * testsuite/ld-arm/fdpic-main.sym: Likewise.
1038 * testsuite/ld-arm/fdpic-shared-m.sym: Likewise.
1039 * testsuite/ld-arm/fdpic-shared.sym: Likewise.
1040 * testsuite/ld-arm/mixed-app.sym: Likewise.
1041 * testsuite/ld-arm/mixed-lib.sym: Likewise.
1042 * testsuite/ld-arm/preempt-app.sym: Likewise.
1043 * testsuite/ld-elf/hash.d: Likewise.
1044 * testsuite/ld-elf/pr13195.d: Likewise.
1045 * testsuite/ld-elfvsb/hidden2.d: Likewise.
1046 * testsuite/ld-mips-elf/hash2.d: Likewise.
1047
a5d21497
RO
10482020-04-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1049
1050 * testsuite/ld-shared/shared.exp: Remove dangling comments.
1051 xfail shared non PIC tests on Solaris.
1052
ae4b1d73
RO
10532020-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1054
1055 * testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIC on sparc*-*-*.
1056
aa350065
L
10572020-04-02 H.J. Lu <hongjiu.lu@intel.com>
1058
1059 * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): Replace
1060 nopie with available.
1061
8be5def6
L
10622020-04-02 H.J. Lu <hongjiu.lu@intel.com>
1063
1064 * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): New.
1065 Set to "-fcf-protection=none" if target compiler supports it.
1066 * testsuite/ld-srec/srec.exp: Add $NOCF_PROTECTION_CFLAGS to
1067 CC and CXX.
1068 * testsuite/ld-x86-64/x86-64.exp: Add $NOCF_PROTECTION_CFLAGS
1069 to PLT BND tests.
1070
516231b7
L
10712020-04-02 H.J. Lu <hongjiu.lu@intel.com>
1072
1073 * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Compile with
1074 -I../bfd.
1075 (check_pr25749b): Likewise.
1076
bb897477
RO
10772020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1078
1079 * testsuite/ld-ifunc/ifunc-10-i386.d: Remove *-*-solaris2* from
1080 notarget.
1081 * ifunc-11-i386.d: Likewise.
1082 * ifunc-12-i386.d: Likewise.
1083 * ifunc-13-i386.d: Likewise.
1084 * ifunc-14a-i386.d: Likewise.
1085 * ifunc-14b-i386.d: Likewise.
1086 * ifunc-14c-i386.d: Likewise.
1087 * ifunc-14d-i386.d: Likewise.
1088 * ifunc-14e-i386.d: Likewise.
1089 * ifunc-14f-i386.d: Likewise.
1090 * ifunc-15-i386.d: Likewise.
1091 * ifunc-16-i386-now.d: Likewise.
1092 * ifunc-16-i386.d: Likewise.
1093 * ifunc-17a-i386.d: Likewise.
1094 * ifunc-17b-i386.d: Likewise.
1095 * ifunc-18a-i386.d: Likewise.
1096 * ifunc-18b-i386.d: Likewise.
1097 * ifunc-19a-i386.d: Likewise.
1098 * ifunc-19b-i386.d: Likewise.
1099 * ifunc-2-i386-now.d: Likewise.
1100 * ifunc-2-i386.d: Likewise.
1101 * ifunc-2-local-i386-now.d: Likewise.
1102 * ifunc-2-local-i386.d: Likewise.
1103 * ifunc-20-i386.d: Likewise.
1104 * ifunc-21-i386.d: Likewise.
1105 * ifunc-22-i386.d: Likewise.
1106 * ifunc-5a-i386.d: Likewise.
1107 * ifunc-5a-local-i386.d: Likewise.
1108 * ifunc-5b-i386.d: Likewise.
1109 * ifunc-5b-local-i386.d: Likewise.
1110 * ifunc-5r-local-i386.d: Likewise.
1111 * ifunc-6a-i386.d: Likewise.
1112 * ifunc-6b-i386.d: Likewise.
1113 * ifunc-7a-i386.d: Likewise.
1114 * ifunc-7b-i386.d: Likewise.
1115 * ifunc-8-i386.d: Likewise.
1116 * ifunc-9-i386.d: Likewise.
1117 * pr17154-i386-now.d: Likewise.
1118 * pr17154-i386.d: Likewise.
1119
1120 * ifunc-23a-x86.d: Remove notarget.
1121 * ifunc-24a-x86.d: Likewise.
1122 * ifunc-25a-x86.d: Likewise.
1123
4f5bd885
NC
11242020-04-02 Nick Clifton <nickc@redhat.com>
1125
1126 PR ld/25747
1127 * ldfile.c (ldfile_open_file): Fix typo in warning message.
1128
382aae06
L
11292020-04-01 H.J. Lu <hongjiu.lu@intel.com>
1130
1131 PR ld/25749
1132 PR ld/25754
1133 * testsuite/ld-elf/linux-x86.exp: Run ld/25749 tests.
1134 * testsuite/ld-elf/pr25749-1.c: New file.
1135 * testsuite/ld-elf/pr25749-1a.c: Likewise.
1136 * testsuite/ld-elf/pr25749-1b.c: Likewise.
1137 * testsuite/ld-elf/pr25749-1b.err: Likewise.
1138 * testsuite/ld-elf/pr25749-1c.c: Likewise.
1139 * testsuite/ld-elf/pr25749-1d.c: Likewise.
1140 * testsuite/ld-elf/pr25749-2.c: Likewise.
1141 * testsuite/ld-elf/pr25749-2a.s: Likewise.
1142 * testsuite/ld-elf/pr25749-2b.s: Likewise.
1143 * testsuite/ld-elf/pr25749.rd: Likewise.
1144 * testsuite/ld-elf/pr25754-1a.c: Likewise.
1145 * testsuite/ld-elf/pr25754-1b.s: Likewise.
1146 * testsuite/ld-elf/pr25754-2a.c: Likewise.
1147 * testsuite/ld-elf/pr25754-2b.err: Likewise.
1148 * testsuite/ld-elf/pr25754-2b.s: Likewise.
1149 * testsuite/ld-elf/pr25754-3a.c: Likewise.
1150 * testsuite/ld-elf/pr25754-3b.s: Likewise.
1151 * testsuite/ld-elf/pr25754-4a.c: Likewise.
1152 * testsuite/ld-elf/pr25754-4b.s: Likewise.
1153 * testsuite/ld-elf/pr25754-4c.s: Likewise.
1154 * testsuite/ld-elf/pr25754-5a.c: Likewise.
1155 * testsuite/ld-elf/pr25754-5b.s: Likewise.
1156 * testsuite/ld-elf/pr25754-5c.s: Likewise.
1157 * testsuite/ld-elf/pr25754-6a.c: Likewise.
1158 * testsuite/ld-elf/pr25754-6b.s: Likewise.
1159 * testsuite/ld-x86-64/pr19609-6a.d: Don't expect linker error.
1160
3ce23ca1
TC
11612020-04-01 Tamar Christina <tamar.christina@arm.com>
1162
1163 PR ld/16017
1164 * testsuite/ld-arm/arm-elf.exp (thumb-plt, thumb-plt-got): Skip for NaCL.
1165
77bf7b53
NC
11662020-04-01 Nick Clifton <nickc@redhat.com>
1167
1168 PR ld/25747
1169 * ldfile.c (ldfile_open_file): If a search for a library fails,
1170 but there is a file that would match if it had a "lib" prefix to
1171 its name, then tell the user.
1172
a7618269
TC
11732020-04-01 Tamar Christina <tamar.christina@arm.com>
1174
1175 PR ld/16017
1176 * testsuite/ld-arm/arm-elf.exp (thumb-plt-got): New.
1177 * testsuite/ld-arm/thumb-plt-got.d: New test.
1178
15ccbdd7
TC
11792020-04-01 Tamar Christina <tamar.christina@arm.com>
1180
1181 * testsuite/ld-arm/arm-elf.exp (thumb-plt): New.
1182 * testsuite/ld-arm/thumb-plt.d: New test.
1183 * testsuite/ld-arm/thumb-plt.s: New test.
1184
41ff29bf
HPN
11852020-04-01 Hans-Peter Nilsson <hp@bitrange.com>
1186
1187 * testsuite/ld-scripts/defined4.d: Don't xfail mmix-*-*.
1188
00386881
NC
11892020-03-30 Nick Clifton <nickc@redhat.com>
1190
1191 PR binutils/25662
1192 * emultempl/pe.em (after_open): Replace initialisation of the
1193 insert_timestamp field in the pe_data structure with an
1194 initialisation of the timestamp field.
1195 * emultemp/pep.em: Likewise.
1196 * pe-dll.c (fill_edata): Use the timestamp field in the pe_data
1197 structure instead of the insert_timestamp field.
1198
767be9d9
L
11992020-03-28 H.J. Lu <hongjiu.lu@intel.com>
1200
1201 PR 25732
1202 * emulparams/elf_i386_ldso.sh (COMMONPAGESIZE): New.
1203 * testsuite/ld-elf/shared.exp:Don't xfail pr20995-2 tests for
1204 Solaris.
1205
258e8844
L
12062020-03-27 H.J. Lu <hongjiu.lu@intel.com>
1207
1208 PR 25732
1209 * testsuite/ld-elf/shared.exp: Xfail pr20995-2 tests for Solaris.
1210
cacb9d87
L
12112020-03-27 H.J. Lu <hongjiu.lu@intel.com>
1212
1213 PR 25732
1214 * testsuite/ld-ifunc/ifunc-23a-x86.d: Add notarget for Solaris.
1215 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
1216 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
1217
86fd7e2e
AM
12182020-03-25 Alan Modra <amodra@gmail.com>
1219
1220 * testsuite/ld-elf/compress1c.d: xfail h8300.
1221 * testsuite/ld-elf/compressed1c.d: Likewise.
1222 * testsuite/ld-elf/compressed1e.d: Likewise.
1223 * testsuite/ld-elf/dynamic1.d: Likewise.
1224 * testsuite/ld-elf/dynsym1.d: Likewise.
1225 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1226 * testsuite/ld-elf/exclude3b.d: Likewise.
1227 * testsuite/ld-elf/export-class.exp: Don't run without -shared support.
1228 * testsuite/ld-elf/global1.d: xfail h8300.
1229 * testsuite/ld-elf/hash.d: Likewise.
1230 * testsuite/ld-elf/loadaddr1.d: Likewise.
1231 * testsuite/ld-elf/loadaddr2.d: Likewise.
1232 * testsuite/ld-elf/local1.d: Likewise.
1233 * testsuite/ld-elf/mbind1b.d: Likewise.
1234 * testsuite/ld-elf/mbind1c.d: Likewise.
1235 * testsuite/ld-elf/now-1.d: Likewise.
1236 * testsuite/ld-elf/now-2.d: Likewise.
1237 * testsuite/ld-elf/now-3.d: Likewise.
1238 * testsuite/ld-elf/now-4.d: Likewise.
1239 * testsuite/ld-elf/pie.d: Likewise.
1240 * testsuite/ld-elf/pr12975.d: Likewise.
1241 * testsuite/ld-elf/pr13177.d: Likewise.
1242 * testsuite/ld-elf/pr13195.d: Likewise.
1243 * testsuite/ld-elf/pr16322.d: Likewise.
1244 * testsuite/ld-elf/pr16498a.d: Likewise.
1245 * testsuite/ld-elf/pr16498b.d: Likewise.
1246 * testsuite/ld-elf/pr17615.d: Likewise.
1247 * testsuite/ld-elf/pr19162.d: Likewise.
1248 * testsuite/ld-elf/pr19539.d: Likewise.
1249 * testsuite/ld-elf/pr19617a.d: Likewise.
1250 * testsuite/ld-elf/pr19698.d: Likewise.
1251 * testsuite/ld-elf/pr20513c.d: Likewise.
1252 * testsuite/ld-elf/pr20513d.d: Likewise.
1253 * testsuite/ld-elf/pr21389a.d: Likewise.
1254 * testsuite/ld-elf/pr21389b.d: Likewise.
1255 * testsuite/ld-elf/pr21389c.d: Likewise.
1256 * testsuite/ld-elf/pr21562a.d: Likewise.
1257 * testsuite/ld-elf/pr21562b.d: Likewise.
1258 * testsuite/ld-elf/pr21562c.d: Likewise.
1259 * testsuite/ld-elf/pr21562d.d: Likewise.
1260 * testsuite/ld-elf/pr21562e.d: Likewise.
1261 * testsuite/ld-elf/pr21562f.d: Likewise.
1262 * testsuite/ld-elf/pr21562g.d: Likewise.
1263 * testsuite/ld-elf/pr21562h.d: Likewise.
1264 * testsuite/ld-elf/pr21562i.d: Likewise.
1265 * testsuite/ld-elf/pr21562j.d: Likewise.
1266 * testsuite/ld-elf/pr21562k.d: Likewise.
1267 * testsuite/ld-elf/pr21562l.d: Likewise.
1268 * testsuite/ld-elf/pr21562m.d: Likewise.
1269 * testsuite/ld-elf/pr21562n.d: Likewise.
1270 * testsuite/ld-elf/pr21903a.d: Likewise.
1271 * testsuite/ld-elf/pr21903b.d: Likewise.
1272 * testsuite/ld-elf/pr21903d.d: Likewise.
1273 * testsuite/ld-elf/pr22269a.d: Likewise.
1274 * testsuite/ld-elf/pr22269b.d: Likewise.
1275 * testsuite/ld-elf/pr22393-1a.d: Likewise.
1276 * testsuite/ld-elf/pr22393-1b.d: Likewise.
1277 * testsuite/ld-elf/pr22393-1c.d: Likewise.
1278 * testsuite/ld-elf/pr22393-1d.d: Likewise.
1279 * testsuite/ld-elf/pr22393-1e.d: Likewise.
1280 * testsuite/ld-elf/pr22393-1f.d: Likewise.
1281 * testsuite/ld-elf/pr22423.d: Likewise.
1282 * testsuite/ld-elf/pr22450.d: xfail avr, crx, h8300, ip2k, m68hc11,
1283 and xc16x.
1284 * testsuite/ld-elf/pr23658-1c.d: xfail h8300.
1285 * testsuite/ld-elf/pr25708.d: xfail h8300 and hppa64.
1286 * testsuite/ld-elf/rpath-1.d: xfail h8300.
1287 * testsuite/ld-elf/rpath-2.d: Likewise.
1288 * testsuite/ld-elf/runpath-1.d: Likewise.
1289 * testsuite/ld-elf/runpath-2.d: Likewise.
1290 * testsuite/ld-elf/sizeofb.d: Likewise.
1291 * testsuite/ld-elf/startofb.d: Likewise.
1292 * testsuite/ld-elf/strtab.d: Likewise.
1293 * testsuite/ld-elf/textaddr1.d: Likewise.
1294 * testsuite/ld-elf/textaddr2.d: Likewise.
1295 * testsuite/ld-elf/textaddr4.d: Likewise.
1296 * testsuite/ld-elf/textaddr5.d: Likewise.
1297 * testsuite/ld-elf/textaddr6.d: Likewise.
1298 * testsuite/ld-elf/unknown2.d: Likewise.
1299 * testsuite/ld-undefined/entry-3.d: Likewise.
1300 * testsuite/ld-undefined/entry-4.d: Likewise.
1301 * testsuite/ld-h8300/h8300.exp: Pass appropriate ld -m option.
1302 * testsuite/ld-h8300/gcsection.d: Remove ld -m option and relax
1303 file format match.
1304 * testsuite/ld-h8300/relax-2.d: Likewise.
1305 * testsuite/ld-h8300/relax-3.d: Likewise.
1306 * testsuite/ld-h8300/relax-4.d: Likewise.
1307 * testsuite/ld-h8300/relax-5.d: Likewise.
1308 * testsuite/ld-h8300/relax-6.d: Likewise.
1309 * testsuite/ld-h8300/relax-7.d: Likewise.
1310 * testsuite/ld-h8300/relax.d: Relax file format match.
1311
7e6e972f
L
13122020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1313
1314 PR binutils/25708
1315 * testsuite/ld-elf/pr25708.d: New file.
1316
5e737279
AM
13172020-03-23 Alan Modra <amodra@gmail.com>
1318
1319 * Makefile.am (ALL_EMULATION_SOURCES): Reinstate ei386aout.c.
1320 Include ei386aout dep file.
1321 * Makefile.in: Regenerate.
1322 * po/BLD-POTFILES.in: Regenerate.
1323
3d98c460
L
13242020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1325
1326 * testsuite/ld-plugin/lto.exp (lto_link_tests): Run PR ld/25355
1327 test only for GCC 10 or newer.
1328
c02d6661
AM
13292020-03-20 Alan Modra <amodra@gmail.com>
1330
1331 * testplug.c (parse_symdefstr): Use %hhi to read sym->def, and
1332 clear new fields.
1333 * testplug2.c (parse_symdefstr): Likewise.
1334 * testplug3.c (parse_symdefstr): Likewise.
1335 * testplug4.c (parse_symdefstr): Likewise.
1336
aef397a1
CL
13372020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
1338
1339 * testsuite/ld-arm/non-contiguous-arm4.d: Fix expected output.
1340 * testsuite/ld-powerpc/non-contiguous-powerpc.d: Likewise.
1341
53215f21
CL
13422020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
1343
1344 * emultempl/xtensaelf.em: Emit a fatal error message
1345 instead of calling abort.
1346 * ldlang.c: Likewise.
1347
02a8180e
AM
13482020-03-14 Alan Modra <amodra@gmail.com>
1349
1350 * testsuite/ld-elf/non-contiguous.d: Don't xfail generic ELF
1351 targets. Don't skip xtensa, xfail instead.
1352
abf874aa
CL
13532020-03-13 Christophe Lyon <christophe.lyon@linaro.org>
1354
1355 * ldlang.c (lang_add_section): Add support for
1356 non_contiguous_regions.
1357 (size_input_section): Likewise.
1358 (lang_size_sections_1): Likewise.
1359 (process_insert_statements): Likewise.
1360 * ldlex.h (option_values): Add OPTION_NON_CONTIGUOUS_REGIONS and
1361 OPTION_NON_CONTIGUOUS_REGIONS_WARNINGS.
1362 * lexsup.c (ld_options): Add entries for
1363 --enable-non-contiguous-regions and
1364 --enable-non-contiguous-regions-warnings.
1365 (parse_args): Handle it.
1366 * NEWS: Add --enable-non-contiguous-regions and
1367 --enable-non-contiguous-regions-warnings.
1368 * ld.texi: Add --enable-non-contiguous-regions and
1369 --enable-non-contiguous-regions-warnings documentation.
1370 * emultempl/armelf.em (elf32_arm_add_stub_section): Add
1371 SEC_LINKER_CREATED flag.
1372 * emultempl/xtensaelf.em (ld_build_required_section_dependence):
1373 Emit an error when --enable-non-contiguous-regions is used.
1374 * testsuite/ld-elf/non-contiguous.d: New.
1375 * testsuite/ld-elf/non-contiguous.ld: New.
1376 * testsuite/ld-elf/non-contiguous.s: New.
1377 * testsuite/ld-arm/arm-elf.exp: Run the new tests.
1378 * testsuite/ld-arm/arm-elf/non-contiguous-arm.s: New.
1379 * testsuite/ld-arm/arm-elf/non-contiguous-arm.d: New.
1380 * testsuite/ld-arm/arm-elf/non-contiguous-arm.ld: New.
1381 * testsuite/ld-arm/arm-elf/non-contiguous-arm2.d: New.
1382 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
1383 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.d: New.
1384 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
1385 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.d: New.
1386 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.ld: New.
1387 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.d: New.
1388 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.ld: New.
1389 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.d: New.
1390 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.ld: New.
1391 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
1392 * testsuite/ld-powerpc/non-contiguous-powerpc.d: New.
1393 * testsuite/ld-powerpc/non-contiguous-powerpc.ld: New.
1394 * testsuite/ld-powerpc/non-contiguous-powerpc.sd: New.
1395 * testsuite/ld-powerpc/non-contiguous-powerpc64.d: New.
1396
74e10d17
L
13972020-03-13 H.J. Lu <hongjiu.lu@intel.com>
1398
1399 PR ld/24920
1400 * emulparams/elf32_x86_64.sh: Use static.sh.
1401 * emulparams/elf_i386.sh: Likewise.
1402 * emulparams/elf_x86_64.sh: Likewise.
1403 * emulparams/static.sh: New file.
1404 * emultempl/elf-x86.em: Include "ldlex.h".
1405 * testsuite/ld-elf/pr24920.err: New file.
1406 * testsuite/ld-elf/linux-x86.exp: Run ld/24920 tests.
1407
502794d4
CE
14082020-03-13 Christian Eggers <ceggers@gmx.de>
1409
1410 * ldexp.c (fold_name): Return SIZEOF_HEADERS in bytes.
1411
1db6f990
AM
14122020-03-11 Alan Modra <amodra@gmail.com>
1413
1414 * ldelf.c (elf_orphan_compatible): Return false when two sections
1415 have differing SHF_MASKPROC or SHF_MASKOS flags.
1416
92d4b13b
AM
14172020-03-05 Alan Modra <amodra@gmail.com>
1418
1419 PR 25570
1420 * ldlang.c (lang_size_sections_1): Don't report changes on
1421 second and subsequent iterations that make no change in
1422 alignment from that already reported.
1423
baf09cba
AM
14242020-03-05 Alan Modra <amodra@gmail.com>
1425
1426 PR 25570
1427 * ldlang.c (lang_sizing_iteration): New static var.
1428 (lang_size_sections_1): Warn about no memory region only on first
1429 iteration. Warn about changing start address on first iteration
1430 then any delta from that on subsequent iterations. Report a signed
1431 delta.
1432 (one_lang_size_sections_pass): Increment lang_sizing_iteration.
1433
d8e4137b
NC
14342020-03-03 Nick Clifton <nickc@redhat.com>
1435
1436 PR 25588
1437 * ld.texi (Options): Update the description of the --rpath-link
1438 option.
1439
cb001c0d
AM
14402020-03-02 Alan Modra <amodra@gmail.com>
1441
1442 * plugin.c (plugin_object_p): Return a bfd_cleanup.
1443 (plugin_cleanup): New function.
1444
2aa90762
L
14452020-03-01 H.J. Lu <hongjiu.lu@intel.com>
1446
1447 PR ld/25618
1448 * plugin.c (plugin_object_p): Copy the no_export field to the IR
1449 dummy object.
1450 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Add
1451 PR ld/25618 tests.
1452 * testsuite/ld-plugin/pr25618.d: New file.
1453 * testsuite/ld-plugin/pr25618a.cc: Likewise.
1454 * testsuite/ld-plugin/pr25618a.h: Likewise.
1455 * testsuite/ld-plugin/pr25618b.cc: Likewise.
1456 * testsuite/ld-plugin/pr25618b.h: Likewise.
1457
5f602802
AM
14582020-02-27 Alan Modra <amodra@gmail.com>
1459
1460 PR 24511
1461 * testsuite/ld-mmix/b-fixo2.d: Adjust for .data change.
1462 * testsuite/ld-mmix/sec-2.d: Likewise.
1463 * testsuite/ld-mmix/sec-3.d: Likewise.
1464 * testsuite/ld-mmix/sec-4.d: Likewise.
1465 * testsuite/ld-mmix/spec802.d: Likewise.
1466 * testsuite/ld-mmix/spec803.d: Likewise.
1467 * testsuite/ld-mmix/spec804.d: Likewise.
1468 * testsuite/ld-mmix/spec805.d: Likewise.
1469 * testsuite/ld-mmix/spec806.d: Likewise.
1470 * testsuite/ld-mmix/spec807.d: Likewise.
1471 * testsuite/ld-mmix/spec808.d: Likewise.
1472
3312f67c
L
14732020-02-26 H.J. Lu <hongjiu.lu@intel.com>
1474
1475 PR ld/25593
1476 * testsuite/ld-plugin/lto.exp: Run PR ld/25593 tests.
1477 * testsuite/ld-plugin/pr25593.d: New file.
1478 * testsuite/ld-plugin/pr25593a-1.c: Likewise.
1479 * testsuite/ld-plugin/pr25593a-2.c: Likewise.
1480 * testsuite/ld-plugin/pr25593b.c: Likewise.
1481 * testsuite/ld-plugin/pr25593c.c: Likewise.
1482 * testsuite/ld-plugin/pr25593d.c: Likewise.
1483 * testsuite/ld-plugin/pr25593e.c: Likewise.
1484
dc1e8a47
AM
14852020-02-26 Alan Modra <amodra@gmail.com>
1486
1487 * emultempl/cskyelf.em: Indent labels correctly.
1488 * ldfile.c: Likewise.
1489 * ldlang.c: Likewise.
1490 * plugin.c: Likewise.
1491
e310298c
AM
14922020-02-26 Alan Modra <amodra@gmail.com>
1493
1494 PR 25593
1495 * ldelf.c (ldelf_try_needed): Add DT_NEEDED lib to input_bfds.
1496 (ldelf_after_open): Save state of input_bfds list before loading
1497 DT_NEEDED libs. Traverse input_bfds list adding DT_NEEDED tags.
1498 Restore input_bfds list.
1499 * testsuite/ld-cris/gotplt1.d: Adjust for changed .dynstr order.
1500
45c63c0f
NC
15012020-02-24 Nick Clifton <nickc@redhat.com>
1502
1503 * po/fr.po: Update French translation.
1504
7b3c2715
AM
15052020-02-22 Alan Modra <amodra@gmail.com>
1506
1507 PR 25585
1508 * NEWS: Mention better "PHDR segment not covered by LOAD segment"
1509 checking.
1510
fcaaac0a
SB
15112020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
1512
1513 PR 25537
1514 * emultempl/z80.em: Remove machine compatability checking.
1515
15162020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
1517
1518 PR 25517
1519 * testsuite/ld-z80/arch_ez80_adl.d: Update command line.
1520 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
1521 * testsuite/ld-z80/arch_r800.d: Likewise.
1522 * testsuite/ld-z80/arch_z180.d: Likewise.
1523 * testsuite/ld-z80/arch_z80n.d: Likewise.
1524 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
1525 * testsuite/ld-z80/comb_arch_z180_z80.d: Likewise.
1526 * testsuite/ld-z80/comb_arch_z80_ez80.d: Likewise.
1527 * testsuite/ld-z80/comb_arch_z80_z180.d: Likewise.
1528 * testsuite/ld-z80/comb_arch_z80_z80n.d: Likewise.
1529 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
1530 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
1531 * testsuite/ld-z80/relocs_f_ez80.d: Likewise.
1532 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
1533 * testsuite/ld-z80/relocs_f_z80n.d: Likewise.
1534
2e3cd5d0
AM
15352020-02-19 Alan Modra <amodra@gmail.com>
1536
1537 * testsuite/ld-plugin/pr25355.d: Allow alpha-linux nm result.
1538
0aa99dcd
L
15392020-02-10 H.J. Lu <hongjiu.lu@intel.com>
1540
1541 PR binutils/25355
1542 * testsuite/ld-plugin/lto.exp: Run PR binutils/25355 test.
1543 * testsuite/ld-plugin/pr25355.c: New file.
1544 * testsuite/ld-plugin/pr25355.d: Likewise.
1545 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Support compile
1546 only dump.
1547
6e569656
L
15482020-02-07 H.J. Lu <hongjiu.lu@intel.com>
1549
1550 * testsuite/ld-unique/unique.exp (contains_unique_symbol): Updated.
1551
9fc0b501
SB
15522020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1553
1554 PR 25469
1555 * emulparams/elf32z80.sh: Use z80 emulation.
1556 * emultempl/z80.em: Make generic to both COFF and ELF Z80 emulations.
1557 * emultempl/z80elf.em: Delete.
1558 * testsuite/ld-elf/pr22450.d: Expect to fail for the Z80.
1559 * testsuite/ld-elf/sec64k.exp: Fix Z80 assembly.
1560 * testsuite/ld-unique/pr21529.s: Avoid register name conflict.
1561 * testsuite/ld-unique/unique.s: Likewise.
1562 * testsuite/ld-unique/unique_empty.s: Likewise.
1563 * testsuite/ld-unique/unique_shared.s: Likewise.
1564 * testsuite/ld-unique/unique.d: Updated expected output.
1565 * testsuite/ld-z80/arch_z80n.d: New file.
1566 * testsuite/ld-z80/comb_arch_z80_z80n.d: New file.
1567 * testsuite/ld-z80/labels.s: Add more labels.
1568 * testsuite/ld-z80/relocs.s: Add more reloc tests.
1569 * testsuite/ld-z80/relocs_f_z80n.d: New file
1570
adb8754e
L
15712020-02-07 H.J. Lu <hongjiu.lu@intel.com>
1572
1573 PR ld/25022
1574 * testsuite/ld-elf/pr25022.d: Xfail more targets which don't use
1575 ldelf_before_place_orphans.
1576
9b538ba7
L
15772020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1578
1579 PR ld/25022
1580 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
1581 before_place_orphans_default.
1582 * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
1583 * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
1584 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
1585 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
1586 * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
1587 * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
1588 * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
1589 * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
1590 * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
1591 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Use
1592 ldelf_before_place_orphans.
1593 * ldelf.c (ldelf_before_place_orphans): New.
1594 * ldelf.h (ldelf_before_place_orphans): Likewise.
1595 * ldemul.c (ldemul_before_place_orphans): Likewise.
1596 (before_place_orphans_default): Likewise.
1597 * ldemul.h (ldemul_before_place_orphans): Likewise.
1598 (before_place_orphans_default): Likewise.
1599 (ld_emulation_xfer_struct): Add before_place_orphans.
1600 * ldlang.c (lang_process): Call ldemul_before_place_orphans
1601 before lang_place_orphans.
1602 * testsuite/ld-elf/pr25022.d: New file.
1603 * testsuite/ld-elf/pr25022.s: Likewise.
1604 * testsuite/ld-elf/pr25022.t: Likewise.
1605
5242a0a0
L
16062020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1607
1608 PR ld/25490
1609 * testsuite/ld-elf/pr25490-1.d: New file.
1610 * testsuite/ld-elf/pr25490-1.s: Likewise.
1611
b7d07216
L
16122020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1613
1614 PR ld/24526
1615 PR ld/25021
1616 PR ld/25490
1617 * testsuite/ld-elf/elf.exp: Run PR ld/25490 tests.
1618 * testsuite/ld-elf/pr24526.d: New file.
1619 * testsuite/ld-elf/pr24526.s: Likewise.
1620 * testsuite/ld-elf/pr25021.d: Likewise.
1621 * testsuite/ld-elf/pr25021.s: Likewise.
1622 * testsuite/ld-elf/pr25490-2-16.rd: Likewise.
1623 * testsuite/ld-elf/pr25490-2-32.rd: Likewise.
1624 * testsuite/ld-elf/pr25490-2-64.rd: Likewise.
1625 * testsuite/ld-elf/pr25490-2.s: Likewise.
1626 * testsuite/ld-elf/pr25490-3-16.rd: Likewise.
1627 * testsuite/ld-elf/pr25490-3-32.rd: Likewise.
1628 * testsuite/ld-elf/pr25490-3-64.rd: Likewise.
1629 * testsuite/ld-elf/pr25490-3.s: Likewise.
1630 * testsuite/ld-elf/pr25490-4-16.rd: Likewise.
1631 * testsuite/ld-elf/pr25490-4-32.rd: Likewise.
1632 * testsuite/ld-elf/pr25490-4-64.rd: Likewise.
1633 * testsuite/ld-elf/pr25490-4.s: Likewise.
1634 * testsuite/ld-elf/pr25490-5-16.rd: Likewise.
1635 * testsuite/ld-elf/pr25490-5-32.rd: Likewise.
1636 * testsuite/ld-elf/pr25490-5-64.rd: Likewise.
1637 * testsuite/ld-elf/pr25490-5.s: Likewise.
1638 * testsuite/ld-elf/pr25490-6-16.rd: Likewise.
1639 * testsuite/ld-elf/pr25490-6-32.rd: Likewise.
1640 * testsuite/ld-elf/pr25490-6-64.rd: Likewise.
1641 * testsuite/ld-elf/pr25490-6.s: Likewise.
1642
16432020-02-06 H.J. Lu <hongjiu.lu@intel.com>
9e4d08bb
L
1644
1645 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark
1646 z80 as not supported.
1647
bb4e012c
AM
16482020-02-06 Alan Modra <amodra@gmail.com>
1649
1650 * testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying
1651 targets that don't support ifunc rather than ones that do.
1652 (contains_irelative_reloc): Match R_PARISC_IPLT.
1653 * testsuite/ld-ifunc/lib.c: Don't use .set in asm.
1654 * testsuite/ld-ifunc/ifunc-23-x86.s,
1655 * testsuite/ld-ifunc/ifunc-24-x86.s,
1656 * testsuite/ld-ifunc/ifunc-25-x86.s,
1657 * testsuite/ld-ifunc/ifunc-4-local-x86.s,
1658 * testsuite/ld-ifunc/ifunc-4-x86.s: Define _main.
1659 * testsuite/ld-ifunc/ifunc-10-i386.d,
1660 * testsuite/ld-ifunc/ifunc-11-i386.d,
1661 * testsuite/ld-ifunc/ifunc-12-i386.d,
1662 * testsuite/ld-ifunc/ifunc-13-i386.d,
1663 * testsuite/ld-ifunc/ifunc-14a-i386.d,
1664 * testsuite/ld-ifunc/ifunc-14b-i386.d,
1665 * testsuite/ld-ifunc/ifunc-14c-i386.d,
1666 * testsuite/ld-ifunc/ifunc-14d-i386.d,
1667 * testsuite/ld-ifunc/ifunc-14e-i386.d,
1668 * testsuite/ld-ifunc/ifunc-14f-i386.d,
1669 * testsuite/ld-ifunc/ifunc-15-i386.d,
1670 * testsuite/ld-ifunc/ifunc-16-i386-now.d,
1671 * testsuite/ld-ifunc/ifunc-16-i386.d,
1672 * testsuite/ld-ifunc/ifunc-17a-i386.d,
1673 * testsuite/ld-ifunc/ifunc-17b-i386.d,
1674 * testsuite/ld-ifunc/ifunc-18a-i386.d,
1675 * testsuite/ld-ifunc/ifunc-18b-i386.d,
1676 * testsuite/ld-ifunc/ifunc-19a-i386.d,
1677 * testsuite/ld-ifunc/ifunc-19b-i386.d,
1678 * testsuite/ld-ifunc/ifunc-2-i386-now.d,
1679 * testsuite/ld-ifunc/ifunc-2-i386.d,
1680 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
1681 * testsuite/ld-ifunc/ifunc-2-local-i386.d,
1682 * testsuite/ld-ifunc/ifunc-20-i386.d,
1683 * testsuite/ld-ifunc/ifunc-21-i386.d,
1684 * testsuite/ld-ifunc/ifunc-22-i386.d,
1685 * testsuite/ld-ifunc/ifunc-26.d,
1686 * testsuite/ld-ifunc/ifunc-5a-i386.d,
1687 * testsuite/ld-ifunc/ifunc-5a-local-i386.d,
1688 * testsuite/ld-ifunc/ifunc-5b-i386.d,
1689 * testsuite/ld-ifunc/ifunc-5b-local-i386.d,
1690 * testsuite/ld-ifunc/ifunc-5r-local-i386.d,
1691 * testsuite/ld-ifunc/ifunc-6a-i386.d,
1692 * testsuite/ld-ifunc/ifunc-6b-i386.d,
1693 * testsuite/ld-ifunc/ifunc-7a-i386.d,
1694 * testsuite/ld-ifunc/ifunc-7b-i386.d,
1695 * testsuite/ld-ifunc/ifunc-8-i386.d,
1696 * testsuite/ld-ifunc/ifunc-9-i386.d,
1697 * testsuite/ld-ifunc/pr17154-i386-now.d,
1698 * testsuite/ld-ifunc/pr17154-i386.d: xfail lynxos, nto, and solaris.
1699
02e0be69
AM
17002020-02-06 Alan Modra <amodra@gmail.com>
1701
1702 * testsuite/lib/ld-lib.exp (is_generic): Delete.
1703 * testsuite/ld-unique/unique.exp: Exclude tic6x.
1704
b88237bc
AM
17052020-02-06 Alan Modra <amodra@gmail.com>
1706
1707 * configure.tgt (i[3-7]86-*-moss*): Don't clear targ_extra_ofiles.
1708 (i[3-7]86-*-openbsd*, x86_64-*-openbsd*): Add.
1709
a8c4d40b
L
17102020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1711
1712 PR gas/25380
1713 * testsuite/ld-i386/pr22001-1c.S: Use "unique,N" in .section
1714 directives.
1715 * testsuite/ld-i386/tls-gd1.S: Likewise.
1716 * testsuite/ld-x86-64/pr21481b.S: Likewise.
1717
5cebc931
JB
17182020-01-30 Jan Beulich <jbeulich@suse.com>
1719
1720 * ld.texi: Remove space between @option and brace.
1721
ef8f08ca
AM
17222020-01-29 Alan Modra <amodra@gmail.com>
1723
1724 PR 25477
1725 * ldelf.c (ldelf_check_ld_so_conf): Add prefix parameter and
1726 correct concat.
1727 (ldelf_after_open): Add prefix parameter.
1728 * ldelf.h (ldelf_after_open): Update prototype.
1729 * emultempl/elf.em (gld${EMULATION_NAME}_after_open): Pass $prefix
1730 to ldelf_after_open.
1731 * Makefile.am: Correct z80 dependencies.
1732 * Makefile.in: Regenerate.
1733
738174e1
AM
17342020-01-28 Alan Modra <amodra@gmail.com>
1735
1736 * ldexp.c (fold_name): Don't print bfd_link_hash_lookup failed
1737 in first phase.
1738
e3696f67
AM
17392020-01-27 Alan Modra <amodra@gmail.com>
1740
1741 * testsuite/ld-elfvers/vers.exp: Replace case statements with
1742 switch statements.
1743 * testsuite/ld-ifunc/ifunc.exp: Likewise.
1744 * testsuite/ld-unique/unique.exp: Likewise.
1745
3024a17a
AM
17462020-01-27 H.J. Lu <hongjiu.lu@intel.com>
1747 Alan Modra <amodra@gmail.com>
1748
1749 PR ld/25458
1750 * testsuite/ld-elf/pr25458.map: New file.
1751 * testsuite/ld-elf/pr25458.rd: Likewise.
1752 * testsuite/ld-elf/pr25458a.s: Likewise.
1753 * testsuite/ld-elf/pr25458b.s: Likewise.
1754 * testsuite/ld-elf/shared.exp: Run PR ld/25458 test.
1755
6a462ad4
L
17562020-01-22 H.J. Lu <hongjiu.lu@intel.com>
1757
1758 PR ld/25416
1759 * testsuite/ld-x86-64/tls.exp: Skip GNU2 TLS tests only without
1760 compiler support.
1761
a804e476
AM
17622020-01-22 Alan Modra <amodra@gmail.com>
1763
1764 * testsuite/ld-powerpc/tlsdesc3.d,
1765 * testsuite/ld-powerpc/tlsdesc3.wf,
1766 * testsuite/ld-powerpc/tlsdesc4.d,
1767 * testsuite/ld-powerpc/tlsdesc4.s,
1768 * testsuite/ld-powerpc/tlsdesc4.wf: New tests.
1769 * testsuite/ld-powerpc/powerpc.exp: Run them.
1770
9e7028aa
AM
17712020-01-22 Alan Modra <amodra@gmail.com>
1772
1773 * emultempl/ppc64elf.em (ppc64_opt, PARSE_AND_LIST_LONGOPTS),
1774 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Support
1775 --tls-get-addr-regsave and --no-tls-get-addr-regsave.
1776 (params): Init new field.
1777 * ld.texi (--tls-get-addr-regsave, --no-tls-get-addr-regsave):
1778 Document.
1779 * testsuite/ld-powerpc/tlsdesc.s,
1780 * testsuite/ld-powerpc/tlsdesc.d,
1781 * testsuite/ld-powerpc/tlsdesc.wf,
1782 * testsuite/ld-powerpc/tlsdesc2.d,
1783 * testsuite/ld-powerpc/tlsdesc2.wf,
1784 * testsuite/ld-powerpc/tlsexenors.d,
1785 * testsuite/ld-powerpc/tlsexenors.r,
1786 * testsuite/ld-powerpc/tlsexers.d,
1787 * testsuite/ld-powerpc/tlsexers.r,
1788 * testsuite/ld-powerpc/tlsexetocnors.d,
1789 * testsuite/ld-powerpc/tlsexetocrs.d,
1790 * testsuite/ld-powerpc/tlsexetocrs.r,
1791 * testsuite/ld-powerpc/tlsopt6.d,
1792 * testsuite/ld-powerpc/tlsopt6.wf: New.
1793 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
1794
c48acf6f
YC
17952020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1796
1797 PR 25417
1798 * ldlang.c (ldlang_open_ctf): Fix error message typo.
1799 * emultempl/z80elf.em (z80_elf_after_open): Likewise.
1800
1e161364
L
18012020-01-21 H.J. Lu <hongjiu.lu@intel.com>
1802
1803 * testsuite/ld-elf/pr23900-1.d: Adjusted.
1804
b4654b10
L
18052020-01-21 H.J. Lu <hongjiu.lu@intel.com>
1806
1807 * testsuite/ld-elf/pr23900-1.d: Also pass -l to readelf.
1808
26916852
NC
18092020-01-20 Nick Clifton <nickc@redhat.com>
1810
1811 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1812 * po/uk.po: Updated Ukranian translation.
1813
14470f07
L
18142020-01-20 H.J. Lu <hongjiu.lu@intel.com>
1815
1816 PR ld/25416
1817 * testsuite/ld-x86-64/pr25416-1.s: New file
1818 * testsuite/ld-x86-64/pr25416-1a.d: Likewise.
1819 * testsuite/ld-x86-64/pr25416-1b.d: Likewise.
1820 * testsuite/ld-x86-64/pr25416-1.s: Likewise.
1821 * testsuite/ld-x86-64/pr25416-2.s: Likewise.
1822 * testsuite/ld-x86-64/pr25416-2a.d: Likewise.
1823 * testsuite/ld-x86-64/pr25416-2b.d: Likewise.
1824 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1825 * testsuite/ld-x86-64/pr25416-3.s: Likewise.
1826 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1827 * testsuite/ld-x86-64/pr25416-4.s: Likewise.
1828 * testsuite/ld-x86-64/pr25416-5a.c: Likewise.
1829 * testsuite/ld-x86-64/pr25416-5b.s: Likewise.
1830 * testsuite/ld-x86-64/pr25416-5c.s: Likewise.
1831 * testsuite/ld-x86-64/pr25416-5d.s: Likewise.
1832 * testsuite/ld-x86-64/pr25416-5e.s: Likewise.
1833 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/25416 tests.
1834
b9ca1af6
AM
18352020-01-20 Alan Modra <amodra@gmail.com>
1836
1837 * testsuite/ld-powerpc/tlsexe.d: Match new __tls_get_addr stub.
1838 * testsuite/ld-powerpc/tlsexeno.d: Likewise.
1839 * testsuite/ld-powerpc/tlsexetoc.d: Likewise.
1840 * testsuite/ld-powerpc/tlsexetocno.d: Likewise.
1841 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
1842
69d24618
RM
18432020-01-18 Roland McGrath <mcgrathr@google.com>
1844
1845 * testsuite/ld-x86-64/align-branch-1.d: Loosen instruction regexps
1846 to admit whatever absolute address. The label-relative address is
1847 what the test needs to verify.
1848
1b1bb2c6
NC
18492020-01-18 Nick Clifton <nickc@redhat.com>
1850
1851 * configure: Regenerate.
1852 * po/ld.pot: Regenerate.
1853
ae774686
NC
18542020-01-18 Nick Clifton <nickc@redhat.com>
1855
1856 Binutils 2.34 branch created.
1857
6d0be74b
JL
18582020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1859
1860 * scripttempl/elf32msp430_3.sc: Remove.
1861
0c3d9485
JL
18622020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1863
1864 * scripttempl/elf32msp430.sc: Add input section rules for
1865 .upper.{text,data,rodata,bss}.
1866 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
1867 * testsuite/ld-msp430-elf/upper-input-sections.s: New test.
1868
0d1cc75d
LB
18692020-01-15 Lars Brinkhoff <lars@nocrew.org>
1870
1871 PR 20694
1872 * temulparams/pdp11.sh (TARGET_PAGE_SIZE): Set to 8192.
1873
131cb553
JL
18742020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1875
1876 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
1877 * testsuite/ld-msp430-elf/reloc-lo-430x.s: New test.
1878
e1c6cf61
AM
18792020-01-15 Alan Modra <amodra@gmail.com>
1880
1881 * testsuite/ld-powerpc/ambiguousv1b.d: Adjust expected output.
1882 * testsuite/ld-powerpc/funref.s: Align func_tab.
1883 * testsuite/ld-powerpc/funref2.s: Likewise.
1884 * testsuite/ld-powerpc/funv1.s: Add dot symbols.
1885
e44925ae
LC
18862020-01-14 Lili Cui <lili.cui@intel.com>
1887
1888 * testsuite/ld-i386/align-branch-1.d: Updated for i686-pc-elf.
1889
8c7e1c04
AM
18902020-01-13 Alan Modra <amodra@gmail.com>
1891
1892 * po/BLD-POTFILES.in: Regenerate.
1893
4f18d742
CZ
18942020-01-13 Claudiu Zissulescu <claziss@gmail.com>
1895
1896 * testsuite/ld-arc/relax-local-pic.d: Improve matching patterns.
1897
5e4f7e05
CZ
18982020-01-13 Claudiu Zissulescu <claziss@gmail.com>
1899
1900 * Makefile.am: Remove earcelf_prof.c and earclinux_prof.c
1901 emulations.
1902 * configure.tgt: Likewise.
1903 * Makefile.in: Regenerate.
1904 * emulparams/arcelf_prof.sh: Remove file.
1905 * emulparams/arclinux_prof.sh: Likewise.
1906
8cb31bad
CZ
19072020-01-13 Claudiu Zissulescu <claziss@gmail.com>
1908
1909 * scripttempl/elfarcv2.sc : Allow interrupt vector table to be
1910 located at an arbitrary address. Use DWARF.sc file.
1911 * scripttempl/elfarc.sc: Use DWARF.sc file.
1912
85e290dc
AM
19132020-01-07 Alan Modra <amodra@gmail.com>
1914
1915 * testsuite/ld-mips-elf/eh-frame5.s,
1916 * testsuite/ld-mips-elf/ehdr_start-new.s,
1917 * testsuite/ld-mips-elf/ehdr_start-o32.s,
1918 * testsuite/ld-mips-elf/mips16-call-global-1.s,
1919 * testsuite/ld-mips-elf/mips16-intermix-1.s,
1920 * testsuite/ld-mips-elf/mips16-pic-1b.s,
1921 * testsuite/ld-mips-elf/mips16-pic-4c.s,
1922 * testsuite/ld-mips-elf/no-shared-1-n64.s,
1923 * testsuite/ld-mips-elf/no-shared-1-o32.s,
1924 * testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s,
1925 * testsuite/ld-mips-elf/pic-and-nonpic-1b.s,
1926 * testsuite/ld-mips-elf/pic-and-nonpic-2a.s,
1927 * testsuite/ld-mips-elf/pic-and-nonpic-3b.s,
1928 * testsuite/ld-mips-elf/pic-and-nonpic-4b.s,
1929 * testsuite/ld-mips-elf/pic-and-nonpic-5a.s,
1930 * testsuite/ld-mips-elf/pic-and-nonpic-6-n32c.s,
1931 * testsuite/ld-mips-elf/pic-and-nonpic-6-n64c.s,
1932 * testsuite/ld-mips-elf/pic-and-nonpic-6-o32c.s,
1933 * testsuite/ld-mips-elf/pie.s,
1934 * testsuite/ld-mips-elf/relax-jalr.s: Revert 2019-12-17 change.
1935
0e1f1593
NC
19362020-01-06 Nick Clifton <nickc@redhat.com>
1937
1938 PR 25327
1939 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
1940 command line when building libcomm1.o and pr13250 tests.
1941 * testsuite/ld-plugin/lto.exp: Likewise for pr20267 tests.
1942
d2dbcb18
NC
19432020-01-06 Nick Clifton <nickc@redhat.com>
1944
1945 PR 25326
1946 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
1947 command line when building pr19579 binaries.
1948
dc9bd8c9
HD
19492020-01-03 Hannes Domani <ssbssa@yahoo.de>
1950
1951 * emultempl/pe.em: Add new option --enable-reloc-section.
1952 * emultempl/pep.em: Likewise.
1953 * ld.texi: Document --enable-reloc-section.
1954 * pe-dll.c (pe_dll_build_sections): Use pe_dll_enable_reloc_section.
1955 (pe_dll_fill_sections): Simplify by calling pe_exe_fill_sections.
1956 * pe-dll.h: Add extern declaration of option flag.
1957 * pep-dll.c (pe_dll_enable_reloc_section):
1958 Add alias define for pep_dll_enable_reloc_section.
1959 * pep-dll.h: Add extern declaration of option flag.
1960
6655dba2
SB
19612020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1962
1963 * Makefile.am: Add new target z80-elf
1964 * configure.tgt: Likewise.
1965 * Makefile.in: Regenerate.
1966 * emultempl/z80.em: Add support for eZ80 and Z180 architectures.
1967 * emulparams/elf32z80.sh: New file.
1968 * emultempl/z80elf.em: Likewise.
1969 * testsuite/ld-elf/comm-data4.s: Fix for Z80.
1970 * testsuite/ld-elf/comm-data5.s: Fix for Z80.
1971 * testsuite/ld-scripts/fill16.d: Fix for Z80.
1972 * testsuite/ld-z80/arch_ez80_adl.d: Likewise.
1973 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
1974 * testsuite/ld-z80/arch_r800.d: Likewise.
1975 * testsuite/ld-z80/arch_z180.d: Likewise.
1976 * testsuite/ld-z80/arch_z80.d: Likewise.
1977 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
1978 * testsuite/ld-z80/comb_arch_z180.d: Likewise.
1979 * testsuite/ld-z80/labels.s: Likewise.
1980 * testsuite/ld-z80/relocs.s: Likewise.
1981 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
1982 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
1983 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
1984 * testsuite/ld-z80/z80.exp: Likewise.
1985 * NEWS: Mention the new support.
1986
0db131fb
TC
19872020-01-02 Tamar Christina <tamar.christina@arm.com>
1988
1989 PR 25210
1990 PR 24753
1991 * emultempl/aarch64elf.em (elf${ELFSIZE}_aarch64_add_stub_section):
1992 Remove SEC_LINKER_CREATED.
1993 * testsuite/ld-aarch64/aarch64-elf.exp: Add erratum835769-843419.
1994 * testsuite/ld-aarch64/erratum835769-843419.d: New test.
1995
b14ce8bf
AM
19962020-01-01 Alan Modra <amodra@gmail.com>
1997
1998 Update year range in copyright notice of all files.
1999
0b114740 2000For older changes see ChangeLog-2019
3499769a 2001\f
0b114740 2002Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
2003
2004Copying and distribution of this file, with or without modification,
2005are permitted in any medium without royalty provided the copyright
2006notice and this notice are preserved.
2007
2008Local Variables:
2009mode: change-log
2010left-margin: 8
2011fill-column: 74
2012version-control: never
2013End:
This page took 0.333818 seconds and 4 git commands to generate.