blob: ed237850c4c1d138ed53cf94ab29d150bc379a03 [file] [log] [blame]
Peter Smith8646ced2016-06-07 09:31:521// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t
2// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %S/Inputs/abs256.s -o %t256.o
3// RUN: ld.lld %t %t256.o -o %t2
4// RUN: llvm-objdump -d %t2 | FileCheck %s
5// REQUIRES: arm
6 .syntax unified
7 .globl _start
8_start:
9 .section .R_ARM_ABS32POS, "ax",%progbits
10 .word foo + 0x24
11
12// S = 0x100, A = 0x24
13// S + A = 0x124
14// CHECK: Disassembly of section .R_ARM_ABS32POS:
15// CHECK: 11000: 24 01 00 00
16 .section .R_ARM_ABS32NEG, "ax",%progbits
17 .word foo - 0x24
18// S = 0x100, A = -0x24
19// CHECK: Disassembly of section .R_ARM_ABS32NEG:
20// CHECK: 11004: dc 00 00 00