mirror of
https://github.com/LSPosed/LSPlt.git
synced 2025-05-06 21:48:48 +08:00
ELF header is not xom
This commit is contained in:
parent
edc5b5d5fd
commit
b30d5f4529
@ -57,9 +57,11 @@ public:
|
||||
// we basically only care about r-?p entry
|
||||
// and for offset == 0 it's an ELF header
|
||||
// and for offset != 0 it's what we hook
|
||||
if (!map.is_private) continue;
|
||||
if (map.path.empty()) continue;
|
||||
if (map.path[0] == '[') continue;
|
||||
// both of them should not be xom
|
||||
if (!map.is_private || !(map.perms & PROT_READ) || map.path.empty() ||
|
||||
map.path[0] == '[') {
|
||||
continue;
|
||||
}
|
||||
auto start = map.start;
|
||||
auto inode = map.inode;
|
||||
info.emplace(start, HookInfo{{std::move(map)}, {}, 0, nullptr, inode == kSelfInode});
|
||||
|
Loading…
x
Reference in New Issue
Block a user