summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2013-06-21 22:36:36 +0100
committernorly <ny-git@enpas.org>2013-06-21 22:39:42 +0100
commit8e6a1501ab9d8020950bc1883d14d14dd76fdb5f (patch)
treec62578c0ec776cd1f8820d2ed5fdb0b65a6bc63a /src
parent0546d51cf9c0af6e7f108322b1c6d6be319fd7ee (diff)
Use .rela.plt too - need this for x86-64c90
Diffstat (limited to 'src')
-rw-r--r--src/libelfu/model/symtab.c4
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;
}