[PATCH] tests: Skip tests on non-ELF bitcode object files
Sam James
sam@gentoo.org
Tue Feb 17 10:37:11 GMT 2026
Mark Wielaard <mark@klomp.org> writes:
> clang with -flto produces object files that contain bitcode. This
> breaks various (self) testcases that expect those .o files are ELF
> files. readelf, nm, elfcheck and elfcompress won't work on such files.
This isn't specific to Clang. GCC does exactly the same thing. You only
get 'real code' in them if you pass -ffat-lto-objects too.
> [...]
sam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 418 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/elfutils-devel/attachments/20260217/2f355b08/attachment.sig>
More information about the Elfutils-devel
mailing list