X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=src%2Flibelfu%2Fmodel%2Fsymtab.c;h=1dd778e43c2519307bc87d32c13ef6267cc2e6e1;hb=8e6a1501ab9d8020950bc1883d14d14dd76fdb5f;hp=165e00e93d28571758dda8e98b4e4152dfb54096;hpb=0546d51cf9c0af6e7f108322b1c6d6be319fd7ee;p=centaur.git 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 @@ -28,6 +28,10 @@ static GElf_Word pltLookupVal(ElfuElf *me, char *name) GElf_Word j; 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;