• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -t | FileCheck %s
2
3// Test which symbols should be in the symbol table
4
5.Lsym2:
6.Lsym3:
7.Lsym4 = .Lsym2 - .Lsym3
8        .long	.Lsym4
9
10	.type	.Lsym5,@object
11        .type   sym6,@object
12        .long sym6
13
14	.section	.rodata.str1.1,"aMS",@progbits,1
15.Lsym7:
16.Lsym8:
17
18        .text
19        movsd   .Lsym8(%rip), %xmm1
20
21test2_a = undef
22test2_b = undef + 1
23
24// CHECK:      Symbols [
25// CHECK-NEXT:   Symbol {
26// CHECK-NEXT:     Name:  (0)
27// CHECK-NEXT:     Value: 0x0
28// CHECK-NEXT:     Size: 0
29// CHECK-NEXT:     Binding: Local
30// CHECK-NEXT:     Type: None
31// CHECK-NEXT:     Other: 0
32// CHECK-NEXT:     Section: Undefined
33// CHECK-NEXT:   }
34// CHECK-NEXT:   Symbol {
35// CHECK-NEXT:     Name: .Lsym8
36// CHECK-NEXT:     Value: 0x0
37// CHECK-NEXT:     Size: 0
38// CHECK-NEXT:     Binding: Local
39// CHECK-NEXT:     Type: None
40// CHECK-NEXT:     Other: 0
41// CHECK-NEXT:     Section: .rodata.str1.1
42// CHECK-NEXT:   }
43// CHECK-NEXT:   Symbol {
44// CHECK-NEXT:     Name: sym6
45// CHECK-NEXT:     Value: 0x0
46// CHECK-NEXT:     Size: 0
47// CHECK-NEXT:     Binding: Global
48// CHECK-NEXT:     Type: Object
49// CHECK-NEXT:     Other: 0
50// CHECK-NEXT:     Section: Undefined
51// CHECK-NEXT:   }
52// CHECK-NEXT: ]
53