llvm.org GIT mirror llvm / ea4fe48
ARM: add support for R_ARM_ABS8 relocations Add support for R_ARM_ABS8 relocation. Addresses PR22126. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225507 91177308-0d34-0410-b5e6-96231b3b80d8 Saleem Abdulrasool 5 years ago
2 changed file(s) with 18 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
147147 } else {
148148 switch ((unsigned)Fixup.getKind()) {
149149 default: llvm_unreachable("invalid fixup kind!");
150 case FK_Data_1:
151 switch (Modifier) {
152 default: llvm_unreachable("unsupported Modifier");
153 case MCSymbolRefExpr::VK_None:
154 Type = ELF::R_ARM_ABS8;
155 break;
156 }
157 break;
150158 case FK_Data_4:
151159 switch (Modifier) {
152160 default: llvm_unreachable("Unsupported Modifier");
0 @ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-objdump -r - \
1 @ RUN: | FileCheck %s
2
3 .syntax unified
4
5 .byte abs8_0 -128
6 .byte abs8_1 +255
7
8 @ CHECK: 0 R_ARM_ABS8 abs8_0
9 @ CHECK: 1 R_ARM_ABS8 abs8_1