s390: Improve static-pie configure tests
commitb53e73ea809adac9be6b7808299f6741ea798e50
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 27 Feb 2024 17:06:06 +0000 (27 14:06 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 28 Feb 2024 13:09:53 +0000 (28 10:09 -0300)
tree4cc6c85ac87ffb470c8684f83939c6e5d5ab56e6
parent24c8db87c9537469dded474c8ee5da5c988f9c55
s390: Improve static-pie configure tests

Instead of tying based on the linker name and version, check for the
required support:

  * whether it does not generate dynamic TLS relocations in PIE
    (binutils PR ld/22263);
  * if it accepts --no-dynamic-linker (by using -static-pie);
  * and if it adds a DT_JMPREL pointing to .rela.iplt with static pie.

The patch also trims the comments, for binutils one of the tests should
already cover it.  The kernel ones are not clear which version should
have the backport, nor it is something that glibc can do much about
it.  Finally, the glibc is somewhat confusing, since it refers
to commits not related to s390x.

Checked with a build for s390x-linux-gnu.

Reviewed-by: Stefan Liebler <stli@linux.ibm.com>
sysdeps/s390/s390-64/configure
sysdeps/s390/s390-64/configure.ac