]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ld: Limit "readelf --got-contents" tests
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 4 Sep 2025 13:57:06 +0000 (06:57 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 7 Sep 2025 12:38:34 +0000 (05:38 -0700)
commit9546c98be0581f4e93efacafd7fe22427edd3635
tree943801a1da7f495f63fedb836ee59995c925b4ca
parent5c9a05428ddd88be3321c35b74fe2e8dc92bd1a3
ld: Limit "readelf --got-contents" tests

Since "readelf --got-contents" tests use -melf_i386, -melf_x86_64 and
-melf32_x86_64 emulations, limit theses tests to linker supporting those
emulations, pass --rosegment to linker and output libgot-1-i386.so,
libgot-1-x64.so, libgot-1-x32.so.

PR ld/33350
* testsuite/ld-i386/binutils.exp: Limit tests to linker with
-melf_i386 support, pass --rosegment to linker and output
libgot-1-i386.so.
* testsuite/ld-x86-64/binutils.exp: Limit -melf_x86_64 tests to
linker with -melf_x86_64 support, limit -melf32_x86_64 tests
to linker with -melf32_x86_64 support, pass --rosegment to
linker and output libgot-1-x64.so/libgot-1-x32.so.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
ld/testsuite/ld-i386/binutils.exp
ld/testsuite/ld-x86-64/binutils.exp