[PATCH] s390: Adjust configure check for static-pie support.

Andreas Schwab schwab@suse.de
Mon May 11 14:02:02 GMT 2026


On Mai 11 2026, Stefan Liebler wrote:

> Thus if SUPPORT_STATIC_PIE is not defined it can/could disable ENABLE_STATIC_PIE.
> In case of gold this does not happen as it lacks --no-dynamic-linker and it falls
> back to libc_cv_static_pie_supported=$libc_cv_pie_supported.  Is this the intended
> behaviour?
>
> Currently, if I'm testing glibc with lld, "make check" stops with an error (x86_64 and s390x):
> ld.lld: error: build/elf/tst-execstack-prog-static-tunable.o: requires an executable stack, but -z execstack is not specified
>
> For gold, "make check" also stops with an error when linking tst-thp-size-mod.so (x86_64 and s390x):
> /usr/bin/ld.gold: noseparate-code: unknown -z option
>
> Should those tests somehow guarded?

Since gold is obsolete, I don't think we need to cater for it.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Libc-alpha mailing list