PR26103 testcase
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2020-06-15 Alan Modra <amodra@gmail.com>
2
3 PR 26103
4 * testsuite/ld-linkonce/ref1.s,
5 * testsuite/ld-linkonce/ref2.s,
6 * testsuite/ld-linkonce/sym1.s,
7 * testsuite/ld-linkonce/sym2.s,
8 * testsuite/ld-linkonce/sym3.s: New test files.
9 * testsuite/ld-linkonce/linkonce.exp: Run tests for PE too.
10 Add pr26103 test. Remove unnecessary load_lib.
11
12 2020-06-15 Alan Modra <amodra@gmail.com>
13
14 * testsuite/ld-linkonce/zeroeh_x.s: Rename from x.s.
15 * testsuite/ld-linkonce/zeroeh_y.s: Rename from y.s.
16 * testsuite/ld-linkonce/zeroehl32.d: Adjust for renaming. Support
17 big-endian output. Run for powerpc.
18
19 2020-06-11 Alan Modra <amodra@gmail.com>
20
21 * testsuite/ld-plugin/lto.exp (lto_link_tests): Move lto-6,
22 pr12760, pr23818 and pr23958 tests to..
23 (lto_link_elf_tests): ..here.
24
25 2020-06-11 Nick Clifton <nickc@redhat.com>
26
27 * testsuite/ld-elf/pr26094-1b.c (main): Change return type to
28 int.
29
30 2020-06-10 Alan Modra <amodra@gmail.com>
31
32 * testsuite/ld-elf/linux-x86.exp: Build tests when non-native.
33 (check_pr25749b): Add optional args. Set expected pass file
34 from args. Run -1b and -2a tests with passall.out.
35 * testsuite/ld-elf/passall.out: New file.
36 * testsuite/ld-elf/pr25749-1.c: Adjust to pass with older glibc.
37 * testsuite/ld-elf/pr25749-2.c: Likewise.
38 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Use
39 regexp_diff to compare expected output from running binary.
40
41 2020-06-10 H.J. Lu <hongjiu.lu@intel.com>
42
43 PR ld/26094
44 * testsuite/ld-elf/pr26094-1.ver: New fike.
45 * testsuite/ld-elf/pr26094-1a.c: Likewise.
46 * testsuite/ld-elf/pr26094-1a.rd: Likewise.
47 * testsuite/ld-elf/pr26094-1b.c: Likewise.
48 * testsuite/ld-elf/pr26094-1b.rd: Likewise.
49 * testsuite/ld-elf/pr26094-1c.c: Likewise.
50 * testsuite/ld-elf/shared.exp: Run ld/26094 tests.
51
52 2020-06-09 H.J. Lu <hongjiu.lu@intel.com>
53
54 PR ld/18801
55 * testsuite/ld-i386/i386.exp: Run ifunc-textrel-1a,
56 ifunc-textrel-1b, ifunc-textrel-2a and ifunc-textrel-2b.
57 * testsuite/ld-x86-64/x86-64.exp: Likewise.
58 * testsuite/ld-i386/ifunc-textrel-1a.d: Likewise.
59 * testsuite/ld-i386/ifunc-textrel-1b.d: Likewise.
60 * testsuite/ld-i386/ifunc-textrel-2a.d: Likewise.
61 * testsuite/ld-i386/ifunc-textrel-2b.d: Likewise.
62 * testsuite/ld-x86-64/ifunc-textrel-1.s: Likewise.
63 * testsuite/ld-x86-64/ifunc-textrel-1a.d: Likewise.
64 * testsuite/ld-x86-64/ifunc-textrel-1b.d: Likewise.
65 * testsuite/ld-x86-64/ifunc-textrel-2.s: Likewise.
66 * testsuite/ld-x86-64/ifunc-textrel-2a.d: Likewise.
67 * testsuite/ld-x86-64/ifunc-textrel-2b.d: Likewise.
68 * testsuite/ld-i386/pr18801a.d: Expect warning for IFUNC
69 resolvers.
70 * testsuite/ld-i386/pr18801b.d: Likewise.
71 * estsuite/ld-x86-64/pr18801a.d: Likewise.
72 * estsuite/ld-x86-64/pr18801b.d: Likewise.
73
74 2020-06-09 Alan Modra <amodra@gmail.com>
75
76 PR 26065
77 * testsuite/ld-elf/shared.exp: Compile dl4main.c -fPIC.
78 (dl4e, dl4f): Expect dl4a.out.
79 * testsuite/ld-elf/dl4e.out: Delete.
80
81 2020-06-07 H.J. Lu <hongjiu.lu@intel.com>
82
83 * testsuite/ld-elf/shared.exp: Pass $LFLAGS to PR ld/21703
84 shared test.
85
86 2020-06-07 H.J. Lu <hongjiu.lu@intel.com>
87
88 * testsuite/ld-elf/shared.exp: Xfail pr20995/pr20995-2 for
89 tic6x-*-*.
90
91 2020-06-07 H.J. Lu <hongjiu.lu@intel.com>
92
93 * testsuite/ld-elf/pr11304.d: Skip tic6x-*-elf.
94
95 2020-06-06 Alan Modra <amodra@gmail.com>
96
97 * testsuite/ld-elf/comm-data.exp: Don't xfail arm or bfin-linux.
98
99 2020-06-06 Alan Modra <amodra@gmail.com>
100
101 * lexsup.c (ld_options): Accept -plugin and -plugin-opt when
102 !ENABLE_PLUGINS.
103 * testsuite/lib/ld-lib.exp (check_plugin_api_available): Adjust.
104
105 2020-06-05 Nelson Chu <nelson.chu@sifive.com>
106
107 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Rename to
108 attr-merge-priv-spec-01.d.
109 * testsuite/ld-riscv-elf/attr-merge-priv-spec-c.s: Set spec to 1.11.
110 * testsuite/ld-riscv-elf/attr-merge-priv-spec-d.s: Empty priv spec set.
111 * testsuite/ld-riscv-elf/attr-merge-priv-spec-02.d: New testcase.
112 * testsuite/ld-riscv-elf/attr-merge-priv-spec-03.d: Likewise.
113 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
114 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
115 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
116 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
117 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
118 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
119
120 2020-06-05 Nelson Chu <nelson.chu@sifive.com>
121
122 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: The CSR isn't used,
123 so ignore the -mpriv-spec setting.
124 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
125 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
126 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
127 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
128 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
129 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
130 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
131 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
132 * testsuite/ld-riscv-elf/call-relax.d: Add -mno-arch-attr.
133
134 2020-06-04 H.J. Lu <hongjiu.lu@intel.com>
135
136 PR ld/26080
137 * testsuite/ld-elf/comm-data.exp: Remove copy_reloc.
138 * testsuite/ld-elf/comm-data2r.rd: Removed.
139 * testsuite/ld-elf/comm-data2r.sd: Likewise.
140 * testsuite/ld-elf/comm-data2r.xd: Likewise.
141
142 2020-06-04 Alan Modra <amodra@gmail.com>
143
144 * testsuite/config/default.exp: Remove global directive outside
145 proc body.
146 * testsuite/ld-bootstrap/bootstrap.exp: Likewise.
147 * testsuite/ld-elf/compress.exp: Likewise.
148 * testsuite/ld-elf/elf.exp: Likewise.
149 * testsuite/ld-elf/exclude.exp: Likewise.
150 * testsuite/ld-elf/frame.exp: Likewise.
151 * testsuite/ld-elf/indirect.exp: Likewise.
152 * testsuite/ld-elf/linux-x86.exp: Likewise.
153 * testsuite/ld-elf/shared.exp: Likewise.
154 * testsuite/ld-elf/tls.exp: Likewise.
155 * testsuite/ld-elf/tls_common.exp: Likewise.
156 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
157 * testsuite/ld-elfweak/elfweak.exp: Likewise.
158 * testsuite/ld-frv/fdpic.exp: Likewise.
159 * testsuite/ld-frv/tls.exp: Likewise.
160 * testsuite/ld-gc/gc.exp: Likewise.
161 * testsuite/ld-i386/i386.exp: Likewise.
162 * testsuite/ld-i386/no-plt.exp: Likewise.
163 * testsuite/ld-ifunc/ifunc.exp: Likewise.
164 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
165 * testsuite/ld-nios2/nios2.exp: Likewise.
166 * testsuite/ld-plugin/lto.exp: Likewise.
167 * testsuite/ld-plugin/plugin.exp: Likewise.
168 * testsuite/ld-powerpc/export-class.exp: Likewise.
169 * testsuite/ld-scripts/align.exp: Likewise.
170 * testsuite/ld-scripts/crossref.exp: Likewise.
171 * testsuite/ld-scripts/defined.exp: Likewise.
172 * testsuite/ld-scripts/overlay-size.exp: Likewise.
173 * testsuite/ld-scripts/provide.exp: Likewise.
174 * testsuite/ld-scripts/weak.exp: Likewise.
175 * testsuite/ld-selective/selective.exp: Likewise.
176 * testsuite/ld-sh/rd-sh.exp: Likewise.
177 * testsuite/ld-size/size.exp: Likewise.
178 * testsuite/ld-srec/srec.exp: Likewise.
179 * testsuite/ld-x86-64/mpx.exp: Likewise.
180 * testsuite/ld-x86-64/no-plt.exp: Likewise.
181 * testsuite/ld-x86-64/x86-64.exp: Likewise.
182
183 2020-06-04 Alan Modra <amodra@gmail.com>
184
185 * testsuite/ld-dynamic/export-dynamic-symbol-2.d: Match output for
186 mips-sgi-irix6.
187 * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: Likewise.
188 * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: Likewise.
189 * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: Likewise.
190 * testsuite/ld-dynamic/export-dynamic-symbol.exp: Exclude targets
191 with poor PIE support.
192
193 2020-06-04 Alan Modra <amodra@gmail.com>
194
195 * testsuite/ld-plugin/lto.exp (pr12758.exe): Add NOPIE_LDFLAGS.
196 * testsuite/ld-unique/unique.exp: Add NOPIE_LDFLAGS to unique
197 executable and dynamic executable tests.
198
199 2020-06-03 H.J. Lu <hongjiu.lu@intel.com>
200
201 * testsuite/config/default.exp (NOSANTIZE_CFLAGS): New.
202 * testsuite/ld-elf/linux-x86.exp: Add $NOSANTIZE_CFLAGS to
203 tests with run_ld_link_exec_tests.
204 * testsuite/ld-elf/shared.exp: Add $NOSANTIZE_CFLAGS to tests
205 with run_ld_link_tests.
206 * testsuite/ld-elf/tls.exp: Likewise.
207 * testsuite/ld-elfweak/elfweak.exp: Add $NOSANTIZE_CFLAGS to
208 tests with ld_link.
209 * testsuite/ld-gc/gc.exp: Add $NOSANTIZE_CFLAGS to cflags.
210 * testsuite/ld-plugin/lto.exp: Add $NOSANTIZE_CFLAGS to tests
211 with run_ld_link_tests.a
212 * testsuite/ld-plugin/plugin.exp: Append $NOSANTIZE_CFLAGS to
213 CFLAGS.
214 * testsuite/ld-selective/selective.exp: Add $NOSANTIZE_CFLAGS
215 to cflags and cxxflags.
216 * testsuite/ld-srec/srec.exp: Append $NOSANTIZE_CFLAGS to CC
217 and CXX.
218 * testsuite/ld-x86-64/plt-main-ibt-x32.dd: Updated for
219 -fsanitize=undefined.
220 * testsuite/ld-x86-64/plt-main-ibt.dd: Likewise.
221 * testsuite/ld-x86-64/x86-64.exp: Add $NOSANTIZE_CFLAGS to
222 tests with run_cc_link_tests and run_ld_link_tests.
223
224 2020-06-03 Fangrui Song <maskray@google.com>
225 H.J. Lu <hongjiu.lu@intel.com>
226
227 PR ld/25910
228 * NEWS: Mention --export-dynamic-symbol[-list].
229 * ld.texi: Document --export-dynamic-symbol[-list].
230 * ldgram.y: Pass current_dynamic_list_p to
231 lang_append_dynamic_list.
232 * ldlang.c (current_dynamic_list_p): New.
233 (ang_append_dynamic_list): Updated to take a pointer to
234 struct bfd_elf_dynamic_list * argument instead of using
235 link_info.dynamic_list.
236 (lang_append_dynamic_list_cpp_typeinfo): Pass
237 &link_info.dynamic_list to ang_append_dynamic_list.
238 (lang_append_dynamic_list_cpp_new): Likewise.
239 * ldlang.h (current_dynamic_list_p): New.
240 (lang_append_dynamic_list): Add a pointer to
241 struct bfd_elf_dynamic_list * argument.
242 * ldlex.h (option_values): Add OPTION_EXPORT_DYNAMIC_SYMBOL and
243 OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
244 * lexsup.c (ld_options): Add entries for
245 OPTION_EXPORT_DYNAMIC_SYMBOL and
246 OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
247 (parse_args): Handle --export-dynamic-symbol and
248 --export-dynamic-symbol-list.
249 * testsuite/ld-dynamic/export-dynamic-symbol-1.d: New.
250 * testsuite/ld-dynamic/export-dynamic-symbol-2.d: New.
251 * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: New.
252 * testsuite/ld-dynamic/export-dynamic-symbol-list-1.d: New.
253 * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: New.
254 * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: New.
255 * testsuite/ld-dynamic/export-dynamic-symbol.exp: New.
256 * testsuite/ld-dynamic/export-dynamic-symbol.s: New.
257 * testsuite/ld-dynamic/foo-bar.list: New.
258 * testsuite/ld-dynamic/foo.list: New.
259 * testsuite/ld-dynamic/foo.s: New.
260 * testsuite/ld-dynamic/fstar.list: New.
261 * testsuite/ld-elf/dlempty.list: New.
262 * testsuite/ld-elf/shared.exp: Add tests for
263 --export-dynamic-symbol and --export-dynamic-symbol-list.
264
265 2020-06-03 Jan Beulich <jbeulich@suse.com>
266
267 * testsuite/ld-elf/linux-x86.exp: Make copied source files
268 writeable.
269
270 2020-05-28 Nick Clifton <nickc@redhat.com>
271
272 PR 26047
273 * ldelf.c (ldelf_after_open): Fail if attempting to link one
274 executable into another. Ensure that the test is made for all
275 forms of linking.
276
277 2020-05-28 H.J. Lu <hongjiu.lu@intel.com>
278
279 * NEWS: Mention --enable-textrel-check=yes is default for
280 Linux/x86 targets.
281 * configure.tgt (ac_default_ld_textrel_check): Set to yes if
282 unset for Linux/x86 targets.
283
284 2020-05-28 H.J. Lu <hongjiu.lu@intel.com>
285
286 PR ld/20824
287 * NEWS: Mention --enable-textrel-check=[no|yes|warning|error].
288 * configure.ac: Add --enable-textrel-check=[no|yes|warning|error].
289 (DEFAULT_LD_TEXTREL_CHECK): New AC_DEFINE_UNQUOTED.
290 (DEFAULT_LD_TEXTREL_CHECK_WARNING): Likewise.
291 * ldmain.c (main): Initialize link_info.textrel_check to
292 DEFAULT_LD_TEXTREL_CHECK.
293 * lexsup.c (ld_options): Check DEFAULT_LD_TEXTREL_CHECK_WARNING.
294 * config.in: Regenerated.
295 * configure: Likewise.
296
297 2020-05-28 Nick Clifton <nickc@redhat.com>
298
299 * lexsup.c (parse_args): Generate an error if a name is not
300 provided to the -Map option.
301 (ld_options): Mention that the -Map option supports a directory
302 name as an argument.
303 * NEWS: Remove mention of support for an empty string as an
304 argument to -Map.
305 * ld.texi: Likewise.
306
307 2020-05-27 Hans-Peter Nilsson <hp@axis.com>
308
309 PR ld/22909
310 * testsuite/ld-elf/pr19539.d: Don't xfail for cris*-*-*.
311
312 2020-05-27 Rasmus Villemoes <rv@rasmusvillemoes.dk>
313 Nick Clifton <nickc@redhat.com>
314
315 * lexsup.c (parse_args): If the map filename is defined but empty
316 create a name based upon the output file name. If the name is
317 defined but refers to a directory create a file inside the
318 directory based on the output file name.
319 * ld.texi: Document the new feature.
320 * testsuite/ld-script/map-address.exp: Add test of new feature.
321 * NEWS: Mention the new feature.
322
323 2020-05-27 H.J. Lu <hongjiu.lu@intel.com>
324
325 PR ld/22909
326 * NEWS: Mention --warn-textrel.
327 * ld.texi: Update -z text/notext/textoff. Add --warn-textrel.
328 Remove --warn-shared-textrel.
329 * ldlex.h (option_values): Rename OPTION_WARN_SHARED_TEXTREL to
330 OPTION_WARN_TEXTREL.
331 * lexsup.c (ld_options): Add --warn-textrel. Obsolete
332 --warn-shared-textrel.
333 (parse_args): Updated.
334 (elf_shlib_list_options): Check link_info.textrel_check.
335 * emultempl/elf.em: Updated.
336 * testsuite/ld-elf/pr19539.d: Replace -z notext with
337 --warn-textrel. Expect a warning.
338 * testsuite/ld-i386/warn1.d: Update expected warning.
339
340 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
341
342 * testsuite/ld-ifunc/ifunc-23a-x86.d: Skip *-*-lynxos *-*-nto*.
343 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
344 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
345
346 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
347
348 * testsuite/ld-x86-64/x86-64.exp: Pass -z notext to linker.
349
350 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
351
352 * testsuite/ld-elf/eh6.d: Pass -z notext to linker.
353 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
354 * testsuite/ld-elf/pr19539.d: Likewise.
355 * testsuite/ld-elfvers/vers.exp: Likewise.
356 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
357 * testsuite/ld-i386/i386.exp: Likewise.
358 * testsuite/ld-i386/nogot1.d: Likewise.
359 * testsuite/ld-i386/pr19539.d: Likewise.
360 * testsuite/ld-i386/pr19636-2a.d: Likewise.
361 * testsuite/ld-i386/pr19636-2b.d: Likewise.
362 * testsuite/ld-i386/pr19636-2c.d: Likewise.
363 * testsuite/ld-i386/pr19636-2d.d: Likewise.
364 * testsuite/ld-i386/pr19636-2e.d: Likewise.
365 * testsuite/ld-i386/pr19636-3d.d: Likewise.
366 * testsuite/ld-i386/pr19636-3e.d: Likewise.
367 * testsuite/ld-i386/pr19939b.d: Likewise.
368 * testsuite/ld-i386/undefweaka.d: Likewise.
369 * testsuite/ld-i386/undefweakb.d: Likewise.
370 * testsuite/ld-shared/shared.exp: Likewise.
371 * testsuite/ld-size/size.exp: Likewise.
372 * testsuite/ld-unique/unique.exp: Likewise.
373 * testsuite/ld-x86-64/pie1.d: Likewise.
374 * testsuite/ld-x86-64/pr19539a.d: Likewise.
375 * testsuite/ld-x86-64/pr19539b.d: Likewise.
376 * testsuite/ld-x86-64/pr19636-1d.d: Likewise.
377 * testsuite/ld-x86-64/pr19636-1e.d: Likewise.
378 * testsuite/ld-x86-64/pr19807-1a.d: Likewise.
379 * testsuite/ld-x86-64/pr19807-1b.d: Likewise.
380 * testsuite/ld-x86-64/pr19807-2b.d: Likewise.
381 * testsuite/ld-x86-64/pr19807-2c.d: Likewise.
382 * testsuite/ld-x86-64/pr19807-2d.d: Likewise.
383 * testsuite/ld-x86-64/pr19807-2e.d: Likewise.
384 * testsuite/ld-x86-64/pr19939b.d: Likewise.
385 * testsuite/ld-x86-64/x86-64.exp: Likewise.
386
387 2020-05-24 Fangrui Song <maskray@google.com>
388
389 PR ld/26018
390 * lexsup.c (parse_args): Simplify.
391 * testsuite/ld-elf/dl4e.out: New.
392 * testsuite/ld-elf/shared.exp: Updated for PR ld/26018 tests.
393
394 2020-05-23 H.J. Lu <hongjiu.lu@intel.com>
395
396 PR ld/26018
397 * testsuite/ld-i386/i386.exp: Add a -Bsymbolic-functions test.
398 * testsuite/ld-x86-64/x86-64.exp: Likewise.
399 * testsuite/ld-i386/pr26018.d: New file.
400 * testsuite/ld-x86-64/pr26018.d: Likewise.
401 * testsuite/ld-x86-64/pr26018.s: Likewise.
402
403 2020-05-21 Alan Modra <amodra@gmail.com>
404
405 * deffilep.y: Replace "if (x) free (x)" with "free (x)" thoughout.
406 * emultempl/elf.em: Likewise.
407 * emultempl/msp430.em: Likewise.
408 * emultempl/pe.em: Likewise.
409 * emultempl/pep.em: Likewise.
410 * emultempl/ppc64elf.em: Likewise.
411 * emultempl/xtensaelf.em: Likewise.
412 * ldelf.c: Likewise.
413 * ldfile.c: Likewise.
414 * ldmain.c: Likewise.
415 * ldmisc.c: Likewise.
416 * lexsup.c: Likewise.
417 * pe-dll.c: Likewise.
418
419 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
420
421 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Updated
422 priv attributes according to the -mpriv-spec option.
423 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
424 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
425 * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
426 * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
427 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
428 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
429 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
430 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
431 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
432 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
433 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
434
435 2020-05-20 Alan Modra <amodra@gmail.com>
436
437 PR 25993
438 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't copy
439 other_bfd_filename for bfd_set_filename, and test result of
440 bfd_set_filename call. Don't create a new is->filename, simply
441 copy from bfd filename. Free new_name after bfd_set_filename.
442 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
443
444 2020-05-19 Siddhesh Poyarekar <siddesh.poyarekar@arm.com>
445
446 * testsuite/ld-aarch64/aarch64-elf.exp: New test
447 emit-relocs-560.
448 * testsuite/ld-aarch64/emit-relocs-560.d: New file.
449 * testsuite/ld-aarch64/emit-relocs-560.s: New file.
450
451 2020-05-19 Alan Modra <amodra@gmail.com>
452
453 * emultempl/beos.em (sort_by_file_name): Use bfd_get_filename
454 rather than accessing bfd->filename directly.
455 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
456 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
457 * emultempl/spuelf.em (embedded_spu_file): Likewise.
458 * ldlang.c (input_statement_is_archive_path, wild_sort),
459 (check_excluded_libs): Likewise.
460 * ldmain.c (add_archive_element): Likewise.
461 * ldmisc.c (vfinfo): Likewise.
462 * pe-dll.c (auto_export, generate_edata, pe_create_import_fixup),
463 (pe_dll_generate_implib, pe_process_import_defs): Likewise.
464 * plugin.c (plugin_object_p): Likewise.
465
466 2020-05-18 Douglas B Rupp <rupp@adacore.com>
467
468 * ldemul.h (ldemul_print_symbol): New.
469 (ld_emulation_xfer_type) <print_symbol): Likewise.
470 * ldemul.c (ldemul_print_symbol): New.
471 * ldlang.c (SECTION_NAME_MAP_LANGTH): Move to ...
472 (print_one_symbol): Make global and move declaration to ...
473 (print_all_symbols): Rename print_one_symbol to ldemul_print_symbol
474 (print_input_section): Likewise
475 * ldlang.h: ... here.
476 * emultempl/aix.em (gld${EMULATION_NAME}_print_symbol): New.
477 (ld_emulation_xfer_struct): Use it.
478 * emultempl/armcoff.em (ld_emulation_xfer_struct): Add print_symbol
479 and default to NULL.
480 * emultempl/beos.em (ld_emulation_xfer_struct): Likewise
481 * emultempl/elf.em (ld_emulation_xfer_struct): Likewise
482 * emultempl/generic.em (ld_emulation_xfer_struct): Likewise
483 * emultempl/linux.em (ld_emulation_xfer_struct): Likewise
484 * emultempl/msp430.em (ld_emulation_xfer_struct): Likewise
485 * emultempl/pe.em (ld_emulation_xfer_struct): Likewise
486 * emultempl/pep.em (ld_emulation_xfer_struct): Likewise
487 * emultempl/ticoff.em (ld_emulation_xfer_struct): Likewise
488 * emultempl/vanilla.em (ld_emulation_xfer_struct): Likewise
489
490 2020-05-18 Sergei Trofimovich <siarheit@google.com>
491
492 * ldmain.c (add_archive_element): Fix s/claimi/claim/ typo
493 in info message.
494
495 2020-05-18 Nick Clifton <nickc@redhat.com>
496
497 * po/sv.po: Update Swedish translation.
498
499 2020-05-18 Nick Clifton <nickc@redhat.com>
500
501 PR 25993
502 * emultempl/pe.em (_after_open): Check for duplicate filename
503 pointers before renaming the dll.
504 * emultempl/pep.em (_after_open): Likewise.
505
506 2020-05-13 Nick Clifton <nickc@redhat.com>
507
508 PR 25979
509 * lexsup.c (elf_shlib_list_options): Include the default value for
510 the hash style in the output text.
511
512 2020-05-11 Alan Modra <amodra@gmail.com>
513
514 * testsuite/ld-powerpc/pcrelopt.s: Add lxvp and stxvp.
515 * testsuite/ld-powerpc/pcrelopt.d: Update.
516
517 2020-05-11 Alan Modra <amodra@gmail.com>
518
519 * testsuite/ld-powerpc/callstub-1.d: Use -mpower10/-Mpower10 in
520 place of -mfuture/-Mfuture.
521 * testsuite/ld-powerpc/notoc2.d: Likewise.
522 * testsuite/ld-powerpc/powerpc.exp: Likewise.
523 * testsuite/ld-powerpc/tlsgd.d: Likewise.
524 * testsuite/ld-powerpc/tlsie.d: Likewise.
525 * testsuite/ld-powerpc/tlsld.d: Likewise.
526
527 2020-05-11 Nick Clifton <nickc@redhat.com>
528
529 * po/es.po: Updated Spanish translation.
530
531 2020-05-01 Wilco Dijkstra <wdijkstr@arm.com>
532
533 PR ld/25665
534 * testsuite/ld-aarch64/farcall-group.s: New large group test.
535 * testsuite/ld-aarch64/farcall-group.d: New test driver.
536 * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
537
538 2020-05-01 Alan Modra <amodra@gmail.com>
539
540 PR 25882
541 * ldlang.c (lang_check): Call bfd_merge_private_bfd_data for
542 shared libraries.
543
544 2020-05-01 Alan Modra <amodra@gmail.com>
545
546 * po/BLD-POTFILES.in: Regenerate.
547
548 2020-04-30 Alex Coplan <alex.coplan@arm.com>
549
550 * testsuite/ld-aarch64/erratum843419_tls_ie.d: Use udf in disassembly.
551 * testsuite/ld-aarch64/farcall-b-section.d: Likewise.
552 * testsuite/ld-aarch64/farcall-back.d: Likewise.
553 * testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
554
555 2020-04-30 Nick Clifton <nickc@redhat.com>
556
557 * testsuite/ld-elf/compress1c.d: XFAIL if thet target linker does
558 not support the -shared command line option.
559 * /ld-elf/compressed1c.d: Likewise.
560 * /ld-elf/compressed1e.d: Likewise.
561 * /ld-elf/dynamic1.d: Likewise.
562 * /ld-elf/dynsym1.d: Likewise.
563 * /ld-elf/ehdr_start-shared.d: Likewise.
564 * /ld-elf/exclude3b.d: Likewise.
565 * /ld-elf/global1.d: Likewise.
566 * /ld-elf/hash.d: Likewise.
567 * /ld-elf/local1.d: Likewise.
568 * /ld-elf/mbind1b.d: Likewise.
569 * /ld-elf/now-1.d: Likewise.
570 * /ld-elf/now-2.d: Likewise.
571 * /ld-elf/now-3.d: Likewise.
572 * /ld-elf/now-4.d: Likewise.
573 * /ld-elf/pr12975.d: Likewise.
574 * /ld-elf/pr13177.d: Likewise.
575 * /ld-elf/pr13195.d: Likewise.
576 * /ld-elf/pr16322.d: Likewise.
577 * /ld-elf/pr16498a.d: Likewise.
578 * /ld-elf/pr16498b.d: Likewise.
579 * /ld-elf/pr17615.d: Likewise.
580 * /ld-elf/pr19162.d: Likewise.
581 * /ld-elf/pr19698.d: Likewise.
582 * /ld-elf/pr20513c.d: Likewise.
583 * /ld-elf/pr20513d.d: Likewise.
584 * /ld-elf/pr21389a.d: Likewise.
585 * /ld-elf/pr21389b.d: Likewise.
586 * /ld-elf/pr21389c.d: Likewise.
587 * /ld-elf/pr21562a.d: Likewise.
588 * /ld-elf/pr21562b.d: Likewise.
589 * /ld-elf/pr21562c.d: Likewise.
590 * /ld-elf/pr21562d.d: Likewise.
591 * /ld-elf/pr21562e.d: Likewise.
592 * /ld-elf/pr21562f.d: Likewise.
593 * /ld-elf/pr21562g.d: Likewise.
594 * /ld-elf/pr21562h.d: Likewise.
595 * /ld-elf/pr21562i.d: Likewise.
596 * /ld-elf/pr21562j.d: Likewise.
597 * /ld-elf/pr21562k.d: Likewise.
598 * /ld-elf/pr21562l.d: Likewise.
599 * /ld-elf/pr21562m.d: Likewise.
600 * /ld-elf/pr21562n.d: Likewise.
601 * /ld-elf/pr21903a.d: Likewise.
602 * /ld-elf/pr21903b.d: Likewise.
603 * /ld-elf/pr22269b.d: Likewise.
604 * /ld-elf/pr22393-1a.d: Likewise.
605 * /ld-elf/pr22393-1b.d: Likewise.
606 * /ld-elf/pr23658-1c.d: Likewise.
607 * /ld-elf/pr25708.d: Likewise.
608 * /ld-elf/rpath-1.d: Likewise.
609 * /ld-elf/rpath-2.d: Likewise.
610 * /ld-elf/runpath-1.d: Likewise.
611 * /ld-elf/runpath-2.d: Likewise.
612 * /ld-elf/sizeofb.d: Likewise.
613 * /ld-elf/startofb.d: Likewise.
614 * /ld-elf/strtab.d: Likewise.
615 * /ld-elf/textaddr2.d: Likewise.
616 * /ld-elf/textaddr5.d: Likewise.
617 * /ld-elf/textaddr6.d: Likewise.
618 * /ld-elf/unknown2.d: Likewise.
619 * /ld-undefined/entry-3.d: Likewise.
620 * /ld-undefined/entry-4.d: Likewise.
621 * /ld-elf/mbind1c.d: XFAIL if the target linker does not support
622 the -pie option.
623 * /ld-elf/pie.d: Likewise.
624 * /ld-elf/pr19539.d: Likewise.
625 * /ld-elf/pr21903d.d: Likewise.
626 * /ld-elf/pr22269a.d: Likewise.
627 * /ld-elf/pr22393-1c.d: Likewise.
628 * /ld-elf/pr22393-1d.d: Likewise.
629 * /ld-elf/pr22423.d: Likewise.
630 * /ld-elf/loadaddr1.d: Expect to fail on the rx-linux target.
631 * /ld-elf/loadaddr2.d: Likewise.
632 * /ld-elf/pr22393-1e.d: Likewise.
633 * /ld-elf/pr22393-1f.d: Likewise.
634 * /ld-elf/textaddr1.d: Likewise.
635 * /ld-elf/textaddr4.d: Likewise.
636
637 2020-04-30 Yoshinori Sato <ysato@users.sourceforge.jp>
638
639 * emulparams/elf32rx_linux.sh: New rx-linux emulation.
640 * emultempl/rxlinux.em: New.
641 * configure.tgt: Add rx-linux.
642 * Makefile.am: Add eelf32rx_linux.c
643 * Makefile.in: Regenerate.
644
645 2020-04-29 Max Filippov <jcmvbkbc@gmail.com>
646
647 * testsuite/ld-xtensa/relax-diff1.d: New test definition.
648 * testsuite/ld-xtensa/relax-diff1.s: New test source.
649 * testsuite/ld-xtensa/relax-ndiff.d: New test definition.
650 * testsuite/ld-xtensa/relax-ndiff.s: New test source.
651 * testsuite/ld-xtensa/xtensa.exp: (relax-diff1)
652 (relax-ndiff): New tests.
653
654 2020-04-29 Stephen Casner <casner@acm.org>
655
656 PR 25829
657 * testsuite/ld-scripts/default-script.exp: Add --image-base=0 to
658 LDFLAGS for targets *-*-mingw64 x86_64-*-cygwin.
659 * testsuite/ld-scripts/default-script1.d: No longer have to skip
660 test for those targets.
661 * testsuite/ld-scripts/default-script2.d: Likewise.
662 * testsuite/ld-scripts/default-script3.d: Likewise.
663 * testsuite/ld-scripts/default-script4.d: Likewise.
664
665 2020-04-27 Tamar Christina <tamar.christina@arm.com>
666
667 * pe-dll.c (pe_detail_list): Add pe-bigobj-i386.
668
669 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
670
671 PR ld/25861
672 * testsuite/ld-xtensa/relax-loc.d: New test definition.
673 * testsuite/ld-xtensa/relax-loc.s: New test source.
674 * testsuite/ld-xtensa/xtensa.exp (relax-loc): New test.
675
676 2020-04-22 Fangrui Song <maskray@google.com>
677
678 PR ld/25806
679 * ldlang.h (struct lang_input_statement_struct): Add extra_search_path.
680 * ldlang.c (current_input_file): New.
681 (ldirname): New.
682 (new_afile): Add from_filename parameter. Set extra_search_path.
683 (lang_add_input_file): Pass current_input_file to new_afile.
684 (load_symbols): Set current_input_file.
685 * ldfile.c (ldfile_open_file): If extra_search_path has been set
686 then scan it for the file that needs to be opened.
687 * ld.texi: Document the new behaviour.
688 * NEWS: Mention the new feature.
689
690 2020-04-22 Alan Modra <amodra@gmail.com>
691
692 * testsuite/ld-scripts/default-script1.d: Correct mingw skip.
693 * testsuite/ld-scripts/default-script2.d: Likewise.
694 * testsuite/ld-scripts/default-script3.d: Likewise.
695 * testsuite/ld-scripts/default-script4.d: Likewise.
696
697 2020-04-21 Stephen Casner <casner@acm.org>
698
699 PR 25829
700 * testsuite/ld-scripts/script.exp (check_script)
701 (extract_symbol_test): Make test addresses fit in 16 bits.
702 * testsuite/ld-scripts/memory.t: Likewise.
703 * testsuite/ld-scripts/memory_sym.t (TXT_LENGTH): Likewise.
704 * testsuite/ld-scripts/default-script.t (_START): Likewise.
705 * testsuite/ld-scripts/default-script1.d: Likewise.
706 * testsuite/ld-scripts/default-script2.d: Likewise.
707 * testsuite/ld-scripts/default-script3.d: Likewise.
708 * testsuite/ld-scripts/default-script4.d: Likewise.
709 * testsuite/ld-scripts/empty-address-1.t: Likewise.
710 * testsuite/ld-scripts/empty-address-1.d: Likewise.
711 * testsuite/ld-scripts/empty-address-2a.d: Likewise.
712 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
713 * testsuite/ld-misc/start.s: .long -> .dc.a to allow relocation to
714 fit target address size.
715 * testsuite/ld-scripts/empty-address-1.s: Likewise.
716 * testsuite/ld-scripts/empty-address-2.s: Likewise.
717
718 2020-04-21 H.J. Lu <hongjiu.lu@intel.com>
719
720 PR ld/25849
721 * ldelfgen.c (ldelf_map_segments): Call
722 elf_backend_strip_zero_sized_dynamic_sections.
723 * testsuite/ld-alpha/tlsbinr.rd: Updated.
724
725 2020-04-20 Alan Modra <amodra@gmail.com>
726
727 * testsuite/ld-powerpc/tlsopt5.s: Rename foo to aaaaa.
728 * testsuite/ld-powerpc/tlsopt5.d: Adjust to suit.
729 * testsuite/ld-powerpc/tlsopt6.d: Likewise.
730
731 2020-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
732
733 * testsuite/ld-elf/warn1.d: Don't xfail on 64-bit Solaris/SPARC.
734 * testsuite/ld-elf/warn2.d: Likewise.
735
736 2020-04-18 H.J. Lu <hongjiu.lu@intel.com>
737
738 * testsuite/ld-elf/elf.exp (ASFLAGS): Add "--defsym NO_SET=1" for
739 alpha target.
740 * testsuite/ld-elf/pr19789.s: Use "=" if NO_SET is defined.
741
742 2020-04-16 Stephen Casner <casner@acm.org>
743
744 PR 18963
745 * testsuite/ld-scripts/pr18963.t: Reduce section sizes to fit in
746 16-bit address space.
747 * testsuite/ld-scripts/pr18963.d: Likewise.
748
749 2020-04-17 Juan Manuel Guerrero <juan.guerrero@gmx.de>
750 Jan W. Jagersma <jwjagersma@gmail.com>
751
752 * scripttempl/i386go32.sc: Provide symbol _environ. Link in
753 .ctors and .dtors. Discard LTO sections.
754
755 2020-04-17 Nick Clifton <nickc@redhat.com>
756
757 * testsuite/config/default.exp: If not already set then create the
758 CCC_OVERRIDE_OPTIONS environment variable to help when running the
759 testsuite with clang.
760 * testsuite/ld-elf/pr22269-1.c: Add a missing return statement.
761 * testsuite/ld-elfvers/vers.exp: Add checks to detect if files
762 were built before attempting to copy them.
763
764 2020-04-15 Fangrui Song <maskray@google.com>
765
766 PR binutils/24613
767 * lexsup.c (parse_args): Change RM_GENERATE_WARNING and
768 RM_GENERATE_ERROR to RM_DIAGNOSE.
769 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Change
770 RM_GENERATE_ERROR to RM_DIAGNOSE.
771 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Likewise.
772
773 2020-04-14 Stephen Casner <casner@acm.org>
774
775 PR ld/25677
776 * emulparams/pdp11.sh (SCRIPT_NAME): Change to pdp11.
777 (EXTRA_EM_FILE): New, add emulation file pdp11.
778 * scripttempl/pdp11.sc: New, derived from aout.sc without
779 irrelevant input sections.
780 * emultempl/pdp11.em (_add_options, _handle_option)
781 (_list_options): New. Add options -z, --imagic for pdp11-aout.
782 (_before_parse): Make --omagic be default instead of --nmagic.
783 (_get_script): Modify special-case linker script for --imagic.
784 * lexsup.c (parse_args): Explictly set config.text_read_only for -n.
785 * ld.texi (Options): Add documentation of PDP11-specific options.
786 (Options): Fix unrelated typo to --no-compact-branches.
787 * gen-doc.texi: @set PDP11.
788 * testsuite/ld-pdp11/pdp11.exp: New, start pdp11 testing.
789 * testsuite/ld-pdp11/sections.s: New, source for options tests.
790 * testsuite/ld-pdp11/imagic.d: New, test --imagic format.
791 * testsuite/ld-pdp11/imagicz.d: New, test -z (imagic) format.
792 * testsuite/ld-pdp11/nmagic.d: New, test --nmagic format.
793 * testsuite/ld-pdp11/omagic.d: New, test --omagic format.
794
795 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
796
797 PR binutils/25707
798 * testsuite/ld-arm/armthumb-lib.sym: Updated.
799 * testsuite/ld-arm/farcall-mixed-app.sym: Likewise.
800 * testsuite/ld-arm/farcall-mixed-app2.sym: Likewise.
801 * testsuite/ld-arm/fdpic-main-m.sym: Likewise.
802 * testsuite/ld-arm/fdpic-main.sym: Likewise.
803 * testsuite/ld-arm/fdpic-shared-m.sym: Likewise.
804 * testsuite/ld-arm/fdpic-shared.sym: Likewise.
805 * testsuite/ld-arm/mixed-app.sym: Likewise.
806 * testsuite/ld-arm/mixed-lib.sym: Likewise.
807 * testsuite/ld-arm/preempt-app.sym: Likewise.
808 * testsuite/ld-elf/hash.d: Likewise.
809 * testsuite/ld-elf/pr13195.d: Likewise.
810 * testsuite/ld-elfvsb/hidden2.d: Likewise.
811 * testsuite/ld-mips-elf/hash2.d: Likewise.
812
813 2020-04-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
814
815 * testsuite/ld-shared/shared.exp: Remove dangling comments.
816 xfail shared non PIC tests on Solaris.
817
818 2020-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
819
820 * testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIC on sparc*-*-*.
821
822 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
823
824 * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): Replace
825 nopie with available.
826
827 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
828
829 * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): New.
830 Set to "-fcf-protection=none" if target compiler supports it.
831 * testsuite/ld-srec/srec.exp: Add $NOCF_PROTECTION_CFLAGS to
832 CC and CXX.
833 * testsuite/ld-x86-64/x86-64.exp: Add $NOCF_PROTECTION_CFLAGS
834 to PLT BND tests.
835
836 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
837
838 * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Compile with
839 -I../bfd.
840 (check_pr25749b): Likewise.
841
842 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
843
844 * testsuite/ld-ifunc/ifunc-10-i386.d: Remove *-*-solaris2* from
845 notarget.
846 * ifunc-11-i386.d: Likewise.
847 * ifunc-12-i386.d: Likewise.
848 * ifunc-13-i386.d: Likewise.
849 * ifunc-14a-i386.d: Likewise.
850 * ifunc-14b-i386.d: Likewise.
851 * ifunc-14c-i386.d: Likewise.
852 * ifunc-14d-i386.d: Likewise.
853 * ifunc-14e-i386.d: Likewise.
854 * ifunc-14f-i386.d: Likewise.
855 * ifunc-15-i386.d: Likewise.
856 * ifunc-16-i386-now.d: Likewise.
857 * ifunc-16-i386.d: Likewise.
858 * ifunc-17a-i386.d: Likewise.
859 * ifunc-17b-i386.d: Likewise.
860 * ifunc-18a-i386.d: Likewise.
861 * ifunc-18b-i386.d: Likewise.
862 * ifunc-19a-i386.d: Likewise.
863 * ifunc-19b-i386.d: Likewise.
864 * ifunc-2-i386-now.d: Likewise.
865 * ifunc-2-i386.d: Likewise.
866 * ifunc-2-local-i386-now.d: Likewise.
867 * ifunc-2-local-i386.d: Likewise.
868 * ifunc-20-i386.d: Likewise.
869 * ifunc-21-i386.d: Likewise.
870 * ifunc-22-i386.d: Likewise.
871 * ifunc-5a-i386.d: Likewise.
872 * ifunc-5a-local-i386.d: Likewise.
873 * ifunc-5b-i386.d: Likewise.
874 * ifunc-5b-local-i386.d: Likewise.
875 * ifunc-5r-local-i386.d: Likewise.
876 * ifunc-6a-i386.d: Likewise.
877 * ifunc-6b-i386.d: Likewise.
878 * ifunc-7a-i386.d: Likewise.
879 * ifunc-7b-i386.d: Likewise.
880 * ifunc-8-i386.d: Likewise.
881 * ifunc-9-i386.d: Likewise.
882 * pr17154-i386-now.d: Likewise.
883 * pr17154-i386.d: Likewise.
884
885 * ifunc-23a-x86.d: Remove notarget.
886 * ifunc-24a-x86.d: Likewise.
887 * ifunc-25a-x86.d: Likewise.
888
889 2020-04-02 Nick Clifton <nickc@redhat.com>
890
891 PR ld/25747
892 * ldfile.c (ldfile_open_file): Fix typo in warning message.
893
894 2020-04-01 H.J. Lu <hongjiu.lu@intel.com>
895
896 PR ld/25749
897 PR ld/25754
898 * testsuite/ld-elf/linux-x86.exp: Run ld/25749 tests.
899 * testsuite/ld-elf/pr25749-1.c: New file.
900 * testsuite/ld-elf/pr25749-1a.c: Likewise.
901 * testsuite/ld-elf/pr25749-1b.c: Likewise.
902 * testsuite/ld-elf/pr25749-1b.err: Likewise.
903 * testsuite/ld-elf/pr25749-1c.c: Likewise.
904 * testsuite/ld-elf/pr25749-1d.c: Likewise.
905 * testsuite/ld-elf/pr25749-2.c: Likewise.
906 * testsuite/ld-elf/pr25749-2a.s: Likewise.
907 * testsuite/ld-elf/pr25749-2b.s: Likewise.
908 * testsuite/ld-elf/pr25749.rd: Likewise.
909 * testsuite/ld-elf/pr25754-1a.c: Likewise.
910 * testsuite/ld-elf/pr25754-1b.s: Likewise.
911 * testsuite/ld-elf/pr25754-2a.c: Likewise.
912 * testsuite/ld-elf/pr25754-2b.err: Likewise.
913 * testsuite/ld-elf/pr25754-2b.s: Likewise.
914 * testsuite/ld-elf/pr25754-3a.c: Likewise.
915 * testsuite/ld-elf/pr25754-3b.s: Likewise.
916 * testsuite/ld-elf/pr25754-4a.c: Likewise.
917 * testsuite/ld-elf/pr25754-4b.s: Likewise.
918 * testsuite/ld-elf/pr25754-4c.s: Likewise.
919 * testsuite/ld-elf/pr25754-5a.c: Likewise.
920 * testsuite/ld-elf/pr25754-5b.s: Likewise.
921 * testsuite/ld-elf/pr25754-5c.s: Likewise.
922 * testsuite/ld-elf/pr25754-6a.c: Likewise.
923 * testsuite/ld-elf/pr25754-6b.s: Likewise.
924 * testsuite/ld-x86-64/pr19609-6a.d: Don't expect linker error.
925
926 2020-04-01 Tamar Christina <tamar.christina@arm.com>
927
928 PR ld/16017
929 * testsuite/ld-arm/arm-elf.exp (thumb-plt, thumb-plt-got): Skip for NaCL.
930
931 2020-04-01 Nick Clifton <nickc@redhat.com>
932
933 PR ld/25747
934 * ldfile.c (ldfile_open_file): If a search for a library fails,
935 but there is a file that would match if it had a "lib" prefix to
936 its name, then tell the user.
937
938 2020-04-01 Tamar Christina <tamar.christina@arm.com>
939
940 PR ld/16017
941 * testsuite/ld-arm/arm-elf.exp (thumb-plt-got): New.
942 * testsuite/ld-arm/thumb-plt-got.d: New test.
943
944 2020-04-01 Tamar Christina <tamar.christina@arm.com>
945
946 * testsuite/ld-arm/arm-elf.exp (thumb-plt): New.
947 * testsuite/ld-arm/thumb-plt.d: New test.
948 * testsuite/ld-arm/thumb-plt.s: New test.
949
950 2020-04-01 Hans-Peter Nilsson <hp@bitrange.com>
951
952 * testsuite/ld-scripts/defined4.d: Don't xfail mmix-*-*.
953
954 2020-03-30 Nick Clifton <nickc@redhat.com>
955
956 PR binutils/25662
957 * emultempl/pe.em (after_open): Replace initialisation of the
958 insert_timestamp field in the pe_data structure with an
959 initialisation of the timestamp field.
960 * emultemp/pep.em: Likewise.
961 * pe-dll.c (fill_edata): Use the timestamp field in the pe_data
962 structure instead of the insert_timestamp field.
963
964 2020-03-28 H.J. Lu <hongjiu.lu@intel.com>
965
966 PR 25732
967 * emulparams/elf_i386_ldso.sh (COMMONPAGESIZE): New.
968 * testsuite/ld-elf/shared.exp:Don't xfail pr20995-2 tests for
969 Solaris.
970
971 2020-03-27 H.J. Lu <hongjiu.lu@intel.com>
972
973 PR 25732
974 * testsuite/ld-elf/shared.exp: Xfail pr20995-2 tests for Solaris.
975
976 2020-03-27 H.J. Lu <hongjiu.lu@intel.com>
977
978 PR 25732
979 * testsuite/ld-ifunc/ifunc-23a-x86.d: Add notarget for Solaris.
980 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
981 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
982
983 2020-03-25 Alan Modra <amodra@gmail.com>
984
985 * testsuite/ld-elf/compress1c.d: xfail h8300.
986 * testsuite/ld-elf/compressed1c.d: Likewise.
987 * testsuite/ld-elf/compressed1e.d: Likewise.
988 * testsuite/ld-elf/dynamic1.d: Likewise.
989 * testsuite/ld-elf/dynsym1.d: Likewise.
990 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
991 * testsuite/ld-elf/exclude3b.d: Likewise.
992 * testsuite/ld-elf/export-class.exp: Don't run without -shared support.
993 * testsuite/ld-elf/global1.d: xfail h8300.
994 * testsuite/ld-elf/hash.d: Likewise.
995 * testsuite/ld-elf/loadaddr1.d: Likewise.
996 * testsuite/ld-elf/loadaddr2.d: Likewise.
997 * testsuite/ld-elf/local1.d: Likewise.
998 * testsuite/ld-elf/mbind1b.d: Likewise.
999 * testsuite/ld-elf/mbind1c.d: Likewise.
1000 * testsuite/ld-elf/now-1.d: Likewise.
1001 * testsuite/ld-elf/now-2.d: Likewise.
1002 * testsuite/ld-elf/now-3.d: Likewise.
1003 * testsuite/ld-elf/now-4.d: Likewise.
1004 * testsuite/ld-elf/pie.d: Likewise.
1005 * testsuite/ld-elf/pr12975.d: Likewise.
1006 * testsuite/ld-elf/pr13177.d: Likewise.
1007 * testsuite/ld-elf/pr13195.d: Likewise.
1008 * testsuite/ld-elf/pr16322.d: Likewise.
1009 * testsuite/ld-elf/pr16498a.d: Likewise.
1010 * testsuite/ld-elf/pr16498b.d: Likewise.
1011 * testsuite/ld-elf/pr17615.d: Likewise.
1012 * testsuite/ld-elf/pr19162.d: Likewise.
1013 * testsuite/ld-elf/pr19539.d: Likewise.
1014 * testsuite/ld-elf/pr19617a.d: Likewise.
1015 * testsuite/ld-elf/pr19698.d: Likewise.
1016 * testsuite/ld-elf/pr20513c.d: Likewise.
1017 * testsuite/ld-elf/pr20513d.d: Likewise.
1018 * testsuite/ld-elf/pr21389a.d: Likewise.
1019 * testsuite/ld-elf/pr21389b.d: Likewise.
1020 * testsuite/ld-elf/pr21389c.d: Likewise.
1021 * testsuite/ld-elf/pr21562a.d: Likewise.
1022 * testsuite/ld-elf/pr21562b.d: Likewise.
1023 * testsuite/ld-elf/pr21562c.d: Likewise.
1024 * testsuite/ld-elf/pr21562d.d: Likewise.
1025 * testsuite/ld-elf/pr21562e.d: Likewise.
1026 * testsuite/ld-elf/pr21562f.d: Likewise.
1027 * testsuite/ld-elf/pr21562g.d: Likewise.
1028 * testsuite/ld-elf/pr21562h.d: Likewise.
1029 * testsuite/ld-elf/pr21562i.d: Likewise.
1030 * testsuite/ld-elf/pr21562j.d: Likewise.
1031 * testsuite/ld-elf/pr21562k.d: Likewise.
1032 * testsuite/ld-elf/pr21562l.d: Likewise.
1033 * testsuite/ld-elf/pr21562m.d: Likewise.
1034 * testsuite/ld-elf/pr21562n.d: Likewise.
1035 * testsuite/ld-elf/pr21903a.d: Likewise.
1036 * testsuite/ld-elf/pr21903b.d: Likewise.
1037 * testsuite/ld-elf/pr21903d.d: Likewise.
1038 * testsuite/ld-elf/pr22269a.d: Likewise.
1039 * testsuite/ld-elf/pr22269b.d: Likewise.
1040 * testsuite/ld-elf/pr22393-1a.d: Likewise.
1041 * testsuite/ld-elf/pr22393-1b.d: Likewise.
1042 * testsuite/ld-elf/pr22393-1c.d: Likewise.
1043 * testsuite/ld-elf/pr22393-1d.d: Likewise.
1044 * testsuite/ld-elf/pr22393-1e.d: Likewise.
1045 * testsuite/ld-elf/pr22393-1f.d: Likewise.
1046 * testsuite/ld-elf/pr22423.d: Likewise.
1047 * testsuite/ld-elf/pr22450.d: xfail avr, crx, h8300, ip2k, m68hc11,
1048 and xc16x.
1049 * testsuite/ld-elf/pr23658-1c.d: xfail h8300.
1050 * testsuite/ld-elf/pr25708.d: xfail h8300 and hppa64.
1051 * testsuite/ld-elf/rpath-1.d: xfail h8300.
1052 * testsuite/ld-elf/rpath-2.d: Likewise.
1053 * testsuite/ld-elf/runpath-1.d: Likewise.
1054 * testsuite/ld-elf/runpath-2.d: Likewise.
1055 * testsuite/ld-elf/sizeofb.d: Likewise.
1056 * testsuite/ld-elf/startofb.d: Likewise.
1057 * testsuite/ld-elf/strtab.d: Likewise.
1058 * testsuite/ld-elf/textaddr1.d: Likewise.
1059 * testsuite/ld-elf/textaddr2.d: Likewise.
1060 * testsuite/ld-elf/textaddr4.d: Likewise.
1061 * testsuite/ld-elf/textaddr5.d: Likewise.
1062 * testsuite/ld-elf/textaddr6.d: Likewise.
1063 * testsuite/ld-elf/unknown2.d: Likewise.
1064 * testsuite/ld-undefined/entry-3.d: Likewise.
1065 * testsuite/ld-undefined/entry-4.d: Likewise.
1066 * testsuite/ld-h8300/h8300.exp: Pass appropriate ld -m option.
1067 * testsuite/ld-h8300/gcsection.d: Remove ld -m option and relax
1068 file format match.
1069 * testsuite/ld-h8300/relax-2.d: Likewise.
1070 * testsuite/ld-h8300/relax-3.d: Likewise.
1071 * testsuite/ld-h8300/relax-4.d: Likewise.
1072 * testsuite/ld-h8300/relax-5.d: Likewise.
1073 * testsuite/ld-h8300/relax-6.d: Likewise.
1074 * testsuite/ld-h8300/relax-7.d: Likewise.
1075 * testsuite/ld-h8300/relax.d: Relax file format match.
1076
1077 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1078
1079 PR binutils/25708
1080 * testsuite/ld-elf/pr25708.d: New file.
1081
1082 2020-03-23 Alan Modra <amodra@gmail.com>
1083
1084 * Makefile.am (ALL_EMULATION_SOURCES): Reinstate ei386aout.c.
1085 Include ei386aout dep file.
1086 * Makefile.in: Regenerate.
1087 * po/BLD-POTFILES.in: Regenerate.
1088
1089 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1090
1091 * testsuite/ld-plugin/lto.exp (lto_link_tests): Run PR ld/25355
1092 test only for GCC 10 or newer.
1093
1094 2020-03-20 Alan Modra <amodra@gmail.com>
1095
1096 * testplug.c (parse_symdefstr): Use %hhi to read sym->def, and
1097 clear new fields.
1098 * testplug2.c (parse_symdefstr): Likewise.
1099 * testplug3.c (parse_symdefstr): Likewise.
1100 * testplug4.c (parse_symdefstr): Likewise.
1101
1102 2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
1103
1104 * testsuite/ld-arm/non-contiguous-arm4.d: Fix expected output.
1105 * testsuite/ld-powerpc/non-contiguous-powerpc.d: Likewise.
1106
1107 2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
1108
1109 * emultempl/xtensaelf.em: Emit a fatal error message
1110 instead of calling abort.
1111 * ldlang.c: Likewise.
1112
1113 2020-03-14 Alan Modra <amodra@gmail.com>
1114
1115 * testsuite/ld-elf/non-contiguous.d: Don't xfail generic ELF
1116 targets. Don't skip xtensa, xfail instead.
1117
1118 2020-03-13 Christophe Lyon <christophe.lyon@linaro.org>
1119
1120 * ldlang.c (lang_add_section): Add support for
1121 non_contiguous_regions.
1122 (size_input_section): Likewise.
1123 (lang_size_sections_1): Likewise.
1124 (process_insert_statements): Likewise.
1125 * ldlex.h (option_values): Add OPTION_NON_CONTIGUOUS_REGIONS and
1126 OPTION_NON_CONTIGUOUS_REGIONS_WARNINGS.
1127 * lexsup.c (ld_options): Add entries for
1128 --enable-non-contiguous-regions and
1129 --enable-non-contiguous-regions-warnings.
1130 (parse_args): Handle it.
1131 * NEWS: Add --enable-non-contiguous-regions and
1132 --enable-non-contiguous-regions-warnings.
1133 * ld.texi: Add --enable-non-contiguous-regions and
1134 --enable-non-contiguous-regions-warnings documentation.
1135 * emultempl/armelf.em (elf32_arm_add_stub_section): Add
1136 SEC_LINKER_CREATED flag.
1137 * emultempl/xtensaelf.em (ld_build_required_section_dependence):
1138 Emit an error when --enable-non-contiguous-regions is used.
1139 * testsuite/ld-elf/non-contiguous.d: New.
1140 * testsuite/ld-elf/non-contiguous.ld: New.
1141 * testsuite/ld-elf/non-contiguous.s: New.
1142 * testsuite/ld-arm/arm-elf.exp: Run the new tests.
1143 * testsuite/ld-arm/arm-elf/non-contiguous-arm.s: New.
1144 * testsuite/ld-arm/arm-elf/non-contiguous-arm.d: New.
1145 * testsuite/ld-arm/arm-elf/non-contiguous-arm.ld: New.
1146 * testsuite/ld-arm/arm-elf/non-contiguous-arm2.d: New.
1147 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
1148 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.d: New.
1149 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
1150 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.d: New.
1151 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.ld: New.
1152 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.d: New.
1153 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.ld: New.
1154 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.d: New.
1155 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.ld: New.
1156 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
1157 * testsuite/ld-powerpc/non-contiguous-powerpc.d: New.
1158 * testsuite/ld-powerpc/non-contiguous-powerpc.ld: New.
1159 * testsuite/ld-powerpc/non-contiguous-powerpc.sd: New.
1160 * testsuite/ld-powerpc/non-contiguous-powerpc64.d: New.
1161
1162 2020-03-13 H.J. Lu <hongjiu.lu@intel.com>
1163
1164 PR ld/24920
1165 * emulparams/elf32_x86_64.sh: Use static.sh.
1166 * emulparams/elf_i386.sh: Likewise.
1167 * emulparams/elf_x86_64.sh: Likewise.
1168 * emulparams/static.sh: New file.
1169 * emultempl/elf-x86.em: Include "ldlex.h".
1170 * testsuite/ld-elf/pr24920.err: New file.
1171 * testsuite/ld-elf/linux-x86.exp: Run ld/24920 tests.
1172
1173 2020-03-13 Christian Eggers <ceggers@gmx.de>
1174
1175 * ldexp.c (fold_name): Return SIZEOF_HEADERS in bytes.
1176
1177 2020-03-11 Alan Modra <amodra@gmail.com>
1178
1179 * ldelf.c (elf_orphan_compatible): Return false when two sections
1180 have differing SHF_MASKPROC or SHF_MASKOS flags.
1181
1182 2020-03-05 Alan Modra <amodra@gmail.com>
1183
1184 PR 25570
1185 * ldlang.c (lang_size_sections_1): Don't report changes on
1186 second and subsequent iterations that make no change in
1187 alignment from that already reported.
1188
1189 2020-03-05 Alan Modra <amodra@gmail.com>
1190
1191 PR 25570
1192 * ldlang.c (lang_sizing_iteration): New static var.
1193 (lang_size_sections_1): Warn about no memory region only on first
1194 iteration. Warn about changing start address on first iteration
1195 then any delta from that on subsequent iterations. Report a signed
1196 delta.
1197 (one_lang_size_sections_pass): Increment lang_sizing_iteration.
1198
1199 2020-03-03 Nick Clifton <nickc@redhat.com>
1200
1201 PR 25588
1202 * ld.texi (Options): Update the description of the --rpath-link
1203 option.
1204
1205 2020-03-02 Alan Modra <amodra@gmail.com>
1206
1207 * plugin.c (plugin_object_p): Return a bfd_cleanup.
1208 (plugin_cleanup): New function.
1209
1210 2020-03-01 H.J. Lu <hongjiu.lu@intel.com>
1211
1212 PR ld/25618
1213 * plugin.c (plugin_object_p): Copy the no_export field to the IR
1214 dummy object.
1215 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Add
1216 PR ld/25618 tests.
1217 * testsuite/ld-plugin/pr25618.d: New file.
1218 * testsuite/ld-plugin/pr25618a.cc: Likewise.
1219 * testsuite/ld-plugin/pr25618a.h: Likewise.
1220 * testsuite/ld-plugin/pr25618b.cc: Likewise.
1221 * testsuite/ld-plugin/pr25618b.h: Likewise.
1222
1223 2020-02-27 Alan Modra <amodra@gmail.com>
1224
1225 PR 24511
1226 * testsuite/ld-mmix/b-fixo2.d: Adjust for .data change.
1227 * testsuite/ld-mmix/sec-2.d: Likewise.
1228 * testsuite/ld-mmix/sec-3.d: Likewise.
1229 * testsuite/ld-mmix/sec-4.d: Likewise.
1230 * testsuite/ld-mmix/spec802.d: Likewise.
1231 * testsuite/ld-mmix/spec803.d: Likewise.
1232 * testsuite/ld-mmix/spec804.d: Likewise.
1233 * testsuite/ld-mmix/spec805.d: Likewise.
1234 * testsuite/ld-mmix/spec806.d: Likewise.
1235 * testsuite/ld-mmix/spec807.d: Likewise.
1236 * testsuite/ld-mmix/spec808.d: Likewise.
1237
1238 2020-02-26 H.J. Lu <hongjiu.lu@intel.com>
1239
1240 PR ld/25593
1241 * testsuite/ld-plugin/lto.exp: Run PR ld/25593 tests.
1242 * testsuite/ld-plugin/pr25593.d: New file.
1243 * testsuite/ld-plugin/pr25593a-1.c: Likewise.
1244 * testsuite/ld-plugin/pr25593a-2.c: Likewise.
1245 * testsuite/ld-plugin/pr25593b.c: Likewise.
1246 * testsuite/ld-plugin/pr25593c.c: Likewise.
1247 * testsuite/ld-plugin/pr25593d.c: Likewise.
1248 * testsuite/ld-plugin/pr25593e.c: Likewise.
1249
1250 2020-02-26 Alan Modra <amodra@gmail.com>
1251
1252 * emultempl/cskyelf.em: Indent labels correctly.
1253 * ldfile.c: Likewise.
1254 * ldlang.c: Likewise.
1255 * plugin.c: Likewise.
1256
1257 2020-02-26 Alan Modra <amodra@gmail.com>
1258
1259 PR 25593
1260 * ldelf.c (ldelf_try_needed): Add DT_NEEDED lib to input_bfds.
1261 (ldelf_after_open): Save state of input_bfds list before loading
1262 DT_NEEDED libs. Traverse input_bfds list adding DT_NEEDED tags.
1263 Restore input_bfds list.
1264 * testsuite/ld-cris/gotplt1.d: Adjust for changed .dynstr order.
1265
1266 2020-02-24 Nick Clifton <nickc@redhat.com>
1267
1268 * po/fr.po: Update French translation.
1269
1270 2020-02-22 Alan Modra <amodra@gmail.com>
1271
1272 PR 25585
1273 * NEWS: Mention better "PHDR segment not covered by LOAD segment"
1274 checking.
1275
1276 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
1277
1278 PR 25537
1279 * emultempl/z80.em: Remove machine compatability checking.
1280
1281 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
1282
1283 PR 25517
1284 * testsuite/ld-z80/arch_ez80_adl.d: Update command line.
1285 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
1286 * testsuite/ld-z80/arch_r800.d: Likewise.
1287 * testsuite/ld-z80/arch_z180.d: Likewise.
1288 * testsuite/ld-z80/arch_z80n.d: Likewise.
1289 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
1290 * testsuite/ld-z80/comb_arch_z180_z80.d: Likewise.
1291 * testsuite/ld-z80/comb_arch_z80_ez80.d: Likewise.
1292 * testsuite/ld-z80/comb_arch_z80_z180.d: Likewise.
1293 * testsuite/ld-z80/comb_arch_z80_z80n.d: Likewise.
1294 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
1295 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
1296 * testsuite/ld-z80/relocs_f_ez80.d: Likewise.
1297 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
1298 * testsuite/ld-z80/relocs_f_z80n.d: Likewise.
1299
1300 2020-02-19 Alan Modra <amodra@gmail.com>
1301
1302 * testsuite/ld-plugin/pr25355.d: Allow alpha-linux nm result.
1303
1304 2020-02-10 H.J. Lu <hongjiu.lu@intel.com>
1305
1306 PR binutils/25355
1307 * testsuite/ld-plugin/lto.exp: Run PR binutils/25355 test.
1308 * testsuite/ld-plugin/pr25355.c: New file.
1309 * testsuite/ld-plugin/pr25355.d: Likewise.
1310 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Support compile
1311 only dump.
1312
1313 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
1314
1315 * testsuite/ld-unique/unique.exp (contains_unique_symbol): Updated.
1316
1317 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1318
1319 PR 25469
1320 * emulparams/elf32z80.sh: Use z80 emulation.
1321 * emultempl/z80.em: Make generic to both COFF and ELF Z80 emulations.
1322 * emultempl/z80elf.em: Delete.
1323 * testsuite/ld-elf/pr22450.d: Expect to fail for the Z80.
1324 * testsuite/ld-elf/sec64k.exp: Fix Z80 assembly.
1325 * testsuite/ld-unique/pr21529.s: Avoid register name conflict.
1326 * testsuite/ld-unique/unique.s: Likewise.
1327 * testsuite/ld-unique/unique_empty.s: Likewise.
1328 * testsuite/ld-unique/unique_shared.s: Likewise.
1329 * testsuite/ld-unique/unique.d: Updated expected output.
1330 * testsuite/ld-z80/arch_z80n.d: New file.
1331 * testsuite/ld-z80/comb_arch_z80_z80n.d: New file.
1332 * testsuite/ld-z80/labels.s: Add more labels.
1333 * testsuite/ld-z80/relocs.s: Add more reloc tests.
1334 * testsuite/ld-z80/relocs_f_z80n.d: New file
1335
1336 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
1337
1338 PR ld/25022
1339 * testsuite/ld-elf/pr25022.d: Xfail more targets which don't use
1340 ldelf_before_place_orphans.
1341
1342 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1343
1344 PR ld/25022
1345 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
1346 before_place_orphans_default.
1347 * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
1348 * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
1349 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
1350 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
1351 * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
1352 * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
1353 * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
1354 * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
1355 * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
1356 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Use
1357 ldelf_before_place_orphans.
1358 * ldelf.c (ldelf_before_place_orphans): New.
1359 * ldelf.h (ldelf_before_place_orphans): Likewise.
1360 * ldemul.c (ldemul_before_place_orphans): Likewise.
1361 (before_place_orphans_default): Likewise.
1362 * ldemul.h (ldemul_before_place_orphans): Likewise.
1363 (before_place_orphans_default): Likewise.
1364 (ld_emulation_xfer_struct): Add before_place_orphans.
1365 * ldlang.c (lang_process): Call ldemul_before_place_orphans
1366 before lang_place_orphans.
1367 * testsuite/ld-elf/pr25022.d: New file.
1368 * testsuite/ld-elf/pr25022.s: Likewise.
1369 * testsuite/ld-elf/pr25022.t: Likewise.
1370
1371 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1372
1373 PR ld/25490
1374 * testsuite/ld-elf/pr25490-1.d: New file.
1375 * testsuite/ld-elf/pr25490-1.s: Likewise.
1376
1377 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1378
1379 PR ld/24526
1380 PR ld/25021
1381 PR ld/25490
1382 * testsuite/ld-elf/elf.exp: Run PR ld/25490 tests.
1383 * testsuite/ld-elf/pr24526.d: New file.
1384 * testsuite/ld-elf/pr24526.s: Likewise.
1385 * testsuite/ld-elf/pr25021.d: Likewise.
1386 * testsuite/ld-elf/pr25021.s: Likewise.
1387 * testsuite/ld-elf/pr25490-2-16.rd: Likewise.
1388 * testsuite/ld-elf/pr25490-2-32.rd: Likewise.
1389 * testsuite/ld-elf/pr25490-2-64.rd: Likewise.
1390 * testsuite/ld-elf/pr25490-2.s: Likewise.
1391 * testsuite/ld-elf/pr25490-3-16.rd: Likewise.
1392 * testsuite/ld-elf/pr25490-3-32.rd: Likewise.
1393 * testsuite/ld-elf/pr25490-3-64.rd: Likewise.
1394 * testsuite/ld-elf/pr25490-3.s: Likewise.
1395 * testsuite/ld-elf/pr25490-4-16.rd: Likewise.
1396 * testsuite/ld-elf/pr25490-4-32.rd: Likewise.
1397 * testsuite/ld-elf/pr25490-4-64.rd: Likewise.
1398 * testsuite/ld-elf/pr25490-4.s: Likewise.
1399 * testsuite/ld-elf/pr25490-5-16.rd: Likewise.
1400 * testsuite/ld-elf/pr25490-5-32.rd: Likewise.
1401 * testsuite/ld-elf/pr25490-5-64.rd: Likewise.
1402 * testsuite/ld-elf/pr25490-5.s: Likewise.
1403 * testsuite/ld-elf/pr25490-6-16.rd: Likewise.
1404 * testsuite/ld-elf/pr25490-6-32.rd: Likewise.
1405 * testsuite/ld-elf/pr25490-6-64.rd: Likewise.
1406 * testsuite/ld-elf/pr25490-6.s: Likewise.
1407
1408 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1409
1410 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark
1411 z80 as not supported.
1412
1413 2020-02-06 Alan Modra <amodra@gmail.com>
1414
1415 * testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying
1416 targets that don't support ifunc rather than ones that do.
1417 (contains_irelative_reloc): Match R_PARISC_IPLT.
1418 * testsuite/ld-ifunc/lib.c: Don't use .set in asm.
1419 * testsuite/ld-ifunc/ifunc-23-x86.s,
1420 * testsuite/ld-ifunc/ifunc-24-x86.s,
1421 * testsuite/ld-ifunc/ifunc-25-x86.s,
1422 * testsuite/ld-ifunc/ifunc-4-local-x86.s,
1423 * testsuite/ld-ifunc/ifunc-4-x86.s: Define _main.
1424 * testsuite/ld-ifunc/ifunc-10-i386.d,
1425 * testsuite/ld-ifunc/ifunc-11-i386.d,
1426 * testsuite/ld-ifunc/ifunc-12-i386.d,
1427 * testsuite/ld-ifunc/ifunc-13-i386.d,
1428 * testsuite/ld-ifunc/ifunc-14a-i386.d,
1429 * testsuite/ld-ifunc/ifunc-14b-i386.d,
1430 * testsuite/ld-ifunc/ifunc-14c-i386.d,
1431 * testsuite/ld-ifunc/ifunc-14d-i386.d,
1432 * testsuite/ld-ifunc/ifunc-14e-i386.d,
1433 * testsuite/ld-ifunc/ifunc-14f-i386.d,
1434 * testsuite/ld-ifunc/ifunc-15-i386.d,
1435 * testsuite/ld-ifunc/ifunc-16-i386-now.d,
1436 * testsuite/ld-ifunc/ifunc-16-i386.d,
1437 * testsuite/ld-ifunc/ifunc-17a-i386.d,
1438 * testsuite/ld-ifunc/ifunc-17b-i386.d,
1439 * testsuite/ld-ifunc/ifunc-18a-i386.d,
1440 * testsuite/ld-ifunc/ifunc-18b-i386.d,
1441 * testsuite/ld-ifunc/ifunc-19a-i386.d,
1442 * testsuite/ld-ifunc/ifunc-19b-i386.d,
1443 * testsuite/ld-ifunc/ifunc-2-i386-now.d,
1444 * testsuite/ld-ifunc/ifunc-2-i386.d,
1445 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
1446 * testsuite/ld-ifunc/ifunc-2-local-i386.d,
1447 * testsuite/ld-ifunc/ifunc-20-i386.d,
1448 * testsuite/ld-ifunc/ifunc-21-i386.d,
1449 * testsuite/ld-ifunc/ifunc-22-i386.d,
1450 * testsuite/ld-ifunc/ifunc-26.d,
1451 * testsuite/ld-ifunc/ifunc-5a-i386.d,
1452 * testsuite/ld-ifunc/ifunc-5a-local-i386.d,
1453 * testsuite/ld-ifunc/ifunc-5b-i386.d,
1454 * testsuite/ld-ifunc/ifunc-5b-local-i386.d,
1455 * testsuite/ld-ifunc/ifunc-5r-local-i386.d,
1456 * testsuite/ld-ifunc/ifunc-6a-i386.d,
1457 * testsuite/ld-ifunc/ifunc-6b-i386.d,
1458 * testsuite/ld-ifunc/ifunc-7a-i386.d,
1459 * testsuite/ld-ifunc/ifunc-7b-i386.d,
1460 * testsuite/ld-ifunc/ifunc-8-i386.d,
1461 * testsuite/ld-ifunc/ifunc-9-i386.d,
1462 * testsuite/ld-ifunc/pr17154-i386-now.d,
1463 * testsuite/ld-ifunc/pr17154-i386.d: xfail lynxos, nto, and solaris.
1464
1465 2020-02-06 Alan Modra <amodra@gmail.com>
1466
1467 * testsuite/lib/ld-lib.exp (is_generic): Delete.
1468 * testsuite/ld-unique/unique.exp: Exclude tic6x.
1469
1470 2020-02-06 Alan Modra <amodra@gmail.com>
1471
1472 * configure.tgt (i[3-7]86-*-moss*): Don't clear targ_extra_ofiles.
1473 (i[3-7]86-*-openbsd*, x86_64-*-openbsd*): Add.
1474
1475 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1476
1477 PR gas/25380
1478 * testsuite/ld-i386/pr22001-1c.S: Use "unique,N" in .section
1479 directives.
1480 * testsuite/ld-i386/tls-gd1.S: Likewise.
1481 * testsuite/ld-x86-64/pr21481b.S: Likewise.
1482
1483 2020-01-30 Jan Beulich <jbeulich@suse.com>
1484
1485 * ld.texi: Remove space between @option and brace.
1486
1487 2020-01-29 Alan Modra <amodra@gmail.com>
1488
1489 PR 25477
1490 * ldelf.c (ldelf_check_ld_so_conf): Add prefix parameter and
1491 correct concat.
1492 (ldelf_after_open): Add prefix parameter.
1493 * ldelf.h (ldelf_after_open): Update prototype.
1494 * emultempl/elf.em (gld${EMULATION_NAME}_after_open): Pass $prefix
1495 to ldelf_after_open.
1496 * Makefile.am: Correct z80 dependencies.
1497 * Makefile.in: Regenerate.
1498
1499 2020-01-28 Alan Modra <amodra@gmail.com>
1500
1501 * ldexp.c (fold_name): Don't print bfd_link_hash_lookup failed
1502 in first phase.
1503
1504 2020-01-27 Alan Modra <amodra@gmail.com>
1505
1506 * testsuite/ld-elfvers/vers.exp: Replace case statements with
1507 switch statements.
1508 * testsuite/ld-ifunc/ifunc.exp: Likewise.
1509 * testsuite/ld-unique/unique.exp: Likewise.
1510
1511 2020-01-27 H.J. Lu <hongjiu.lu@intel.com>
1512 Alan Modra <amodra@gmail.com>
1513
1514 PR ld/25458
1515 * testsuite/ld-elf/pr25458.map: New file.
1516 * testsuite/ld-elf/pr25458.rd: Likewise.
1517 * testsuite/ld-elf/pr25458a.s: Likewise.
1518 * testsuite/ld-elf/pr25458b.s: Likewise.
1519 * testsuite/ld-elf/shared.exp: Run PR ld/25458 test.
1520
1521 2020-01-22 H.J. Lu <hongjiu.lu@intel.com>
1522
1523 PR ld/25416
1524 * testsuite/ld-x86-64/tls.exp: Skip GNU2 TLS tests only without
1525 compiler support.
1526
1527 2020-01-22 Alan Modra <amodra@gmail.com>
1528
1529 * testsuite/ld-powerpc/tlsdesc3.d,
1530 * testsuite/ld-powerpc/tlsdesc3.wf,
1531 * testsuite/ld-powerpc/tlsdesc4.d,
1532 * testsuite/ld-powerpc/tlsdesc4.s,
1533 * testsuite/ld-powerpc/tlsdesc4.wf: New tests.
1534 * testsuite/ld-powerpc/powerpc.exp: Run them.
1535
1536 2020-01-22 Alan Modra <amodra@gmail.com>
1537
1538 * emultempl/ppc64elf.em (ppc64_opt, PARSE_AND_LIST_LONGOPTS),
1539 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Support
1540 --tls-get-addr-regsave and --no-tls-get-addr-regsave.
1541 (params): Init new field.
1542 * ld.texi (--tls-get-addr-regsave, --no-tls-get-addr-regsave):
1543 Document.
1544 * testsuite/ld-powerpc/tlsdesc.s,
1545 * testsuite/ld-powerpc/tlsdesc.d,
1546 * testsuite/ld-powerpc/tlsdesc.wf,
1547 * testsuite/ld-powerpc/tlsdesc2.d,
1548 * testsuite/ld-powerpc/tlsdesc2.wf,
1549 * testsuite/ld-powerpc/tlsexenors.d,
1550 * testsuite/ld-powerpc/tlsexenors.r,
1551 * testsuite/ld-powerpc/tlsexers.d,
1552 * testsuite/ld-powerpc/tlsexers.r,
1553 * testsuite/ld-powerpc/tlsexetocnors.d,
1554 * testsuite/ld-powerpc/tlsexetocrs.d,
1555 * testsuite/ld-powerpc/tlsexetocrs.r,
1556 * testsuite/ld-powerpc/tlsopt6.d,
1557 * testsuite/ld-powerpc/tlsopt6.wf: New.
1558 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
1559
1560 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1561
1562 PR 25417
1563 * ldlang.c (ldlang_open_ctf): Fix error message typo.
1564 * emultempl/z80elf.em (z80_elf_after_open): Likewise.
1565
1566 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
1567
1568 * testsuite/ld-elf/pr23900-1.d: Adjusted.
1569
1570 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
1571
1572 * testsuite/ld-elf/pr23900-1.d: Also pass -l to readelf.
1573
1574 2020-01-20 Nick Clifton <nickc@redhat.com>
1575
1576 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1577 * po/uk.po: Updated Ukranian translation.
1578
1579 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
1580
1581 PR ld/25416
1582 * testsuite/ld-x86-64/pr25416-1.s: New file
1583 * testsuite/ld-x86-64/pr25416-1a.d: Likewise.
1584 * testsuite/ld-x86-64/pr25416-1b.d: Likewise.
1585 * testsuite/ld-x86-64/pr25416-1.s: Likewise.
1586 * testsuite/ld-x86-64/pr25416-2.s: Likewise.
1587 * testsuite/ld-x86-64/pr25416-2a.d: Likewise.
1588 * testsuite/ld-x86-64/pr25416-2b.d: Likewise.
1589 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1590 * testsuite/ld-x86-64/pr25416-3.s: Likewise.
1591 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1592 * testsuite/ld-x86-64/pr25416-4.s: Likewise.
1593 * testsuite/ld-x86-64/pr25416-5a.c: Likewise.
1594 * testsuite/ld-x86-64/pr25416-5b.s: Likewise.
1595 * testsuite/ld-x86-64/pr25416-5c.s: Likewise.
1596 * testsuite/ld-x86-64/pr25416-5d.s: Likewise.
1597 * testsuite/ld-x86-64/pr25416-5e.s: Likewise.
1598 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/25416 tests.
1599
1600 2020-01-20 Alan Modra <amodra@gmail.com>
1601
1602 * testsuite/ld-powerpc/tlsexe.d: Match new __tls_get_addr stub.
1603 * testsuite/ld-powerpc/tlsexeno.d: Likewise.
1604 * testsuite/ld-powerpc/tlsexetoc.d: Likewise.
1605 * testsuite/ld-powerpc/tlsexetocno.d: Likewise.
1606 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
1607
1608 2020-01-18 Roland McGrath <mcgrathr@google.com>
1609
1610 * testsuite/ld-x86-64/align-branch-1.d: Loosen instruction regexps
1611 to admit whatever absolute address. The label-relative address is
1612 what the test needs to verify.
1613
1614 2020-01-18 Nick Clifton <nickc@redhat.com>
1615
1616 * configure: Regenerate.
1617 * po/ld.pot: Regenerate.
1618
1619 2020-01-18 Nick Clifton <nickc@redhat.com>
1620
1621 Binutils 2.34 branch created.
1622
1623 2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1624
1625 * scripttempl/elf32msp430_3.sc: Remove.
1626
1627 2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1628
1629 * scripttempl/elf32msp430.sc: Add input section rules for
1630 .upper.{text,data,rodata,bss}.
1631 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
1632 * testsuite/ld-msp430-elf/upper-input-sections.s: New test.
1633
1634 2020-01-15 Lars Brinkhoff <lars@nocrew.org>
1635
1636 PR 20694
1637 * temulparams/pdp11.sh (TARGET_PAGE_SIZE): Set to 8192.
1638
1639 2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1640
1641 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
1642 * testsuite/ld-msp430-elf/reloc-lo-430x.s: New test.
1643
1644 2020-01-15 Alan Modra <amodra@gmail.com>
1645
1646 * testsuite/ld-powerpc/ambiguousv1b.d: Adjust expected output.
1647 * testsuite/ld-powerpc/funref.s: Align func_tab.
1648 * testsuite/ld-powerpc/funref2.s: Likewise.
1649 * testsuite/ld-powerpc/funv1.s: Add dot symbols.
1650
1651 2020-01-14 Lili Cui <lili.cui@intel.com>
1652
1653 * testsuite/ld-i386/align-branch-1.d: Updated for i686-pc-elf.
1654
1655 2020-01-13 Alan Modra <amodra@gmail.com>
1656
1657 * po/BLD-POTFILES.in: Regenerate.
1658
1659 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
1660
1661 * testsuite/ld-arc/relax-local-pic.d: Improve matching patterns.
1662
1663 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
1664
1665 * Makefile.am: Remove earcelf_prof.c and earclinux_prof.c
1666 emulations.
1667 * configure.tgt: Likewise.
1668 * Makefile.in: Regenerate.
1669 * emulparams/arcelf_prof.sh: Remove file.
1670 * emulparams/arclinux_prof.sh: Likewise.
1671
1672 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
1673
1674 * scripttempl/elfarcv2.sc : Allow interrupt vector table to be
1675 located at an arbitrary address. Use DWARF.sc file.
1676 * scripttempl/elfarc.sc: Use DWARF.sc file.
1677
1678 2020-01-07 Alan Modra <amodra@gmail.com>
1679
1680 * testsuite/ld-mips-elf/eh-frame5.s,
1681 * testsuite/ld-mips-elf/ehdr_start-new.s,
1682 * testsuite/ld-mips-elf/ehdr_start-o32.s,
1683 * testsuite/ld-mips-elf/mips16-call-global-1.s,
1684 * testsuite/ld-mips-elf/mips16-intermix-1.s,
1685 * testsuite/ld-mips-elf/mips16-pic-1b.s,
1686 * testsuite/ld-mips-elf/mips16-pic-4c.s,
1687 * testsuite/ld-mips-elf/no-shared-1-n64.s,
1688 * testsuite/ld-mips-elf/no-shared-1-o32.s,
1689 * testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s,
1690 * testsuite/ld-mips-elf/pic-and-nonpic-1b.s,
1691 * testsuite/ld-mips-elf/pic-and-nonpic-2a.s,
1692 * testsuite/ld-mips-elf/pic-and-nonpic-3b.s,
1693 * testsuite/ld-mips-elf/pic-and-nonpic-4b.s,
1694 * testsuite/ld-mips-elf/pic-and-nonpic-5a.s,
1695 * testsuite/ld-mips-elf/pic-and-nonpic-6-n32c.s,
1696 * testsuite/ld-mips-elf/pic-and-nonpic-6-n64c.s,
1697 * testsuite/ld-mips-elf/pic-and-nonpic-6-o32c.s,
1698 * testsuite/ld-mips-elf/pie.s,
1699 * testsuite/ld-mips-elf/relax-jalr.s: Revert 2019-12-17 change.
1700
1701 2020-01-06 Nick Clifton <nickc@redhat.com>
1702
1703 PR 25327
1704 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
1705 command line when building libcomm1.o and pr13250 tests.
1706 * testsuite/ld-plugin/lto.exp: Likewise for pr20267 tests.
1707
1708 2020-01-06 Nick Clifton <nickc@redhat.com>
1709
1710 PR 25326
1711 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
1712 command line when building pr19579 binaries.
1713
1714 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
1715
1716 * emultempl/pe.em: Add new option --enable-reloc-section.
1717 * emultempl/pep.em: Likewise.
1718 * ld.texi: Document --enable-reloc-section.
1719 * pe-dll.c (pe_dll_build_sections): Use pe_dll_enable_reloc_section.
1720 (pe_dll_fill_sections): Simplify by calling pe_exe_fill_sections.
1721 * pe-dll.h: Add extern declaration of option flag.
1722 * pep-dll.c (pe_dll_enable_reloc_section):
1723 Add alias define for pep_dll_enable_reloc_section.
1724 * pep-dll.h: Add extern declaration of option flag.
1725
1726 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1727
1728 * Makefile.am: Add new target z80-elf
1729 * configure.tgt: Likewise.
1730 * Makefile.in: Regenerate.
1731 * emultempl/z80.em: Add support for eZ80 and Z180 architectures.
1732 * emulparams/elf32z80.sh: New file.
1733 * emultempl/z80elf.em: Likewise.
1734 * testsuite/ld-elf/comm-data4.s: Fix for Z80.
1735 * testsuite/ld-elf/comm-data5.s: Fix for Z80.
1736 * testsuite/ld-scripts/fill16.d: Fix for Z80.
1737 * testsuite/ld-z80/arch_ez80_adl.d: Likewise.
1738 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
1739 * testsuite/ld-z80/arch_r800.d: Likewise.
1740 * testsuite/ld-z80/arch_z180.d: Likewise.
1741 * testsuite/ld-z80/arch_z80.d: Likewise.
1742 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
1743 * testsuite/ld-z80/comb_arch_z180.d: Likewise.
1744 * testsuite/ld-z80/labels.s: Likewise.
1745 * testsuite/ld-z80/relocs.s: Likewise.
1746 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
1747 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
1748 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
1749 * testsuite/ld-z80/z80.exp: Likewise.
1750 * NEWS: Mention the new support.
1751
1752 2020-01-02 Tamar Christina <tamar.christina@arm.com>
1753
1754 PR 25210
1755 PR 24753
1756 * emultempl/aarch64elf.em (elf${ELFSIZE}_aarch64_add_stub_section):
1757 Remove SEC_LINKER_CREATED.
1758 * testsuite/ld-aarch64/aarch64-elf.exp: Add erratum835769-843419.
1759 * testsuite/ld-aarch64/erratum835769-843419.d: New test.
1760
1761 2020-01-01 Alan Modra <amodra@gmail.com>
1762
1763 Update year range in copyright notice of all files.
1764
1765 For older changes see ChangeLog-2019
1766 \f
1767 Copyright (C) 2020 Free Software Foundation, Inc.
1768
1769 Copying and distribution of this file, with or without modification,
1770 are permitted in any medium without royalty provided the copyright
1771 notice and this notice are preserved.
1772
1773 Local Variables:
1774 mode: change-log
1775 left-margin: 8
1776 fill-column: 74
1777 version-control: never
1778 End:
This page took 0.081657 seconds and 5 git commands to generate.