1 // RUN: llvm-objdump -m -d -full-leading-addr -print-imm-hex -no-show-raw-insn %p/Inputs/macho-multiple-text | FileCheck %s -check-prefix=TEXT
3 TEXT: (__TEXT,__text) section
5 TEXT_NEXT: 0000000100000f60 pushq %rbp
6 TEXT_NEXT: 0000000100000f61 movq %rsp, %rbp
7 TEXT_NEXT: 0000000100000f64 subq $0x10, %rsp
8 TEXT_NEXT: 0000000100000f68 movl $0x0, -0x4(%rbp)
9 TEXT_NEXT: 0000000100000f6f callq _hello
10 TEXT_NEXT: 0000000100000f74 xorl %eax, %eax
11 TEXT_NEXT: 0000000100000f76 addq $0x10, %rsp
12 TEXT_NEXT: 0000000100000f7a popq %rbp
13 TEXT_NEXT: 0000000100000f7b retq
15 // RUN: llvm-objdump -m -D -full-leading-addr -print-imm-hex -no-show-raw-insn %p/Inputs/macho-multiple-text | FileCheck %s -check-prefix=ALL
17 ALL: (__TEXT,__text) section
19 ALL_NEXT: 0000000100000f60 pushq %rbp
20 ALL_NEXT: 0000000100000f61 movq %rsp, %rbp
21 ALL_NEXT: 0000000100000f64 subq $0x10, %rsp
22 ALL_NEXT: 0000000100000f68 movl $0x0, -0x4(%rbp)
23 ALL_NEXT: 0000000100000f6f callq _hello
24 ALL_NEXT: 0000000100000f74 xorl %eax, %eax
25 ALL_NEXT: 0000000100000f76 addq $0x10, %rsp
26 ALL_NEXT: 0000000100000f7a popq %rbp
27 ALL_NEXT: 0000000100000f7b retq
28 ALL: (__TEXT_EXEC,__text) section
30 ALL_NEXT: 0000000100001000 pushq %rbp
31 ALL_NEXT: 0000000100001001 movq %rsp, %rbp
32 ALL_NEXT: 0000000100001004 subq $0x10, %rsp
33 ALL_NEXT: 0000000100001008 leaq -0x71(%rip), %rdi ## literal pool for: "hello, world!\n"
34 ALL_NEXT: 000000010000100f movb $0x0, %al
35 ALL_NEXT: 0000000100001011 callq 0x100000f7c ## symbol stub for: _printf
36 ALL_NEXT: 0000000100001016 movl %eax, -0x4(%rbp)
37 ALL_NEXT: 0000000100001019 addq $0x10, %rsp
38 ALL_NEXT: 000000010000101d popq %rbp
39 ALL_NEXT: 000000010000101e retq