altentry.s
1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// RUN: llvm-mc -triple x86_64-apple-darwin -filetype=obj %s -o - | llvm-readobj --symbols | FileCheck %s
// CHECK: Symbol {
// CHECK: Name: _foo
// CHECK: Flags [ (0x0)
// CHECK: Value: 0x0
// CHECK: Symbol {
// CHECK: Name: _bar
// CHECK: Flags [ (0x0)
// CHECK: Value: 0x0
// CHECK: Symbol {
// CHECK: Name: _baz
// CHECK: Flags [ (0x200)
// CHECK: Value: 0x1
// CHECK: Symbol {
// CHECK: Name: _offsetsym0
// CHECK: Flags [ (0x0)
// CHECK: Value: 0x8
// CHECK: Symbol {
// CHECK: Name: _offsetsym1
// CHECK: Flags [ (0x200)
// CHECK: Value: 0xC
// CHECK: Symbol {
// CHECK: Name: _offsetsym2
// CHECK: Flags [ (0x200)
// CHECK: Value: 0x10
// CHECK: Symbol {
// CHECK: Name: _offsetsym3
// CHECK: Flags [ (0x200)
// CHECK: Value: 0x20
// CHECK: Symbol {
// CHECK: Symbol {
// CHECK: Symbol {
.section __TEXT,__text,regular,pure_instructions
_foo:
_bar = _foo
nop
_baz = .
.comm _g0,4,2
.section __DATA,__data
.globl _s0
.align 3
_s0:
.long 31
.long 32
.quad _g0
.globl _s1
.align 3
_s1:
.long 33
.long 34
.quad _g0
.globl _offsetsym0
_offsetsym0 = _s0
.globl _offsetsym1
.alt_entry _offsetsym1
_offsetsym1 = _s0+4
.globl _offsetsym2
.alt_entry _offsetsym2
_offsetsym2 = _s0+8
.globl _offsetsym3
.alt_entry _offsetsym3
_offsetsym3 = _s1+8
.subsections_via_symbols