1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Apple codesign follies: need more flags

This commit is contained in:
John Reiser 2013-03-07 19:47:44 -08:00
parent 76e3f4eb92
commit b515fa39ec
2 changed files with 3 additions and 2 deletions

View File

@ -1167,7 +1167,7 @@ void PackMachBase<T>::pack1(OutputFile *const fo, Filter &/*ft*/) // generate e
+ sizeof(segXHDR) + sizeof(secXHDR) + sizeof(segXHDR) + sizeof(secXHDR)
+ sizeof(segTEXT) + sizeof(secTEXT) + sizeof(segLINK) + + sizeof(segTEXT) + sizeof(secTEXT) + sizeof(segLINK) +
my_thread_command_size /* + sizeof(uuid_cmd) + sizeof(linkitem) */ ; my_thread_command_size /* + sizeof(uuid_cmd) + sizeof(linkitem) */ ;
mhdro.flags = Mach_header::MH_NOUNDEFS; mhdro.flags = Mach_header::MH_NOUNDEFS | Mach_header::MH_DYLDLINK;
} }
fo->write(&mhdro, sizeof(mhdro)); fo->write(&mhdro, sizeof(mhdro));

View File

@ -56,7 +56,8 @@
MH_BUNDLE = 8 /* dynamically bound bundle file */ MH_BUNDLE = 8 /* dynamically bound bundle file */
}; };
enum { // flags enum { // flags
MH_NOUNDEFS = 1 MH_NOUNDEFS = 1,
MH_DYLDLINK = 4 /* code signing demands this */
}; };
#endif /*}*/ #endif /*}*/