mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
Add the code and test cases for 32-bit Intel to llvm-objdump’s Mach-O symbolizer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221211 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
BIN
test/tools/llvm-objdump/X86/Inputs/hello.exe.macho-i386
Executable file
BIN
test/tools/llvm-objdump/X86/Inputs/hello.exe.macho-i386
Executable file
Binary file not shown.
BIN
test/tools/llvm-objdump/X86/Inputs/hello.obj.macho-i386
Normal file
BIN
test/tools/llvm-objdump/X86/Inputs/hello.obj.macho-i386
Normal file
Binary file not shown.
@@ -4,6 +4,9 @@
|
||||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/ObjC.exe.macho-x86_64 | FileCheck %s -check-prefix=ObjC-EXE
|
||||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello_cpp.exe.macho-x86_64 | FileCheck %s -check-prefix=CXX-EXE
|
||||
|
||||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.obj.macho-i386 | FileCheck %s -check-prefix=i386-OBJ
|
||||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.exe.macho-i386 | FileCheck %s -check-prefix=i386-EXE
|
||||
|
||||
OBJ: 0000000000000008 leaq L_.str(%rip), %rax ## literal pool for: "Hello world\n"
|
||||
OBJ: 0000000000000026 callq _printf
|
||||
|
||||
@@ -29,3 +32,7 @@ CXX-EXE: 00000001000014cb callq __ZNSt3__116__pad_and_outputIcNS_11char_traitsIc
|
||||
|
||||
// FIXME: Demangler depends on host's <cxxabi.h>.
|
||||
// std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> > std::__1::__pad_and_output<char, std::__1::char_traits<char> >(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >, char const*, char const*, char const*, std::__1::ios_base&, char)
|
||||
|
||||
i386-OBJ: 0000002f calll _printf
|
||||
|
||||
i386-EXE: 00001f6f calll 0x1f84 ## symbol stub for: _printf
|
||||
|
@@ -0,0 +1,10 @@
|
||||
# RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -d - | FileCheck %s
|
||||
|
||||
nop
|
||||
x:
|
||||
leal x-y(%eax), %ebx
|
||||
.data
|
||||
y:
|
||||
.quad 0
|
||||
|
||||
# CHECK: leal x-y(%eax), %ebx
|
Reference in New Issue
Block a user