![]() |
|
Message-Id: <cbcdc766-543c-4e46-b6af-816198d3cfc5@app.fastmail.com> Date: Fri, 30 May 2025 00:24:25 +0200 From: Alex Rønne Petersen <alex@...xrp.com> To: musl@...ts.openwall.com Subject: Re: [PATCH] s390x: manually inline __tls_get_addr in __tls_get_offset On Fri, Jan 24, 2025, at 06:12, Alex Rønne Petersen wrote: > 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. > --- > src/thread/s390x/__tls_get_offset.s | 20 ++++++++++---------- > 1 file changed, 10 insertions(+), 10 deletions(-) Ping.
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.