summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-04-28 09:10:48 (GMT)
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-04-28 09:10:48 (GMT)
commit927b3322314804bc46f1cd393884cd05826c187e (patch)
tree964ab306ba385618ae2f10f67143aa5e7211bf70 /src
parent77efcf2f2d2f95391a6717cc9457f87267500e72 (diff)
parentabae7858d6552cf76649fa521e777ac6aa557763 (diff)
downloadpatchelf-927b3322314804bc46f1cd393884cd05826c187e.zip
patchelf-927b3322314804bc46f1cd393884cd05826c187e.tar.gz
patchelf-927b3322314804bc46f1cd393884cd05826c187e.tar.bz2
Merge pull request #86 from njsmith/master
Fix bug in walking .gnu.version_r linked list
Diffstat (limited to 'src')
-rw-r--r--src/patchelf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/patchelf.cc b/src/patchelf.cc
index 91abc6e..6c53e85 100644
--- a/src/patchelf.cc
+++ b/src/patchelf.cc
@@ -1337,7 +1337,7 @@ void ElfFile<ElfFileParamNames>::replaceNeeded(map<string, string>& libs)
debug("keeping .gnu.version_r entry `%s'\n", file);
}
// the Elf_Verneed structures form a linked list, so jump to next entry
- need = (Elf_Verneed *) (contents + rdi(shdrVersionR.sh_offset) + rdi(need->vn_next));
+ need = (Elf_Verneed *) (((char *) need) + rdi(need->vn_next));
--verNeedNum;
}
}