Skip to content

Commit

Permalink
Replace __DATA_CONST with SEG_DATA_CONST
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 authored and 徐润康 committed Jan 15, 2020
1 parent 66315a9 commit 49e91e7
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 49e91e7

Please sign in to comment.