From ef9133af166ca531ee9818d01fdeb58e56eaef37 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 10 Oct 2021 13:10:57 -0700 Subject: Use Elf64_Rela for relocations. The x86_64 psABI[0] says that > The AMD64 LP64 ABI architecture uses only Elf64_Rela relocation > entries with explicit addends. The r_addend member serves as the > relocation addend. [0] https://raw.githubusercontent.com/wiki/hjl-tools/x86-psABI/x86-64-psABI-draft.pdf --- minias.h | 1 + 1 file changed, 1 insertion(+) (limited to 'minias.h') diff --git a/minias.h b/minias.h index abf1f06..750f481 100644 --- a/minias.h +++ b/minias.h @@ -35,6 +35,7 @@ typedef struct { Symbol *sym; int type; int64_t offset; + int64_t addend; } Relocation; typedef enum { -- cgit v1.2.3