[PATCH] ld: testsuite: Check target in libgot tests
Alan Modra
amodra@gmail.com
Fri Jan 23 03:43:29 GMT 2026
On Thu, Jan 22, 2026 at 05:04:39PM +0100, Rainer Orth wrote:
> The x86 libgot-1 tests are the only ones in all testsuites that use a
> new ld -V -m<emul> idiom to check whether to run the tests. The
> emulations in question are supported on all ELF x86 targets., All other
> tests just check the target, so this patch follows this precedent.
>
> Tested on {x86_64,i686}-pc-linux-gnu and {amd64,i386}-pc-solaris2.11.
>
> Ok for trunk?
No. Your assertion about -melf_i386 being supported on all ELF x86
targets is false.
$ i386-lynxos/ld/ld-new -melf_i386 -V
/build/gas/i386-lynxos/ld/ld-new: unrecognised emulation mode: elf_i386
Supported emulations: i386lynx
$ i686-nto/ld/ld-new -melf_i386 -V
/build/gas/i686-nto/ld/ld-new: unrecognised emulation mode: elf_i386
Supported emulations: i386nto
--
Alan Modra
More information about the Binutils
mailing list