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