Merge pull request #72 from xurunkang/master
Replace __DATA_CONST with SEG_DATA_CONST
diff --git a/fishhook.c b/fishhook.c
index 564f66d..026a5c0 100644
--- a/fishhook.c
+++ b/fishhook.c
@@ -108,7 +108,7 @@
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;