]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LD/testsuite: Add tests for archive handling
authorMaciej W. Rozycki <macro@redhat.com>
Tue, 21 Oct 2025 20:02:38 +0000 (21:02 +0100)
committerMaciej W. Rozycki <macro@redhat.com>
Tue, 21 Oct 2025 20:02:38 +0000 (21:02 +0100)
commit435223a9ae7016040ca8562efed3062472df5ade
treea9f1819f8711df14536fbc2768f48ed74b986027
parent3959152657fd31aff79fd490f102acdf5bac0605
LD/testsuite: Add tests for archive handling

Add basic verification for archives to work, regular and thin, in the
link.  Refer to PR binutils/33484 and PR binutils/33485 for targets that
fail these basic checks, where `ar' fails to add subsequent members to
the archive or fails to add symbols from subsequent members to the map
respectively, for thin archives.

NB symbol names chosen such as to avoid a clash with Z80 CPU registers.
ld/testsuite/ld-archive/a.s [new file with mode: 0644]
ld/testsuite/ld-archive/abc.nd [new file with mode: 0644]
ld/testsuite/ld-archive/abc.s [new file with mode: 0644]
ld/testsuite/ld-archive/abcde.nd [new file with mode: 0644]
ld/testsuite/ld-archive/abcde.s [new file with mode: 0644]
ld/testsuite/ld-archive/archive.exp [new file with mode: 0644]
ld/testsuite/ld-archive/b.s [new file with mode: 0644]
ld/testsuite/ld-archive/c.s [new file with mode: 0644]
ld/testsuite/ld-archive/d.s [new file with mode: 0644]