summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2015-08-19 20:20:10 +0000
committerSimon Atanasyan <simon@atanasyan.com>2015-08-19 20:20:10 +0000
commit814b70598446c1dc64974e78d04621d5f7cc6d42 (patch)
treed7e209335afd17a0a58e680115bfc5cd1fb46b3e /lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp
parent989cbbd2f5f866bff88254458bc40632aa8c73e0 (diff)
downloadbcm5719-llvm-814b70598446c1dc64974e78d04621d5f7cc6d42.tar.gz
bcm5719-llvm-814b70598446c1dc64974e78d04621d5f7cc6d42.zip
[Mips] Use 'or' for move instead of [d]addu in PLT entries
Patch by Simon Dardis. Differential Revision: http://reviews.llvm.org/D12103 llvm-svn: 245491
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp')
-rw-r--r--lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp b/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp
index 3f766f8be4f..326488e55c1 100644
--- a/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp
+++ b/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp
@@ -43,7 +43,7 @@ static const uint8_t mipsBePlt0AtomContent[] = {
0x8f, 0x99, 0x00, 0x00, // lw $25, %lo(&GOTPLT[0])($28)
0x27, 0x9c, 0x00, 0x00, // addiu $28, $28, %lo(&GOTPLT[0])
0x03, 0x1c, 0xc0, 0x23, // subu $24, $24, $28
- 0x03, 0xe0, 0x78, 0x21, // move $15, $31
+ 0x03, 0xe0, 0x78, 0x25, // move $15, $31
0x00, 0x18, 0xc0, 0x82, // srl $24, $24, 2
0x03, 0x20, 0xf8, 0x09, // jalr $25
0x27, 0x18, 0xff, 0xfe // subu $24, $24, 2
@@ -55,7 +55,7 @@ static const uint8_t mipsLePlt0AtomContent[] = {
0x00, 0x00, 0x99, 0x8f, // lw $25, %lo(&GOTPLT[0])($28)
0x00, 0x00, 0x9c, 0x27, // addiu $28, $28, %lo(&GOTPLT[0])
0x23, 0xc0, 0x1c, 0x03, // subu $24, $24, $28
- 0x21, 0x78, 0xe0, 0x03, // move $15, $31
+ 0x25, 0x78, 0xe0, 0x03, // move $15, $31
0x82, 0xc0, 0x18, 0x00, // srl $24, $24, 2
0x09, 0xf8, 0x20, 0x03, // jalr $25
0xfe, 0xff, 0x18, 0x27 // subu $24, $24, 2
OpenPOWER on IntegriCloud