diff options
Diffstat (limited to 'src/libelfu')
-rw-r--r-- | src/libelfu/model/symtab.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libelfu/model/symtab.c b/src/libelfu/model/symtab.c index 165e00e..1dd778e 100644 --- a/src/libelfu/model/symtab.c +++ b/src/libelfu/model/symtab.c @@ -29,6 +29,10 @@ static GElf_Word pltLookupVal(ElfuElf *me, char *name) relplt = elfu_mScnForall(me, subFindByName, ".rel.plt", NULL); if (!relplt) { + /* x86-64 uses .rela.plt instead */ + relplt = elfu_mScnForall(me, subFindByName, ".rela.plt", NULL); + } + if (!relplt) { ELFU_WARN("dynsymLookupVal: Could not find .rel.plt section in destination ELF.\n"); return 0; } |