summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2012-12-05 19:36:00 -0800
committerStephen Hines <srhines@google.com>2012-12-14 17:30:23 -0800
commitac584bea7b04063b483134c7063d3efdf395c0da (patch)
tree2b9829bebfbe6b4ff31053950075936f00e4ba43
parent909a0d7444300529d07e4a29f5c8cd526746987e (diff)
downloadlinkloader-ac584bea7b04063b483134c7063d3efdf395c0da.tar.gz
Add proper number of stubs for ARM JUMP24 relocations.
Change-Id: I6a5bd75db9d76230aab72350d90bcf8c045e0092
-rw-r--r--include/impl/ELFSectionRelTable.hxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/impl/ELFSectionRelTable.hxx b/include/impl/ELFSectionRelTable.hxx
index d5d04a2..c6c4dde 100644
--- a/include/impl/ELFSectionRelTable.hxx
+++ b/include/impl/ELFSectionRelTable.hxx
@@ -98,9 +98,13 @@ getMaxNumStubs(ELFObjectTy const *obj) const {
for (size_t i = 0; i < size(); ++i) {
ELFRelocTy *rel = table[i];
- if (rel->getType() == R_ARM_CALL ||
- rel->getType() == R_ARM_THM_CALL) {
+ switch (rel->getType()) {
+ case R_ARM_CALL:
+ case R_ARM_THM_CALL:
+ case R_ARM_JUMP24:
+ case R_ARM_THM_JUMP24:
sym_index_set.insert(rel->getSymTabIndex());
+ break;
}
}