std.os.linux.start_pie: Use a 64-bit displacement for s390x.

Not likely to be necessary ever, but might as well be 100% correct.
This commit is contained in:
Alex Rønne Petersen 2024-07-27 10:21:28 +02:00
parent 52519f79e0
commit 2e719f3239
No known key found for this signature in database

View File

@ -176,9 +176,9 @@ inline fn getDynamicSymbol() [*]elf.Dyn {
\\ .weak _DYNAMIC
\\ .hidden _DYNAMIC
\\ larl %[ret], 1f
\\ agf %[ret], 0(%[ret])
\\ ag %[ret], 0(%[ret])
\\ b 2f
\\ 1: .long _DYNAMIC - .
\\ 1: .quad _DYNAMIC - .
\\ 2:
: [ret] "=r" (-> [*]elf.Dyn),
),