Mercurial > pub > dyncall > dyncall
comparison dynload/dynload_syms_mach-o.c @ 282:7ed642a9c3e9
- removed some restriction in mach-o loader
author | Tassilo Philipp |
---|---|
date | Thu, 19 Apr 2018 22:01:56 +0200 |
parents | 1e3617d8a951 |
children | dd5d03483314 |
comparison
equal
deleted
inserted
replaced
281:f5577f6bf97a | 282:7ed642a9c3e9 |
---|---|
101 break; /* found header */ | 101 break; /* found header */ |
102 } | 102 } |
103 } | 103 } |
104 } | 104 } |
105 | 105 |
106 if(pHeader && (pHeader->magic == MACH_HEADER_MAGIC_NR) && (pHeader->filetype == MH_DYLIB) && !(pHeader->flags & MH_SPLIT_SEGS)) | 106 if(pHeader && (pHeader->magic == MACH_HEADER_MAGIC_NR) && (pHeader->filetype == MH_DYLIB)/*@@@ ignore for now, seems to work without it on El Capitan && !(pHeader->flags & MH_SPLIT_SEGS)*/) |
107 { | 107 { |
108 const char* pBase = (const char*)pHeader; | 108 const char* pBase = (const char*)pHeader; |
109 uintptr_t slide = 0, symOffset = 0; | 109 uintptr_t slide = 0, symOffset = 0; |
110 const struct load_command* cmd = (const struct load_command*)(pBase + sizeof(struct MACH_HEADER_TYPE)); | 110 const struct load_command* cmd = (const struct load_command*)(pBase + sizeof(struct MACH_HEADER_TYPE)); |
111 | 111 |