Skip to content

Commit

Permalink
std.os.linux.start_pie: Use a 64-bit displacement for s390x.
Browse files Browse the repository at this point in the history
Not likely to be necessary ever, but might as well be 100% correct.
  • Loading branch information
alexrp committed Jul 30, 2024
1 parent 52519f7 commit 2e719f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/std/os/linux/start_pie.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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),
),
Expand Down

0 comments on commit 2e719f3

Please sign in to comment.