Displaying 2 results from an estimated 2 matches for "dumpbyt".
Did you mean:
dumpbin
2011 Oct 13
0
[LLVMdev] llvm-objdump related patch
...if (DisAsm->getInstruction(Inst, Size, memoryObject, Index -
SectionVMA,
DebugOut, nulls())) {
- uint64_t addr;
- if (error(i->getAddress(addr))) break;
- outs() << format("%8x:\t", addr + Index);
- DumpBytes(StringRef(Bytes.data() + Index, Size));
+ DumpBytes(StringRef(Bytes.data() + Index - SectionVMA, Size));
IP->printInst(&Inst, outs(), "");
outs() << "\n";
} else {
errs() << ToolName << ": warning...
2011 Oct 12
2
[LLVMdev] llvm-objdump related patch
Michael,
I have rework the patch according to your suggestion. And I have
read binutil/objdump source code and found that it has a logic that if
there's no symtab, it will use dynsym, which is missing in llvm-objdump.
Songmao
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fix-the-address-calculation-for-llvm-objdump.patch
Type: text/x-patch