[PATCH 1/1] s390: Un-XFAIL some non-PIC load offset ELF visibility tests

Alan Modra amodra@gmail.com
Sat Mar 14 00:01:32 GMT 2026


On Fri, Mar 13, 2026 at 04:11:19PM +0100, Jens Remus wrote:
> In general creating shared libraries from non-PIC compiled code is not
> supported on s390 64-bit (s390x).

Then don't run what are senseless tests for s390.  It really isn't
worth wasting time trying to make these tests work.  Even x86 (which
is where this non-pic shared library nonsense originated) xfails a
bunch of the non-pic shared tests.

In my opinion they all ought to be removed unless they use assembly
source files, because there is a fundamental gcc conflation of two
separate concepts: "compile for a shared library" and "compile
non-pic".  Yes, non-pic shared libraries can be supported via dynamic
text relocations if you control your gag reflex, but you surely want
"compile for a shared library" in shared library tests.  Thus the
compiled non-pic shared library ld tests are all invalid.

-- 
Alan Modra


More information about the Binutils mailing list