90 lines · plain
1RUN: llvm-size -A %p/Inputs/macho-text-data-bss.macho-x86_64 \2RUN: | FileCheck %s -check-prefix A3RUN: llvm-size -B %p/Inputs/macho-text-data-bss.macho-x86_64 \4RUN: | FileCheck %s -check-prefix B5RUN: llvm-size --format=darwin %p/Inputs/macho-text-data-bss.macho-x86_64 \6RUN: | FileCheck %s -check-prefix m7RUN: llvm-size %p/Inputs/macho-archive-x86_64.a \8RUN: | FileCheck %s -check-prefix AR9RUN: llvm-size --format=darwin %p/Inputs/macho-archive-x86_64.a \10RUN: | FileCheck %s -check-prefix mAR11RUN: llvm-size -m -x -l %p/Inputs/hello-world.macho-x86_64 \12RUN: | FileCheck %s -check-prefix mxl13RUN: llvm-size --arch all %p/Inputs/macho-universal.x86_64.i386 \14RUN: | FileCheck %s -check-prefix u15RUN: llvm-size --arch i386 %p/Inputs/macho-universal.x86_64.i386 \16RUN: | FileCheck %s -check-prefix u-i38617RUN: llvm-size --arch all %p/Inputs/macho-universal-archive.x86_64.i386 \18RUN: | FileCheck %s -check-prefix uAR19RUN: llvm-size --arch x86_64 %p/Inputs/macho-universal-archive.x86_64.i386 \20RUN: | FileCheck %s -check-prefix uAR-x86_6421 22A: section size addr23A: __text 12 024A: __data 4 1225A: __bss 4 11226A: __compact_unwind 32 1627A: __eh_frame 64 4828A: Total 11629 30B: __TEXT __DATA __OBJC others dec hex31B: 76 8 0 32 116 74 32 33m: Segment : 11634m: Section (__TEXT, __text): 1235m: Section (__DATA, __data): 436m: Section (__DATA, __bss): 437m: Section (__LD, __compact_unwind): 3238m: Section (__TEXT, __eh_frame): 6439m: total 11640m: total 11641 42AR: __TEXT __DATA __OBJC others dec hex43AR: 70 0 0 32 102 66 {{.*}}/macho-archive-x86_64.a(foo.o)44AR: 0 4 0 0 4 4 {{.*}}/macho-archive-x86_64.a(bar.o)45 46mAR: {{.*}}/macho-archive-x86_64.a(foo.o):47mAR: Segment : 10448mAR: Section (__TEXT, __text): 649mAR: Section (__LD, __compact_unwind): 3250mAR: Section (__TEXT, __eh_frame): 6451mAR: total 10252mAR: total 10453mAR: {{.*}}/macho-archive-x86_64.a(bar.o):54mAR: Segment : 455mAR: Section (__TEXT, __text): 056mAR: Section (__DATA, __data): 457mAR: total 458mAR: total 459 60 61mxl: Segment __PAGEZERO: 0x100000000 (vmaddr 0x0 fileoff 0)62mxl: Segment __TEXT: 0x1000 (vmaddr 0x100000000 fileoff 0)63mxl: Section __text: 0x3b (addr 0x100000f30 offset 3888)64mxl: Section __stubs: 0x6 (addr 0x100000f6c offset 3948)65mxl: Section __stub_helper: 0x1a (addr 0x100000f74 offset 3956)66mxl: Section __cstring: 0xd (addr 0x100000f8e offset 3982)67mxl: Section __unwind_info: 0x48 (addr 0x100000f9b offset 3995)68mxl: Section __eh_frame: 0x18 (addr 0x100000fe8 offset 4072)69mxl: total 0xc870mxl: Segment __DATA: 0x1000 (vmaddr 0x100001000 fileoff 4096)71mxl: Section __nl_symbol_ptr: 0x10 (addr 0x100001000 offset 4096)72mxl: Section __la_symbol_ptr: 0x8 (addr 0x100001010 offset 4112)73mxl: total 0x1874mxl: Segment __LINKEDIT: 0x1000 (vmaddr 0x100002000 fileoff 8192)75mxl: total 0x10000300076 77u: __TEXT __DATA __OBJC others dec hex78u: 4096 0 0 4294971392 4294975488 100002000 {{.*}}/macho-universal.x86_64.i386 (for architecture x86_64)79u: 4096 0 0 8192 12288 3000 {{.*}}/macho-universal.x86_64.i386 (for architecture i386)80 81u-i386: __TEXT __DATA __OBJC others dec hex82u-i386: 4096 0 0 8192 12288 3000 83 84uAR: __TEXT __DATA __OBJC others dec hex85uAR: 136 0 0 32 168 a8 {{.*}}/macho-universal-archive.x86_64.i386(hello.o) (for architecture x86_64)86uAR: 5 4 0 0 9 9 {{.*}}/macho-universal-archive.x86_64.i386(foo.o) (for architecture i386)87 88uAR-x86_64: __TEXT __DATA __OBJC others dec hex89uAR-x86_64: 136 0 0 32 168 a8 {{.*}}/macho-universal-archive.x86_64.i386(hello.o)90