1 2020-06-24 H.J. Lu <hongjiu.lu@intel.com>
4 * ldexp.c (exp_fold_tree_1): Set non_ir_ref_regular on the source
6 * testsuite/ld-plugin/lto.exp: Run ld/26163 test.
7 * testsuite/ld-plugin/pr26163a.c: New file.
8 * testsuite/ld-plugin/pr26163b.c: Likewise.
10 2020-06-24 Alan Modra <amodra@gmail.com>
12 * lexsup.c (elf_shlib_list_options): Properly format help message.
13 (elf_plt_unwind_list_options): Likewise.
14 * emultempl/cskyelf.em (PARSE_AND_LIST_OPTIONS): Likewise.
16 2020-06-23 Roland McGrath <mcgrathr@google.com>
19 * NEWS: Note --dependency-file.
20 * ld.texi (Options): Document --dependency-file.
21 * ldlex.h (enum option_values): Add OPTION_DEPENDENCY_FILE.
22 * ld.h (ld_config_type): New member dependency_file.
23 * lexsup.c (ld_options, parse_args): Parse --dependency-file.
24 * ldmain.c (struct dependency_file): New type.
25 (dependency_files, dependency_files_tail): New static variables.
26 (track_dependency_files): New function.
27 (write_dependency_file): New function.
28 (main): Call it when --dependency-file was passed.
29 * ldfile.c (ldfile_try_open_bfd): Call track_dependency_files.
30 (ldfile_open_command_file_1): Likewise.
31 * ldelf.c (ldelf_try_needed): Likewise.
32 * pe-dll.c (pe_implied_import_dll): Likewise.
34 2020-06-23 Alan Modra <amodra@gmail.com>
37 * ldlang.c (ldlang_add_file): Assert that we aren't adding the
38 current end of link.next list again too.
39 * ldmain.c (add_archive_element): Don't load archive elements
40 again that have already been loaded.
42 2020-06-23 Alan Modra <amodra@gmail.com>
44 * testsuite/ld-elf/shared.exp (pr14170): Clear xfail for
46 (pr17068, symbolic-func.so, pr22374): Likewise.
48 2020-06-22 Nelson Chu <nelson.chu@sifive.com>
50 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
51 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Updated.
52 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Updated.
53 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Updated.
54 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Updated.
55 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Updated.
57 2020-06-21 Alan Modra <amodra@gmail.com>
59 * ldfile.c: Replace uses of ENABLE_PLUGINS with BFD_SUPPORTS_PLUGINS.
65 * plugin.c: Wrap body of file in #if BFD_SUPPORTS_PLUGINS.
66 * testplug.c: Likewise.
67 * testplug2.c: Likewise.
68 * testplug3.c: Likewise.
69 * testplug4.c: Likewise.
70 * configure.ac (ENABLE_PLUGINS): Don't define AM_CONTITIONAL.
71 * Makefile.am: Remove ENABLE_PLUGINS conditionals.
72 (PLUGIN_CFLAGS): Don't define.
73 (PLUGIN_C, PLUGIN_H, PLUGIN_OBJECT): Likewise. Substitute all
74 uses with plugin file name.
75 * configure: Regenerate.
76 * Makefile.in: Regenerate.
78 2020-06-20 Alan Modra <amodra@gmail.com>
80 * testsuite/lib/ld-lib.exp (default_ld_compile): Don't perror on
82 (default_ld_assemble): Similarly for an assembler error.
83 (default_ld_nm): Similarly for an nm error.
84 (run_ld_link_tests): Report ld_assemble errors as a fail.
85 (check_as_cfi): Remove now unnecessary perror substitution.
86 * testsuite/ld-elf/exclude.exp: Report ld_nm error return as test
87 fails rather then unresolved.
88 * testsuite/ld-gc/gc.exp: Likewise.
89 * testsuite/ld-scripts/alignof.exp: Likewise.
90 * testsuite/ld-scripts/defined.exp: Likewise.
91 * testsuite/ld-scripts/script.exp: Likewise.
92 * testsuite/ld-scripts/sizeof.exp: Likewise.
93 * testsuite/ld-selective/selective.exp: Likewise.
94 * testsuite/ld-scripts/extern.exp: Likewise. Return on ld_link
96 * testsuite/ld-elfweak/elfweak.exp: Report compiler errors as
98 * testsuite/ld-fastcall/fastcall.exp: Report assember errors as
100 * testsuite/ld-i386/i386.exp (iamcu_tests): Likewise.
101 * testsuite/ld-ia64/line.exp: Likewise.
102 * testsuite/ld-mep/mep.exp: Likewise.
103 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
104 * testsuite/ld-nios2/nios2.exp: Likewise.
105 * testsuite/ld-scripts/alignof.exp: Likewise.
106 * testsuite/ld-x86-64/line.exp: Likewise.
107 * testsuite/ld-x86-64/x86-64.exp: Likewise.
108 * testsuite/ld-scripts/log2.exp: Formatting.
109 * testsuite/ld-tic6x/tic6x.exp: Report ld_link errors as a test fail.
111 2020-06-20 Alan Modra <amodra@gmail.com>
113 * testsuite/ld-alpha/alpha.exp: Exclude *ecoff targets.
114 * testsuite/ld-elf/binutils.exp: Likewise.
115 * testsuite/ld-elf/tls.exp: Likewise.
116 * testsuite/ld-elf/tls_common.exp: Likewise.
117 * testsuite/ld-scripts/phdrs2.exp: Likewise.
119 2020-06-20 Alan Modra <amodra@gmail.com>
121 * testsuite/ld-sh/sh.exp: Don't run relax tests for non-ELF.
122 Fail when ld_assemble fails. Use elseif to reduce indentation.
124 2020-06-19 Alan Modra <amodra@gmail.com>
126 * testsuite/ld-elf/dynamic-1.rd: Accept st_other notations.
127 * testsuite/ld-elf/rdynamic-1.rd: Likewise.
128 * testsuite/ld-elf/pr9676.rd: Likewise.
129 * testsuite/ld-elf/pr9679.rd: Likewise.
130 * testsuite/ld-elfvers/vers30.dsym: Likewise.
131 * testsuite/ld-elfvers/vers31.dsym: Likewise.
132 * testsuite/ld-plugin/pr22983.1.d: Likewise.
133 * testsuite/ld-plugin/pr22983.2.d: Likewise.
134 * testsuite/ld-plugin/pr22983.3.d: Likewise.
135 * testsuite/ld-plugin/pr22983.4.d: Likewise.
136 * testsuite/ld-ifunc/ifunc.exp: Exclude alpha.
138 2020-06-19 Alan Modra <amodra@gmail.com>
140 * emultempl/elf.em (gld${EMULATION_NAME}_handle_option): Omit
141 -z relro and -z norelro when target support for GNU_RELRO is lacking.
142 (gld${EMULATION_NAME}_before_parse): Ignore RELRO default too.
143 * emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse): Ignore
144 RELRO default when target support for GNU_RELRO is lacking.
145 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
146 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Likewise.
147 * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
148 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
149 * testsuite/ld-elf/pr16322.d: xfail when no relro support.
150 * testsuite/ld-elf/pr22393-1a.d: Likewise.
151 * testsuite/ld-elf/pr22393-1b.d: Likewise.
152 * testsuite/ld-elf/shared.exp (pr20995-2.so, pr20995-2): Likewise.
153 * testsuite/lib/ld-lib.exp (run_ld_link_tests): Use check_relro_support
154 to decide whether to pass extra ld option "-z norelro".
156 2020-06-17 H.J. Lu <hongjiu.lu@intel.com>
158 * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Append "-w"
161 2020-06-17 H.J. Lu <hongjiu.lu@intel.com>
163 * testsuite/ld-elf/linux-x86.exp: Require GCC 5 for Build
164 pr25749-1b (-pie -fPIE).
166 2020-06-16 Alan Modra <amodra@gmail.com>
168 * testsuite/ld-elf/pr23428.c: Define _DEFAULT_SOURCE.
169 * testsuite/ld-elf/indirect1b.c: Replace asm with __asm__.
170 * testsuite/ld-elf/indirect2.c: Likewise.
171 * testsuite/ld-elf/indirect3b.c: Likewise.
172 * testsuite/ld-elf/indirect4b.c: Likewise.
173 * testsuite/ld-elf/pr14323-2.c: Likewise.
174 * testsuite/ld-elf/pr18720b.c: Likewise.
175 * testsuite/ld-elf/pr19553c.c: Likewise.
176 * testsuite/ld-elf/pr23428.c: Likewise.
177 * testsuite/ld-elfvers/vers27b.c: Likewise.
178 * testsuite/ld-elfvsb/common.c: Likewise.
179 * testsuite/ld-elfvsb/main.c: Likewise.
180 * testsuite/ld-elfvsb/sh1.c: Likewise.
181 * testsuite/ld-elfvsb/test.c: Likewise.
182 * testsuite/ld-pe/aligncomm-1.c: Likewise.
183 * testsuite/ld-pe/aligncomm-2.c: Likewise.
184 * testsuite/ld-pe/aligncomm-3.c: Likewise.
185 * testsuite/ld-pe/aligncomm-4.c: Likewise.
186 * testsuite/ld-plugin/pr23958.c: Likewise.
187 * testsuite/ld-size/size-1b.c: Likewise.
188 * testsuite/ld-size/size-2b.c: Likewise.
189 * testsuite/ld-size/size-3a.c: Likewise.
190 * testsuite/ld-size/size-3b.c: Likewise.
191 * testsuite/ld-size/size-3c.c: Likewise.
192 * testsuite/ld-size/size-4b.c: Likewise.
193 * testsuite/ld-size/size-5b.c: Likewise.
194 * testsuite/ld-size/size-6a.c: Likewise.
195 * testsuite/ld-size/size-7a.c: Likewise.
196 * testsuite/ld-size/size-8a.c: Likewise.
197 * testsuite/ld-size/size-9b.c: Likewise.
198 * testsuite/ld-size/size-10b.c: Likewise.
200 2020-06-16 Alan Modra <amodra@gmail.com>
202 * emulparams/tic30aout.sh: Delete file.
203 * scripttempl/tic30aout.sc: Delete file.
204 * Makefile.am: Remove etic30aout.c from ALL_EMULATION_SOURCES and
206 * configure.tgt: Delete tic30-*-*aout* entry.
207 * testsuite/ld-scripts/sane1.d: Delete tic30-*-aout mention.
208 * testsuite/ld-scripts/segment-start.d: Likewise.
209 * Makefile.in: Regenerate.
210 * po/BLD-POTFILES.in: Regenerate.
212 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
214 * emultempl/xtensaelf.em (XSHAL_ABI): Remove macro definition.
215 (XTHAL_ABI_UNDEFINED, XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New
217 (elf32xtensa_abi): New declaration.
218 (xt_config_info_unpack_and_check): Set elf32xtensa_abi if it is
219 undefined. Use xtensa_abi_choice instead of XSHAL_ABI to test
221 (xtensa_add_config_info): Use xtensa_abi_choice instead of
222 XSHAL_ABI to format ABI tag.
223 (PARSE_AND_LIST_PROLOGUE): Define OPTION_ABI_WINDOWED,
224 OPTION_ABI_CALL0 and declare elf32xtensa_abi.
225 (PARSE_AND_LIST_LONGOPTS): Add entries for --abi-windowed and
227 (PARSE_AND_LIST_OPTIONS): Add help text for --abi-windowed and
229 (PARSE_AND_LIST_ARGS_CASES): Add handlers for --abi-windowed and
231 * ld.texi: Add description for options --abi-windowed and
234 2020-06-15 Roland McGrath <mcgrathr@google.com>
236 * NEWS: Mention -z start-stop-visibility=... option for ELF.
237 * ld.texi (Options): Document -z start-stop-visibility=... option.
238 * ldmain.c (main): Initialize link_info.start_stop_visibility.
239 * emultempl/elf.em (gld${EMULATION_NAME}_handle_option):
240 Parse -z start-stop-visibility=... option.
242 2020-06-15 Alan Modra <amodra@gmail.com>
244 * testsuite/ld-scripts/include.exp: Don't load ld-lib.exp.
245 * testsuite/ld-scripts/phdrs3.exp: Likewise.
246 * testsuite/ld-scripts/rgn-at.exp: Likewise.
247 * testsuite/ld-scripts/rgn-over.exp: Likewise.
248 * testsuite/ld-scripts/sort.exp: Likewise.
249 * testsuite/ld-discard/discard.exp: Likewise. Use is_elf_format.
251 2020-06-15 Alan Modra <amodra@gmail.com>
254 * testsuite/ld-linkonce/ref1.s,
255 * testsuite/ld-linkonce/ref2.s,
256 * testsuite/ld-linkonce/sym1.s,
257 * testsuite/ld-linkonce/sym2.s,
258 * testsuite/ld-linkonce/sym3.s: New test files.
259 * testsuite/ld-linkonce/linkonce.exp: Run tests for PE too.
260 Add pr26103 test. Remove unnecessary load_lib.
262 2020-06-15 Alan Modra <amodra@gmail.com>
264 * testsuite/ld-linkonce/zeroeh_x.s: Rename from x.s.
265 * testsuite/ld-linkonce/zeroeh_y.s: Rename from y.s.
266 * testsuite/ld-linkonce/zeroehl32.d: Adjust for renaming. Support
267 big-endian output. Run for powerpc.
269 2020-06-11 Alan Modra <amodra@gmail.com>
271 * testsuite/ld-plugin/lto.exp (lto_link_tests): Move lto-6,
272 pr12760, pr23818 and pr23958 tests to..
273 (lto_link_elf_tests): ..here.
275 2020-06-11 Nick Clifton <nickc@redhat.com>
277 * testsuite/ld-elf/pr26094-1b.c (main): Change return type to
280 2020-06-10 Alan Modra <amodra@gmail.com>
282 * testsuite/ld-elf/linux-x86.exp: Build tests when non-native.
283 (check_pr25749b): Add optional args. Set expected pass file
284 from args. Run -1b and -2a tests with passall.out.
285 * testsuite/ld-elf/passall.out: New file.
286 * testsuite/ld-elf/pr25749-1.c: Adjust to pass with older glibc.
287 * testsuite/ld-elf/pr25749-2.c: Likewise.
288 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Use
289 regexp_diff to compare expected output from running binary.
291 2020-06-10 H.J. Lu <hongjiu.lu@intel.com>
294 * testsuite/ld-elf/pr26094-1.ver: New fike.
295 * testsuite/ld-elf/pr26094-1a.c: Likewise.
296 * testsuite/ld-elf/pr26094-1a.rd: Likewise.
297 * testsuite/ld-elf/pr26094-1b.c: Likewise.
298 * testsuite/ld-elf/pr26094-1b.rd: Likewise.
299 * testsuite/ld-elf/pr26094-1c.c: Likewise.
300 * testsuite/ld-elf/shared.exp: Run ld/26094 tests.
302 2020-06-09 H.J. Lu <hongjiu.lu@intel.com>
305 * testsuite/ld-i386/i386.exp: Run ifunc-textrel-1a,
306 ifunc-textrel-1b, ifunc-textrel-2a and ifunc-textrel-2b.
307 * testsuite/ld-x86-64/x86-64.exp: Likewise.
308 * testsuite/ld-i386/ifunc-textrel-1a.d: Likewise.
309 * testsuite/ld-i386/ifunc-textrel-1b.d: Likewise.
310 * testsuite/ld-i386/ifunc-textrel-2a.d: Likewise.
311 * testsuite/ld-i386/ifunc-textrel-2b.d: Likewise.
312 * testsuite/ld-x86-64/ifunc-textrel-1.s: Likewise.
313 * testsuite/ld-x86-64/ifunc-textrel-1a.d: Likewise.
314 * testsuite/ld-x86-64/ifunc-textrel-1b.d: Likewise.
315 * testsuite/ld-x86-64/ifunc-textrel-2.s: Likewise.
316 * testsuite/ld-x86-64/ifunc-textrel-2a.d: Likewise.
317 * testsuite/ld-x86-64/ifunc-textrel-2b.d: Likewise.
318 * testsuite/ld-i386/pr18801a.d: Expect warning for IFUNC
320 * testsuite/ld-i386/pr18801b.d: Likewise.
321 * estsuite/ld-x86-64/pr18801a.d: Likewise.
322 * estsuite/ld-x86-64/pr18801b.d: Likewise.
324 2020-06-09 Alan Modra <amodra@gmail.com>
327 * testsuite/ld-elf/shared.exp: Compile dl4main.c -fPIC.
328 (dl4e, dl4f): Expect dl4a.out.
329 * testsuite/ld-elf/dl4e.out: Delete.
331 2020-06-07 H.J. Lu <hongjiu.lu@intel.com>
333 * testsuite/ld-elf/shared.exp: Pass $LFLAGS to PR ld/21703
336 2020-06-07 H.J. Lu <hongjiu.lu@intel.com>
338 * testsuite/ld-elf/shared.exp: Xfail pr20995/pr20995-2 for
341 2020-06-07 H.J. Lu <hongjiu.lu@intel.com>
343 * testsuite/ld-elf/pr11304.d: Skip tic6x-*-elf.
345 2020-06-06 Alan Modra <amodra@gmail.com>
347 * testsuite/ld-elf/comm-data.exp: Don't xfail arm or bfin-linux.
349 2020-06-06 Alan Modra <amodra@gmail.com>
351 * lexsup.c (ld_options): Accept -plugin and -plugin-opt when
353 * testsuite/lib/ld-lib.exp (check_plugin_api_available): Adjust.
355 2020-06-05 Nelson Chu <nelson.chu@sifive.com>
357 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Rename to
358 attr-merge-priv-spec-01.d.
359 * testsuite/ld-riscv-elf/attr-merge-priv-spec-c.s: Set spec to 1.11.
360 * testsuite/ld-riscv-elf/attr-merge-priv-spec-d.s: Empty priv spec set.
361 * testsuite/ld-riscv-elf/attr-merge-priv-spec-02.d: New testcase.
362 * testsuite/ld-riscv-elf/attr-merge-priv-spec-03.d: Likewise.
363 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
364 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
365 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
366 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
367 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
368 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
370 2020-06-05 Nelson Chu <nelson.chu@sifive.com>
372 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: The CSR isn't used,
373 so ignore the -mpriv-spec setting.
374 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
375 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
376 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
377 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
378 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
379 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
380 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
381 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
382 * testsuite/ld-riscv-elf/call-relax.d: Add -mno-arch-attr.
384 2020-06-04 H.J. Lu <hongjiu.lu@intel.com>
387 * testsuite/ld-elf/comm-data.exp: Remove copy_reloc.
388 * testsuite/ld-elf/comm-data2r.rd: Removed.
389 * testsuite/ld-elf/comm-data2r.sd: Likewise.
390 * testsuite/ld-elf/comm-data2r.xd: Likewise.
392 2020-06-04 Alan Modra <amodra@gmail.com>
394 * testsuite/config/default.exp: Remove global directive outside
396 * testsuite/ld-bootstrap/bootstrap.exp: Likewise.
397 * testsuite/ld-elf/compress.exp: Likewise.
398 * testsuite/ld-elf/elf.exp: Likewise.
399 * testsuite/ld-elf/exclude.exp: Likewise.
400 * testsuite/ld-elf/frame.exp: Likewise.
401 * testsuite/ld-elf/indirect.exp: Likewise.
402 * testsuite/ld-elf/linux-x86.exp: Likewise.
403 * testsuite/ld-elf/shared.exp: Likewise.
404 * testsuite/ld-elf/tls.exp: Likewise.
405 * testsuite/ld-elf/tls_common.exp: Likewise.
406 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
407 * testsuite/ld-elfweak/elfweak.exp: Likewise.
408 * testsuite/ld-frv/fdpic.exp: Likewise.
409 * testsuite/ld-frv/tls.exp: Likewise.
410 * testsuite/ld-gc/gc.exp: Likewise.
411 * testsuite/ld-i386/i386.exp: Likewise.
412 * testsuite/ld-i386/no-plt.exp: Likewise.
413 * testsuite/ld-ifunc/ifunc.exp: Likewise.
414 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
415 * testsuite/ld-nios2/nios2.exp: Likewise.
416 * testsuite/ld-plugin/lto.exp: Likewise.
417 * testsuite/ld-plugin/plugin.exp: Likewise.
418 * testsuite/ld-powerpc/export-class.exp: Likewise.
419 * testsuite/ld-scripts/align.exp: Likewise.
420 * testsuite/ld-scripts/crossref.exp: Likewise.
421 * testsuite/ld-scripts/defined.exp: Likewise.
422 * testsuite/ld-scripts/overlay-size.exp: Likewise.
423 * testsuite/ld-scripts/provide.exp: Likewise.
424 * testsuite/ld-scripts/weak.exp: Likewise.
425 * testsuite/ld-selective/selective.exp: Likewise.
426 * testsuite/ld-sh/rd-sh.exp: Likewise.
427 * testsuite/ld-size/size.exp: Likewise.
428 * testsuite/ld-srec/srec.exp: Likewise.
429 * testsuite/ld-x86-64/mpx.exp: Likewise.
430 * testsuite/ld-x86-64/no-plt.exp: Likewise.
431 * testsuite/ld-x86-64/x86-64.exp: Likewise.
433 2020-06-04 Alan Modra <amodra@gmail.com>
435 * testsuite/ld-dynamic/export-dynamic-symbol-2.d: Match output for
437 * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: Likewise.
438 * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: Likewise.
439 * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: Likewise.
440 * testsuite/ld-dynamic/export-dynamic-symbol.exp: Exclude targets
441 with poor PIE support.
443 2020-06-04 Alan Modra <amodra@gmail.com>
445 * testsuite/ld-plugin/lto.exp (pr12758.exe): Add NOPIE_LDFLAGS.
446 * testsuite/ld-unique/unique.exp: Add NOPIE_LDFLAGS to unique
447 executable and dynamic executable tests.
449 2020-06-03 H.J. Lu <hongjiu.lu@intel.com>
451 * testsuite/config/default.exp (NOSANTIZE_CFLAGS): New.
452 * testsuite/ld-elf/linux-x86.exp: Add $NOSANTIZE_CFLAGS to
453 tests with run_ld_link_exec_tests.
454 * testsuite/ld-elf/shared.exp: Add $NOSANTIZE_CFLAGS to tests
455 with run_ld_link_tests.
456 * testsuite/ld-elf/tls.exp: Likewise.
457 * testsuite/ld-elfweak/elfweak.exp: Add $NOSANTIZE_CFLAGS to
459 * testsuite/ld-gc/gc.exp: Add $NOSANTIZE_CFLAGS to cflags.
460 * testsuite/ld-plugin/lto.exp: Add $NOSANTIZE_CFLAGS to tests
461 with run_ld_link_tests.a
462 * testsuite/ld-plugin/plugin.exp: Append $NOSANTIZE_CFLAGS to
464 * testsuite/ld-selective/selective.exp: Add $NOSANTIZE_CFLAGS
465 to cflags and cxxflags.
466 * testsuite/ld-srec/srec.exp: Append $NOSANTIZE_CFLAGS to CC
468 * testsuite/ld-x86-64/plt-main-ibt-x32.dd: Updated for
469 -fsanitize=undefined.
470 * testsuite/ld-x86-64/plt-main-ibt.dd: Likewise.
471 * testsuite/ld-x86-64/x86-64.exp: Add $NOSANTIZE_CFLAGS to
472 tests with run_cc_link_tests and run_ld_link_tests.
474 2020-06-03 Fangrui Song <maskray@google.com>
475 H.J. Lu <hongjiu.lu@intel.com>
478 * NEWS: Mention --export-dynamic-symbol[-list].
479 * ld.texi: Document --export-dynamic-symbol[-list].
480 * ldgram.y: Pass current_dynamic_list_p to
481 lang_append_dynamic_list.
482 * ldlang.c (current_dynamic_list_p): New.
483 (ang_append_dynamic_list): Updated to take a pointer to
484 struct bfd_elf_dynamic_list * argument instead of using
485 link_info.dynamic_list.
486 (lang_append_dynamic_list_cpp_typeinfo): Pass
487 &link_info.dynamic_list to ang_append_dynamic_list.
488 (lang_append_dynamic_list_cpp_new): Likewise.
489 * ldlang.h (current_dynamic_list_p): New.
490 (lang_append_dynamic_list): Add a pointer to
491 struct bfd_elf_dynamic_list * argument.
492 * ldlex.h (option_values): Add OPTION_EXPORT_DYNAMIC_SYMBOL and
493 OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
494 * lexsup.c (ld_options): Add entries for
495 OPTION_EXPORT_DYNAMIC_SYMBOL and
496 OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
497 (parse_args): Handle --export-dynamic-symbol and
498 --export-dynamic-symbol-list.
499 * testsuite/ld-dynamic/export-dynamic-symbol-1.d: New.
500 * testsuite/ld-dynamic/export-dynamic-symbol-2.d: New.
501 * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: New.
502 * testsuite/ld-dynamic/export-dynamic-symbol-list-1.d: New.
503 * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: New.
504 * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: New.
505 * testsuite/ld-dynamic/export-dynamic-symbol.exp: New.
506 * testsuite/ld-dynamic/export-dynamic-symbol.s: New.
507 * testsuite/ld-dynamic/foo-bar.list: New.
508 * testsuite/ld-dynamic/foo.list: New.
509 * testsuite/ld-dynamic/foo.s: New.
510 * testsuite/ld-dynamic/fstar.list: New.
511 * testsuite/ld-elf/dlempty.list: New.
512 * testsuite/ld-elf/shared.exp: Add tests for
513 --export-dynamic-symbol and --export-dynamic-symbol-list.
515 2020-06-03 Jan Beulich <jbeulich@suse.com>
517 * testsuite/ld-elf/linux-x86.exp: Make copied source files
520 2020-05-28 Nick Clifton <nickc@redhat.com>
523 * ldelf.c (ldelf_after_open): Fail if attempting to link one
524 executable into another. Ensure that the test is made for all
527 2020-05-28 H.J. Lu <hongjiu.lu@intel.com>
529 * NEWS: Mention --enable-textrel-check=yes is default for
531 * configure.tgt (ac_default_ld_textrel_check): Set to yes if
532 unset for Linux/x86 targets.
534 2020-05-28 H.J. Lu <hongjiu.lu@intel.com>
537 * NEWS: Mention --enable-textrel-check=[no|yes|warning|error].
538 * configure.ac: Add --enable-textrel-check=[no|yes|warning|error].
539 (DEFAULT_LD_TEXTREL_CHECK): New AC_DEFINE_UNQUOTED.
540 (DEFAULT_LD_TEXTREL_CHECK_WARNING): Likewise.
541 * ldmain.c (main): Initialize link_info.textrel_check to
542 DEFAULT_LD_TEXTREL_CHECK.
543 * lexsup.c (ld_options): Check DEFAULT_LD_TEXTREL_CHECK_WARNING.
544 * config.in: Regenerated.
545 * configure: Likewise.
547 2020-05-28 Nick Clifton <nickc@redhat.com>
549 * lexsup.c (parse_args): Generate an error if a name is not
550 provided to the -Map option.
551 (ld_options): Mention that the -Map option supports a directory
553 * NEWS: Remove mention of support for an empty string as an
557 2020-05-27 Hans-Peter Nilsson <hp@axis.com>
560 * testsuite/ld-elf/pr19539.d: Don't xfail for cris*-*-*.
562 2020-05-27 Rasmus Villemoes <rv@rasmusvillemoes.dk>
563 Nick Clifton <nickc@redhat.com>
565 * lexsup.c (parse_args): If the map filename is defined but empty
566 create a name based upon the output file name. If the name is
567 defined but refers to a directory create a file inside the
568 directory based on the output file name.
569 * ld.texi: Document the new feature.
570 * testsuite/ld-script/map-address.exp: Add test of new feature.
571 * NEWS: Mention the new feature.
573 2020-05-27 H.J. Lu <hongjiu.lu@intel.com>
576 * NEWS: Mention --warn-textrel.
577 * ld.texi: Update -z text/notext/textoff. Add --warn-textrel.
578 Remove --warn-shared-textrel.
579 * ldlex.h (option_values): Rename OPTION_WARN_SHARED_TEXTREL to
581 * lexsup.c (ld_options): Add --warn-textrel. Obsolete
582 --warn-shared-textrel.
583 (parse_args): Updated.
584 (elf_shlib_list_options): Check link_info.textrel_check.
585 * emultempl/elf.em: Updated.
586 * testsuite/ld-elf/pr19539.d: Replace -z notext with
587 --warn-textrel. Expect a warning.
588 * testsuite/ld-i386/warn1.d: Update expected warning.
590 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
592 * testsuite/ld-ifunc/ifunc-23a-x86.d: Skip *-*-lynxos *-*-nto*.
593 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
594 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
596 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
598 * testsuite/ld-x86-64/x86-64.exp: Pass -z notext to linker.
600 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
602 * testsuite/ld-elf/eh6.d: Pass -z notext to linker.
603 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
604 * testsuite/ld-elf/pr19539.d: Likewise.
605 * testsuite/ld-elfvers/vers.exp: Likewise.
606 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
607 * testsuite/ld-i386/i386.exp: Likewise.
608 * testsuite/ld-i386/nogot1.d: Likewise.
609 * testsuite/ld-i386/pr19539.d: Likewise.
610 * testsuite/ld-i386/pr19636-2a.d: Likewise.
611 * testsuite/ld-i386/pr19636-2b.d: Likewise.
612 * testsuite/ld-i386/pr19636-2c.d: Likewise.
613 * testsuite/ld-i386/pr19636-2d.d: Likewise.
614 * testsuite/ld-i386/pr19636-2e.d: Likewise.
615 * testsuite/ld-i386/pr19636-3d.d: Likewise.
616 * testsuite/ld-i386/pr19636-3e.d: Likewise.
617 * testsuite/ld-i386/pr19939b.d: Likewise.
618 * testsuite/ld-i386/undefweaka.d: Likewise.
619 * testsuite/ld-i386/undefweakb.d: Likewise.
620 * testsuite/ld-shared/shared.exp: Likewise.
621 * testsuite/ld-size/size.exp: Likewise.
622 * testsuite/ld-unique/unique.exp: Likewise.
623 * testsuite/ld-x86-64/pie1.d: Likewise.
624 * testsuite/ld-x86-64/pr19539a.d: Likewise.
625 * testsuite/ld-x86-64/pr19539b.d: Likewise.
626 * testsuite/ld-x86-64/pr19636-1d.d: Likewise.
627 * testsuite/ld-x86-64/pr19636-1e.d: Likewise.
628 * testsuite/ld-x86-64/pr19807-1a.d: Likewise.
629 * testsuite/ld-x86-64/pr19807-1b.d: Likewise.
630 * testsuite/ld-x86-64/pr19807-2b.d: Likewise.
631 * testsuite/ld-x86-64/pr19807-2c.d: Likewise.
632 * testsuite/ld-x86-64/pr19807-2d.d: Likewise.
633 * testsuite/ld-x86-64/pr19807-2e.d: Likewise.
634 * testsuite/ld-x86-64/pr19939b.d: Likewise.
635 * testsuite/ld-x86-64/x86-64.exp: Likewise.
637 2020-05-24 Fangrui Song <maskray@google.com>
640 * lexsup.c (parse_args): Simplify.
641 * testsuite/ld-elf/dl4e.out: New.
642 * testsuite/ld-elf/shared.exp: Updated for PR ld/26018 tests.
644 2020-05-23 H.J. Lu <hongjiu.lu@intel.com>
647 * testsuite/ld-i386/i386.exp: Add a -Bsymbolic-functions test.
648 * testsuite/ld-x86-64/x86-64.exp: Likewise.
649 * testsuite/ld-i386/pr26018.d: New file.
650 * testsuite/ld-x86-64/pr26018.d: Likewise.
651 * testsuite/ld-x86-64/pr26018.s: Likewise.
653 2020-05-21 Alan Modra <amodra@gmail.com>
655 * deffilep.y: Replace "if (x) free (x)" with "free (x)" thoughout.
656 * emultempl/elf.em: Likewise.
657 * emultempl/msp430.em: Likewise.
658 * emultempl/pe.em: Likewise.
659 * emultempl/pep.em: Likewise.
660 * emultempl/ppc64elf.em: Likewise.
661 * emultempl/xtensaelf.em: Likewise.
663 * ldfile.c: Likewise.
664 * ldmain.c: Likewise.
665 * ldmisc.c: Likewise.
666 * lexsup.c: Likewise.
667 * pe-dll.c: Likewise.
669 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
671 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Updated
672 priv attributes according to the -mpriv-spec option.
673 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
674 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
675 * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
676 * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
677 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
678 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
679 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
680 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
681 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
682 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
683 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
685 2020-05-20 Alan Modra <amodra@gmail.com>
688 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't copy
689 other_bfd_filename for bfd_set_filename, and test result of
690 bfd_set_filename call. Don't create a new is->filename, simply
691 copy from bfd filename. Free new_name after bfd_set_filename.
692 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
694 2020-05-19 Siddhesh Poyarekar <siddesh.poyarekar@arm.com>
696 * testsuite/ld-aarch64/aarch64-elf.exp: New test
698 * testsuite/ld-aarch64/emit-relocs-560.d: New file.
699 * testsuite/ld-aarch64/emit-relocs-560.s: New file.
701 2020-05-19 Alan Modra <amodra@gmail.com>
703 * emultempl/beos.em (sort_by_file_name): Use bfd_get_filename
704 rather than accessing bfd->filename directly.
705 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
706 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
707 * emultempl/spuelf.em (embedded_spu_file): Likewise.
708 * ldlang.c (input_statement_is_archive_path, wild_sort),
709 (check_excluded_libs): Likewise.
710 * ldmain.c (add_archive_element): Likewise.
711 * ldmisc.c (vfinfo): Likewise.
712 * pe-dll.c (auto_export, generate_edata, pe_create_import_fixup),
713 (pe_dll_generate_implib, pe_process_import_defs): Likewise.
714 * plugin.c (plugin_object_p): Likewise.
716 2020-05-18 Douglas B Rupp <rupp@adacore.com>
718 * ldemul.h (ldemul_print_symbol): New.
719 (ld_emulation_xfer_type) <print_symbol): Likewise.
720 * ldemul.c (ldemul_print_symbol): New.
721 * ldlang.c (SECTION_NAME_MAP_LANGTH): Move to ...
722 (print_one_symbol): Make global and move declaration to ...
723 (print_all_symbols): Rename print_one_symbol to ldemul_print_symbol
724 (print_input_section): Likewise
725 * ldlang.h: ... here.
726 * emultempl/aix.em (gld${EMULATION_NAME}_print_symbol): New.
727 (ld_emulation_xfer_struct): Use it.
728 * emultempl/armcoff.em (ld_emulation_xfer_struct): Add print_symbol
730 * emultempl/beos.em (ld_emulation_xfer_struct): Likewise
731 * emultempl/elf.em (ld_emulation_xfer_struct): Likewise
732 * emultempl/generic.em (ld_emulation_xfer_struct): Likewise
733 * emultempl/linux.em (ld_emulation_xfer_struct): Likewise
734 * emultempl/msp430.em (ld_emulation_xfer_struct): Likewise
735 * emultempl/pe.em (ld_emulation_xfer_struct): Likewise
736 * emultempl/pep.em (ld_emulation_xfer_struct): Likewise
737 * emultempl/ticoff.em (ld_emulation_xfer_struct): Likewise
738 * emultempl/vanilla.em (ld_emulation_xfer_struct): Likewise
740 2020-05-18 Sergei Trofimovich <siarheit@google.com>
742 * ldmain.c (add_archive_element): Fix s/claimi/claim/ typo
745 2020-05-18 Nick Clifton <nickc@redhat.com>
747 * po/sv.po: Update Swedish translation.
749 2020-05-18 Nick Clifton <nickc@redhat.com>
752 * emultempl/pe.em (_after_open): Check for duplicate filename
753 pointers before renaming the dll.
754 * emultempl/pep.em (_after_open): Likewise.
756 2020-05-13 Nick Clifton <nickc@redhat.com>
759 * lexsup.c (elf_shlib_list_options): Include the default value for
760 the hash style in the output text.
762 2020-05-11 Alan Modra <amodra@gmail.com>
764 * testsuite/ld-powerpc/pcrelopt.s: Add lxvp and stxvp.
765 * testsuite/ld-powerpc/pcrelopt.d: Update.
767 2020-05-11 Alan Modra <amodra@gmail.com>
769 * testsuite/ld-powerpc/callstub-1.d: Use -mpower10/-Mpower10 in
770 place of -mfuture/-Mfuture.
771 * testsuite/ld-powerpc/notoc2.d: Likewise.
772 * testsuite/ld-powerpc/powerpc.exp: Likewise.
773 * testsuite/ld-powerpc/tlsgd.d: Likewise.
774 * testsuite/ld-powerpc/tlsie.d: Likewise.
775 * testsuite/ld-powerpc/tlsld.d: Likewise.
777 2020-05-11 Nick Clifton <nickc@redhat.com>
779 * po/es.po: Updated Spanish translation.
781 2020-05-01 Wilco Dijkstra <wdijkstr@arm.com>
784 * testsuite/ld-aarch64/farcall-group.s: New large group test.
785 * testsuite/ld-aarch64/farcall-group.d: New test driver.
786 * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
788 2020-05-01 Alan Modra <amodra@gmail.com>
791 * ldlang.c (lang_check): Call bfd_merge_private_bfd_data for
794 2020-05-01 Alan Modra <amodra@gmail.com>
796 * po/BLD-POTFILES.in: Regenerate.
798 2020-04-30 Alex Coplan <alex.coplan@arm.com>
800 * testsuite/ld-aarch64/erratum843419_tls_ie.d: Use udf in disassembly.
801 * testsuite/ld-aarch64/farcall-b-section.d: Likewise.
802 * testsuite/ld-aarch64/farcall-back.d: Likewise.
803 * testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
805 2020-04-30 Nick Clifton <nickc@redhat.com>
807 * testsuite/ld-elf/compress1c.d: XFAIL if thet target linker does
808 not support the -shared command line option.
809 * /ld-elf/compressed1c.d: Likewise.
810 * /ld-elf/compressed1e.d: Likewise.
811 * /ld-elf/dynamic1.d: Likewise.
812 * /ld-elf/dynsym1.d: Likewise.
813 * /ld-elf/ehdr_start-shared.d: Likewise.
814 * /ld-elf/exclude3b.d: Likewise.
815 * /ld-elf/global1.d: Likewise.
816 * /ld-elf/hash.d: Likewise.
817 * /ld-elf/local1.d: Likewise.
818 * /ld-elf/mbind1b.d: Likewise.
819 * /ld-elf/now-1.d: Likewise.
820 * /ld-elf/now-2.d: Likewise.
821 * /ld-elf/now-3.d: Likewise.
822 * /ld-elf/now-4.d: Likewise.
823 * /ld-elf/pr12975.d: Likewise.
824 * /ld-elf/pr13177.d: Likewise.
825 * /ld-elf/pr13195.d: Likewise.
826 * /ld-elf/pr16322.d: Likewise.
827 * /ld-elf/pr16498a.d: Likewise.
828 * /ld-elf/pr16498b.d: Likewise.
829 * /ld-elf/pr17615.d: Likewise.
830 * /ld-elf/pr19162.d: Likewise.
831 * /ld-elf/pr19698.d: Likewise.
832 * /ld-elf/pr20513c.d: Likewise.
833 * /ld-elf/pr20513d.d: Likewise.
834 * /ld-elf/pr21389a.d: Likewise.
835 * /ld-elf/pr21389b.d: Likewise.
836 * /ld-elf/pr21389c.d: Likewise.
837 * /ld-elf/pr21562a.d: Likewise.
838 * /ld-elf/pr21562b.d: Likewise.
839 * /ld-elf/pr21562c.d: Likewise.
840 * /ld-elf/pr21562d.d: Likewise.
841 * /ld-elf/pr21562e.d: Likewise.
842 * /ld-elf/pr21562f.d: Likewise.
843 * /ld-elf/pr21562g.d: Likewise.
844 * /ld-elf/pr21562h.d: Likewise.
845 * /ld-elf/pr21562i.d: Likewise.
846 * /ld-elf/pr21562j.d: Likewise.
847 * /ld-elf/pr21562k.d: Likewise.
848 * /ld-elf/pr21562l.d: Likewise.
849 * /ld-elf/pr21562m.d: Likewise.
850 * /ld-elf/pr21562n.d: Likewise.
851 * /ld-elf/pr21903a.d: Likewise.
852 * /ld-elf/pr21903b.d: Likewise.
853 * /ld-elf/pr22269b.d: Likewise.
854 * /ld-elf/pr22393-1a.d: Likewise.
855 * /ld-elf/pr22393-1b.d: Likewise.
856 * /ld-elf/pr23658-1c.d: Likewise.
857 * /ld-elf/pr25708.d: Likewise.
858 * /ld-elf/rpath-1.d: Likewise.
859 * /ld-elf/rpath-2.d: Likewise.
860 * /ld-elf/runpath-1.d: Likewise.
861 * /ld-elf/runpath-2.d: Likewise.
862 * /ld-elf/sizeofb.d: Likewise.
863 * /ld-elf/startofb.d: Likewise.
864 * /ld-elf/strtab.d: Likewise.
865 * /ld-elf/textaddr2.d: Likewise.
866 * /ld-elf/textaddr5.d: Likewise.
867 * /ld-elf/textaddr6.d: Likewise.
868 * /ld-elf/unknown2.d: Likewise.
869 * /ld-undefined/entry-3.d: Likewise.
870 * /ld-undefined/entry-4.d: Likewise.
871 * /ld-elf/mbind1c.d: XFAIL if the target linker does not support
873 * /ld-elf/pie.d: Likewise.
874 * /ld-elf/pr19539.d: Likewise.
875 * /ld-elf/pr21903d.d: Likewise.
876 * /ld-elf/pr22269a.d: Likewise.
877 * /ld-elf/pr22393-1c.d: Likewise.
878 * /ld-elf/pr22393-1d.d: Likewise.
879 * /ld-elf/pr22423.d: Likewise.
880 * /ld-elf/loadaddr1.d: Expect to fail on the rx-linux target.
881 * /ld-elf/loadaddr2.d: Likewise.
882 * /ld-elf/pr22393-1e.d: Likewise.
883 * /ld-elf/pr22393-1f.d: Likewise.
884 * /ld-elf/textaddr1.d: Likewise.
885 * /ld-elf/textaddr4.d: Likewise.
887 2020-04-30 Yoshinori Sato <ysato@users.sourceforge.jp>
889 * emulparams/elf32rx_linux.sh: New rx-linux emulation.
890 * emultempl/rxlinux.em: New.
891 * configure.tgt: Add rx-linux.
892 * Makefile.am: Add eelf32rx_linux.c
893 * Makefile.in: Regenerate.
895 2020-04-29 Max Filippov <jcmvbkbc@gmail.com>
897 * testsuite/ld-xtensa/relax-diff1.d: New test definition.
898 * testsuite/ld-xtensa/relax-diff1.s: New test source.
899 * testsuite/ld-xtensa/relax-ndiff.d: New test definition.
900 * testsuite/ld-xtensa/relax-ndiff.s: New test source.
901 * testsuite/ld-xtensa/xtensa.exp: (relax-diff1)
902 (relax-ndiff): New tests.
904 2020-04-29 Stephen Casner <casner@acm.org>
907 * testsuite/ld-scripts/default-script.exp: Add --image-base=0 to
908 LDFLAGS for targets *-*-mingw64 x86_64-*-cygwin.
909 * testsuite/ld-scripts/default-script1.d: No longer have to skip
910 test for those targets.
911 * testsuite/ld-scripts/default-script2.d: Likewise.
912 * testsuite/ld-scripts/default-script3.d: Likewise.
913 * testsuite/ld-scripts/default-script4.d: Likewise.
915 2020-04-27 Tamar Christina <tamar.christina@arm.com>
917 * pe-dll.c (pe_detail_list): Add pe-bigobj-i386.
919 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
922 * testsuite/ld-xtensa/relax-loc.d: New test definition.
923 * testsuite/ld-xtensa/relax-loc.s: New test source.
924 * testsuite/ld-xtensa/xtensa.exp (relax-loc): New test.
926 2020-04-22 Fangrui Song <maskray@google.com>
929 * ldlang.h (struct lang_input_statement_struct): Add extra_search_path.
930 * ldlang.c (current_input_file): New.
932 (new_afile): Add from_filename parameter. Set extra_search_path.
933 (lang_add_input_file): Pass current_input_file to new_afile.
934 (load_symbols): Set current_input_file.
935 * ldfile.c (ldfile_open_file): If extra_search_path has been set
936 then scan it for the file that needs to be opened.
937 * ld.texi: Document the new behaviour.
938 * NEWS: Mention the new feature.
940 2020-04-22 Alan Modra <amodra@gmail.com>
942 * testsuite/ld-scripts/default-script1.d: Correct mingw skip.
943 * testsuite/ld-scripts/default-script2.d: Likewise.
944 * testsuite/ld-scripts/default-script3.d: Likewise.
945 * testsuite/ld-scripts/default-script4.d: Likewise.
947 2020-04-21 Stephen Casner <casner@acm.org>
950 * testsuite/ld-scripts/script.exp (check_script)
951 (extract_symbol_test): Make test addresses fit in 16 bits.
952 * testsuite/ld-scripts/memory.t: Likewise.
953 * testsuite/ld-scripts/memory_sym.t (TXT_LENGTH): Likewise.
954 * testsuite/ld-scripts/default-script.t (_START): Likewise.
955 * testsuite/ld-scripts/default-script1.d: Likewise.
956 * testsuite/ld-scripts/default-script2.d: Likewise.
957 * testsuite/ld-scripts/default-script3.d: Likewise.
958 * testsuite/ld-scripts/default-script4.d: Likewise.
959 * testsuite/ld-scripts/empty-address-1.t: Likewise.
960 * testsuite/ld-scripts/empty-address-1.d: Likewise.
961 * testsuite/ld-scripts/empty-address-2a.d: Likewise.
962 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
963 * testsuite/ld-misc/start.s: .long -> .dc.a to allow relocation to
964 fit target address size.
965 * testsuite/ld-scripts/empty-address-1.s: Likewise.
966 * testsuite/ld-scripts/empty-address-2.s: Likewise.
968 2020-04-21 H.J. Lu <hongjiu.lu@intel.com>
971 * ldelfgen.c (ldelf_map_segments): Call
972 elf_backend_strip_zero_sized_dynamic_sections.
973 * testsuite/ld-alpha/tlsbinr.rd: Updated.
975 2020-04-20 Alan Modra <amodra@gmail.com>
977 * testsuite/ld-powerpc/tlsopt5.s: Rename foo to aaaaa.
978 * testsuite/ld-powerpc/tlsopt5.d: Adjust to suit.
979 * testsuite/ld-powerpc/tlsopt6.d: Likewise.
981 2020-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
983 * testsuite/ld-elf/warn1.d: Don't xfail on 64-bit Solaris/SPARC.
984 * testsuite/ld-elf/warn2.d: Likewise.
986 2020-04-18 H.J. Lu <hongjiu.lu@intel.com>
988 * testsuite/ld-elf/elf.exp (ASFLAGS): Add "--defsym NO_SET=1" for
990 * testsuite/ld-elf/pr19789.s: Use "=" if NO_SET is defined.
992 2020-04-16 Stephen Casner <casner@acm.org>
995 * testsuite/ld-scripts/pr18963.t: Reduce section sizes to fit in
996 16-bit address space.
997 * testsuite/ld-scripts/pr18963.d: Likewise.
999 2020-04-17 Juan Manuel Guerrero <juan.guerrero@gmx.de>
1000 Jan W. Jagersma <jwjagersma@gmail.com>
1002 * scripttempl/i386go32.sc: Provide symbol _environ. Link in
1003 .ctors and .dtors. Discard LTO sections.
1005 2020-04-17 Nick Clifton <nickc@redhat.com>
1007 * testsuite/config/default.exp: If not already set then create the
1008 CCC_OVERRIDE_OPTIONS environment variable to help when running the
1009 testsuite with clang.
1010 * testsuite/ld-elf/pr22269-1.c: Add a missing return statement.
1011 * testsuite/ld-elfvers/vers.exp: Add checks to detect if files
1012 were built before attempting to copy them.
1014 2020-04-15 Fangrui Song <maskray@google.com>
1017 * lexsup.c (parse_args): Change RM_GENERATE_WARNING and
1018 RM_GENERATE_ERROR to RM_DIAGNOSE.
1019 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Change
1020 RM_GENERATE_ERROR to RM_DIAGNOSE.
1021 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Likewise.
1023 2020-04-14 Stephen Casner <casner@acm.org>
1026 * emulparams/pdp11.sh (SCRIPT_NAME): Change to pdp11.
1027 (EXTRA_EM_FILE): New, add emulation file pdp11.
1028 * scripttempl/pdp11.sc: New, derived from aout.sc without
1029 irrelevant input sections.
1030 * emultempl/pdp11.em (_add_options, _handle_option)
1031 (_list_options): New. Add options -z, --imagic for pdp11-aout.
1032 (_before_parse): Make --omagic be default instead of --nmagic.
1033 (_get_script): Modify special-case linker script for --imagic.
1034 * lexsup.c (parse_args): Explictly set config.text_read_only for -n.
1035 * ld.texi (Options): Add documentation of PDP11-specific options.
1036 (Options): Fix unrelated typo to --no-compact-branches.
1037 * gen-doc.texi: @set PDP11.
1038 * testsuite/ld-pdp11/pdp11.exp: New, start pdp11 testing.
1039 * testsuite/ld-pdp11/sections.s: New, source for options tests.
1040 * testsuite/ld-pdp11/imagic.d: New, test --imagic format.
1041 * testsuite/ld-pdp11/imagicz.d: New, test -z (imagic) format.
1042 * testsuite/ld-pdp11/nmagic.d: New, test --nmagic format.
1043 * testsuite/ld-pdp11/omagic.d: New, test --omagic format.
1045 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
1048 * testsuite/ld-arm/armthumb-lib.sym: Updated.
1049 * testsuite/ld-arm/farcall-mixed-app.sym: Likewise.
1050 * testsuite/ld-arm/farcall-mixed-app2.sym: Likewise.
1051 * testsuite/ld-arm/fdpic-main-m.sym: Likewise.
1052 * testsuite/ld-arm/fdpic-main.sym: Likewise.
1053 * testsuite/ld-arm/fdpic-shared-m.sym: Likewise.
1054 * testsuite/ld-arm/fdpic-shared.sym: Likewise.
1055 * testsuite/ld-arm/mixed-app.sym: Likewise.
1056 * testsuite/ld-arm/mixed-lib.sym: Likewise.
1057 * testsuite/ld-arm/preempt-app.sym: Likewise.
1058 * testsuite/ld-elf/hash.d: Likewise.
1059 * testsuite/ld-elf/pr13195.d: Likewise.
1060 * testsuite/ld-elfvsb/hidden2.d: Likewise.
1061 * testsuite/ld-mips-elf/hash2.d: Likewise.
1063 2020-04-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1065 * testsuite/ld-shared/shared.exp: Remove dangling comments.
1066 xfail shared non PIC tests on Solaris.
1068 2020-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1070 * testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIC on sparc*-*-*.
1072 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
1074 * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): Replace
1075 nopie with available.
1077 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
1079 * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): New.
1080 Set to "-fcf-protection=none" if target compiler supports it.
1081 * testsuite/ld-srec/srec.exp: Add $NOCF_PROTECTION_CFLAGS to
1083 * testsuite/ld-x86-64/x86-64.exp: Add $NOCF_PROTECTION_CFLAGS
1086 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
1088 * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Compile with
1090 (check_pr25749b): Likewise.
1092 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1094 * testsuite/ld-ifunc/ifunc-10-i386.d: Remove *-*-solaris2* from
1096 * ifunc-11-i386.d: Likewise.
1097 * ifunc-12-i386.d: Likewise.
1098 * ifunc-13-i386.d: Likewise.
1099 * ifunc-14a-i386.d: Likewise.
1100 * ifunc-14b-i386.d: Likewise.
1101 * ifunc-14c-i386.d: Likewise.
1102 * ifunc-14d-i386.d: Likewise.
1103 * ifunc-14e-i386.d: Likewise.
1104 * ifunc-14f-i386.d: Likewise.
1105 * ifunc-15-i386.d: Likewise.
1106 * ifunc-16-i386-now.d: Likewise.
1107 * ifunc-16-i386.d: Likewise.
1108 * ifunc-17a-i386.d: Likewise.
1109 * ifunc-17b-i386.d: Likewise.
1110 * ifunc-18a-i386.d: Likewise.
1111 * ifunc-18b-i386.d: Likewise.
1112 * ifunc-19a-i386.d: Likewise.
1113 * ifunc-19b-i386.d: Likewise.
1114 * ifunc-2-i386-now.d: Likewise.
1115 * ifunc-2-i386.d: Likewise.
1116 * ifunc-2-local-i386-now.d: Likewise.
1117 * ifunc-2-local-i386.d: Likewise.
1118 * ifunc-20-i386.d: Likewise.
1119 * ifunc-21-i386.d: Likewise.
1120 * ifunc-22-i386.d: Likewise.
1121 * ifunc-5a-i386.d: Likewise.
1122 * ifunc-5a-local-i386.d: Likewise.
1123 * ifunc-5b-i386.d: Likewise.
1124 * ifunc-5b-local-i386.d: Likewise.
1125 * ifunc-5r-local-i386.d: Likewise.
1126 * ifunc-6a-i386.d: Likewise.
1127 * ifunc-6b-i386.d: Likewise.
1128 * ifunc-7a-i386.d: Likewise.
1129 * ifunc-7b-i386.d: Likewise.
1130 * ifunc-8-i386.d: Likewise.
1131 * ifunc-9-i386.d: Likewise.
1132 * pr17154-i386-now.d: Likewise.
1133 * pr17154-i386.d: Likewise.
1135 * ifunc-23a-x86.d: Remove notarget.
1136 * ifunc-24a-x86.d: Likewise.
1137 * ifunc-25a-x86.d: Likewise.
1139 2020-04-02 Nick Clifton <nickc@redhat.com>
1142 * ldfile.c (ldfile_open_file): Fix typo in warning message.
1144 2020-04-01 H.J. Lu <hongjiu.lu@intel.com>
1148 * testsuite/ld-elf/linux-x86.exp: Run ld/25749 tests.
1149 * testsuite/ld-elf/pr25749-1.c: New file.
1150 * testsuite/ld-elf/pr25749-1a.c: Likewise.
1151 * testsuite/ld-elf/pr25749-1b.c: Likewise.
1152 * testsuite/ld-elf/pr25749-1b.err: Likewise.
1153 * testsuite/ld-elf/pr25749-1c.c: Likewise.
1154 * testsuite/ld-elf/pr25749-1d.c: Likewise.
1155 * testsuite/ld-elf/pr25749-2.c: Likewise.
1156 * testsuite/ld-elf/pr25749-2a.s: Likewise.
1157 * testsuite/ld-elf/pr25749-2b.s: Likewise.
1158 * testsuite/ld-elf/pr25749.rd: Likewise.
1159 * testsuite/ld-elf/pr25754-1a.c: Likewise.
1160 * testsuite/ld-elf/pr25754-1b.s: Likewise.
1161 * testsuite/ld-elf/pr25754-2a.c: Likewise.
1162 * testsuite/ld-elf/pr25754-2b.err: Likewise.
1163 * testsuite/ld-elf/pr25754-2b.s: Likewise.
1164 * testsuite/ld-elf/pr25754-3a.c: Likewise.
1165 * testsuite/ld-elf/pr25754-3b.s: Likewise.
1166 * testsuite/ld-elf/pr25754-4a.c: Likewise.
1167 * testsuite/ld-elf/pr25754-4b.s: Likewise.
1168 * testsuite/ld-elf/pr25754-4c.s: Likewise.
1169 * testsuite/ld-elf/pr25754-5a.c: Likewise.
1170 * testsuite/ld-elf/pr25754-5b.s: Likewise.
1171 * testsuite/ld-elf/pr25754-5c.s: Likewise.
1172 * testsuite/ld-elf/pr25754-6a.c: Likewise.
1173 * testsuite/ld-elf/pr25754-6b.s: Likewise.
1174 * testsuite/ld-x86-64/pr19609-6a.d: Don't expect linker error.
1176 2020-04-01 Tamar Christina <tamar.christina@arm.com>
1179 * testsuite/ld-arm/arm-elf.exp (thumb-plt, thumb-plt-got): Skip for NaCL.
1181 2020-04-01 Nick Clifton <nickc@redhat.com>
1184 * ldfile.c (ldfile_open_file): If a search for a library fails,
1185 but there is a file that would match if it had a "lib" prefix to
1186 its name, then tell the user.
1188 2020-04-01 Tamar Christina <tamar.christina@arm.com>
1191 * testsuite/ld-arm/arm-elf.exp (thumb-plt-got): New.
1192 * testsuite/ld-arm/thumb-plt-got.d: New test.
1194 2020-04-01 Tamar Christina <tamar.christina@arm.com>
1196 * testsuite/ld-arm/arm-elf.exp (thumb-plt): New.
1197 * testsuite/ld-arm/thumb-plt.d: New test.
1198 * testsuite/ld-arm/thumb-plt.s: New test.
1200 2020-04-01 Hans-Peter Nilsson <hp@bitrange.com>
1202 * testsuite/ld-scripts/defined4.d: Don't xfail mmix-*-*.
1204 2020-03-30 Nick Clifton <nickc@redhat.com>
1207 * emultempl/pe.em (after_open): Replace initialisation of the
1208 insert_timestamp field in the pe_data structure with an
1209 initialisation of the timestamp field.
1210 * emultemp/pep.em: Likewise.
1211 * pe-dll.c (fill_edata): Use the timestamp field in the pe_data
1212 structure instead of the insert_timestamp field.
1214 2020-03-28 H.J. Lu <hongjiu.lu@intel.com>
1217 * emulparams/elf_i386_ldso.sh (COMMONPAGESIZE): New.
1218 * testsuite/ld-elf/shared.exp:Don't xfail pr20995-2 tests for
1221 2020-03-27 H.J. Lu <hongjiu.lu@intel.com>
1224 * testsuite/ld-elf/shared.exp: Xfail pr20995-2 tests for Solaris.
1226 2020-03-27 H.J. Lu <hongjiu.lu@intel.com>
1229 * testsuite/ld-ifunc/ifunc-23a-x86.d: Add notarget for Solaris.
1230 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
1231 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
1233 2020-03-25 Alan Modra <amodra@gmail.com>
1235 * testsuite/ld-elf/compress1c.d: xfail h8300.
1236 * testsuite/ld-elf/compressed1c.d: Likewise.
1237 * testsuite/ld-elf/compressed1e.d: Likewise.
1238 * testsuite/ld-elf/dynamic1.d: Likewise.
1239 * testsuite/ld-elf/dynsym1.d: Likewise.
1240 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1241 * testsuite/ld-elf/exclude3b.d: Likewise.
1242 * testsuite/ld-elf/export-class.exp: Don't run without -shared support.
1243 * testsuite/ld-elf/global1.d: xfail h8300.
1244 * testsuite/ld-elf/hash.d: Likewise.
1245 * testsuite/ld-elf/loadaddr1.d: Likewise.
1246 * testsuite/ld-elf/loadaddr2.d: Likewise.
1247 * testsuite/ld-elf/local1.d: Likewise.
1248 * testsuite/ld-elf/mbind1b.d: Likewise.
1249 * testsuite/ld-elf/mbind1c.d: Likewise.
1250 * testsuite/ld-elf/now-1.d: Likewise.
1251 * testsuite/ld-elf/now-2.d: Likewise.
1252 * testsuite/ld-elf/now-3.d: Likewise.
1253 * testsuite/ld-elf/now-4.d: Likewise.
1254 * testsuite/ld-elf/pie.d: Likewise.
1255 * testsuite/ld-elf/pr12975.d: Likewise.
1256 * testsuite/ld-elf/pr13177.d: Likewise.
1257 * testsuite/ld-elf/pr13195.d: Likewise.
1258 * testsuite/ld-elf/pr16322.d: Likewise.
1259 * testsuite/ld-elf/pr16498a.d: Likewise.
1260 * testsuite/ld-elf/pr16498b.d: Likewise.
1261 * testsuite/ld-elf/pr17615.d: Likewise.
1262 * testsuite/ld-elf/pr19162.d: Likewise.
1263 * testsuite/ld-elf/pr19539.d: Likewise.
1264 * testsuite/ld-elf/pr19617a.d: Likewise.
1265 * testsuite/ld-elf/pr19698.d: Likewise.
1266 * testsuite/ld-elf/pr20513c.d: Likewise.
1267 * testsuite/ld-elf/pr20513d.d: Likewise.
1268 * testsuite/ld-elf/pr21389a.d: Likewise.
1269 * testsuite/ld-elf/pr21389b.d: Likewise.
1270 * testsuite/ld-elf/pr21389c.d: Likewise.
1271 * testsuite/ld-elf/pr21562a.d: Likewise.
1272 * testsuite/ld-elf/pr21562b.d: Likewise.
1273 * testsuite/ld-elf/pr21562c.d: Likewise.
1274 * testsuite/ld-elf/pr21562d.d: Likewise.
1275 * testsuite/ld-elf/pr21562e.d: Likewise.
1276 * testsuite/ld-elf/pr21562f.d: Likewise.
1277 * testsuite/ld-elf/pr21562g.d: Likewise.
1278 * testsuite/ld-elf/pr21562h.d: Likewise.
1279 * testsuite/ld-elf/pr21562i.d: Likewise.
1280 * testsuite/ld-elf/pr21562j.d: Likewise.
1281 * testsuite/ld-elf/pr21562k.d: Likewise.
1282 * testsuite/ld-elf/pr21562l.d: Likewise.
1283 * testsuite/ld-elf/pr21562m.d: Likewise.
1284 * testsuite/ld-elf/pr21562n.d: Likewise.
1285 * testsuite/ld-elf/pr21903a.d: Likewise.
1286 * testsuite/ld-elf/pr21903b.d: Likewise.
1287 * testsuite/ld-elf/pr21903d.d: Likewise.
1288 * testsuite/ld-elf/pr22269a.d: Likewise.
1289 * testsuite/ld-elf/pr22269b.d: Likewise.
1290 * testsuite/ld-elf/pr22393-1a.d: Likewise.
1291 * testsuite/ld-elf/pr22393-1b.d: Likewise.
1292 * testsuite/ld-elf/pr22393-1c.d: Likewise.
1293 * testsuite/ld-elf/pr22393-1d.d: Likewise.
1294 * testsuite/ld-elf/pr22393-1e.d: Likewise.
1295 * testsuite/ld-elf/pr22393-1f.d: Likewise.
1296 * testsuite/ld-elf/pr22423.d: Likewise.
1297 * testsuite/ld-elf/pr22450.d: xfail avr, crx, h8300, ip2k, m68hc11,
1299 * testsuite/ld-elf/pr23658-1c.d: xfail h8300.
1300 * testsuite/ld-elf/pr25708.d: xfail h8300 and hppa64.
1301 * testsuite/ld-elf/rpath-1.d: xfail h8300.
1302 * testsuite/ld-elf/rpath-2.d: Likewise.
1303 * testsuite/ld-elf/runpath-1.d: Likewise.
1304 * testsuite/ld-elf/runpath-2.d: Likewise.
1305 * testsuite/ld-elf/sizeofb.d: Likewise.
1306 * testsuite/ld-elf/startofb.d: Likewise.
1307 * testsuite/ld-elf/strtab.d: Likewise.
1308 * testsuite/ld-elf/textaddr1.d: Likewise.
1309 * testsuite/ld-elf/textaddr2.d: Likewise.
1310 * testsuite/ld-elf/textaddr4.d: Likewise.
1311 * testsuite/ld-elf/textaddr5.d: Likewise.
1312 * testsuite/ld-elf/textaddr6.d: Likewise.
1313 * testsuite/ld-elf/unknown2.d: Likewise.
1314 * testsuite/ld-undefined/entry-3.d: Likewise.
1315 * testsuite/ld-undefined/entry-4.d: Likewise.
1316 * testsuite/ld-h8300/h8300.exp: Pass appropriate ld -m option.
1317 * testsuite/ld-h8300/gcsection.d: Remove ld -m option and relax
1319 * testsuite/ld-h8300/relax-2.d: Likewise.
1320 * testsuite/ld-h8300/relax-3.d: Likewise.
1321 * testsuite/ld-h8300/relax-4.d: Likewise.
1322 * testsuite/ld-h8300/relax-5.d: Likewise.
1323 * testsuite/ld-h8300/relax-6.d: Likewise.
1324 * testsuite/ld-h8300/relax-7.d: Likewise.
1325 * testsuite/ld-h8300/relax.d: Relax file format match.
1327 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1330 * testsuite/ld-elf/pr25708.d: New file.
1332 2020-03-23 Alan Modra <amodra@gmail.com>
1334 * Makefile.am (ALL_EMULATION_SOURCES): Reinstate ei386aout.c.
1335 Include ei386aout dep file.
1336 * Makefile.in: Regenerate.
1337 * po/BLD-POTFILES.in: Regenerate.
1339 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1341 * testsuite/ld-plugin/lto.exp (lto_link_tests): Run PR ld/25355
1342 test only for GCC 10 or newer.
1344 2020-03-20 Alan Modra <amodra@gmail.com>
1346 * testplug.c (parse_symdefstr): Use %hhi to read sym->def, and
1348 * testplug2.c (parse_symdefstr): Likewise.
1349 * testplug3.c (parse_symdefstr): Likewise.
1350 * testplug4.c (parse_symdefstr): Likewise.
1352 2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
1354 * testsuite/ld-arm/non-contiguous-arm4.d: Fix expected output.
1355 * testsuite/ld-powerpc/non-contiguous-powerpc.d: Likewise.
1357 2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
1359 * emultempl/xtensaelf.em: Emit a fatal error message
1360 instead of calling abort.
1361 * ldlang.c: Likewise.
1363 2020-03-14 Alan Modra <amodra@gmail.com>
1365 * testsuite/ld-elf/non-contiguous.d: Don't xfail generic ELF
1366 targets. Don't skip xtensa, xfail instead.
1368 2020-03-13 Christophe Lyon <christophe.lyon@linaro.org>
1370 * ldlang.c (lang_add_section): Add support for
1371 non_contiguous_regions.
1372 (size_input_section): Likewise.
1373 (lang_size_sections_1): Likewise.
1374 (process_insert_statements): Likewise.
1375 * ldlex.h (option_values): Add OPTION_NON_CONTIGUOUS_REGIONS and
1376 OPTION_NON_CONTIGUOUS_REGIONS_WARNINGS.
1377 * lexsup.c (ld_options): Add entries for
1378 --enable-non-contiguous-regions and
1379 --enable-non-contiguous-regions-warnings.
1380 (parse_args): Handle it.
1381 * NEWS: Add --enable-non-contiguous-regions and
1382 --enable-non-contiguous-regions-warnings.
1383 * ld.texi: Add --enable-non-contiguous-regions and
1384 --enable-non-contiguous-regions-warnings documentation.
1385 * emultempl/armelf.em (elf32_arm_add_stub_section): Add
1386 SEC_LINKER_CREATED flag.
1387 * emultempl/xtensaelf.em (ld_build_required_section_dependence):
1388 Emit an error when --enable-non-contiguous-regions is used.
1389 * testsuite/ld-elf/non-contiguous.d: New.
1390 * testsuite/ld-elf/non-contiguous.ld: New.
1391 * testsuite/ld-elf/non-contiguous.s: New.
1392 * testsuite/ld-arm/arm-elf.exp: Run the new tests.
1393 * testsuite/ld-arm/arm-elf/non-contiguous-arm.s: New.
1394 * testsuite/ld-arm/arm-elf/non-contiguous-arm.d: New.
1395 * testsuite/ld-arm/arm-elf/non-contiguous-arm.ld: New.
1396 * testsuite/ld-arm/arm-elf/non-contiguous-arm2.d: New.
1397 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
1398 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.d: New.
1399 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
1400 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.d: New.
1401 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.ld: New.
1402 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.d: New.
1403 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.ld: New.
1404 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.d: New.
1405 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.ld: New.
1406 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
1407 * testsuite/ld-powerpc/non-contiguous-powerpc.d: New.
1408 * testsuite/ld-powerpc/non-contiguous-powerpc.ld: New.
1409 * testsuite/ld-powerpc/non-contiguous-powerpc.sd: New.
1410 * testsuite/ld-powerpc/non-contiguous-powerpc64.d: New.
1412 2020-03-13 H.J. Lu <hongjiu.lu@intel.com>
1415 * emulparams/elf32_x86_64.sh: Use static.sh.
1416 * emulparams/elf_i386.sh: Likewise.
1417 * emulparams/elf_x86_64.sh: Likewise.
1418 * emulparams/static.sh: New file.
1419 * emultempl/elf-x86.em: Include "ldlex.h".
1420 * testsuite/ld-elf/pr24920.err: New file.
1421 * testsuite/ld-elf/linux-x86.exp: Run ld/24920 tests.
1423 2020-03-13 Christian Eggers <ceggers@gmx.de>
1425 * ldexp.c (fold_name): Return SIZEOF_HEADERS in bytes.
1427 2020-03-11 Alan Modra <amodra@gmail.com>
1429 * ldelf.c (elf_orphan_compatible): Return false when two sections
1430 have differing SHF_MASKPROC or SHF_MASKOS flags.
1432 2020-03-05 Alan Modra <amodra@gmail.com>
1435 * ldlang.c (lang_size_sections_1): Don't report changes on
1436 second and subsequent iterations that make no change in
1437 alignment from that already reported.
1439 2020-03-05 Alan Modra <amodra@gmail.com>
1442 * ldlang.c (lang_sizing_iteration): New static var.
1443 (lang_size_sections_1): Warn about no memory region only on first
1444 iteration. Warn about changing start address on first iteration
1445 then any delta from that on subsequent iterations. Report a signed
1447 (one_lang_size_sections_pass): Increment lang_sizing_iteration.
1449 2020-03-03 Nick Clifton <nickc@redhat.com>
1452 * ld.texi (Options): Update the description of the --rpath-link
1455 2020-03-02 Alan Modra <amodra@gmail.com>
1457 * plugin.c (plugin_object_p): Return a bfd_cleanup.
1458 (plugin_cleanup): New function.
1460 2020-03-01 H.J. Lu <hongjiu.lu@intel.com>
1463 * plugin.c (plugin_object_p): Copy the no_export field to the IR
1465 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Add
1467 * testsuite/ld-plugin/pr25618.d: New file.
1468 * testsuite/ld-plugin/pr25618a.cc: Likewise.
1469 * testsuite/ld-plugin/pr25618a.h: Likewise.
1470 * testsuite/ld-plugin/pr25618b.cc: Likewise.
1471 * testsuite/ld-plugin/pr25618b.h: Likewise.
1473 2020-02-27 Alan Modra <amodra@gmail.com>
1476 * testsuite/ld-mmix/b-fixo2.d: Adjust for .data change.
1477 * testsuite/ld-mmix/sec-2.d: Likewise.
1478 * testsuite/ld-mmix/sec-3.d: Likewise.
1479 * testsuite/ld-mmix/sec-4.d: Likewise.
1480 * testsuite/ld-mmix/spec802.d: Likewise.
1481 * testsuite/ld-mmix/spec803.d: Likewise.
1482 * testsuite/ld-mmix/spec804.d: Likewise.
1483 * testsuite/ld-mmix/spec805.d: Likewise.
1484 * testsuite/ld-mmix/spec806.d: Likewise.
1485 * testsuite/ld-mmix/spec807.d: Likewise.
1486 * testsuite/ld-mmix/spec808.d: Likewise.
1488 2020-02-26 H.J. Lu <hongjiu.lu@intel.com>
1491 * testsuite/ld-plugin/lto.exp: Run PR ld/25593 tests.
1492 * testsuite/ld-plugin/pr25593.d: New file.
1493 * testsuite/ld-plugin/pr25593a-1.c: Likewise.
1494 * testsuite/ld-plugin/pr25593a-2.c: Likewise.
1495 * testsuite/ld-plugin/pr25593b.c: Likewise.
1496 * testsuite/ld-plugin/pr25593c.c: Likewise.
1497 * testsuite/ld-plugin/pr25593d.c: Likewise.
1498 * testsuite/ld-plugin/pr25593e.c: Likewise.
1500 2020-02-26 Alan Modra <amodra@gmail.com>
1502 * emultempl/cskyelf.em: Indent labels correctly.
1503 * ldfile.c: Likewise.
1504 * ldlang.c: Likewise.
1505 * plugin.c: Likewise.
1507 2020-02-26 Alan Modra <amodra@gmail.com>
1510 * ldelf.c (ldelf_try_needed): Add DT_NEEDED lib to input_bfds.
1511 (ldelf_after_open): Save state of input_bfds list before loading
1512 DT_NEEDED libs. Traverse input_bfds list adding DT_NEEDED tags.
1513 Restore input_bfds list.
1514 * testsuite/ld-cris/gotplt1.d: Adjust for changed .dynstr order.
1516 2020-02-24 Nick Clifton <nickc@redhat.com>
1518 * po/fr.po: Update French translation.
1520 2020-02-22 Alan Modra <amodra@gmail.com>
1523 * NEWS: Mention better "PHDR segment not covered by LOAD segment"
1526 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
1529 * emultempl/z80.em: Remove machine compatability checking.
1531 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
1534 * testsuite/ld-z80/arch_ez80_adl.d: Update command line.
1535 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
1536 * testsuite/ld-z80/arch_r800.d: Likewise.
1537 * testsuite/ld-z80/arch_z180.d: Likewise.
1538 * testsuite/ld-z80/arch_z80n.d: Likewise.
1539 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
1540 * testsuite/ld-z80/comb_arch_z180_z80.d: Likewise.
1541 * testsuite/ld-z80/comb_arch_z80_ez80.d: Likewise.
1542 * testsuite/ld-z80/comb_arch_z80_z180.d: Likewise.
1543 * testsuite/ld-z80/comb_arch_z80_z80n.d: Likewise.
1544 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
1545 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
1546 * testsuite/ld-z80/relocs_f_ez80.d: Likewise.
1547 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
1548 * testsuite/ld-z80/relocs_f_z80n.d: Likewise.
1550 2020-02-19 Alan Modra <amodra@gmail.com>
1552 * testsuite/ld-plugin/pr25355.d: Allow alpha-linux nm result.
1554 2020-02-10 H.J. Lu <hongjiu.lu@intel.com>
1557 * testsuite/ld-plugin/lto.exp: Run PR binutils/25355 test.
1558 * testsuite/ld-plugin/pr25355.c: New file.
1559 * testsuite/ld-plugin/pr25355.d: Likewise.
1560 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Support compile
1563 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
1565 * testsuite/ld-unique/unique.exp (contains_unique_symbol): Updated.
1567 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1570 * emulparams/elf32z80.sh: Use z80 emulation.
1571 * emultempl/z80.em: Make generic to both COFF and ELF Z80 emulations.
1572 * emultempl/z80elf.em: Delete.
1573 * testsuite/ld-elf/pr22450.d: Expect to fail for the Z80.
1574 * testsuite/ld-elf/sec64k.exp: Fix Z80 assembly.
1575 * testsuite/ld-unique/pr21529.s: Avoid register name conflict.
1576 * testsuite/ld-unique/unique.s: Likewise.
1577 * testsuite/ld-unique/unique_empty.s: Likewise.
1578 * testsuite/ld-unique/unique_shared.s: Likewise.
1579 * testsuite/ld-unique/unique.d: Updated expected output.
1580 * testsuite/ld-z80/arch_z80n.d: New file.
1581 * testsuite/ld-z80/comb_arch_z80_z80n.d: New file.
1582 * testsuite/ld-z80/labels.s: Add more labels.
1583 * testsuite/ld-z80/relocs.s: Add more reloc tests.
1584 * testsuite/ld-z80/relocs_f_z80n.d: New file
1586 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
1589 * testsuite/ld-elf/pr25022.d: Xfail more targets which don't use
1590 ldelf_before_place_orphans.
1592 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1595 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
1596 before_place_orphans_default.
1597 * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
1598 * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
1599 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
1600 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
1601 * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
1602 * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
1603 * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
1604 * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
1605 * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
1606 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Use
1607 ldelf_before_place_orphans.
1608 * ldelf.c (ldelf_before_place_orphans): New.
1609 * ldelf.h (ldelf_before_place_orphans): Likewise.
1610 * ldemul.c (ldemul_before_place_orphans): Likewise.
1611 (before_place_orphans_default): Likewise.
1612 * ldemul.h (ldemul_before_place_orphans): Likewise.
1613 (before_place_orphans_default): Likewise.
1614 (ld_emulation_xfer_struct): Add before_place_orphans.
1615 * ldlang.c (lang_process): Call ldemul_before_place_orphans
1616 before lang_place_orphans.
1617 * testsuite/ld-elf/pr25022.d: New file.
1618 * testsuite/ld-elf/pr25022.s: Likewise.
1619 * testsuite/ld-elf/pr25022.t: Likewise.
1621 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1624 * testsuite/ld-elf/pr25490-1.d: New file.
1625 * testsuite/ld-elf/pr25490-1.s: Likewise.
1627 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1632 * testsuite/ld-elf/elf.exp: Run PR ld/25490 tests.
1633 * testsuite/ld-elf/pr24526.d: New file.
1634 * testsuite/ld-elf/pr24526.s: Likewise.
1635 * testsuite/ld-elf/pr25021.d: Likewise.
1636 * testsuite/ld-elf/pr25021.s: Likewise.
1637 * testsuite/ld-elf/pr25490-2-16.rd: Likewise.
1638 * testsuite/ld-elf/pr25490-2-32.rd: Likewise.
1639 * testsuite/ld-elf/pr25490-2-64.rd: Likewise.
1640 * testsuite/ld-elf/pr25490-2.s: Likewise.
1641 * testsuite/ld-elf/pr25490-3-16.rd: Likewise.
1642 * testsuite/ld-elf/pr25490-3-32.rd: Likewise.
1643 * testsuite/ld-elf/pr25490-3-64.rd: Likewise.
1644 * testsuite/ld-elf/pr25490-3.s: Likewise.
1645 * testsuite/ld-elf/pr25490-4-16.rd: Likewise.
1646 * testsuite/ld-elf/pr25490-4-32.rd: Likewise.
1647 * testsuite/ld-elf/pr25490-4-64.rd: Likewise.
1648 * testsuite/ld-elf/pr25490-4.s: Likewise.
1649 * testsuite/ld-elf/pr25490-5-16.rd: Likewise.
1650 * testsuite/ld-elf/pr25490-5-32.rd: Likewise.
1651 * testsuite/ld-elf/pr25490-5-64.rd: Likewise.
1652 * testsuite/ld-elf/pr25490-5.s: Likewise.
1653 * testsuite/ld-elf/pr25490-6-16.rd: Likewise.
1654 * testsuite/ld-elf/pr25490-6-32.rd: Likewise.
1655 * testsuite/ld-elf/pr25490-6-64.rd: Likewise.
1656 * testsuite/ld-elf/pr25490-6.s: Likewise.
1658 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1660 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark
1661 z80 as not supported.
1663 2020-02-06 Alan Modra <amodra@gmail.com>
1665 * testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying
1666 targets that don't support ifunc rather than ones that do.
1667 (contains_irelative_reloc): Match R_PARISC_IPLT.
1668 * testsuite/ld-ifunc/lib.c: Don't use .set in asm.
1669 * testsuite/ld-ifunc/ifunc-23-x86.s,
1670 * testsuite/ld-ifunc/ifunc-24-x86.s,
1671 * testsuite/ld-ifunc/ifunc-25-x86.s,
1672 * testsuite/ld-ifunc/ifunc-4-local-x86.s,
1673 * testsuite/ld-ifunc/ifunc-4-x86.s: Define _main.
1674 * testsuite/ld-ifunc/ifunc-10-i386.d,
1675 * testsuite/ld-ifunc/ifunc-11-i386.d,
1676 * testsuite/ld-ifunc/ifunc-12-i386.d,
1677 * testsuite/ld-ifunc/ifunc-13-i386.d,
1678 * testsuite/ld-ifunc/ifunc-14a-i386.d,
1679 * testsuite/ld-ifunc/ifunc-14b-i386.d,
1680 * testsuite/ld-ifunc/ifunc-14c-i386.d,
1681 * testsuite/ld-ifunc/ifunc-14d-i386.d,
1682 * testsuite/ld-ifunc/ifunc-14e-i386.d,
1683 * testsuite/ld-ifunc/ifunc-14f-i386.d,
1684 * testsuite/ld-ifunc/ifunc-15-i386.d,
1685 * testsuite/ld-ifunc/ifunc-16-i386-now.d,
1686 * testsuite/ld-ifunc/ifunc-16-i386.d,
1687 * testsuite/ld-ifunc/ifunc-17a-i386.d,
1688 * testsuite/ld-ifunc/ifunc-17b-i386.d,
1689 * testsuite/ld-ifunc/ifunc-18a-i386.d,
1690 * testsuite/ld-ifunc/ifunc-18b-i386.d,
1691 * testsuite/ld-ifunc/ifunc-19a-i386.d,
1692 * testsuite/ld-ifunc/ifunc-19b-i386.d,
1693 * testsuite/ld-ifunc/ifunc-2-i386-now.d,
1694 * testsuite/ld-ifunc/ifunc-2-i386.d,
1695 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
1696 * testsuite/ld-ifunc/ifunc-2-local-i386.d,
1697 * testsuite/ld-ifunc/ifunc-20-i386.d,
1698 * testsuite/ld-ifunc/ifunc-21-i386.d,
1699 * testsuite/ld-ifunc/ifunc-22-i386.d,
1700 * testsuite/ld-ifunc/ifunc-26.d,
1701 * testsuite/ld-ifunc/ifunc-5a-i386.d,
1702 * testsuite/ld-ifunc/ifunc-5a-local-i386.d,
1703 * testsuite/ld-ifunc/ifunc-5b-i386.d,
1704 * testsuite/ld-ifunc/ifunc-5b-local-i386.d,
1705 * testsuite/ld-ifunc/ifunc-5r-local-i386.d,
1706 * testsuite/ld-ifunc/ifunc-6a-i386.d,
1707 * testsuite/ld-ifunc/ifunc-6b-i386.d,
1708 * testsuite/ld-ifunc/ifunc-7a-i386.d,
1709 * testsuite/ld-ifunc/ifunc-7b-i386.d,
1710 * testsuite/ld-ifunc/ifunc-8-i386.d,
1711 * testsuite/ld-ifunc/ifunc-9-i386.d,
1712 * testsuite/ld-ifunc/pr17154-i386-now.d,
1713 * testsuite/ld-ifunc/pr17154-i386.d: xfail lynxos, nto, and solaris.
1715 2020-02-06 Alan Modra <amodra@gmail.com>
1717 * testsuite/lib/ld-lib.exp (is_generic): Delete.
1718 * testsuite/ld-unique/unique.exp: Exclude tic6x.
1720 2020-02-06 Alan Modra <amodra@gmail.com>
1722 * configure.tgt (i[3-7]86-*-moss*): Don't clear targ_extra_ofiles.
1723 (i[3-7]86-*-openbsd*, x86_64-*-openbsd*): Add.
1725 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1728 * testsuite/ld-i386/pr22001-1c.S: Use "unique,N" in .section
1730 * testsuite/ld-i386/tls-gd1.S: Likewise.
1731 * testsuite/ld-x86-64/pr21481b.S: Likewise.
1733 2020-01-30 Jan Beulich <jbeulich@suse.com>
1735 * ld.texi: Remove space between @option and brace.
1737 2020-01-29 Alan Modra <amodra@gmail.com>
1740 * ldelf.c (ldelf_check_ld_so_conf): Add prefix parameter and
1742 (ldelf_after_open): Add prefix parameter.
1743 * ldelf.h (ldelf_after_open): Update prototype.
1744 * emultempl/elf.em (gld${EMULATION_NAME}_after_open): Pass $prefix
1745 to ldelf_after_open.
1746 * Makefile.am: Correct z80 dependencies.
1747 * Makefile.in: Regenerate.
1749 2020-01-28 Alan Modra <amodra@gmail.com>
1751 * ldexp.c (fold_name): Don't print bfd_link_hash_lookup failed
1754 2020-01-27 Alan Modra <amodra@gmail.com>
1756 * testsuite/ld-elfvers/vers.exp: Replace case statements with
1758 * testsuite/ld-ifunc/ifunc.exp: Likewise.
1759 * testsuite/ld-unique/unique.exp: Likewise.
1761 2020-01-27 H.J. Lu <hongjiu.lu@intel.com>
1762 Alan Modra <amodra@gmail.com>
1765 * testsuite/ld-elf/pr25458.map: New file.
1766 * testsuite/ld-elf/pr25458.rd: Likewise.
1767 * testsuite/ld-elf/pr25458a.s: Likewise.
1768 * testsuite/ld-elf/pr25458b.s: Likewise.
1769 * testsuite/ld-elf/shared.exp: Run PR ld/25458 test.
1771 2020-01-22 H.J. Lu <hongjiu.lu@intel.com>
1774 * testsuite/ld-x86-64/tls.exp: Skip GNU2 TLS tests only without
1777 2020-01-22 Alan Modra <amodra@gmail.com>
1779 * testsuite/ld-powerpc/tlsdesc3.d,
1780 * testsuite/ld-powerpc/tlsdesc3.wf,
1781 * testsuite/ld-powerpc/tlsdesc4.d,
1782 * testsuite/ld-powerpc/tlsdesc4.s,
1783 * testsuite/ld-powerpc/tlsdesc4.wf: New tests.
1784 * testsuite/ld-powerpc/powerpc.exp: Run them.
1786 2020-01-22 Alan Modra <amodra@gmail.com>
1788 * emultempl/ppc64elf.em (ppc64_opt, PARSE_AND_LIST_LONGOPTS),
1789 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Support
1790 --tls-get-addr-regsave and --no-tls-get-addr-regsave.
1791 (params): Init new field.
1792 * ld.texi (--tls-get-addr-regsave, --no-tls-get-addr-regsave):
1794 * testsuite/ld-powerpc/tlsdesc.s,
1795 * testsuite/ld-powerpc/tlsdesc.d,
1796 * testsuite/ld-powerpc/tlsdesc.wf,
1797 * testsuite/ld-powerpc/tlsdesc2.d,
1798 * testsuite/ld-powerpc/tlsdesc2.wf,
1799 * testsuite/ld-powerpc/tlsexenors.d,
1800 * testsuite/ld-powerpc/tlsexenors.r,
1801 * testsuite/ld-powerpc/tlsexers.d,
1802 * testsuite/ld-powerpc/tlsexers.r,
1803 * testsuite/ld-powerpc/tlsexetocnors.d,
1804 * testsuite/ld-powerpc/tlsexetocrs.d,
1805 * testsuite/ld-powerpc/tlsexetocrs.r,
1806 * testsuite/ld-powerpc/tlsopt6.d,
1807 * testsuite/ld-powerpc/tlsopt6.wf: New.
1808 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
1810 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1813 * ldlang.c (ldlang_open_ctf): Fix error message typo.
1814 * emultempl/z80elf.em (z80_elf_after_open): Likewise.
1816 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
1818 * testsuite/ld-elf/pr23900-1.d: Adjusted.
1820 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
1822 * testsuite/ld-elf/pr23900-1.d: Also pass -l to readelf.
1824 2020-01-20 Nick Clifton <nickc@redhat.com>
1826 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1827 * po/uk.po: Updated Ukranian translation.
1829 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
1832 * testsuite/ld-x86-64/pr25416-1.s: New file
1833 * testsuite/ld-x86-64/pr25416-1a.d: Likewise.
1834 * testsuite/ld-x86-64/pr25416-1b.d: Likewise.
1835 * testsuite/ld-x86-64/pr25416-1.s: Likewise.
1836 * testsuite/ld-x86-64/pr25416-2.s: Likewise.
1837 * testsuite/ld-x86-64/pr25416-2a.d: Likewise.
1838 * testsuite/ld-x86-64/pr25416-2b.d: Likewise.
1839 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1840 * testsuite/ld-x86-64/pr25416-3.s: Likewise.
1841 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1842 * testsuite/ld-x86-64/pr25416-4.s: Likewise.
1843 * testsuite/ld-x86-64/pr25416-5a.c: Likewise.
1844 * testsuite/ld-x86-64/pr25416-5b.s: Likewise.
1845 * testsuite/ld-x86-64/pr25416-5c.s: Likewise.
1846 * testsuite/ld-x86-64/pr25416-5d.s: Likewise.
1847 * testsuite/ld-x86-64/pr25416-5e.s: Likewise.
1848 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/25416 tests.
1850 2020-01-20 Alan Modra <amodra@gmail.com>
1852 * testsuite/ld-powerpc/tlsexe.d: Match new __tls_get_addr stub.
1853 * testsuite/ld-powerpc/tlsexeno.d: Likewise.
1854 * testsuite/ld-powerpc/tlsexetoc.d: Likewise.
1855 * testsuite/ld-powerpc/tlsexetocno.d: Likewise.
1856 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
1858 2020-01-18 Roland McGrath <mcgrathr@google.com>
1860 * testsuite/ld-x86-64/align-branch-1.d: Loosen instruction regexps
1861 to admit whatever absolute address. The label-relative address is
1862 what the test needs to verify.
1864 2020-01-18 Nick Clifton <nickc@redhat.com>
1866 * configure: Regenerate.
1867 * po/ld.pot: Regenerate.
1869 2020-01-18 Nick Clifton <nickc@redhat.com>
1871 Binutils 2.34 branch created.
1873 2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1875 * scripttempl/elf32msp430_3.sc: Remove.
1877 2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1879 * scripttempl/elf32msp430.sc: Add input section rules for
1880 .upper.{text,data,rodata,bss}.
1881 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
1882 * testsuite/ld-msp430-elf/upper-input-sections.s: New test.
1884 2020-01-15 Lars Brinkhoff <lars@nocrew.org>
1887 * temulparams/pdp11.sh (TARGET_PAGE_SIZE): Set to 8192.
1889 2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1891 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
1892 * testsuite/ld-msp430-elf/reloc-lo-430x.s: New test.
1894 2020-01-15 Alan Modra <amodra@gmail.com>
1896 * testsuite/ld-powerpc/ambiguousv1b.d: Adjust expected output.
1897 * testsuite/ld-powerpc/funref.s: Align func_tab.
1898 * testsuite/ld-powerpc/funref2.s: Likewise.
1899 * testsuite/ld-powerpc/funv1.s: Add dot symbols.
1901 2020-01-14 Lili Cui <lili.cui@intel.com>
1903 * testsuite/ld-i386/align-branch-1.d: Updated for i686-pc-elf.
1905 2020-01-13 Alan Modra <amodra@gmail.com>
1907 * po/BLD-POTFILES.in: Regenerate.
1909 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
1911 * testsuite/ld-arc/relax-local-pic.d: Improve matching patterns.
1913 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
1915 * Makefile.am: Remove earcelf_prof.c and earclinux_prof.c
1917 * configure.tgt: Likewise.
1918 * Makefile.in: Regenerate.
1919 * emulparams/arcelf_prof.sh: Remove file.
1920 * emulparams/arclinux_prof.sh: Likewise.
1922 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
1924 * scripttempl/elfarcv2.sc : Allow interrupt vector table to be
1925 located at an arbitrary address. Use DWARF.sc file.
1926 * scripttempl/elfarc.sc: Use DWARF.sc file.
1928 2020-01-07 Alan Modra <amodra@gmail.com>
1930 * testsuite/ld-mips-elf/eh-frame5.s,
1931 * testsuite/ld-mips-elf/ehdr_start-new.s,
1932 * testsuite/ld-mips-elf/ehdr_start-o32.s,
1933 * testsuite/ld-mips-elf/mips16-call-global-1.s,
1934 * testsuite/ld-mips-elf/mips16-intermix-1.s,
1935 * testsuite/ld-mips-elf/mips16-pic-1b.s,
1936 * testsuite/ld-mips-elf/mips16-pic-4c.s,
1937 * testsuite/ld-mips-elf/no-shared-1-n64.s,
1938 * testsuite/ld-mips-elf/no-shared-1-o32.s,
1939 * testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s,
1940 * testsuite/ld-mips-elf/pic-and-nonpic-1b.s,
1941 * testsuite/ld-mips-elf/pic-and-nonpic-2a.s,
1942 * testsuite/ld-mips-elf/pic-and-nonpic-3b.s,
1943 * testsuite/ld-mips-elf/pic-and-nonpic-4b.s,
1944 * testsuite/ld-mips-elf/pic-and-nonpic-5a.s,
1945 * testsuite/ld-mips-elf/pic-and-nonpic-6-n32c.s,
1946 * testsuite/ld-mips-elf/pic-and-nonpic-6-n64c.s,
1947 * testsuite/ld-mips-elf/pic-and-nonpic-6-o32c.s,
1948 * testsuite/ld-mips-elf/pie.s,
1949 * testsuite/ld-mips-elf/relax-jalr.s: Revert 2019-12-17 change.
1951 2020-01-06 Nick Clifton <nickc@redhat.com>
1954 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
1955 command line when building libcomm1.o and pr13250 tests.
1956 * testsuite/ld-plugin/lto.exp: Likewise for pr20267 tests.
1958 2020-01-06 Nick Clifton <nickc@redhat.com>
1961 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
1962 command line when building pr19579 binaries.
1964 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
1966 * emultempl/pe.em: Add new option --enable-reloc-section.
1967 * emultempl/pep.em: Likewise.
1968 * ld.texi: Document --enable-reloc-section.
1969 * pe-dll.c (pe_dll_build_sections): Use pe_dll_enable_reloc_section.
1970 (pe_dll_fill_sections): Simplify by calling pe_exe_fill_sections.
1971 * pe-dll.h: Add extern declaration of option flag.
1972 * pep-dll.c (pe_dll_enable_reloc_section):
1973 Add alias define for pep_dll_enable_reloc_section.
1974 * pep-dll.h: Add extern declaration of option flag.
1976 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1978 * Makefile.am: Add new target z80-elf
1979 * configure.tgt: Likewise.
1980 * Makefile.in: Regenerate.
1981 * emultempl/z80.em: Add support for eZ80 and Z180 architectures.
1982 * emulparams/elf32z80.sh: New file.
1983 * emultempl/z80elf.em: Likewise.
1984 * testsuite/ld-elf/comm-data4.s: Fix for Z80.
1985 * testsuite/ld-elf/comm-data5.s: Fix for Z80.
1986 * testsuite/ld-scripts/fill16.d: Fix for Z80.
1987 * testsuite/ld-z80/arch_ez80_adl.d: Likewise.
1988 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
1989 * testsuite/ld-z80/arch_r800.d: Likewise.
1990 * testsuite/ld-z80/arch_z180.d: Likewise.
1991 * testsuite/ld-z80/arch_z80.d: Likewise.
1992 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
1993 * testsuite/ld-z80/comb_arch_z180.d: Likewise.
1994 * testsuite/ld-z80/labels.s: Likewise.
1995 * testsuite/ld-z80/relocs.s: Likewise.
1996 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
1997 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
1998 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
1999 * testsuite/ld-z80/z80.exp: Likewise.
2000 * NEWS: Mention the new support.
2002 2020-01-02 Tamar Christina <tamar.christina@arm.com>
2006 * emultempl/aarch64elf.em (elf${ELFSIZE}_aarch64_add_stub_section):
2007 Remove SEC_LINKER_CREATED.
2008 * testsuite/ld-aarch64/aarch64-elf.exp: Add erratum835769-843419.
2009 * testsuite/ld-aarch64/erratum835769-843419.d: New test.
2011 2020-01-01 Alan Modra <amodra@gmail.com>
2013 Update year range in copyright notice of all files.
2015 For older changes see ChangeLog-2019
2017 Copyright (C) 2020 Free Software Foundation, Inc.
2019 Copying and distribution of this file, with or without modification,
2020 are permitted in any medium without royalty provided the copyright
2021 notice and this notice are preserved.
2027 version-control: never