summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShih-wei Liao <sliao@google.com>2011-11-12 14:49:45 -0800
committerShih-wei Liao <sliao@google.com>2011-11-12 14:49:45 -0800
commit9f4c28af2b830f6400c32d1f481e680346bbf33f (patch)
tree1ca9c390d2284e924f1a41b4cc0b41054a5de22f
parent2ffd160f255552e33f4b393d3097a3525e204634 (diff)
downloadlinkloader-9f4c28af2b830f6400c32d1f481e680346bbf33f.tar.gz
Fix to allow Bit 15 overflow. Change-Id: I9ff679ffba3b6139d929291e6d857d03d57cece4
-rw-r--r--include/impl/ELFObject.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/impl/ELFObject.hxx b/include/impl/ELFObject.hxx
index 1aa2b38..5212733 100644
--- a/include/impl/ELFObject.hxx
+++ b/include/impl/ELFObject.hxx
@@ -379,7 +379,7 @@ relocateMIPS(void *(*find_sym)(void *context, char const *name),
case R_MIPS_HI16:
A = A & 0xFFFF;
- *inst |= (((S + A + 0xFFFF8000) >> 16) & 0xFFFF);
+ *inst |= (((S + A + 0x8000) >> 16) & 0xFFFF);
break;
case R_MIPS_LO16: