Skip to content

Commit

Permalink
elf_parse: add compatibility ifdefs
Browse files Browse the repository at this point in the history
  • Loading branch information
smx-smx committed May 1, 2024
1 parent 36fd362 commit 34b35bf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xzre_code/elf_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
#include <elf.h>
#include <openssl/bn.h>

#ifndef DT_RELRSZ
#define DT_RELRSZ 35 /* Total size of RELR relative relocations */
#endif

#ifndef DT_RELR
#define DT_RELR 36 /* Address of RELR relative relocations */
#endif

BOOL elf_parse(Elf64_Ehdr *ehdr, elf_info_t *elf_info){
if(!ehdr || !elf_info){
return FALSE;
Expand Down

0 comments on commit 34b35bf

Please sign in to comment.