facebook / fishhook

A library that enables dynamically rebinding symbols in Mach-O binaries running on iOS.
BSD 3-Clause "New" or "Revised" License
5.2k stars 966 forks source link

linkedit_base always equal mach_header。 #19

Closed AloneMonkey closed 9 years ago

AloneMonkey commented 9 years ago
// Find base symbol/string table addresses
uintptr_t linkedit_base = (uintptr_t)slide + linkedit_segment->vmaddr - linkedit_segment->fileoff;

the value of linkedit_base is always equal mach_header,why not substitute mach_header for linkedit_base?

grp commented 9 years ago

It may be in practice, but the format doesn't require that. It could be different.