31 lines
1.7 KiB
Plaintext
31 lines
1.7 KiB
Plaintext
## This test verifies that llvm-objdump correctly prints function starts data.
|
|
|
|
RUN: llvm-objdump --macho --function-starts %p/Inputs/hello.exe.macho-i386 | FileCheck %s --check-prefix=32-BIT --implicit-check-not=_main
|
|
RUN: llvm-objdump --macho --function-starts=addrs %p/Inputs/hello.exe.macho-i386 | FileCheck %s --check-prefix=32-BIT --implicit-check-not=_main
|
|
32-BIT: 00001f40
|
|
|
|
RUN: llvm-objdump --macho --function-starts=names %p/Inputs/hello.exe.macho-i386 | FileCheck %s --check-prefix=32-BIT-NAMES
|
|
32-BIT-NAMES: {{^}}_main
|
|
|
|
RUN: llvm-objdump --macho --function-starts=both %p/Inputs/hello.exe.macho-i386 | FileCheck %s --check-prefix=32-BIT-BOTH
|
|
32-BIT-BOTH: 00001f40 _main
|
|
|
|
RUN: llvm-objdump --macho --function-starts %p/Inputs/hello.exe.macho-x86_64 | FileCheck %s --check-prefix=64-BIT --implicit-check-not=_main
|
|
RUN: llvm-objdump --macho --function-starts=addrs %p/Inputs/hello.exe.macho-x86_64 | FileCheck %s --check-prefix=64-BIT --implicit-check-not=_main
|
|
64-BIT: 0000000100000f30
|
|
|
|
RUN: llvm-objdump --macho --function-starts=names %p/Inputs/hello.exe.macho-x86_64 | FileCheck %s --check-prefix=64-BIT-NAMES
|
|
64-BIT-NAMES: {{^}}_main
|
|
|
|
RUN: llvm-objdump --macho --function-starts=both %p/Inputs/hello.exe.macho-x86_64 | FileCheck %s --check-prefix=64-BIT-BOTH
|
|
64-BIT-BOTH: 0000000100000f30 _main
|
|
|
|
RUN: llvm-strip %p/Inputs/hello.exe.macho-x86_64 -o %t.stripped
|
|
RUN: llvm-objdump --macho --function-starts=both %t.stripped | FileCheck %s --check-prefix=BOTH-STRIPPED
|
|
BOTH-STRIPPED: 0000000100000f30 ?
|
|
|
|
RUN: llvm-strip %p/Inputs/hello.exe.macho-x86_64 -o %t.stripped
|
|
RUN: llvm-objdump --macho --function-starts=names %t.stripped | FileCheck %s --check-prefix=NAMES-STRIPPED
|
|
NAMES-STRIPPED: function-starts.test.tmp.stripped:
|
|
NAMES-STRIPPED-EMPTY:
|