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

LibELF+LibC: Add support for relative relocations in aarch64 binaries

This commit adds R_AARCH64_RELATIVE to elf.h and uses it in
ELF::perform_relative_relocations to correctly verify the relocation
type. This is the only change needed to support relative relocations for
aarch64.
This commit is contained in:
Timon Kruiper 2023-01-30 15:28:46 +01:00 committed by Jelle Raaijmakers
parent b2e223d2bc
commit 4b0f8e9a20
2 changed files with 3 additions and 1 deletions

View file

@ -821,3 +821,5 @@ struct elf_args {
#define R_X86_64_RELATIVE 8
#define R_X86_64_TPOFF64 18
#define R_X86_64_IRELATIVE 37
#define R_AARCH64_RELATIVE 1027