diff options
| author | Michael Forney <[email protected]> | 2021-10-10 13:10:57 -0700 |
|---|---|---|
| committer | Michael Forney <[email protected]> | 2021-10-10 13:15:09 -0700 |
| commit | ef9133af166ca531ee9818d01fdeb58e56eaef37 (patch) | |
| tree | a0e91d121998626573b7bc43e3ade90e1a76d4d4 /minias.h | |
| parent | 8dd8783aa5b28d4950b9debcf30bd30b367beb7f (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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -35,6 +35,7 @@ typedef struct { Symbol *sym; int type; int64_t offset; + int64_t addend; } Relocation; typedef enum { |
