projects
/
centaur.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0546d51
)
Use .rela.plt too - need this for x86-64
c90
author
norly
<ny-git@enpas.org>
Fri, 21 Jun 2013 21:36:36 +0000
(22:36 +0100)
committer
norly
<ny-git@enpas.org>
Fri, 21 Jun 2013 21:39:42 +0000
(22:39 +0100)
src/libelfu/model/symtab.c
patch
|
blob
|
history
diff --git
a/src/libelfu/model/symtab.c
b/src/libelfu/model/symtab.c
index 165e00e93d28571758dda8e98b4e4152dfb54096..1dd778e43c2519307bc87d32c13ef6267cc2e6e1 100644
(file)
--- 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;