diff options
author | Alex Rønne Petersen <alex@alexrp.com> | 2025-01-24 06:12:13 +0100 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2025-02-09 09:46:53 -0500 |
commit | 6af4f25b899e89e4b91f8c197ae5a6ce04bcce7b (patch) | |
tree | 7165ccd14c4b3259870a43e6a00e5e704a131461 /src/thread/tss_create.c | |
parent | 5ccf05d86dacba0e6542ae1a6b6508a41cfe326e (diff) | |
download | musl-6af4f25b899e89e4b91f8c197ae5a6ce04bcce7b.tar.gz |
s390x: manually inline __tls_get_addr in __tls_get_offset
Calling __tls_get_addr with brasl is not valid since it's a global symbol; doing
so results in an R_390_PC32DBL relocation error from lld. We could fix this by
marking __tls_get_addr hidden since it is not part of the s390x ABI, or by using
a different instruction. However, given its simplicity, it makes more sense to
just manually inline it into __tls_get_offset for performance.
The patch has been tested by applying to Zig's bundled musl copy and running the
full Zig test suite under qemu-s390x.
Diffstat (limited to 'src/thread/tss_create.c')
0 files changed, 0 insertions, 0 deletions