1 @ RUN
: llvm-mc
-triple armv7-elf
-filetype obj
-o
- %s | llvm-readelf
-S
-s
- | FileCheck
%s
3 @ CHECK
: [Nr
] Name Type Address Off Size ES Flg Lk Inf Al
4 @ CHECK-NEXT
: [ 0] NULL
00000000 000000 000000 00 0 0 0
5 @ CHECK-NEXT
: [ 1] .strtab STRTAB 00000000 {{.*}} {{.*}} 00 0 0 1
6 @ CHECK-NEXT
: [ 2] .text PROGBITS 00000000 {{.*}} 00000d 00 AX 0 0 4
7 @ CHECK-NEXT
: [ 3] .arm_aligned PROGBITS 00000000 {{.*}} 000005 00 AX 0 0 4
8 @ CHECK-NEXT
: [ 4] .thumb_aligned PROGBITS 00000000 {{.*}} 000002 00 AX 0 0 2
10 @ CHECK
: Num
: Value Size Type Bind Vis Ndx Name
11 @ CHECK-NEXT
: 0: 00000000 0 NOTYPE LOCAL DEFAULT UND
12 @ CHECK-NEXT
: 1: 00000001 0 FUNC LOCAL DEFAULT
2 aligned_thumb
13 @ CHECK-NEXT
: 2: 00000000 0 NOTYPE LOCAL DEFAULT
2 $
t
14 @ CHECK-NEXT
: 3: 00000004 0 FUNC LOCAL DEFAULT
2 thumb_to_arm
15 @ CHECK-NEXT
: 4: 00000004 0 NOTYPE LOCAL DEFAULT
2 $
a
16 @ CHECK-NEXT
: 5: 00000008 0 NOTYPE LOCAL DEFAULT
2 $d
17 @ CHECK-NEXT
: 6: 0000000b 0 FUNC LOCAL DEFAULT
2 unaligned_arm_to_thumb
18 @ CHECK-NEXT
: 7: 0000000a 0 NOTYPE LOCAL DEFAULT
2 $
t
22 .type aligned_thumb,%function
26 @ Above function has size
2 (at offset
0)
27 @ Expect alignment of
+2 (to offset
4)
30 .type thumb_to_arm,%function
36 @ Above function has size
5 (at offset
4)
37 @ Expect alignment of
+1 (to offset
10)
39 .type unaligned_arm_to_thumb,%function
40 unaligned_arm_to_thumb
:
45 @ Above section has size
13 (at offset
34)
46 @ Expect alignment of
+3 (to offset
44)
47 .section .arm_aligned, "ax"
50 .type arm_aligned_section,%function
56 @ Above section has size
5 (at offset
44)
57 @ Expect alignment of
+1 (to offset
4a)
58 .section .thumb_aligned, "ax"
61 .type thumb_aligned_section,%function
62 thumb_aligned_section
: