make it even more sneaky
This commit is contained in:
parent
c3248c6801
commit
b89215abd6
|
@ -232,7 +232,7 @@ static bool manip_elf(ElfW(Ehdr)* elf, const char* symname) {
|
||||||
printf("WARN: REL table present\n");
|
printf("WARN: REL table present\n");
|
||||||
} else if (shdr->sh_type == SHT_RELA) {
|
} else if (shdr->sh_type == SHT_RELA) {
|
||||||
if (shdr->sh_offset == relaoff) { // .rela.dyn
|
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
|
} else { // .rela.plt
|
||||||
if (jmprel && *jmprel != shdr->sh_offset) {
|
if (jmprel && *jmprel != shdr->sh_offset) {
|
||||||
printf("WARN: RELA tables look fishy\n");
|
printf("WARN: RELA tables look fishy\n");
|
||||||
|
|
Loading…
Reference in New Issue