• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -n -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r -s -sd | FileCheck %s
2
3        .data
4        .long 0
5
6        .text
7_a:
8_b:
9        call _a
10
11        .subsections_via_symbols
12
13// CHECK: Section {
14// CHECK:   Index: 0
15// CHECK:   Name: __data (5F 5F 64 61 74 61 00 00 00 00 00 00 00 00 00 00)
16// CHECK:   Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00)
17// CHECK:   Address: 0x0
18// CHECK:   Size: 0x4
19// CHECK:   Offset: 340
20// CHECK:   Alignment: 0
21// CHECK:   RelocationOffset: 0x0
22// CHECK:   RelocationCount: 0
23// CHECK:   Type: 0x0
24// CHECK:   Attributes [ (0x0)
25// CHECK:   ]
26// CHECK:   Reserved1: 0x0
27// CHECK:   Reserved2: 0x0
28// CHECK:   SectionData (
29// CHECK:     0000: 00000000                             |....|
30// CHECK:   )
31// CHECK: }
32// CHECK: Relocations [
33// CHECK:   Section __text {
34// CHECK:     0x1 1 2 0 GENERIC_RELOC_VANILLA 0 __text
35// CHECK:   }
36// CHECK: ]
37