make it even more sneaky

This commit is contained in:
Triss 2021-11-16 14:54:36 +01:00
parent c3248c6801
commit b89215abd6
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ static bool manip_elf(ElfW(Ehdr)* elf, const char* symname) {
printf("WARN: REL table present\n");
} else if (shdr->sh_type == SHT_RELA) {
if (shdr->sh_offset == relaoff) { // .rela.dyn
shdr->sh_size += shdr->sh_entsize; // one extra entry
//shdr->sh_size += shdr->sh_entsize; // one extra entry
} else { // .rela.plt
if (jmprel && *jmprel != shdr->sh_offset) {
printf("WARN: RELA tables look fishy\n");