mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Flush out enough of llvm-objdump’s SymbolizerSymbolLookUp() for Mach-O files to
get the literal string “Hello world” printed as a comment on the instruction that loads the pointer to it. For now this is just for x86_64. So for object files with relocation entries it produces things like: leaq L_.str(%rip), %rax ## literal pool for: "Hello world\n" and similar for fully linked images like executables: leaq 0x4f(%rip), %rax ## literal pool for: "Hello world\n" Also to allow testing against darwin’s otool(1), I hooked up the existing -no-show-raw-insn option to the Mach-O parser code, added the new Mach-O only -full-leading-addr option to match otool(1)'s printing of addresses and also added the new -print-imm-hex option. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218423 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -128,9 +128,10 @@ llvm::MAttrs("mattr",
|
||||
cl::desc("Target specific attributes"),
|
||||
cl::value_desc("a1,+a2,-a3,..."));
|
||||
|
||||
static cl::opt<bool>
|
||||
NoShowRawInsn("no-show-raw-insn", cl::desc("When disassembling instructions, "
|
||||
"do not print the instruction bytes."));
|
||||
cl::opt<bool>
|
||||
llvm::NoShowRawInsn("no-show-raw-insn", cl::desc("When disassembling "
|
||||
"instructions, do not print "
|
||||
"the instruction bytes."));
|
||||
|
||||
static cl::opt<bool>
|
||||
UnwindInfo("unwind-info", cl::desc("Display unwind information"));
|
||||
|
Reference in New Issue
Block a user