Skip to content

Commit 6401308

Browse files
authored
Merge pull request #20 from mcbegamerxx954/main
Fix build from previous fork
2 parents d4d4da8 + 4eea38c commit 6401308

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Util.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include <vector>
55
#include <string>
66
#include "frida-gum.h"
7-
#include <bits/elf_common.h>
87
#include <stddef.h>
98
#include <stdint.h>
109
#include <link.h>
@@ -27,6 +26,8 @@ int callback(struct dl_phdr_info* dl_info, size_t _size, void* data) {
2726

2827
for (size_t i = 0; i < dl_info->dlpi_phnum; i++) {
2928
const ElfW(Phdr) phdr = dl_info->dlpi_phdr[i];
29+
// Im so sorry
30+
#define PF_X 0x1
3031
// Check if we found a loadable and executable section
3132
// should be where the code is at
3233
if (phdr.p_type == PT_LOAD && phdr.p_flags & PF_X) {

0 commit comments

Comments
 (0)