mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-02 23:26:31 +00:00
Add the code and test cases for 64-bit ARM to llvm-objdump’s Mach-O symbolizer.
FYI, removed the unused MCInstrAnalysis as it does not exist for 64-bit ARM and was causing a “couldn't initialize disassembler for target” error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222045 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
BIN
test/tools/llvm-objdump/AArch64/Inputs/ObjC.exe.macho-aarch64
Executable file
BIN
test/tools/llvm-objdump/AArch64/Inputs/ObjC.exe.macho-aarch64
Executable file
Binary file not shown.
BIN
test/tools/llvm-objdump/AArch64/Inputs/ObjC.obj.macho-aarch64
Normal file
BIN
test/tools/llvm-objdump/AArch64/Inputs/ObjC.obj.macho-aarch64
Normal file
Binary file not shown.
BIN
test/tools/llvm-objdump/AArch64/Inputs/hello.exe.macho-aarch64
Executable file
BIN
test/tools/llvm-objdump/AArch64/Inputs/hello.exe.macho-aarch64
Executable file
Binary file not shown.
BIN
test/tools/llvm-objdump/AArch64/Inputs/hello.obj.macho-aarch64
Normal file
BIN
test/tools/llvm-objdump/AArch64/Inputs/hello.obj.macho-aarch64
Normal file
Binary file not shown.
2
test/tools/llvm-objdump/AArch64/lit.local.cfg
Normal file
2
test/tools/llvm-objdump/AArch64/lit.local.cfg
Normal file
@@ -0,0 +1,2 @@
|
||||
if not 'AArch64' in config.root.targets:
|
||||
config.unsupported = True
|
@@ -0,0 +1,23 @@
|
||||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.obj.macho-aarch64 | FileCheck %s -check-prefix=OBJ
|
||||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.exe.macho-aarch64 | FileCheck %s -check-prefix=EXE
|
||||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/ObjC.obj.macho-aarch64 | FileCheck %s -check-prefix=ObjC-OBJ
|
||||
// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/ObjC.exe.macho-aarch64 | FileCheck %s -check-prefix=ObjC-EXE
|
||||
|
||||
OBJ: 000000000000001c adrp x0, L_.str@PAGE
|
||||
OBJ: 0000000000000020 add x0, x0, L_.str@PAGEOFF
|
||||
OBJ: 0000000000000024 bl _printf
|
||||
|
||||
EXE: 0000000100007f58 add x0, x0, #4008 ; literal pool for: "Hello world
|
||||
"
|
||||
EXE: 0000000100007f5c bl 0x100007f78 ; symbol stub for: _printf
|
||||
|
||||
ObjC-OBJ: 000000000000000c adrp x8, L_OBJC_SELECTOR_REFERENCES_3@PAGE
|
||||
ObjC-OBJ: 0000000000000010 add x8, x8, L_OBJC_SELECTOR_REFERENCES_3@PAGEOFF
|
||||
ObjC-OBJ:0000000000000044 bl _objc_msgSend
|
||||
|
||||
ObjC-EXE: 0000000100007ed0 add x8, x8, #80 ; Objc selector ref: date
|
||||
ObjC-EXE: 0000000100007ed8 add x9, x9, #96 ; Objc class ref: _OBJC_CLASS_$_NSDate
|
||||
ObjC-EXE: 0000000100007f04 bl 0x100007f50 ; Objc message: +[NSObject new]
|
||||
ObjC-EXE: 0000000100007f1c bl 0x100007f50 ; Objc message: -[x0 new]
|
||||
ObjC-EXE: 0000000100007f2c add x0, x0, #32 ; Objc cfstring ref: @"The current date and time is: %@"
|
||||
ObjC-EXE: 0000000100007f30 bl 0x100007f44 ; symbol stub for: _NSLog
|
Reference in New Issue
Block a user