aboutsummaryrefslogtreecommitdiff
path: root/minias.h
diff options
context:
space:
mode:
authorMichael Forney <[email protected]>2021-10-10 13:10:57 -0700
committerMichael Forney <[email protected]>2021-10-10 13:15:09 -0700
commitef9133af166ca531ee9818d01fdeb58e56eaef37 (patch)
treea0e91d121998626573b7bc43e3ade90e1a76d4d4 /minias.h
parent8dd8783aa5b28d4950b9debcf30bd30b367beb7f (diff)
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
Diffstat (limited to 'minias.h')
-rw-r--r--minias.h1
1 files changed, 1 insertions, 0 deletions
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 {