From 5559e5fc1f6c10d88eb32febc3a36a8fc2502d58 Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 29 Dec 2025 14:49:05 +0100 Subject: more aarch64 work --- obj/elf.c | 3 +++ obj/obj.h | 3 +++ 2 files changed, 6 insertions(+) (limited to 'obj') diff --git a/obj/elf.c b/obj/elf.c index e39a8d8..8c63295 100644 --- a/obj/elf.c +++ b/obj/elf.c @@ -151,6 +151,9 @@ static const ushort relktab[][NRELOCKIND] = { [REL_PCREL32] = 261, /* R_AARCH64_PREL2 */ [REL_PLT32] = 314, /* R_AARCH64_PLT32 */ [REL_CALL26] = 283, /* R_AARCH64_CALL26 */ + [REL_ADR_PREL_LO21] = 274, /* R_AARCH64_ADR_PREL_LO21 */ + [REL_ADR_PREL_PG_HI21] = 276, /* R_AARCH64_ADR_PREL_PG_HI21_NC */ + [REL_ADD_ABS_LO12_NC] = 277, /* R_AARCH64_ADD_ABS_LO12_NC */ } }; diff --git a/obj/obj.h b/obj/obj.h index 985e583..0b2eb6c 100644 --- a/obj/obj.h +++ b/obj/obj.h @@ -18,6 +18,9 @@ enum relockind { REL_GOTPCRELX, REL_GOTPCRELX_REX, REL_CALL26, + REL_ADR_PREL_LO21, + REL_ADR_PREL_PG_HI21, + REL_ADD_ABS_LO12_NC, NRELOCKIND, }; enum section { Snone, Stext, Srodata, Sdata, Sbss }; -- cgit v1.2.3