Skip to content

Commit

Permalink
Merge pull request #72 from xurunkang/master
Browse files Browse the repository at this point in the history
Replace __DATA_CONST with SEG_DATA_CONST
  • Loading branch information
swolchok authored Apr 20, 2020
2 parents 66315a9 + 49e91e7 commit 8ef82f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fishhook.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ static void perform_rebinding_with_section(struct rebindings_entry *rebindings,
nlist_t *symtab,
char *strtab,
uint32_t *indirect_symtab) {
const bool isDataConst = strcmp(section->segname, "__DATA_CONST") == 0;
const bool isDataConst = strcmp(section->segname, SEG_DATA_CONST) == 0;
uint32_t *indirect_symbol_indices = indirect_symtab + section->reserved1;
void **indirect_symbol_bindings = (void **)((uintptr_t)slide + section->addr);
vm_prot_t oldProtection = VM_PROT_READ;
Expand Down

0 comments on commit 8ef82f0

Please sign in to comment.