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