From 2e719f32397c1ec87a9f5a5b6947dbc553471707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sat, 27 Jul 2024 10:21:28 +0200 Subject: [PATCH] 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. --- lib/std/os/linux/start_pie.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/os/linux/start_pie.zig b/lib/std/os/linux/start_pie.zig index ab4e2f4fe9b1..7b086250d612 100644 --- a/lib/std/os/linux/start_pie.zig +++ b/lib/std/os/linux/start_pie.zig @@ -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), ),