summaryrefslogtreecommitdiff
path: root/api/elf
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2022-03-15 16:29:24 +0000
committerAda Christine <adachristine18@gmail.com>2022-03-15 16:29:24 +0000
commitec4aee35de3446713c6754641cdad82adc011204 (patch)
treefb40b7b153da4bbb47ec46b40144a18fbfbcf74b /api/elf
parent97fcd7d1fc4574753d91e6767a8d8a7653a7f7fe (diff)
infrastructure for dynamic symbol resolution
Diffstat (limited to 'api/elf')
-rw-r--r--api/elf/elf.h1
-rw-r--r--api/elf/elf64.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/api/elf/elf.h b/api/elf/elf.h
index 3d82bc0..209c219 100644
--- a/api/elf/elf.h
+++ b/api/elf/elf.h
@@ -80,4 +80,5 @@ typedef uint8_t Elf_Byte;
#define DT_RELAENT 9
#define DT_STRSZ 10
#define DT_SYMENT 11
+#define DT_JMPREL 0x17
diff --git a/api/elf/elf64.h b/api/elf/elf64.h
index d975c35..9ea3031 100644
--- a/api/elf/elf64.h
+++ b/api/elf/elf64.h
@@ -91,7 +91,8 @@ struct Elf64_Dyn
#define ELF64_R_TYPE(info) ((Elf64_Word)(info))
#define ELF64_R_INFO(sym, type) (((Elf64_Xword)(sym)<<32)+(Elf64_Xword)(type))
-#define R_AMD64_RELATIVE 8
+#define R_X86_64_JUMP_SLOT 7
+#define R_X86_64_RELATIVE 8
struct Elf64_Rel
{