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

Stefan Liebler stli@linux.ibm.com
Wed May 20 08:21:18 GMT 2026


On 5/18/26 15:02, Stefan Liebler wrote:
> On 5/11/26 16:02, Andreas Schwab wrote:
>> 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.
>>
> Okay. Thanks regarding the obsolete gold information.
> Then I will at least commit the s390-specific change the next days.
> 
> Nevertheless are there any other opinions. Also regarding the current
> lld issue whily running "make check". Or the main-configure approach to
> disable ENABLE_STATIC_PIE or better currently not disabling
> ENABLE_STATIC_PIE (in gold-case) if SUPPORT_STATIC_PIE is not defined?
> 
> Thanks,
> Stefan

I've just committed the patch.

Thanks,
Stefan


More information about the Libc-alpha mailing list