blob: 1ed611b0de225bccacf877f9f1d89e547ffc3b56 [file] [log] [blame]
Kevin Enderby403258f2014-05-19 20:36:02 +00001RUN: llvm-size -A %p/Inputs/macho-text-data-bss.macho-x86_64 \
2RUN: | FileCheck %s -check-prefix A
3RUN: llvm-size -B %p/Inputs/macho-text-data-bss.macho-x86_64 \
4RUN: | FileCheck %s -check-prefix B
Kevin Enderby246a4602014-06-17 17:54:13 +00005RUN: llvm-size -format darwin %p/Inputs/macho-text-data-bss.macho-x86_64 \
6RUN: | FileCheck %s -check-prefix m
7RUN: llvm-size %p/Inputs/macho-archive-x86_64.a \
8RUN: | FileCheck %s -check-prefix AR
9RUN: llvm-size -format darwin %p/Inputs/macho-archive-x86_64.a \
10RUN: | FileCheck %s -check-prefix mAR
11RUN: llvm-size -format darwin -x -l %p/Inputs/hello-world.macho-x86_64 \
12RUN: | FileCheck %s -check-prefix mxl
Kevin Enderby4b8fc282014-06-18 22:04:40 +000013RUN: llvm-size %p/Inputs/macho-universal.x86_64.i386 \
14RUN: | FileCheck %s -check-prefix u
15RUN: llvm-size %p/Inputs/macho-universal-archive.x86_64.i386 \
16RUN: | FileCheck %s -check-prefix uAR
Kevin Enderby403258f2014-05-19 20:36:02 +000017
18A: section size addr
19A: __text 12 0
20A: __data 4 12
21A: __bss 4 112
22A: __compact_unwind 32 16
23A: __eh_frame 64 48
24A: Total 116
25
Kevin Enderby246a4602014-06-17 17:54:13 +000026B: __TEXT __DATA __OBJC others dec hex
27B: 76 8 0 32 116 74
28
29m: Segment : 116
30m: Section (__TEXT, __text): 12
31m: Section (__DATA, __data): 4
32m: Section (__DATA, __bss): 4
33m: Section (__LD, __compact_unwind): 32
34m: Section (__TEXT, __eh_frame): 64
35m: total 116
36m: total 116
37
38AR: __TEXT __DATA __OBJC others dec hex
39AR: 70 0 0 32 102 66 {{.*}}/macho-archive-x86_64.a(foo.o)
40AR: 0 4 0 0 4 4 {{.*}}/macho-archive-x86_64.a(bar.o)
41
42mAR: {{.*}}/macho-archive-x86_64.a(foo.o):
43mAR: Segment : 104
44mAR: Section (__TEXT, __text): 6
45mAR: Section (__LD, __compact_unwind): 32
46mAR: Section (__TEXT, __eh_frame): 64
47mAR: total 102
48mAR: total 104
49mAR: {{.*}}/macho-archive-x86_64.a(bar.o):
50mAR: Segment : 4
51mAR: Section (__TEXT, __text): 0
52mAR: Section (__DATA, __data): 4
53mAR: total 4
54mAR: total 4
55
56
57mxl: Segment __PAGEZERO: 0x100000000 (vmaddr 0x0 fileoff 0)
58mxl: Segment __TEXT: 0x1000 (vmaddr 0x100000000 fileoff 0)
59mxl: Section __text: 0x3b (addr 0x100000f30 offset 3888)
60mxl: Section __stubs: 0x6 (addr 0x100000f6c offset 3948)
61mxl: Section __stub_helper: 0x1a (addr 0x100000f74 offset 3956)
62mxl: Section __cstring: 0xd (addr 0x100000f8e offset 3982)
63mxl: Section __unwind_info: 0x48 (addr 0x100000f9b offset 3995)
64mxl: Section __eh_frame: 0x18 (addr 0x100000fe8 offset 4072)
65mxl: total 0xc8
66mxl: Segment __DATA: 0x1000 (vmaddr 0x100001000 fileoff 4096)
67mxl: Section __nl_symbol_ptr: 0x10 (addr 0x100001000 offset 4096)
68mxl: Section __la_symbol_ptr: 0x8 (addr 0x100001010 offset 4112)
69mxl: total 0x18
70mxl: Segment __LINKEDIT: 0x1000 (vmaddr 0x100002000 fileoff 8192)
71mxl: total 0x100003000
Kevin Enderby4b8fc282014-06-18 22:04:40 +000072
73u: __TEXT __DATA __OBJC others dec hex
74u: 4096 0 0 4294971392 4294975488 100002000 {{.*}}/macho-universal.x86_64.i386:x86_64
75u: 4096 0 0 8192 12288 3000 {{.*}}/macho-universal.x86_64.i386:i386
76
77uAR: __TEXT __DATA __OBJC others dec hex
78uAR: 136 0 0 32 168 a8 {{.*}}/macho-universal-archive.x86_64.i386:x86_64(hello.o)
79uAR: 5 4 0 0 9 9 {{.*}}/macho-universal-archive.x86_64.i386:i386(foo.o)