mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
[rpcsx-os] linker: report error on unsupported self segments
This commit is contained in:
parent
9fcee39dd3
commit
5e0d4676e4
|
|
@ -71,6 +71,12 @@ static std::vector<std::byte> unself(const std::byte *image, std::size_t size) {
|
|||
|
||||
for (std::size_t i = 0; i < header->segmentCount; ++i) {
|
||||
auto &segment = segments[i];
|
||||
if ((segment.flags & 0x7fb) != 0 ||
|
||||
segment.decryptedSize != segment.encryptedSize) {
|
||||
std::fprintf(stderr, "Unsupported self segment (%lx)\n", segment.flags);
|
||||
std::abort();
|
||||
}
|
||||
|
||||
if (~segment.flags & 0x800) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue