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:
parent
76e3f4eb92
commit
b515fa39ec
|
@ -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));
|
||||||
|
|
||||||
|
|
|
@ -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 /*}*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user