llvm.org GIT mirror llvm / 26c5743
Merging r238751: ------------------------------------------------------------------------ r238751 | rafael | 2015-06-01 16:10:51 +0100 (Mon, 01 Jun 2015) | 3 lines Fix relocation selection for foo-. on mips. This handles only the 32 bit case. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_36@239700 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Sanders 4 years ago
2 changed file(s) with 11 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
5454 default:
5555 llvm_unreachable("invalid fixup kind!");
5656 case FK_Data_4:
57 Type = ELF::R_MIPS_32;
58 break;
57 return IsPCRel ? ELF::R_MIPS_PC32 : ELF::R_MIPS_32;
5958 case FK_Data_8:
6059 Type = ELF::R_MIPS_64;
6160 break;
0 // RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux < %s | llvm-readobj -r | FileCheck %s
1
2 // Test that we produce the correct relocation.
3 // FIXME: move more relocation only tests here.
4
5 .long foo
6 // CHECK: R_MIPS_32 foo
7
8 .long foo-.
9 // CHECK: R_MIPS_PC32 foo