1 2020-06-23 Roland McGrath <mcgrathr@google.com>
4 * NEWS: Note --dependency-file.
5 * ld.texi (Options): Document --dependency-file.
6 * ldlex.h (enum option_values): Add OPTION_DEPENDENCY_FILE.
7 * ld.h (ld_config_type): New member dependency_file.
8 * lexsup.c (ld_options, parse_args): Parse --dependency-file.
9 * ldmain.c (struct dependency_file): New type.
10 (dependency_files, dependency_files_tail): New static variables.
11 (track_dependency_files): New function.
12 (write_dependency_file): New function.
13 (main): Call it when --dependency-file was passed.
14 * ldfile.c (ldfile_try_open_bfd): Call track_dependency_files.
15 (ldfile_open_command_file_1): Likewise.
16 * ldelf.c (ldelf_try_needed): Likewise.
17 * pe-dll.c (pe_implied_import_dll): Likewise.
19 2020-06-23 Alan Modra <amodra@gmail.com>
22 * ldlang.c (ldlang_add_file): Assert that we aren't adding the
23 current end of link.next list again too.
24 * ldmain.c (add_archive_element): Don't load archive elements
25 again that have already been loaded.
27 2020-06-23 Alan Modra <amodra@gmail.com>
29 * testsuite/ld-elf/shared.exp (pr14170): Clear xfail for
31 (pr17068, symbolic-func.so, pr22374): Likewise.
33 2020-06-22 Nelson Chu <nelson.chu@sifive.com>
35 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
36 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Updated.
37 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Updated.
38 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Updated.
39 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Updated.
40 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Updated.
42 2020-06-21 Alan Modra <amodra@gmail.com>
44 * ldfile.c: Replace uses of ENABLE_PLUGINS with BFD_SUPPORTS_PLUGINS.
50 * plugin.c: Wrap body of file in #if BFD_SUPPORTS_PLUGINS.
51 * testplug.c: Likewise.
52 * testplug2.c: Likewise.
53 * testplug3.c: Likewise.
54 * testplug4.c: Likewise.
55 * configure.ac (ENABLE_PLUGINS): Don't define AM_CONTITIONAL.
56 * Makefile.am: Remove ENABLE_PLUGINS conditionals.
57 (PLUGIN_CFLAGS): Don't define.
58 (PLUGIN_C, PLUGIN_H, PLUGIN_OBJECT): Likewise. Substitute all
59 uses with plugin file name.
60 * configure: Regenerate.
61 * Makefile.in: Regenerate.
63 2020-06-20 Alan Modra <amodra@gmail.com>
65 * testsuite/lib/ld-lib.exp (default_ld_compile): Don't perror on
67 (default_ld_assemble): Similarly for an assembler error.
68 (default_ld_nm): Similarly for an nm error.
69 (run_ld_link_tests): Report ld_assemble errors as a fail.
70 (check_as_cfi): Remove now unnecessary perror substitution.
71 * testsuite/ld-elf/exclude.exp: Report ld_nm error return as test
72 fails rather then unresolved.
73 * testsuite/ld-gc/gc.exp: Likewise.
74 * testsuite/ld-scripts/alignof.exp: Likewise.
75 * testsuite/ld-scripts/defined.exp: Likewise.
76 * testsuite/ld-scripts/script.exp: Likewise.
77 * testsuite/ld-scripts/sizeof.exp: Likewise.
78 * testsuite/ld-selective/selective.exp: Likewise.
79 * testsuite/ld-scripts/extern.exp: Likewise. Return on ld_link
81 * testsuite/ld-elfweak/elfweak.exp: Report compiler errors as
83 * testsuite/ld-fastcall/fastcall.exp: Report assember errors as
85 * testsuite/ld-i386/i386.exp (iamcu_tests): Likewise.
86 * testsuite/ld-ia64/line.exp: Likewise.
87 * testsuite/ld-mep/mep.exp: Likewise.
88 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
89 * testsuite/ld-nios2/nios2.exp: Likewise.
90 * testsuite/ld-scripts/alignof.exp: Likewise.
91 * testsuite/ld-x86-64/line.exp: Likewise.
92 * testsuite/ld-x86-64/x86-64.exp: Likewise.
93 * testsuite/ld-scripts/log2.exp: Formatting.
94 * testsuite/ld-tic6x/tic6x.exp: Report ld_link errors as a test fail.
96 2020-06-20 Alan Modra <amodra@gmail.com>
98 * testsuite/ld-alpha/alpha.exp: Exclude *ecoff targets.
99 * testsuite/ld-elf/binutils.exp: Likewise.
100 * testsuite/ld-elf/tls.exp: Likewise.
101 * testsuite/ld-elf/tls_common.exp: Likewise.
102 * testsuite/ld-scripts/phdrs2.exp: Likewise.
104 2020-06-20 Alan Modra <amodra@gmail.com>
106 * testsuite/ld-sh/sh.exp: Don't run relax tests for non-ELF.
107 Fail when ld_assemble fails. Use elseif to reduce indentation.
109 2020-06-19 Alan Modra <amodra@gmail.com>
111 * testsuite/ld-elf/dynamic-1.rd: Accept st_other notations.
112 * testsuite/ld-elf/rdynamic-1.rd: Likewise.
113 * testsuite/ld-elf/pr9676.rd: Likewise.
114 * testsuite/ld-elf/pr9679.rd: Likewise.
115 * testsuite/ld-elfvers/vers30.dsym: Likewise.
116 * testsuite/ld-elfvers/vers31.dsym: Likewise.
117 * testsuite/ld-plugin/pr22983.1.d: Likewise.
118 * testsuite/ld-plugin/pr22983.2.d: Likewise.
119 * testsuite/ld-plugin/pr22983.3.d: Likewise.
120 * testsuite/ld-plugin/pr22983.4.d: Likewise.
121 * testsuite/ld-ifunc/ifunc.exp: Exclude alpha.
123 2020-06-19 Alan Modra <amodra@gmail.com>
125 * emultempl/elf.em (gld${EMULATION_NAME}_handle_option): Omit
126 -z relro and -z norelro when target support for GNU_RELRO is lacking.
127 (gld${EMULATION_NAME}_before_parse): Ignore RELRO default too.
128 * emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse): Ignore
129 RELRO default when target support for GNU_RELRO is lacking.
130 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
131 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Likewise.
132 * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
133 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
134 * testsuite/ld-elf/pr16322.d: xfail when no relro support.
135 * testsuite/ld-elf/pr22393-1a.d: Likewise.
136 * testsuite/ld-elf/pr22393-1b.d: Likewise.
137 * testsuite/ld-elf/shared.exp (pr20995-2.so, pr20995-2): Likewise.
138 * testsuite/lib/ld-lib.exp (run_ld_link_tests): Use check_relro_support
139 to decide whether to pass extra ld option "-z norelro".
141 2020-06-17 H.J. Lu <hongjiu.lu@intel.com>
143 * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Append "-w"
146 2020-06-17 H.J. Lu <hongjiu.lu@intel.com>
148 * testsuite/ld-elf/linux-x86.exp: Require GCC 5 for Build
149 pr25749-1b (-pie -fPIE).
151 2020-06-16 Alan Modra <amodra@gmail.com>
153 * testsuite/ld-elf/pr23428.c: Define _DEFAULT_SOURCE.
154 * testsuite/ld-elf/indirect1b.c: Replace asm with __asm__.
155 * testsuite/ld-elf/indirect2.c: Likewise.
156 * testsuite/ld-elf/indirect3b.c: Likewise.
157 * testsuite/ld-elf/indirect4b.c: Likewise.
158 * testsuite/ld-elf/pr14323-2.c: Likewise.
159 * testsuite/ld-elf/pr18720b.c: Likewise.
160 * testsuite/ld-elf/pr19553c.c: Likewise.
161 * testsuite/ld-elf/pr23428.c: Likewise.
162 * testsuite/ld-elfvers/vers27b.c: Likewise.
163 * testsuite/ld-elfvsb/common.c: Likewise.
164 * testsuite/ld-elfvsb/main.c: Likewise.
165 * testsuite/ld-elfvsb/sh1.c: Likewise.
166 * testsuite/ld-elfvsb/test.c: Likewise.
167 * testsuite/ld-pe/aligncomm-1.c: Likewise.
168 * testsuite/ld-pe/aligncomm-2.c: Likewise.
169 * testsuite/ld-pe/aligncomm-3.c: Likewise.
170 * testsuite/ld-pe/aligncomm-4.c: Likewise.
171 * testsuite/ld-plugin/pr23958.c: Likewise.
172 * testsuite/ld-size/size-1b.c: Likewise.
173 * testsuite/ld-size/size-2b.c: Likewise.
174 * testsuite/ld-size/size-3a.c: Likewise.
175 * testsuite/ld-size/size-3b.c: Likewise.
176 * testsuite/ld-size/size-3c.c: Likewise.
177 * testsuite/ld-size/size-4b.c: Likewise.
178 * testsuite/ld-size/size-5b.c: Likewise.
179 * testsuite/ld-size/size-6a.c: Likewise.
180 * testsuite/ld-size/size-7a.c: Likewise.
181 * testsuite/ld-size/size-8a.c: Likewise.
182 * testsuite/ld-size/size-9b.c: Likewise.
183 * testsuite/ld-size/size-10b.c: Likewise.
185 2020-06-16 Alan Modra <amodra@gmail.com>
187 * emulparams/tic30aout.sh: Delete file.
188 * scripttempl/tic30aout.sc: Delete file.
189 * Makefile.am: Remove etic30aout.c from ALL_EMULATION_SOURCES and
191 * configure.tgt: Delete tic30-*-*aout* entry.
192 * testsuite/ld-scripts/sane1.d: Delete tic30-*-aout mention.
193 * testsuite/ld-scripts/segment-start.d: Likewise.
194 * Makefile.in: Regenerate.
195 * po/BLD-POTFILES.in: Regenerate.
197 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
199 * emultempl/xtensaelf.em (XSHAL_ABI): Remove macro definition.
200 (XTHAL_ABI_UNDEFINED, XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New
202 (elf32xtensa_abi): New declaration.
203 (xt_config_info_unpack_and_check): Set elf32xtensa_abi if it is
204 undefined. Use xtensa_abi_choice instead of XSHAL_ABI to test
206 (xtensa_add_config_info): Use xtensa_abi_choice instead of
207 XSHAL_ABI to format ABI tag.
208 (PARSE_AND_LIST_PROLOGUE): Define OPTION_ABI_WINDOWED,
209 OPTION_ABI_CALL0 and declare elf32xtensa_abi.
210 (PARSE_AND_LIST_LONGOPTS): Add entries for --abi-windowed and
212 (PARSE_AND_LIST_OPTIONS): Add help text for --abi-windowed and
214 (PARSE_AND_LIST_ARGS_CASES): Add handlers for --abi-windowed and
216 * ld.texi: Add description for options --abi-windowed and
219 2020-06-15 Roland McGrath <mcgrathr@google.com>
221 * NEWS: Mention -z start-stop-visibility=... option for ELF.
222 * ld.texi (Options): Document -z start-stop-visibility=... option.
223 * ldmain.c (main): Initialize link_info.start_stop_visibility.
224 * emultempl/elf.em (gld${EMULATION_NAME}_handle_option):
225 Parse -z start-stop-visibility=... option.
227 2020-06-15 Alan Modra <amodra@gmail.com>
229 * testsuite/ld-scripts/include.exp: Don't load ld-lib.exp.
230 * testsuite/ld-scripts/phdrs3.exp: Likewise.
231 * testsuite/ld-scripts/rgn-at.exp: Likewise.
232 * testsuite/ld-scripts/rgn-over.exp: Likewise.
233 * testsuite/ld-scripts/sort.exp: Likewise.
234 * testsuite/ld-discard/discard.exp: Likewise. Use is_elf_format.
236 2020-06-15 Alan Modra <amodra@gmail.com>
239 * testsuite/ld-linkonce/ref1.s,
240 * testsuite/ld-linkonce/ref2.s,
241 * testsuite/ld-linkonce/sym1.s,
242 * testsuite/ld-linkonce/sym2.s,
243 * testsuite/ld-linkonce/sym3.s: New test files.
244 * testsuite/ld-linkonce/linkonce.exp: Run tests for PE too.
245 Add pr26103 test. Remove unnecessary load_lib.
247 2020-06-15 Alan Modra <amodra@gmail.com>
249 * testsuite/ld-linkonce/zeroeh_x.s: Rename from x.s.
250 * testsuite/ld-linkonce/zeroeh_y.s: Rename from y.s.
251 * testsuite/ld-linkonce/zeroehl32.d: Adjust for renaming. Support
252 big-endian output. Run for powerpc.
254 2020-06-11 Alan Modra <amodra@gmail.com>
256 * testsuite/ld-plugin/lto.exp (lto_link_tests): Move lto-6,
257 pr12760, pr23818 and pr23958 tests to..
258 (lto_link_elf_tests): ..here.
260 2020-06-11 Nick Clifton <nickc@redhat.com>
262 * testsuite/ld-elf/pr26094-1b.c (main): Change return type to
265 2020-06-10 Alan Modra <amodra@gmail.com>
267 * testsuite/ld-elf/linux-x86.exp: Build tests when non-native.
268 (check_pr25749b): Add optional args. Set expected pass file
269 from args. Run -1b and -2a tests with passall.out.
270 * testsuite/ld-elf/passall.out: New file.
271 * testsuite/ld-elf/pr25749-1.c: Adjust to pass with older glibc.
272 * testsuite/ld-elf/pr25749-2.c: Likewise.
273 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Use
274 regexp_diff to compare expected output from running binary.
276 2020-06-10 H.J. Lu <hongjiu.lu@intel.com>
279 * testsuite/ld-elf/pr26094-1.ver: New fike.
280 * testsuite/ld-elf/pr26094-1a.c: Likewise.
281 * testsuite/ld-elf/pr26094-1a.rd: Likewise.
282 * testsuite/ld-elf/pr26094-1b.c: Likewise.
283 * testsuite/ld-elf/pr26094-1b.rd: Likewise.
284 * testsuite/ld-elf/pr26094-1c.c: Likewise.
285 * testsuite/ld-elf/shared.exp: Run ld/26094 tests.
287 2020-06-09 H.J. Lu <hongjiu.lu@intel.com>
290 * testsuite/ld-i386/i386.exp: Run ifunc-textrel-1a,
291 ifunc-textrel-1b, ifunc-textrel-2a and ifunc-textrel-2b.
292 * testsuite/ld-x86-64/x86-64.exp: Likewise.
293 * testsuite/ld-i386/ifunc-textrel-1a.d: Likewise.
294 * testsuite/ld-i386/ifunc-textrel-1b.d: Likewise.
295 * testsuite/ld-i386/ifunc-textrel-2a.d: Likewise.
296 * testsuite/ld-i386/ifunc-textrel-2b.d: Likewise.
297 * testsuite/ld-x86-64/ifunc-textrel-1.s: Likewise.
298 * testsuite/ld-x86-64/ifunc-textrel-1a.d: Likewise.
299 * testsuite/ld-x86-64/ifunc-textrel-1b.d: Likewise.
300 * testsuite/ld-x86-64/ifunc-textrel-2.s: Likewise.
301 * testsuite/ld-x86-64/ifunc-textrel-2a.d: Likewise.
302 * testsuite/ld-x86-64/ifunc-textrel-2b.d: Likewise.
303 * testsuite/ld-i386/pr18801a.d: Expect warning for IFUNC
305 * testsuite/ld-i386/pr18801b.d: Likewise.
306 * estsuite/ld-x86-64/pr18801a.d: Likewise.
307 * estsuite/ld-x86-64/pr18801b.d: Likewise.
309 2020-06-09 Alan Modra <amodra@gmail.com>
312 * testsuite/ld-elf/shared.exp: Compile dl4main.c -fPIC.
313 (dl4e, dl4f): Expect dl4a.out.
314 * testsuite/ld-elf/dl4e.out: Delete.
316 2020-06-07 H.J. Lu <hongjiu.lu@intel.com>
318 * testsuite/ld-elf/shared.exp: Pass $LFLAGS to PR ld/21703
321 2020-06-07 H.J. Lu <hongjiu.lu@intel.com>
323 * testsuite/ld-elf/shared.exp: Xfail pr20995/pr20995-2 for
326 2020-06-07 H.J. Lu <hongjiu.lu@intel.com>
328 * testsuite/ld-elf/pr11304.d: Skip tic6x-*-elf.
330 2020-06-06 Alan Modra <amodra@gmail.com>
332 * testsuite/ld-elf/comm-data.exp: Don't xfail arm or bfin-linux.
334 2020-06-06 Alan Modra <amodra@gmail.com>
336 * lexsup.c (ld_options): Accept -plugin and -plugin-opt when
338 * testsuite/lib/ld-lib.exp (check_plugin_api_available): Adjust.
340 2020-06-05 Nelson Chu <nelson.chu@sifive.com>
342 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Rename to
343 attr-merge-priv-spec-01.d.
344 * testsuite/ld-riscv-elf/attr-merge-priv-spec-c.s: Set spec to 1.11.
345 * testsuite/ld-riscv-elf/attr-merge-priv-spec-d.s: Empty priv spec set.
346 * testsuite/ld-riscv-elf/attr-merge-priv-spec-02.d: New testcase.
347 * testsuite/ld-riscv-elf/attr-merge-priv-spec-03.d: Likewise.
348 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
349 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
350 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
351 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
352 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
353 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
355 2020-06-05 Nelson Chu <nelson.chu@sifive.com>
357 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: The CSR isn't used,
358 so ignore the -mpriv-spec setting.
359 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
360 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
361 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
362 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
363 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
364 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
365 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
366 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
367 * testsuite/ld-riscv-elf/call-relax.d: Add -mno-arch-attr.
369 2020-06-04 H.J. Lu <hongjiu.lu@intel.com>
372 * testsuite/ld-elf/comm-data.exp: Remove copy_reloc.
373 * testsuite/ld-elf/comm-data2r.rd: Removed.
374 * testsuite/ld-elf/comm-data2r.sd: Likewise.
375 * testsuite/ld-elf/comm-data2r.xd: Likewise.
377 2020-06-04 Alan Modra <amodra@gmail.com>
379 * testsuite/config/default.exp: Remove global directive outside
381 * testsuite/ld-bootstrap/bootstrap.exp: Likewise.
382 * testsuite/ld-elf/compress.exp: Likewise.
383 * testsuite/ld-elf/elf.exp: Likewise.
384 * testsuite/ld-elf/exclude.exp: Likewise.
385 * testsuite/ld-elf/frame.exp: Likewise.
386 * testsuite/ld-elf/indirect.exp: Likewise.
387 * testsuite/ld-elf/linux-x86.exp: Likewise.
388 * testsuite/ld-elf/shared.exp: Likewise.
389 * testsuite/ld-elf/tls.exp: Likewise.
390 * testsuite/ld-elf/tls_common.exp: Likewise.
391 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
392 * testsuite/ld-elfweak/elfweak.exp: Likewise.
393 * testsuite/ld-frv/fdpic.exp: Likewise.
394 * testsuite/ld-frv/tls.exp: Likewise.
395 * testsuite/ld-gc/gc.exp: Likewise.
396 * testsuite/ld-i386/i386.exp: Likewise.
397 * testsuite/ld-i386/no-plt.exp: Likewise.
398 * testsuite/ld-ifunc/ifunc.exp: Likewise.
399 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
400 * testsuite/ld-nios2/nios2.exp: Likewise.
401 * testsuite/ld-plugin/lto.exp: Likewise.
402 * testsuite/ld-plugin/plugin.exp: Likewise.
403 * testsuite/ld-powerpc/export-class.exp: Likewise.
404 * testsuite/ld-scripts/align.exp: Likewise.
405 * testsuite/ld-scripts/crossref.exp: Likewise.
406 * testsuite/ld-scripts/defined.exp: Likewise.
407 * testsuite/ld-scripts/overlay-size.exp: Likewise.
408 * testsuite/ld-scripts/provide.exp: Likewise.
409 * testsuite/ld-scripts/weak.exp: Likewise.
410 * testsuite/ld-selective/selective.exp: Likewise.
411 * testsuite/ld-sh/rd-sh.exp: Likewise.
412 * testsuite/ld-size/size.exp: Likewise.
413 * testsuite/ld-srec/srec.exp: Likewise.
414 * testsuite/ld-x86-64/mpx.exp: Likewise.
415 * testsuite/ld-x86-64/no-plt.exp: Likewise.
416 * testsuite/ld-x86-64/x86-64.exp: Likewise.
418 2020-06-04 Alan Modra <amodra@gmail.com>
420 * testsuite/ld-dynamic/export-dynamic-symbol-2.d: Match output for
422 * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: Likewise.
423 * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: Likewise.
424 * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: Likewise.
425 * testsuite/ld-dynamic/export-dynamic-symbol.exp: Exclude targets
426 with poor PIE support.
428 2020-06-04 Alan Modra <amodra@gmail.com>
430 * testsuite/ld-plugin/lto.exp (pr12758.exe): Add NOPIE_LDFLAGS.
431 * testsuite/ld-unique/unique.exp: Add NOPIE_LDFLAGS to unique
432 executable and dynamic executable tests.
434 2020-06-03 H.J. Lu <hongjiu.lu@intel.com>
436 * testsuite/config/default.exp (NOSANTIZE_CFLAGS): New.
437 * testsuite/ld-elf/linux-x86.exp: Add $NOSANTIZE_CFLAGS to
438 tests with run_ld_link_exec_tests.
439 * testsuite/ld-elf/shared.exp: Add $NOSANTIZE_CFLAGS to tests
440 with run_ld_link_tests.
441 * testsuite/ld-elf/tls.exp: Likewise.
442 * testsuite/ld-elfweak/elfweak.exp: Add $NOSANTIZE_CFLAGS to
444 * testsuite/ld-gc/gc.exp: Add $NOSANTIZE_CFLAGS to cflags.
445 * testsuite/ld-plugin/lto.exp: Add $NOSANTIZE_CFLAGS to tests
446 with run_ld_link_tests.a
447 * testsuite/ld-plugin/plugin.exp: Append $NOSANTIZE_CFLAGS to
449 * testsuite/ld-selective/selective.exp: Add $NOSANTIZE_CFLAGS
450 to cflags and cxxflags.
451 * testsuite/ld-srec/srec.exp: Append $NOSANTIZE_CFLAGS to CC
453 * testsuite/ld-x86-64/plt-main-ibt-x32.dd: Updated for
454 -fsanitize=undefined.
455 * testsuite/ld-x86-64/plt-main-ibt.dd: Likewise.
456 * testsuite/ld-x86-64/x86-64.exp: Add $NOSANTIZE_CFLAGS to
457 tests with run_cc_link_tests and run_ld_link_tests.
459 2020-06-03 Fangrui Song <maskray@google.com>
460 H.J. Lu <hongjiu.lu@intel.com>
463 * NEWS: Mention --export-dynamic-symbol[-list].
464 * ld.texi: Document --export-dynamic-symbol[-list].
465 * ldgram.y: Pass current_dynamic_list_p to
466 lang_append_dynamic_list.
467 * ldlang.c (current_dynamic_list_p): New.
468 (ang_append_dynamic_list): Updated to take a pointer to
469 struct bfd_elf_dynamic_list * argument instead of using
470 link_info.dynamic_list.
471 (lang_append_dynamic_list_cpp_typeinfo): Pass
472 &link_info.dynamic_list to ang_append_dynamic_list.
473 (lang_append_dynamic_list_cpp_new): Likewise.
474 * ldlang.h (current_dynamic_list_p): New.
475 (lang_append_dynamic_list): Add a pointer to
476 struct bfd_elf_dynamic_list * argument.
477 * ldlex.h (option_values): Add OPTION_EXPORT_DYNAMIC_SYMBOL and
478 OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
479 * lexsup.c (ld_options): Add entries for
480 OPTION_EXPORT_DYNAMIC_SYMBOL and
481 OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
482 (parse_args): Handle --export-dynamic-symbol and
483 --export-dynamic-symbol-list.
484 * testsuite/ld-dynamic/export-dynamic-symbol-1.d: New.
485 * testsuite/ld-dynamic/export-dynamic-symbol-2.d: New.
486 * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: New.
487 * testsuite/ld-dynamic/export-dynamic-symbol-list-1.d: New.
488 * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: New.
489 * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: New.
490 * testsuite/ld-dynamic/export-dynamic-symbol.exp: New.
491 * testsuite/ld-dynamic/export-dynamic-symbol.s: New.
492 * testsuite/ld-dynamic/foo-bar.list: New.
493 * testsuite/ld-dynamic/foo.list: New.
494 * testsuite/ld-dynamic/foo.s: New.
495 * testsuite/ld-dynamic/fstar.list: New.
496 * testsuite/ld-elf/dlempty.list: New.
497 * testsuite/ld-elf/shared.exp: Add tests for
498 --export-dynamic-symbol and --export-dynamic-symbol-list.
500 2020-06-03 Jan Beulich <jbeulich@suse.com>
502 * testsuite/ld-elf/linux-x86.exp: Make copied source files
505 2020-05-28 Nick Clifton <nickc@redhat.com>
508 * ldelf.c (ldelf_after_open): Fail if attempting to link one
509 executable into another. Ensure that the test is made for all
512 2020-05-28 H.J. Lu <hongjiu.lu@intel.com>
514 * NEWS: Mention --enable-textrel-check=yes is default for
516 * configure.tgt (ac_default_ld_textrel_check): Set to yes if
517 unset for Linux/x86 targets.
519 2020-05-28 H.J. Lu <hongjiu.lu@intel.com>
522 * NEWS: Mention --enable-textrel-check=[no|yes|warning|error].
523 * configure.ac: Add --enable-textrel-check=[no|yes|warning|error].
524 (DEFAULT_LD_TEXTREL_CHECK): New AC_DEFINE_UNQUOTED.
525 (DEFAULT_LD_TEXTREL_CHECK_WARNING): Likewise.
526 * ldmain.c (main): Initialize link_info.textrel_check to
527 DEFAULT_LD_TEXTREL_CHECK.
528 * lexsup.c (ld_options): Check DEFAULT_LD_TEXTREL_CHECK_WARNING.
529 * config.in: Regenerated.
530 * configure: Likewise.
532 2020-05-28 Nick Clifton <nickc@redhat.com>
534 * lexsup.c (parse_args): Generate an error if a name is not
535 provided to the -Map option.
536 (ld_options): Mention that the -Map option supports a directory
538 * NEWS: Remove mention of support for an empty string as an
542 2020-05-27 Hans-Peter Nilsson <hp@axis.com>
545 * testsuite/ld-elf/pr19539.d: Don't xfail for cris*-*-*.
547 2020-05-27 Rasmus Villemoes <rv@rasmusvillemoes.dk>
548 Nick Clifton <nickc@redhat.com>
550 * lexsup.c (parse_args): If the map filename is defined but empty
551 create a name based upon the output file name. If the name is
552 defined but refers to a directory create a file inside the
553 directory based on the output file name.
554 * ld.texi: Document the new feature.
555 * testsuite/ld-script/map-address.exp: Add test of new feature.
556 * NEWS: Mention the new feature.
558 2020-05-27 H.J. Lu <hongjiu.lu@intel.com>
561 * NEWS: Mention --warn-textrel.
562 * ld.texi: Update -z text/notext/textoff. Add --warn-textrel.
563 Remove --warn-shared-textrel.
564 * ldlex.h (option_values): Rename OPTION_WARN_SHARED_TEXTREL to
566 * lexsup.c (ld_options): Add --warn-textrel. Obsolete
567 --warn-shared-textrel.
568 (parse_args): Updated.
569 (elf_shlib_list_options): Check link_info.textrel_check.
570 * emultempl/elf.em: Updated.
571 * testsuite/ld-elf/pr19539.d: Replace -z notext with
572 --warn-textrel. Expect a warning.
573 * testsuite/ld-i386/warn1.d: Update expected warning.
575 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
577 * testsuite/ld-ifunc/ifunc-23a-x86.d: Skip *-*-lynxos *-*-nto*.
578 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
579 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
581 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
583 * testsuite/ld-x86-64/x86-64.exp: Pass -z notext to linker.
585 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
587 * testsuite/ld-elf/eh6.d: Pass -z notext to linker.
588 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
589 * testsuite/ld-elf/pr19539.d: Likewise.
590 * testsuite/ld-elfvers/vers.exp: Likewise.
591 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
592 * testsuite/ld-i386/i386.exp: Likewise.
593 * testsuite/ld-i386/nogot1.d: Likewise.
594 * testsuite/ld-i386/pr19539.d: Likewise.
595 * testsuite/ld-i386/pr19636-2a.d: Likewise.
596 * testsuite/ld-i386/pr19636-2b.d: Likewise.
597 * testsuite/ld-i386/pr19636-2c.d: Likewise.
598 * testsuite/ld-i386/pr19636-2d.d: Likewise.
599 * testsuite/ld-i386/pr19636-2e.d: Likewise.
600 * testsuite/ld-i386/pr19636-3d.d: Likewise.
601 * testsuite/ld-i386/pr19636-3e.d: Likewise.
602 * testsuite/ld-i386/pr19939b.d: Likewise.
603 * testsuite/ld-i386/undefweaka.d: Likewise.
604 * testsuite/ld-i386/undefweakb.d: Likewise.
605 * testsuite/ld-shared/shared.exp: Likewise.
606 * testsuite/ld-size/size.exp: Likewise.
607 * testsuite/ld-unique/unique.exp: Likewise.
608 * testsuite/ld-x86-64/pie1.d: Likewise.
609 * testsuite/ld-x86-64/pr19539a.d: Likewise.
610 * testsuite/ld-x86-64/pr19539b.d: Likewise.
611 * testsuite/ld-x86-64/pr19636-1d.d: Likewise.
612 * testsuite/ld-x86-64/pr19636-1e.d: Likewise.
613 * testsuite/ld-x86-64/pr19807-1a.d: Likewise.
614 * testsuite/ld-x86-64/pr19807-1b.d: Likewise.
615 * testsuite/ld-x86-64/pr19807-2b.d: Likewise.
616 * testsuite/ld-x86-64/pr19807-2c.d: Likewise.
617 * testsuite/ld-x86-64/pr19807-2d.d: Likewise.
618 * testsuite/ld-x86-64/pr19807-2e.d: Likewise.
619 * testsuite/ld-x86-64/pr19939b.d: Likewise.
620 * testsuite/ld-x86-64/x86-64.exp: Likewise.
622 2020-05-24 Fangrui Song <maskray@google.com>
625 * lexsup.c (parse_args): Simplify.
626 * testsuite/ld-elf/dl4e.out: New.
627 * testsuite/ld-elf/shared.exp: Updated for PR ld/26018 tests.
629 2020-05-23 H.J. Lu <hongjiu.lu@intel.com>
632 * testsuite/ld-i386/i386.exp: Add a -Bsymbolic-functions test.
633 * testsuite/ld-x86-64/x86-64.exp: Likewise.
634 * testsuite/ld-i386/pr26018.d: New file.
635 * testsuite/ld-x86-64/pr26018.d: Likewise.
636 * testsuite/ld-x86-64/pr26018.s: Likewise.
638 2020-05-21 Alan Modra <amodra@gmail.com>
640 * deffilep.y: Replace "if (x) free (x)" with "free (x)" thoughout.
641 * emultempl/elf.em: Likewise.
642 * emultempl/msp430.em: Likewise.
643 * emultempl/pe.em: Likewise.
644 * emultempl/pep.em: Likewise.
645 * emultempl/ppc64elf.em: Likewise.
646 * emultempl/xtensaelf.em: Likewise.
648 * ldfile.c: Likewise.
649 * ldmain.c: Likewise.
650 * ldmisc.c: Likewise.
651 * lexsup.c: Likewise.
652 * pe-dll.c: Likewise.
654 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
656 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Updated
657 priv attributes according to the -mpriv-spec option.
658 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
659 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
660 * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
661 * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
662 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
663 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
664 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
665 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
666 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
667 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
668 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
670 2020-05-20 Alan Modra <amodra@gmail.com>
673 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't copy
674 other_bfd_filename for bfd_set_filename, and test result of
675 bfd_set_filename call. Don't create a new is->filename, simply
676 copy from bfd filename. Free new_name after bfd_set_filename.
677 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
679 2020-05-19 Siddhesh Poyarekar <siddesh.poyarekar@arm.com>
681 * testsuite/ld-aarch64/aarch64-elf.exp: New test
683 * testsuite/ld-aarch64/emit-relocs-560.d: New file.
684 * testsuite/ld-aarch64/emit-relocs-560.s: New file.
686 2020-05-19 Alan Modra <amodra@gmail.com>
688 * emultempl/beos.em (sort_by_file_name): Use bfd_get_filename
689 rather than accessing bfd->filename directly.
690 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
691 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
692 * emultempl/spuelf.em (embedded_spu_file): Likewise.
693 * ldlang.c (input_statement_is_archive_path, wild_sort),
694 (check_excluded_libs): Likewise.
695 * ldmain.c (add_archive_element): Likewise.
696 * ldmisc.c (vfinfo): Likewise.
697 * pe-dll.c (auto_export, generate_edata, pe_create_import_fixup),
698 (pe_dll_generate_implib, pe_process_import_defs): Likewise.
699 * plugin.c (plugin_object_p): Likewise.
701 2020-05-18 Douglas B Rupp <rupp@adacore.com>
703 * ldemul.h (ldemul_print_symbol): New.
704 (ld_emulation_xfer_type) <print_symbol): Likewise.
705 * ldemul.c (ldemul_print_symbol): New.
706 * ldlang.c (SECTION_NAME_MAP_LANGTH): Move to ...
707 (print_one_symbol): Make global and move declaration to ...
708 (print_all_symbols): Rename print_one_symbol to ldemul_print_symbol
709 (print_input_section): Likewise
710 * ldlang.h: ... here.
711 * emultempl/aix.em (gld${EMULATION_NAME}_print_symbol): New.
712 (ld_emulation_xfer_struct): Use it.
713 * emultempl/armcoff.em (ld_emulation_xfer_struct): Add print_symbol
715 * emultempl/beos.em (ld_emulation_xfer_struct): Likewise
716 * emultempl/elf.em (ld_emulation_xfer_struct): Likewise
717 * emultempl/generic.em (ld_emulation_xfer_struct): Likewise
718 * emultempl/linux.em (ld_emulation_xfer_struct): Likewise
719 * emultempl/msp430.em (ld_emulation_xfer_struct): Likewise
720 * emultempl/pe.em (ld_emulation_xfer_struct): Likewise
721 * emultempl/pep.em (ld_emulation_xfer_struct): Likewise
722 * emultempl/ticoff.em (ld_emulation_xfer_struct): Likewise
723 * emultempl/vanilla.em (ld_emulation_xfer_struct): Likewise
725 2020-05-18 Sergei Trofimovich <siarheit@google.com>
727 * ldmain.c (add_archive_element): Fix s/claimi/claim/ typo
730 2020-05-18 Nick Clifton <nickc@redhat.com>
732 * po/sv.po: Update Swedish translation.
734 2020-05-18 Nick Clifton <nickc@redhat.com>
737 * emultempl/pe.em (_after_open): Check for duplicate filename
738 pointers before renaming the dll.
739 * emultempl/pep.em (_after_open): Likewise.
741 2020-05-13 Nick Clifton <nickc@redhat.com>
744 * lexsup.c (elf_shlib_list_options): Include the default value for
745 the hash style in the output text.
747 2020-05-11 Alan Modra <amodra@gmail.com>
749 * testsuite/ld-powerpc/pcrelopt.s: Add lxvp and stxvp.
750 * testsuite/ld-powerpc/pcrelopt.d: Update.
752 2020-05-11 Alan Modra <amodra@gmail.com>
754 * testsuite/ld-powerpc/callstub-1.d: Use -mpower10/-Mpower10 in
755 place of -mfuture/-Mfuture.
756 * testsuite/ld-powerpc/notoc2.d: Likewise.
757 * testsuite/ld-powerpc/powerpc.exp: Likewise.
758 * testsuite/ld-powerpc/tlsgd.d: Likewise.
759 * testsuite/ld-powerpc/tlsie.d: Likewise.
760 * testsuite/ld-powerpc/tlsld.d: Likewise.
762 2020-05-11 Nick Clifton <nickc@redhat.com>
764 * po/es.po: Updated Spanish translation.
766 2020-05-01 Wilco Dijkstra <wdijkstr@arm.com>
769 * testsuite/ld-aarch64/farcall-group.s: New large group test.
770 * testsuite/ld-aarch64/farcall-group.d: New test driver.
771 * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
773 2020-05-01 Alan Modra <amodra@gmail.com>
776 * ldlang.c (lang_check): Call bfd_merge_private_bfd_data for
779 2020-05-01 Alan Modra <amodra@gmail.com>
781 * po/BLD-POTFILES.in: Regenerate.
783 2020-04-30 Alex Coplan <alex.coplan@arm.com>
785 * testsuite/ld-aarch64/erratum843419_tls_ie.d: Use udf in disassembly.
786 * testsuite/ld-aarch64/farcall-b-section.d: Likewise.
787 * testsuite/ld-aarch64/farcall-back.d: Likewise.
788 * testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
790 2020-04-30 Nick Clifton <nickc@redhat.com>
792 * testsuite/ld-elf/compress1c.d: XFAIL if thet target linker does
793 not support the -shared command line option.
794 * /ld-elf/compressed1c.d: Likewise.
795 * /ld-elf/compressed1e.d: Likewise.
796 * /ld-elf/dynamic1.d: Likewise.
797 * /ld-elf/dynsym1.d: Likewise.
798 * /ld-elf/ehdr_start-shared.d: Likewise.
799 * /ld-elf/exclude3b.d: Likewise.
800 * /ld-elf/global1.d: Likewise.
801 * /ld-elf/hash.d: Likewise.
802 * /ld-elf/local1.d: Likewise.
803 * /ld-elf/mbind1b.d: Likewise.
804 * /ld-elf/now-1.d: Likewise.
805 * /ld-elf/now-2.d: Likewise.
806 * /ld-elf/now-3.d: Likewise.
807 * /ld-elf/now-4.d: Likewise.
808 * /ld-elf/pr12975.d: Likewise.
809 * /ld-elf/pr13177.d: Likewise.
810 * /ld-elf/pr13195.d: Likewise.
811 * /ld-elf/pr16322.d: Likewise.
812 * /ld-elf/pr16498a.d: Likewise.
813 * /ld-elf/pr16498b.d: Likewise.
814 * /ld-elf/pr17615.d: Likewise.
815 * /ld-elf/pr19162.d: Likewise.
816 * /ld-elf/pr19698.d: Likewise.
817 * /ld-elf/pr20513c.d: Likewise.
818 * /ld-elf/pr20513d.d: Likewise.
819 * /ld-elf/pr21389a.d: Likewise.
820 * /ld-elf/pr21389b.d: Likewise.
821 * /ld-elf/pr21389c.d: Likewise.
822 * /ld-elf/pr21562a.d: Likewise.
823 * /ld-elf/pr21562b.d: Likewise.
824 * /ld-elf/pr21562c.d: Likewise.
825 * /ld-elf/pr21562d.d: Likewise.
826 * /ld-elf/pr21562e.d: Likewise.
827 * /ld-elf/pr21562f.d: Likewise.
828 * /ld-elf/pr21562g.d: Likewise.
829 * /ld-elf/pr21562h.d: Likewise.
830 * /ld-elf/pr21562i.d: Likewise.
831 * /ld-elf/pr21562j.d: Likewise.
832 * /ld-elf/pr21562k.d: Likewise.
833 * /ld-elf/pr21562l.d: Likewise.
834 * /ld-elf/pr21562m.d: Likewise.
835 * /ld-elf/pr21562n.d: Likewise.
836 * /ld-elf/pr21903a.d: Likewise.
837 * /ld-elf/pr21903b.d: Likewise.
838 * /ld-elf/pr22269b.d: Likewise.
839 * /ld-elf/pr22393-1a.d: Likewise.
840 * /ld-elf/pr22393-1b.d: Likewise.
841 * /ld-elf/pr23658-1c.d: Likewise.
842 * /ld-elf/pr25708.d: Likewise.
843 * /ld-elf/rpath-1.d: Likewise.
844 * /ld-elf/rpath-2.d: Likewise.
845 * /ld-elf/runpath-1.d: Likewise.
846 * /ld-elf/runpath-2.d: Likewise.
847 * /ld-elf/sizeofb.d: Likewise.
848 * /ld-elf/startofb.d: Likewise.
849 * /ld-elf/strtab.d: Likewise.
850 * /ld-elf/textaddr2.d: Likewise.
851 * /ld-elf/textaddr5.d: Likewise.
852 * /ld-elf/textaddr6.d: Likewise.
853 * /ld-elf/unknown2.d: Likewise.
854 * /ld-undefined/entry-3.d: Likewise.
855 * /ld-undefined/entry-4.d: Likewise.
856 * /ld-elf/mbind1c.d: XFAIL if the target linker does not support
858 * /ld-elf/pie.d: Likewise.
859 * /ld-elf/pr19539.d: Likewise.
860 * /ld-elf/pr21903d.d: Likewise.
861 * /ld-elf/pr22269a.d: Likewise.
862 * /ld-elf/pr22393-1c.d: Likewise.
863 * /ld-elf/pr22393-1d.d: Likewise.
864 * /ld-elf/pr22423.d: Likewise.
865 * /ld-elf/loadaddr1.d: Expect to fail on the rx-linux target.
866 * /ld-elf/loadaddr2.d: Likewise.
867 * /ld-elf/pr22393-1e.d: Likewise.
868 * /ld-elf/pr22393-1f.d: Likewise.
869 * /ld-elf/textaddr1.d: Likewise.
870 * /ld-elf/textaddr4.d: Likewise.
872 2020-04-30 Yoshinori Sato <ysato@users.sourceforge.jp>
874 * emulparams/elf32rx_linux.sh: New rx-linux emulation.
875 * emultempl/rxlinux.em: New.
876 * configure.tgt: Add rx-linux.
877 * Makefile.am: Add eelf32rx_linux.c
878 * Makefile.in: Regenerate.
880 2020-04-29 Max Filippov <jcmvbkbc@gmail.com>
882 * testsuite/ld-xtensa/relax-diff1.d: New test definition.
883 * testsuite/ld-xtensa/relax-diff1.s: New test source.
884 * testsuite/ld-xtensa/relax-ndiff.d: New test definition.
885 * testsuite/ld-xtensa/relax-ndiff.s: New test source.
886 * testsuite/ld-xtensa/xtensa.exp: (relax-diff1)
887 (relax-ndiff): New tests.
889 2020-04-29 Stephen Casner <casner@acm.org>
892 * testsuite/ld-scripts/default-script.exp: Add --image-base=0 to
893 LDFLAGS for targets *-*-mingw64 x86_64-*-cygwin.
894 * testsuite/ld-scripts/default-script1.d: No longer have to skip
895 test for those targets.
896 * testsuite/ld-scripts/default-script2.d: Likewise.
897 * testsuite/ld-scripts/default-script3.d: Likewise.
898 * testsuite/ld-scripts/default-script4.d: Likewise.
900 2020-04-27 Tamar Christina <tamar.christina@arm.com>
902 * pe-dll.c (pe_detail_list): Add pe-bigobj-i386.
904 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
907 * testsuite/ld-xtensa/relax-loc.d: New test definition.
908 * testsuite/ld-xtensa/relax-loc.s: New test source.
909 * testsuite/ld-xtensa/xtensa.exp (relax-loc): New test.
911 2020-04-22 Fangrui Song <maskray@google.com>
914 * ldlang.h (struct lang_input_statement_struct): Add extra_search_path.
915 * ldlang.c (current_input_file): New.
917 (new_afile): Add from_filename parameter. Set extra_search_path.
918 (lang_add_input_file): Pass current_input_file to new_afile.
919 (load_symbols): Set current_input_file.
920 * ldfile.c (ldfile_open_file): If extra_search_path has been set
921 then scan it for the file that needs to be opened.
922 * ld.texi: Document the new behaviour.
923 * NEWS: Mention the new feature.
925 2020-04-22 Alan Modra <amodra@gmail.com>
927 * testsuite/ld-scripts/default-script1.d: Correct mingw skip.
928 * testsuite/ld-scripts/default-script2.d: Likewise.
929 * testsuite/ld-scripts/default-script3.d: Likewise.
930 * testsuite/ld-scripts/default-script4.d: Likewise.
932 2020-04-21 Stephen Casner <casner@acm.org>
935 * testsuite/ld-scripts/script.exp (check_script)
936 (extract_symbol_test): Make test addresses fit in 16 bits.
937 * testsuite/ld-scripts/memory.t: Likewise.
938 * testsuite/ld-scripts/memory_sym.t (TXT_LENGTH): Likewise.
939 * testsuite/ld-scripts/default-script.t (_START): Likewise.
940 * testsuite/ld-scripts/default-script1.d: Likewise.
941 * testsuite/ld-scripts/default-script2.d: Likewise.
942 * testsuite/ld-scripts/default-script3.d: Likewise.
943 * testsuite/ld-scripts/default-script4.d: Likewise.
944 * testsuite/ld-scripts/empty-address-1.t: Likewise.
945 * testsuite/ld-scripts/empty-address-1.d: Likewise.
946 * testsuite/ld-scripts/empty-address-2a.d: Likewise.
947 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
948 * testsuite/ld-misc/start.s: .long -> .dc.a to allow relocation to
949 fit target address size.
950 * testsuite/ld-scripts/empty-address-1.s: Likewise.
951 * testsuite/ld-scripts/empty-address-2.s: Likewise.
953 2020-04-21 H.J. Lu <hongjiu.lu@intel.com>
956 * ldelfgen.c (ldelf_map_segments): Call
957 elf_backend_strip_zero_sized_dynamic_sections.
958 * testsuite/ld-alpha/tlsbinr.rd: Updated.
960 2020-04-20 Alan Modra <amodra@gmail.com>
962 * testsuite/ld-powerpc/tlsopt5.s: Rename foo to aaaaa.
963 * testsuite/ld-powerpc/tlsopt5.d: Adjust to suit.
964 * testsuite/ld-powerpc/tlsopt6.d: Likewise.
966 2020-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
968 * testsuite/ld-elf/warn1.d: Don't xfail on 64-bit Solaris/SPARC.
969 * testsuite/ld-elf/warn2.d: Likewise.
971 2020-04-18 H.J. Lu <hongjiu.lu@intel.com>
973 * testsuite/ld-elf/elf.exp (ASFLAGS): Add "--defsym NO_SET=1" for
975 * testsuite/ld-elf/pr19789.s: Use "=" if NO_SET is defined.
977 2020-04-16 Stephen Casner <casner@acm.org>
980 * testsuite/ld-scripts/pr18963.t: Reduce section sizes to fit in
981 16-bit address space.
982 * testsuite/ld-scripts/pr18963.d: Likewise.
984 2020-04-17 Juan Manuel Guerrero <juan.guerrero@gmx.de>
985 Jan W. Jagersma <jwjagersma@gmail.com>
987 * scripttempl/i386go32.sc: Provide symbol _environ. Link in
988 .ctors and .dtors. Discard LTO sections.
990 2020-04-17 Nick Clifton <nickc@redhat.com>
992 * testsuite/config/default.exp: If not already set then create the
993 CCC_OVERRIDE_OPTIONS environment variable to help when running the
994 testsuite with clang.
995 * testsuite/ld-elf/pr22269-1.c: Add a missing return statement.
996 * testsuite/ld-elfvers/vers.exp: Add checks to detect if files
997 were built before attempting to copy them.
999 2020-04-15 Fangrui Song <maskray@google.com>
1002 * lexsup.c (parse_args): Change RM_GENERATE_WARNING and
1003 RM_GENERATE_ERROR to RM_DIAGNOSE.
1004 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Change
1005 RM_GENERATE_ERROR to RM_DIAGNOSE.
1006 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Likewise.
1008 2020-04-14 Stephen Casner <casner@acm.org>
1011 * emulparams/pdp11.sh (SCRIPT_NAME): Change to pdp11.
1012 (EXTRA_EM_FILE): New, add emulation file pdp11.
1013 * scripttempl/pdp11.sc: New, derived from aout.sc without
1014 irrelevant input sections.
1015 * emultempl/pdp11.em (_add_options, _handle_option)
1016 (_list_options): New. Add options -z, --imagic for pdp11-aout.
1017 (_before_parse): Make --omagic be default instead of --nmagic.
1018 (_get_script): Modify special-case linker script for --imagic.
1019 * lexsup.c (parse_args): Explictly set config.text_read_only for -n.
1020 * ld.texi (Options): Add documentation of PDP11-specific options.
1021 (Options): Fix unrelated typo to --no-compact-branches.
1022 * gen-doc.texi: @set PDP11.
1023 * testsuite/ld-pdp11/pdp11.exp: New, start pdp11 testing.
1024 * testsuite/ld-pdp11/sections.s: New, source for options tests.
1025 * testsuite/ld-pdp11/imagic.d: New, test --imagic format.
1026 * testsuite/ld-pdp11/imagicz.d: New, test -z (imagic) format.
1027 * testsuite/ld-pdp11/nmagic.d: New, test --nmagic format.
1028 * testsuite/ld-pdp11/omagic.d: New, test --omagic format.
1030 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
1033 * testsuite/ld-arm/armthumb-lib.sym: Updated.
1034 * testsuite/ld-arm/farcall-mixed-app.sym: Likewise.
1035 * testsuite/ld-arm/farcall-mixed-app2.sym: Likewise.
1036 * testsuite/ld-arm/fdpic-main-m.sym: Likewise.
1037 * testsuite/ld-arm/fdpic-main.sym: Likewise.
1038 * testsuite/ld-arm/fdpic-shared-m.sym: Likewise.
1039 * testsuite/ld-arm/fdpic-shared.sym: Likewise.
1040 * testsuite/ld-arm/mixed-app.sym: Likewise.
1041 * testsuite/ld-arm/mixed-lib.sym: Likewise.
1042 * testsuite/ld-arm/preempt-app.sym: Likewise.
1043 * testsuite/ld-elf/hash.d: Likewise.
1044 * testsuite/ld-elf/pr13195.d: Likewise.
1045 * testsuite/ld-elfvsb/hidden2.d: Likewise.
1046 * testsuite/ld-mips-elf/hash2.d: Likewise.
1048 2020-04-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1050 * testsuite/ld-shared/shared.exp: Remove dangling comments.
1051 xfail shared non PIC tests on Solaris.
1053 2020-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1055 * testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIC on sparc*-*-*.
1057 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
1059 * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): Replace
1060 nopie with available.
1062 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
1064 * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): New.
1065 Set to "-fcf-protection=none" if target compiler supports it.
1066 * testsuite/ld-srec/srec.exp: Add $NOCF_PROTECTION_CFLAGS to
1068 * testsuite/ld-x86-64/x86-64.exp: Add $NOCF_PROTECTION_CFLAGS
1071 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
1073 * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Compile with
1075 (check_pr25749b): Likewise.
1077 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1079 * testsuite/ld-ifunc/ifunc-10-i386.d: Remove *-*-solaris2* from
1081 * ifunc-11-i386.d: Likewise.
1082 * ifunc-12-i386.d: Likewise.
1083 * ifunc-13-i386.d: Likewise.
1084 * ifunc-14a-i386.d: Likewise.
1085 * ifunc-14b-i386.d: Likewise.
1086 * ifunc-14c-i386.d: Likewise.
1087 * ifunc-14d-i386.d: Likewise.
1088 * ifunc-14e-i386.d: Likewise.
1089 * ifunc-14f-i386.d: Likewise.
1090 * ifunc-15-i386.d: Likewise.
1091 * ifunc-16-i386-now.d: Likewise.
1092 * ifunc-16-i386.d: Likewise.
1093 * ifunc-17a-i386.d: Likewise.
1094 * ifunc-17b-i386.d: Likewise.
1095 * ifunc-18a-i386.d: Likewise.
1096 * ifunc-18b-i386.d: Likewise.
1097 * ifunc-19a-i386.d: Likewise.
1098 * ifunc-19b-i386.d: Likewise.
1099 * ifunc-2-i386-now.d: Likewise.
1100 * ifunc-2-i386.d: Likewise.
1101 * ifunc-2-local-i386-now.d: Likewise.
1102 * ifunc-2-local-i386.d: Likewise.
1103 * ifunc-20-i386.d: Likewise.
1104 * ifunc-21-i386.d: Likewise.
1105 * ifunc-22-i386.d: Likewise.
1106 * ifunc-5a-i386.d: Likewise.
1107 * ifunc-5a-local-i386.d: Likewise.
1108 * ifunc-5b-i386.d: Likewise.
1109 * ifunc-5b-local-i386.d: Likewise.
1110 * ifunc-5r-local-i386.d: Likewise.
1111 * ifunc-6a-i386.d: Likewise.
1112 * ifunc-6b-i386.d: Likewise.
1113 * ifunc-7a-i386.d: Likewise.
1114 * ifunc-7b-i386.d: Likewise.
1115 * ifunc-8-i386.d: Likewise.
1116 * ifunc-9-i386.d: Likewise.
1117 * pr17154-i386-now.d: Likewise.
1118 * pr17154-i386.d: Likewise.
1120 * ifunc-23a-x86.d: Remove notarget.
1121 * ifunc-24a-x86.d: Likewise.
1122 * ifunc-25a-x86.d: Likewise.
1124 2020-04-02 Nick Clifton <nickc@redhat.com>
1127 * ldfile.c (ldfile_open_file): Fix typo in warning message.
1129 2020-04-01 H.J. Lu <hongjiu.lu@intel.com>
1133 * testsuite/ld-elf/linux-x86.exp: Run ld/25749 tests.
1134 * testsuite/ld-elf/pr25749-1.c: New file.
1135 * testsuite/ld-elf/pr25749-1a.c: Likewise.
1136 * testsuite/ld-elf/pr25749-1b.c: Likewise.
1137 * testsuite/ld-elf/pr25749-1b.err: Likewise.
1138 * testsuite/ld-elf/pr25749-1c.c: Likewise.
1139 * testsuite/ld-elf/pr25749-1d.c: Likewise.
1140 * testsuite/ld-elf/pr25749-2.c: Likewise.
1141 * testsuite/ld-elf/pr25749-2a.s: Likewise.
1142 * testsuite/ld-elf/pr25749-2b.s: Likewise.
1143 * testsuite/ld-elf/pr25749.rd: Likewise.
1144 * testsuite/ld-elf/pr25754-1a.c: Likewise.
1145 * testsuite/ld-elf/pr25754-1b.s: Likewise.
1146 * testsuite/ld-elf/pr25754-2a.c: Likewise.
1147 * testsuite/ld-elf/pr25754-2b.err: Likewise.
1148 * testsuite/ld-elf/pr25754-2b.s: Likewise.
1149 * testsuite/ld-elf/pr25754-3a.c: Likewise.
1150 * testsuite/ld-elf/pr25754-3b.s: Likewise.
1151 * testsuite/ld-elf/pr25754-4a.c: Likewise.
1152 * testsuite/ld-elf/pr25754-4b.s: Likewise.
1153 * testsuite/ld-elf/pr25754-4c.s: Likewise.
1154 * testsuite/ld-elf/pr25754-5a.c: Likewise.
1155 * testsuite/ld-elf/pr25754-5b.s: Likewise.
1156 * testsuite/ld-elf/pr25754-5c.s: Likewise.
1157 * testsuite/ld-elf/pr25754-6a.c: Likewise.
1158 * testsuite/ld-elf/pr25754-6b.s: Likewise.
1159 * testsuite/ld-x86-64/pr19609-6a.d: Don't expect linker error.
1161 2020-04-01 Tamar Christina <tamar.christina@arm.com>
1164 * testsuite/ld-arm/arm-elf.exp (thumb-plt, thumb-plt-got): Skip for NaCL.
1166 2020-04-01 Nick Clifton <nickc@redhat.com>
1169 * ldfile.c (ldfile_open_file): If a search for a library fails,
1170 but there is a file that would match if it had a "lib" prefix to
1171 its name, then tell the user.
1173 2020-04-01 Tamar Christina <tamar.christina@arm.com>
1176 * testsuite/ld-arm/arm-elf.exp (thumb-plt-got): New.
1177 * testsuite/ld-arm/thumb-plt-got.d: New test.
1179 2020-04-01 Tamar Christina <tamar.christina@arm.com>
1181 * testsuite/ld-arm/arm-elf.exp (thumb-plt): New.
1182 * testsuite/ld-arm/thumb-plt.d: New test.
1183 * testsuite/ld-arm/thumb-plt.s: New test.
1185 2020-04-01 Hans-Peter Nilsson <hp@bitrange.com>
1187 * testsuite/ld-scripts/defined4.d: Don't xfail mmix-*-*.
1189 2020-03-30 Nick Clifton <nickc@redhat.com>
1192 * emultempl/pe.em (after_open): Replace initialisation of the
1193 insert_timestamp field in the pe_data structure with an
1194 initialisation of the timestamp field.
1195 * emultemp/pep.em: Likewise.
1196 * pe-dll.c (fill_edata): Use the timestamp field in the pe_data
1197 structure instead of the insert_timestamp field.
1199 2020-03-28 H.J. Lu <hongjiu.lu@intel.com>
1202 * emulparams/elf_i386_ldso.sh (COMMONPAGESIZE): New.
1203 * testsuite/ld-elf/shared.exp:Don't xfail pr20995-2 tests for
1206 2020-03-27 H.J. Lu <hongjiu.lu@intel.com>
1209 * testsuite/ld-elf/shared.exp: Xfail pr20995-2 tests for Solaris.
1211 2020-03-27 H.J. Lu <hongjiu.lu@intel.com>
1214 * testsuite/ld-ifunc/ifunc-23a-x86.d: Add notarget for Solaris.
1215 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
1216 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
1218 2020-03-25 Alan Modra <amodra@gmail.com>
1220 * testsuite/ld-elf/compress1c.d: xfail h8300.
1221 * testsuite/ld-elf/compressed1c.d: Likewise.
1222 * testsuite/ld-elf/compressed1e.d: Likewise.
1223 * testsuite/ld-elf/dynamic1.d: Likewise.
1224 * testsuite/ld-elf/dynsym1.d: Likewise.
1225 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1226 * testsuite/ld-elf/exclude3b.d: Likewise.
1227 * testsuite/ld-elf/export-class.exp: Don't run without -shared support.
1228 * testsuite/ld-elf/global1.d: xfail h8300.
1229 * testsuite/ld-elf/hash.d: Likewise.
1230 * testsuite/ld-elf/loadaddr1.d: Likewise.
1231 * testsuite/ld-elf/loadaddr2.d: Likewise.
1232 * testsuite/ld-elf/local1.d: Likewise.
1233 * testsuite/ld-elf/mbind1b.d: Likewise.
1234 * testsuite/ld-elf/mbind1c.d: Likewise.
1235 * testsuite/ld-elf/now-1.d: Likewise.
1236 * testsuite/ld-elf/now-2.d: Likewise.
1237 * testsuite/ld-elf/now-3.d: Likewise.
1238 * testsuite/ld-elf/now-4.d: Likewise.
1239 * testsuite/ld-elf/pie.d: Likewise.
1240 * testsuite/ld-elf/pr12975.d: Likewise.
1241 * testsuite/ld-elf/pr13177.d: Likewise.
1242 * testsuite/ld-elf/pr13195.d: Likewise.
1243 * testsuite/ld-elf/pr16322.d: Likewise.
1244 * testsuite/ld-elf/pr16498a.d: Likewise.
1245 * testsuite/ld-elf/pr16498b.d: Likewise.
1246 * testsuite/ld-elf/pr17615.d: Likewise.
1247 * testsuite/ld-elf/pr19162.d: Likewise.
1248 * testsuite/ld-elf/pr19539.d: Likewise.
1249 * testsuite/ld-elf/pr19617a.d: Likewise.
1250 * testsuite/ld-elf/pr19698.d: Likewise.
1251 * testsuite/ld-elf/pr20513c.d: Likewise.
1252 * testsuite/ld-elf/pr20513d.d: Likewise.
1253 * testsuite/ld-elf/pr21389a.d: Likewise.
1254 * testsuite/ld-elf/pr21389b.d: Likewise.
1255 * testsuite/ld-elf/pr21389c.d: Likewise.
1256 * testsuite/ld-elf/pr21562a.d: Likewise.
1257 * testsuite/ld-elf/pr21562b.d: Likewise.
1258 * testsuite/ld-elf/pr21562c.d: Likewise.
1259 * testsuite/ld-elf/pr21562d.d: Likewise.
1260 * testsuite/ld-elf/pr21562e.d: Likewise.
1261 * testsuite/ld-elf/pr21562f.d: Likewise.
1262 * testsuite/ld-elf/pr21562g.d: Likewise.
1263 * testsuite/ld-elf/pr21562h.d: Likewise.
1264 * testsuite/ld-elf/pr21562i.d: Likewise.
1265 * testsuite/ld-elf/pr21562j.d: Likewise.
1266 * testsuite/ld-elf/pr21562k.d: Likewise.
1267 * testsuite/ld-elf/pr21562l.d: Likewise.
1268 * testsuite/ld-elf/pr21562m.d: Likewise.
1269 * testsuite/ld-elf/pr21562n.d: Likewise.
1270 * testsuite/ld-elf/pr21903a.d: Likewise.
1271 * testsuite/ld-elf/pr21903b.d: Likewise.
1272 * testsuite/ld-elf/pr21903d.d: Likewise.
1273 * testsuite/ld-elf/pr22269a.d: Likewise.
1274 * testsuite/ld-elf/pr22269b.d: Likewise.
1275 * testsuite/ld-elf/pr22393-1a.d: Likewise.
1276 * testsuite/ld-elf/pr22393-1b.d: Likewise.
1277 * testsuite/ld-elf/pr22393-1c.d: Likewise.
1278 * testsuite/ld-elf/pr22393-1d.d: Likewise.
1279 * testsuite/ld-elf/pr22393-1e.d: Likewise.
1280 * testsuite/ld-elf/pr22393-1f.d: Likewise.
1281 * testsuite/ld-elf/pr22423.d: Likewise.
1282 * testsuite/ld-elf/pr22450.d: xfail avr, crx, h8300, ip2k, m68hc11,
1284 * testsuite/ld-elf/pr23658-1c.d: xfail h8300.
1285 * testsuite/ld-elf/pr25708.d: xfail h8300 and hppa64.
1286 * testsuite/ld-elf/rpath-1.d: xfail h8300.
1287 * testsuite/ld-elf/rpath-2.d: Likewise.
1288 * testsuite/ld-elf/runpath-1.d: Likewise.
1289 * testsuite/ld-elf/runpath-2.d: Likewise.
1290 * testsuite/ld-elf/sizeofb.d: Likewise.
1291 * testsuite/ld-elf/startofb.d: Likewise.
1292 * testsuite/ld-elf/strtab.d: Likewise.
1293 * testsuite/ld-elf/textaddr1.d: Likewise.
1294 * testsuite/ld-elf/textaddr2.d: Likewise.
1295 * testsuite/ld-elf/textaddr4.d: Likewise.
1296 * testsuite/ld-elf/textaddr5.d: Likewise.
1297 * testsuite/ld-elf/textaddr6.d: Likewise.
1298 * testsuite/ld-elf/unknown2.d: Likewise.
1299 * testsuite/ld-undefined/entry-3.d: Likewise.
1300 * testsuite/ld-undefined/entry-4.d: Likewise.
1301 * testsuite/ld-h8300/h8300.exp: Pass appropriate ld -m option.
1302 * testsuite/ld-h8300/gcsection.d: Remove ld -m option and relax
1304 * testsuite/ld-h8300/relax-2.d: Likewise.
1305 * testsuite/ld-h8300/relax-3.d: Likewise.
1306 * testsuite/ld-h8300/relax-4.d: Likewise.
1307 * testsuite/ld-h8300/relax-5.d: Likewise.
1308 * testsuite/ld-h8300/relax-6.d: Likewise.
1309 * testsuite/ld-h8300/relax-7.d: Likewise.
1310 * testsuite/ld-h8300/relax.d: Relax file format match.
1312 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1315 * testsuite/ld-elf/pr25708.d: New file.
1317 2020-03-23 Alan Modra <amodra@gmail.com>
1319 * Makefile.am (ALL_EMULATION_SOURCES): Reinstate ei386aout.c.
1320 Include ei386aout dep file.
1321 * Makefile.in: Regenerate.
1322 * po/BLD-POTFILES.in: Regenerate.
1324 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1326 * testsuite/ld-plugin/lto.exp (lto_link_tests): Run PR ld/25355
1327 test only for GCC 10 or newer.
1329 2020-03-20 Alan Modra <amodra@gmail.com>
1331 * testplug.c (parse_symdefstr): Use %hhi to read sym->def, and
1333 * testplug2.c (parse_symdefstr): Likewise.
1334 * testplug3.c (parse_symdefstr): Likewise.
1335 * testplug4.c (parse_symdefstr): Likewise.
1337 2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
1339 * testsuite/ld-arm/non-contiguous-arm4.d: Fix expected output.
1340 * testsuite/ld-powerpc/non-contiguous-powerpc.d: Likewise.
1342 2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
1344 * emultempl/xtensaelf.em: Emit a fatal error message
1345 instead of calling abort.
1346 * ldlang.c: Likewise.
1348 2020-03-14 Alan Modra <amodra@gmail.com>
1350 * testsuite/ld-elf/non-contiguous.d: Don't xfail generic ELF
1351 targets. Don't skip xtensa, xfail instead.
1353 2020-03-13 Christophe Lyon <christophe.lyon@linaro.org>
1355 * ldlang.c (lang_add_section): Add support for
1356 non_contiguous_regions.
1357 (size_input_section): Likewise.
1358 (lang_size_sections_1): Likewise.
1359 (process_insert_statements): Likewise.
1360 * ldlex.h (option_values): Add OPTION_NON_CONTIGUOUS_REGIONS and
1361 OPTION_NON_CONTIGUOUS_REGIONS_WARNINGS.
1362 * lexsup.c (ld_options): Add entries for
1363 --enable-non-contiguous-regions and
1364 --enable-non-contiguous-regions-warnings.
1365 (parse_args): Handle it.
1366 * NEWS: Add --enable-non-contiguous-regions and
1367 --enable-non-contiguous-regions-warnings.
1368 * ld.texi: Add --enable-non-contiguous-regions and
1369 --enable-non-contiguous-regions-warnings documentation.
1370 * emultempl/armelf.em (elf32_arm_add_stub_section): Add
1371 SEC_LINKER_CREATED flag.
1372 * emultempl/xtensaelf.em (ld_build_required_section_dependence):
1373 Emit an error when --enable-non-contiguous-regions is used.
1374 * testsuite/ld-elf/non-contiguous.d: New.
1375 * testsuite/ld-elf/non-contiguous.ld: New.
1376 * testsuite/ld-elf/non-contiguous.s: New.
1377 * testsuite/ld-arm/arm-elf.exp: Run the new tests.
1378 * testsuite/ld-arm/arm-elf/non-contiguous-arm.s: New.
1379 * testsuite/ld-arm/arm-elf/non-contiguous-arm.d: New.
1380 * testsuite/ld-arm/arm-elf/non-contiguous-arm.ld: New.
1381 * testsuite/ld-arm/arm-elf/non-contiguous-arm2.d: New.
1382 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
1383 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.d: New.
1384 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
1385 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.d: New.
1386 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.ld: New.
1387 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.d: New.
1388 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.ld: New.
1389 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.d: New.
1390 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.ld: New.
1391 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
1392 * testsuite/ld-powerpc/non-contiguous-powerpc.d: New.
1393 * testsuite/ld-powerpc/non-contiguous-powerpc.ld: New.
1394 * testsuite/ld-powerpc/non-contiguous-powerpc.sd: New.
1395 * testsuite/ld-powerpc/non-contiguous-powerpc64.d: New.
1397 2020-03-13 H.J. Lu <hongjiu.lu@intel.com>
1400 * emulparams/elf32_x86_64.sh: Use static.sh.
1401 * emulparams/elf_i386.sh: Likewise.
1402 * emulparams/elf_x86_64.sh: Likewise.
1403 * emulparams/static.sh: New file.
1404 * emultempl/elf-x86.em: Include "ldlex.h".
1405 * testsuite/ld-elf/pr24920.err: New file.
1406 * testsuite/ld-elf/linux-x86.exp: Run ld/24920 tests.
1408 2020-03-13 Christian Eggers <ceggers@gmx.de>
1410 * ldexp.c (fold_name): Return SIZEOF_HEADERS in bytes.
1412 2020-03-11 Alan Modra <amodra@gmail.com>
1414 * ldelf.c (elf_orphan_compatible): Return false when two sections
1415 have differing SHF_MASKPROC or SHF_MASKOS flags.
1417 2020-03-05 Alan Modra <amodra@gmail.com>
1420 * ldlang.c (lang_size_sections_1): Don't report changes on
1421 second and subsequent iterations that make no change in
1422 alignment from that already reported.
1424 2020-03-05 Alan Modra <amodra@gmail.com>
1427 * ldlang.c (lang_sizing_iteration): New static var.
1428 (lang_size_sections_1): Warn about no memory region only on first
1429 iteration. Warn about changing start address on first iteration
1430 then any delta from that on subsequent iterations. Report a signed
1432 (one_lang_size_sections_pass): Increment lang_sizing_iteration.
1434 2020-03-03 Nick Clifton <nickc@redhat.com>
1437 * ld.texi (Options): Update the description of the --rpath-link
1440 2020-03-02 Alan Modra <amodra@gmail.com>
1442 * plugin.c (plugin_object_p): Return a bfd_cleanup.
1443 (plugin_cleanup): New function.
1445 2020-03-01 H.J. Lu <hongjiu.lu@intel.com>
1448 * plugin.c (plugin_object_p): Copy the no_export field to the IR
1450 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Add
1452 * testsuite/ld-plugin/pr25618.d: New file.
1453 * testsuite/ld-plugin/pr25618a.cc: Likewise.
1454 * testsuite/ld-plugin/pr25618a.h: Likewise.
1455 * testsuite/ld-plugin/pr25618b.cc: Likewise.
1456 * testsuite/ld-plugin/pr25618b.h: Likewise.
1458 2020-02-27 Alan Modra <amodra@gmail.com>
1461 * testsuite/ld-mmix/b-fixo2.d: Adjust for .data change.
1462 * testsuite/ld-mmix/sec-2.d: Likewise.
1463 * testsuite/ld-mmix/sec-3.d: Likewise.
1464 * testsuite/ld-mmix/sec-4.d: Likewise.
1465 * testsuite/ld-mmix/spec802.d: Likewise.
1466 * testsuite/ld-mmix/spec803.d: Likewise.
1467 * testsuite/ld-mmix/spec804.d: Likewise.
1468 * testsuite/ld-mmix/spec805.d: Likewise.
1469 * testsuite/ld-mmix/spec806.d: Likewise.
1470 * testsuite/ld-mmix/spec807.d: Likewise.
1471 * testsuite/ld-mmix/spec808.d: Likewise.
1473 2020-02-26 H.J. Lu <hongjiu.lu@intel.com>
1476 * testsuite/ld-plugin/lto.exp: Run PR ld/25593 tests.
1477 * testsuite/ld-plugin/pr25593.d: New file.
1478 * testsuite/ld-plugin/pr25593a-1.c: Likewise.
1479 * testsuite/ld-plugin/pr25593a-2.c: Likewise.
1480 * testsuite/ld-plugin/pr25593b.c: Likewise.
1481 * testsuite/ld-plugin/pr25593c.c: Likewise.
1482 * testsuite/ld-plugin/pr25593d.c: Likewise.
1483 * testsuite/ld-plugin/pr25593e.c: Likewise.
1485 2020-02-26 Alan Modra <amodra@gmail.com>
1487 * emultempl/cskyelf.em: Indent labels correctly.
1488 * ldfile.c: Likewise.
1489 * ldlang.c: Likewise.
1490 * plugin.c: Likewise.
1492 2020-02-26 Alan Modra <amodra@gmail.com>
1495 * ldelf.c (ldelf_try_needed): Add DT_NEEDED lib to input_bfds.
1496 (ldelf_after_open): Save state of input_bfds list before loading
1497 DT_NEEDED libs. Traverse input_bfds list adding DT_NEEDED tags.
1498 Restore input_bfds list.
1499 * testsuite/ld-cris/gotplt1.d: Adjust for changed .dynstr order.
1501 2020-02-24 Nick Clifton <nickc@redhat.com>
1503 * po/fr.po: Update French translation.
1505 2020-02-22 Alan Modra <amodra@gmail.com>
1508 * NEWS: Mention better "PHDR segment not covered by LOAD segment"
1511 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
1514 * emultempl/z80.em: Remove machine compatability checking.
1516 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
1519 * testsuite/ld-z80/arch_ez80_adl.d: Update command line.
1520 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
1521 * testsuite/ld-z80/arch_r800.d: Likewise.
1522 * testsuite/ld-z80/arch_z180.d: Likewise.
1523 * testsuite/ld-z80/arch_z80n.d: Likewise.
1524 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
1525 * testsuite/ld-z80/comb_arch_z180_z80.d: Likewise.
1526 * testsuite/ld-z80/comb_arch_z80_ez80.d: Likewise.
1527 * testsuite/ld-z80/comb_arch_z80_z180.d: Likewise.
1528 * testsuite/ld-z80/comb_arch_z80_z80n.d: Likewise.
1529 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
1530 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
1531 * testsuite/ld-z80/relocs_f_ez80.d: Likewise.
1532 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
1533 * testsuite/ld-z80/relocs_f_z80n.d: Likewise.
1535 2020-02-19 Alan Modra <amodra@gmail.com>
1537 * testsuite/ld-plugin/pr25355.d: Allow alpha-linux nm result.
1539 2020-02-10 H.J. Lu <hongjiu.lu@intel.com>
1542 * testsuite/ld-plugin/lto.exp: Run PR binutils/25355 test.
1543 * testsuite/ld-plugin/pr25355.c: New file.
1544 * testsuite/ld-plugin/pr25355.d: Likewise.
1545 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Support compile
1548 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
1550 * testsuite/ld-unique/unique.exp (contains_unique_symbol): Updated.
1552 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1555 * emulparams/elf32z80.sh: Use z80 emulation.
1556 * emultempl/z80.em: Make generic to both COFF and ELF Z80 emulations.
1557 * emultempl/z80elf.em: Delete.
1558 * testsuite/ld-elf/pr22450.d: Expect to fail for the Z80.
1559 * testsuite/ld-elf/sec64k.exp: Fix Z80 assembly.
1560 * testsuite/ld-unique/pr21529.s: Avoid register name conflict.
1561 * testsuite/ld-unique/unique.s: Likewise.
1562 * testsuite/ld-unique/unique_empty.s: Likewise.
1563 * testsuite/ld-unique/unique_shared.s: Likewise.
1564 * testsuite/ld-unique/unique.d: Updated expected output.
1565 * testsuite/ld-z80/arch_z80n.d: New file.
1566 * testsuite/ld-z80/comb_arch_z80_z80n.d: New file.
1567 * testsuite/ld-z80/labels.s: Add more labels.
1568 * testsuite/ld-z80/relocs.s: Add more reloc tests.
1569 * testsuite/ld-z80/relocs_f_z80n.d: New file
1571 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
1574 * testsuite/ld-elf/pr25022.d: Xfail more targets which don't use
1575 ldelf_before_place_orphans.
1577 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1580 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
1581 before_place_orphans_default.
1582 * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
1583 * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
1584 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
1585 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
1586 * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
1587 * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
1588 * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
1589 * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
1590 * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
1591 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Use
1592 ldelf_before_place_orphans.
1593 * ldelf.c (ldelf_before_place_orphans): New.
1594 * ldelf.h (ldelf_before_place_orphans): Likewise.
1595 * ldemul.c (ldemul_before_place_orphans): Likewise.
1596 (before_place_orphans_default): Likewise.
1597 * ldemul.h (ldemul_before_place_orphans): Likewise.
1598 (before_place_orphans_default): Likewise.
1599 (ld_emulation_xfer_struct): Add before_place_orphans.
1600 * ldlang.c (lang_process): Call ldemul_before_place_orphans
1601 before lang_place_orphans.
1602 * testsuite/ld-elf/pr25022.d: New file.
1603 * testsuite/ld-elf/pr25022.s: Likewise.
1604 * testsuite/ld-elf/pr25022.t: Likewise.
1606 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1609 * testsuite/ld-elf/pr25490-1.d: New file.
1610 * testsuite/ld-elf/pr25490-1.s: Likewise.
1612 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1617 * testsuite/ld-elf/elf.exp: Run PR ld/25490 tests.
1618 * testsuite/ld-elf/pr24526.d: New file.
1619 * testsuite/ld-elf/pr24526.s: Likewise.
1620 * testsuite/ld-elf/pr25021.d: Likewise.
1621 * testsuite/ld-elf/pr25021.s: Likewise.
1622 * testsuite/ld-elf/pr25490-2-16.rd: Likewise.
1623 * testsuite/ld-elf/pr25490-2-32.rd: Likewise.
1624 * testsuite/ld-elf/pr25490-2-64.rd: Likewise.
1625 * testsuite/ld-elf/pr25490-2.s: Likewise.
1626 * testsuite/ld-elf/pr25490-3-16.rd: Likewise.
1627 * testsuite/ld-elf/pr25490-3-32.rd: Likewise.
1628 * testsuite/ld-elf/pr25490-3-64.rd: Likewise.
1629 * testsuite/ld-elf/pr25490-3.s: Likewise.
1630 * testsuite/ld-elf/pr25490-4-16.rd: Likewise.
1631 * testsuite/ld-elf/pr25490-4-32.rd: Likewise.
1632 * testsuite/ld-elf/pr25490-4-64.rd: Likewise.
1633 * testsuite/ld-elf/pr25490-4.s: Likewise.
1634 * testsuite/ld-elf/pr25490-5-16.rd: Likewise.
1635 * testsuite/ld-elf/pr25490-5-32.rd: Likewise.
1636 * testsuite/ld-elf/pr25490-5-64.rd: Likewise.
1637 * testsuite/ld-elf/pr25490-5.s: Likewise.
1638 * testsuite/ld-elf/pr25490-6-16.rd: Likewise.
1639 * testsuite/ld-elf/pr25490-6-32.rd: Likewise.
1640 * testsuite/ld-elf/pr25490-6-64.rd: Likewise.
1641 * testsuite/ld-elf/pr25490-6.s: Likewise.
1643 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1645 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark
1646 z80 as not supported.
1648 2020-02-06 Alan Modra <amodra@gmail.com>
1650 * testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying
1651 targets that don't support ifunc rather than ones that do.
1652 (contains_irelative_reloc): Match R_PARISC_IPLT.
1653 * testsuite/ld-ifunc/lib.c: Don't use .set in asm.
1654 * testsuite/ld-ifunc/ifunc-23-x86.s,
1655 * testsuite/ld-ifunc/ifunc-24-x86.s,
1656 * testsuite/ld-ifunc/ifunc-25-x86.s,
1657 * testsuite/ld-ifunc/ifunc-4-local-x86.s,
1658 * testsuite/ld-ifunc/ifunc-4-x86.s: Define _main.
1659 * testsuite/ld-ifunc/ifunc-10-i386.d,
1660 * testsuite/ld-ifunc/ifunc-11-i386.d,
1661 * testsuite/ld-ifunc/ifunc-12-i386.d,
1662 * testsuite/ld-ifunc/ifunc-13-i386.d,
1663 * testsuite/ld-ifunc/ifunc-14a-i386.d,
1664 * testsuite/ld-ifunc/ifunc-14b-i386.d,
1665 * testsuite/ld-ifunc/ifunc-14c-i386.d,
1666 * testsuite/ld-ifunc/ifunc-14d-i386.d,
1667 * testsuite/ld-ifunc/ifunc-14e-i386.d,
1668 * testsuite/ld-ifunc/ifunc-14f-i386.d,
1669 * testsuite/ld-ifunc/ifunc-15-i386.d,
1670 * testsuite/ld-ifunc/ifunc-16-i386-now.d,
1671 * testsuite/ld-ifunc/ifunc-16-i386.d,
1672 * testsuite/ld-ifunc/ifunc-17a-i386.d,
1673 * testsuite/ld-ifunc/ifunc-17b-i386.d,
1674 * testsuite/ld-ifunc/ifunc-18a-i386.d,
1675 * testsuite/ld-ifunc/ifunc-18b-i386.d,
1676 * testsuite/ld-ifunc/ifunc-19a-i386.d,
1677 * testsuite/ld-ifunc/ifunc-19b-i386.d,
1678 * testsuite/ld-ifunc/ifunc-2-i386-now.d,
1679 * testsuite/ld-ifunc/ifunc-2-i386.d,
1680 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
1681 * testsuite/ld-ifunc/ifunc-2-local-i386.d,
1682 * testsuite/ld-ifunc/ifunc-20-i386.d,
1683 * testsuite/ld-ifunc/ifunc-21-i386.d,
1684 * testsuite/ld-ifunc/ifunc-22-i386.d,
1685 * testsuite/ld-ifunc/ifunc-26.d,
1686 * testsuite/ld-ifunc/ifunc-5a-i386.d,
1687 * testsuite/ld-ifunc/ifunc-5a-local-i386.d,
1688 * testsuite/ld-ifunc/ifunc-5b-i386.d,
1689 * testsuite/ld-ifunc/ifunc-5b-local-i386.d,
1690 * testsuite/ld-ifunc/ifunc-5r-local-i386.d,
1691 * testsuite/ld-ifunc/ifunc-6a-i386.d,
1692 * testsuite/ld-ifunc/ifunc-6b-i386.d,
1693 * testsuite/ld-ifunc/ifunc-7a-i386.d,
1694 * testsuite/ld-ifunc/ifunc-7b-i386.d,
1695 * testsuite/ld-ifunc/ifunc-8-i386.d,
1696 * testsuite/ld-ifunc/ifunc-9-i386.d,
1697 * testsuite/ld-ifunc/pr17154-i386-now.d,
1698 * testsuite/ld-ifunc/pr17154-i386.d: xfail lynxos, nto, and solaris.
1700 2020-02-06 Alan Modra <amodra@gmail.com>
1702 * testsuite/lib/ld-lib.exp (is_generic): Delete.
1703 * testsuite/ld-unique/unique.exp: Exclude tic6x.
1705 2020-02-06 Alan Modra <amodra@gmail.com>
1707 * configure.tgt (i[3-7]86-*-moss*): Don't clear targ_extra_ofiles.
1708 (i[3-7]86-*-openbsd*, x86_64-*-openbsd*): Add.
1710 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1713 * testsuite/ld-i386/pr22001-1c.S: Use "unique,N" in .section
1715 * testsuite/ld-i386/tls-gd1.S: Likewise.
1716 * testsuite/ld-x86-64/pr21481b.S: Likewise.
1718 2020-01-30 Jan Beulich <jbeulich@suse.com>
1720 * ld.texi: Remove space between @option and brace.
1722 2020-01-29 Alan Modra <amodra@gmail.com>
1725 * ldelf.c (ldelf_check_ld_so_conf): Add prefix parameter and
1727 (ldelf_after_open): Add prefix parameter.
1728 * ldelf.h (ldelf_after_open): Update prototype.
1729 * emultempl/elf.em (gld${EMULATION_NAME}_after_open): Pass $prefix
1730 to ldelf_after_open.
1731 * Makefile.am: Correct z80 dependencies.
1732 * Makefile.in: Regenerate.
1734 2020-01-28 Alan Modra <amodra@gmail.com>
1736 * ldexp.c (fold_name): Don't print bfd_link_hash_lookup failed
1739 2020-01-27 Alan Modra <amodra@gmail.com>
1741 * testsuite/ld-elfvers/vers.exp: Replace case statements with
1743 * testsuite/ld-ifunc/ifunc.exp: Likewise.
1744 * testsuite/ld-unique/unique.exp: Likewise.
1746 2020-01-27 H.J. Lu <hongjiu.lu@intel.com>
1747 Alan Modra <amodra@gmail.com>
1750 * testsuite/ld-elf/pr25458.map: New file.
1751 * testsuite/ld-elf/pr25458.rd: Likewise.
1752 * testsuite/ld-elf/pr25458a.s: Likewise.
1753 * testsuite/ld-elf/pr25458b.s: Likewise.
1754 * testsuite/ld-elf/shared.exp: Run PR ld/25458 test.
1756 2020-01-22 H.J. Lu <hongjiu.lu@intel.com>
1759 * testsuite/ld-x86-64/tls.exp: Skip GNU2 TLS tests only without
1762 2020-01-22 Alan Modra <amodra@gmail.com>
1764 * testsuite/ld-powerpc/tlsdesc3.d,
1765 * testsuite/ld-powerpc/tlsdesc3.wf,
1766 * testsuite/ld-powerpc/tlsdesc4.d,
1767 * testsuite/ld-powerpc/tlsdesc4.s,
1768 * testsuite/ld-powerpc/tlsdesc4.wf: New tests.
1769 * testsuite/ld-powerpc/powerpc.exp: Run them.
1771 2020-01-22 Alan Modra <amodra@gmail.com>
1773 * emultempl/ppc64elf.em (ppc64_opt, PARSE_AND_LIST_LONGOPTS),
1774 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Support
1775 --tls-get-addr-regsave and --no-tls-get-addr-regsave.
1776 (params): Init new field.
1777 * ld.texi (--tls-get-addr-regsave, --no-tls-get-addr-regsave):
1779 * testsuite/ld-powerpc/tlsdesc.s,
1780 * testsuite/ld-powerpc/tlsdesc.d,
1781 * testsuite/ld-powerpc/tlsdesc.wf,
1782 * testsuite/ld-powerpc/tlsdesc2.d,
1783 * testsuite/ld-powerpc/tlsdesc2.wf,
1784 * testsuite/ld-powerpc/tlsexenors.d,
1785 * testsuite/ld-powerpc/tlsexenors.r,
1786 * testsuite/ld-powerpc/tlsexers.d,
1787 * testsuite/ld-powerpc/tlsexers.r,
1788 * testsuite/ld-powerpc/tlsexetocnors.d,
1789 * testsuite/ld-powerpc/tlsexetocrs.d,
1790 * testsuite/ld-powerpc/tlsexetocrs.r,
1791 * testsuite/ld-powerpc/tlsopt6.d,
1792 * testsuite/ld-powerpc/tlsopt6.wf: New.
1793 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
1795 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1798 * ldlang.c (ldlang_open_ctf): Fix error message typo.
1799 * emultempl/z80elf.em (z80_elf_after_open): Likewise.
1801 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
1803 * testsuite/ld-elf/pr23900-1.d: Adjusted.
1805 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
1807 * testsuite/ld-elf/pr23900-1.d: Also pass -l to readelf.
1809 2020-01-20 Nick Clifton <nickc@redhat.com>
1811 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1812 * po/uk.po: Updated Ukranian translation.
1814 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
1817 * testsuite/ld-x86-64/pr25416-1.s: New file
1818 * testsuite/ld-x86-64/pr25416-1a.d: Likewise.
1819 * testsuite/ld-x86-64/pr25416-1b.d: Likewise.
1820 * testsuite/ld-x86-64/pr25416-1.s: Likewise.
1821 * testsuite/ld-x86-64/pr25416-2.s: Likewise.
1822 * testsuite/ld-x86-64/pr25416-2a.d: Likewise.
1823 * testsuite/ld-x86-64/pr25416-2b.d: Likewise.
1824 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1825 * testsuite/ld-x86-64/pr25416-3.s: Likewise.
1826 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1827 * testsuite/ld-x86-64/pr25416-4.s: Likewise.
1828 * testsuite/ld-x86-64/pr25416-5a.c: Likewise.
1829 * testsuite/ld-x86-64/pr25416-5b.s: Likewise.
1830 * testsuite/ld-x86-64/pr25416-5c.s: Likewise.
1831 * testsuite/ld-x86-64/pr25416-5d.s: Likewise.
1832 * testsuite/ld-x86-64/pr25416-5e.s: Likewise.
1833 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/25416 tests.
1835 2020-01-20 Alan Modra <amodra@gmail.com>
1837 * testsuite/ld-powerpc/tlsexe.d: Match new __tls_get_addr stub.
1838 * testsuite/ld-powerpc/tlsexeno.d: Likewise.
1839 * testsuite/ld-powerpc/tlsexetoc.d: Likewise.
1840 * testsuite/ld-powerpc/tlsexetocno.d: Likewise.
1841 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
1843 2020-01-18 Roland McGrath <mcgrathr@google.com>
1845 * testsuite/ld-x86-64/align-branch-1.d: Loosen instruction regexps
1846 to admit whatever absolute address. The label-relative address is
1847 what the test needs to verify.
1849 2020-01-18 Nick Clifton <nickc@redhat.com>
1851 * configure: Regenerate.
1852 * po/ld.pot: Regenerate.
1854 2020-01-18 Nick Clifton <nickc@redhat.com>
1856 Binutils 2.34 branch created.
1858 2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1860 * scripttempl/elf32msp430_3.sc: Remove.
1862 2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1864 * scripttempl/elf32msp430.sc: Add input section rules for
1865 .upper.{text,data,rodata,bss}.
1866 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
1867 * testsuite/ld-msp430-elf/upper-input-sections.s: New test.
1869 2020-01-15 Lars Brinkhoff <lars@nocrew.org>
1872 * temulparams/pdp11.sh (TARGET_PAGE_SIZE): Set to 8192.
1874 2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1876 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
1877 * testsuite/ld-msp430-elf/reloc-lo-430x.s: New test.
1879 2020-01-15 Alan Modra <amodra@gmail.com>
1881 * testsuite/ld-powerpc/ambiguousv1b.d: Adjust expected output.
1882 * testsuite/ld-powerpc/funref.s: Align func_tab.
1883 * testsuite/ld-powerpc/funref2.s: Likewise.
1884 * testsuite/ld-powerpc/funv1.s: Add dot symbols.
1886 2020-01-14 Lili Cui <lili.cui@intel.com>
1888 * testsuite/ld-i386/align-branch-1.d: Updated for i686-pc-elf.
1890 2020-01-13 Alan Modra <amodra@gmail.com>
1892 * po/BLD-POTFILES.in: Regenerate.
1894 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
1896 * testsuite/ld-arc/relax-local-pic.d: Improve matching patterns.
1898 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
1900 * Makefile.am: Remove earcelf_prof.c and earclinux_prof.c
1902 * configure.tgt: Likewise.
1903 * Makefile.in: Regenerate.
1904 * emulparams/arcelf_prof.sh: Remove file.
1905 * emulparams/arclinux_prof.sh: Likewise.
1907 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
1909 * scripttempl/elfarcv2.sc : Allow interrupt vector table to be
1910 located at an arbitrary address. Use DWARF.sc file.
1911 * scripttempl/elfarc.sc: Use DWARF.sc file.
1913 2020-01-07 Alan Modra <amodra@gmail.com>
1915 * testsuite/ld-mips-elf/eh-frame5.s,
1916 * testsuite/ld-mips-elf/ehdr_start-new.s,
1917 * testsuite/ld-mips-elf/ehdr_start-o32.s,
1918 * testsuite/ld-mips-elf/mips16-call-global-1.s,
1919 * testsuite/ld-mips-elf/mips16-intermix-1.s,
1920 * testsuite/ld-mips-elf/mips16-pic-1b.s,
1921 * testsuite/ld-mips-elf/mips16-pic-4c.s,
1922 * testsuite/ld-mips-elf/no-shared-1-n64.s,
1923 * testsuite/ld-mips-elf/no-shared-1-o32.s,
1924 * testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s,
1925 * testsuite/ld-mips-elf/pic-and-nonpic-1b.s,
1926 * testsuite/ld-mips-elf/pic-and-nonpic-2a.s,
1927 * testsuite/ld-mips-elf/pic-and-nonpic-3b.s,
1928 * testsuite/ld-mips-elf/pic-and-nonpic-4b.s,
1929 * testsuite/ld-mips-elf/pic-and-nonpic-5a.s,
1930 * testsuite/ld-mips-elf/pic-and-nonpic-6-n32c.s,
1931 * testsuite/ld-mips-elf/pic-and-nonpic-6-n64c.s,
1932 * testsuite/ld-mips-elf/pic-and-nonpic-6-o32c.s,
1933 * testsuite/ld-mips-elf/pie.s,
1934 * testsuite/ld-mips-elf/relax-jalr.s: Revert 2019-12-17 change.
1936 2020-01-06 Nick Clifton <nickc@redhat.com>
1939 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
1940 command line when building libcomm1.o and pr13250 tests.
1941 * testsuite/ld-plugin/lto.exp: Likewise for pr20267 tests.
1943 2020-01-06 Nick Clifton <nickc@redhat.com>
1946 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
1947 command line when building pr19579 binaries.
1949 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
1951 * emultempl/pe.em: Add new option --enable-reloc-section.
1952 * emultempl/pep.em: Likewise.
1953 * ld.texi: Document --enable-reloc-section.
1954 * pe-dll.c (pe_dll_build_sections): Use pe_dll_enable_reloc_section.
1955 (pe_dll_fill_sections): Simplify by calling pe_exe_fill_sections.
1956 * pe-dll.h: Add extern declaration of option flag.
1957 * pep-dll.c (pe_dll_enable_reloc_section):
1958 Add alias define for pep_dll_enable_reloc_section.
1959 * pep-dll.h: Add extern declaration of option flag.
1961 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1963 * Makefile.am: Add new target z80-elf
1964 * configure.tgt: Likewise.
1965 * Makefile.in: Regenerate.
1966 * emultempl/z80.em: Add support for eZ80 and Z180 architectures.
1967 * emulparams/elf32z80.sh: New file.
1968 * emultempl/z80elf.em: Likewise.
1969 * testsuite/ld-elf/comm-data4.s: Fix for Z80.
1970 * testsuite/ld-elf/comm-data5.s: Fix for Z80.
1971 * testsuite/ld-scripts/fill16.d: Fix for Z80.
1972 * testsuite/ld-z80/arch_ez80_adl.d: Likewise.
1973 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
1974 * testsuite/ld-z80/arch_r800.d: Likewise.
1975 * testsuite/ld-z80/arch_z180.d: Likewise.
1976 * testsuite/ld-z80/arch_z80.d: Likewise.
1977 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
1978 * testsuite/ld-z80/comb_arch_z180.d: Likewise.
1979 * testsuite/ld-z80/labels.s: Likewise.
1980 * testsuite/ld-z80/relocs.s: Likewise.
1981 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
1982 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
1983 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
1984 * testsuite/ld-z80/z80.exp: Likewise.
1985 * NEWS: Mention the new support.
1987 2020-01-02 Tamar Christina <tamar.christina@arm.com>
1991 * emultempl/aarch64elf.em (elf${ELFSIZE}_aarch64_add_stub_section):
1992 Remove SEC_LINKER_CREATED.
1993 * testsuite/ld-aarch64/aarch64-elf.exp: Add erratum835769-843419.
1994 * testsuite/ld-aarch64/erratum835769-843419.d: New test.
1996 2020-01-01 Alan Modra <amodra@gmail.com>
1998 Update year range in copyright notice of all files.
2000 For older changes see ChangeLog-2019
2002 Copyright (C) 2020 Free Software Foundation, Inc.
2004 Copying and distribution of this file, with or without modification,
2005 are permitted in any medium without royalty provided the copyright
2006 notice and this notice are preserved.
2012 version-control: never