Skip to content

Commit 49e91e7

Browse files
LucasXu0徐润康
authored andcommitted
Replace __DATA_CONST with SEG_DATA_CONST
1 parent 66315a9 commit 49e91e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fishhook.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ static void perform_rebinding_with_section(struct rebindings_entry *rebindings,
108108
nlist_t *symtab,
109109
char *strtab,
110110
uint32_t *indirect_symtab) {
111-
const bool isDataConst = strcmp(section->segname, "__DATA_CONST") == 0;
111+
const bool isDataConst = strcmp(section->segname, SEG_DATA_CONST) == 0;
112112
uint32_t *indirect_symbol_indices = indirect_symtab + section->reserved1;
113113
void **indirect_symbol_bindings = (void **)((uintptr_t)slide + section->addr);
114114
vm_prot_t oldProtection = VM_PROT_READ;

0 commit comments

Comments
 (0)