1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:27:35 +00:00

LibELF: Implement x86_64 relocation support

There are definitely some relocations missing and this is untested
for now.
This commit is contained in:
Gunnar Beutner 2021-05-02 01:32:28 +02:00 committed by Andreas Kling
parent 6990ab41c8
commit a050b43290
3 changed files with 38 additions and 0 deletions

View file

@ -791,3 +791,9 @@ struct elf_args {
#define R_386_RELATIVE 8 /* Base address + Addned */
#define R_386_TLS_TPOFF 14 /* Negative offset into the static TLS storage */
#define R_386_TLS_TPOFF32 37
#define R_X86_64_NONE 0
#define R_X86_64_64 1
#define R_X86_64_GLOB_DAT 6
#define R_X86_64_JUMP_SLOT 7
#define R_X86_64_RELATIVE 8