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