File: crel-32.s

package info (click to toggle)
swiftlang 6.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,791,604 kB
  • sloc: cpp: 9,901,740; ansic: 2,201,431; asm: 1,091,827; python: 308,252; objc: 82,166; f90: 80,126; lisp: 38,358; pascal: 25,559; sh: 20,429; ml: 5,058; perl: 4,745; makefile: 4,484; awk: 3,535; javascript: 3,018; xml: 918; fortran: 664; cs: 573; ruby: 396
file content (19 lines) | stat: -rw-r--r-- 832 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# REQUIRES: arm-registered-target
## Test CREL for a 32-bit big-endian target.
## CREL enables the RELA form even if ARM normally uses REL.

# RUN: llvm-mc -filetype=obj -crel -triple=armv8 %s -o %t.o
# RUN: llvm-readelf -Sr %t.o | FileCheck %s

# CHECK:      [ 3] .data           PROGBITS      00000000 {{.*}} 000008 00  WA  0   0  1
# CHECK-NEXT: [ 4] .crel.data      CREL          00000000 {{.*}} 00000a 01   I  5   3  1

# CHECK:      Relocation section '.crel.data' at offset {{.*}} contains 2 entries:
# CHECK-NEXT:  Offset     Info    Type                Sym. Value  Symbol's Name + Addend
# CHECK-NEXT: 00000000  {{.*}}   R_ARM_NONE             00000000   a0 - 1
# CHECK-NEXT: 00000004  {{.*}}   R_ARM_ABS32            00000000   a3 + 4000

.data
.reloc .+0, BFD_RELOC_NONE, a0-1
.reloc .+4, BFD_RELOC_32, a3+0x4000
.quad 0