llvm.org GIT mirror llvm / c2a1df7
ARM: add support for R_ARM_ABS16 Add support for R_ARM_ABS16 relocation mapping. Addresses PR22156. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225510 91177308-0d34-0410-b5e6-96231b3b80d8 Saleem Abdulrasool 5 years ago
2 changed file(s) with 21 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
155155 break;
156156 }
157157 break;
158 case FK_Data_2:
159 switch (Modifier) {
160 default: llvm_unreachable("unsupported modifier");
161 case MCSymbolRefExpr::VK_None:
162 Type = ELF::R_ARM_ABS16;
163 break;
164 }
165 break;
158166 case FK_Data_4:
159167 switch (Modifier) {
160168 default: llvm_unreachable("Unsupported Modifier");
0 @ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-objdump -r - \
1 @ RUN: | FileCheck %s
2 @ RUN: llvm-mc -triple thumbv7-eabi -filetype obj -o - %s | llvm-objdump -r - \
3 @ RUN: | FileCheck %s
4
5 .syntax unified
6
7 .short abs16_0 -32768
8 .short abs16_1 +65535
9
10 @ CHECK: 0 R_ARM_ABS16 abs16_0
11 @ CHECK: 2 R_ARM_ABS16 abs16_1
12