Browse Source

make it even more sneaky

main
sys64738 3 weeks ago
parent
commit
b89215abd6
  1. 2
      manip-exe.h

2
manip-exe.h

@ -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");

Loading…
Cancel
Save