llvm-6502/tools/llvm-objdump
Rui Ueyama 3ab0ce0cde llvm-objdump: Print x64 unwind info in executable.
The original code does not work correctly on executable files because the
code is written in such a way that only object files are assumed to be given
to llvm-objdump.

Contents of RuntimeFunction are different between executables and objects. In
executables, fields in RuntimeFunction have actual addresses to unwind info
structures. On the other hand, in object files, the fields have zero value,
but instead there are relocations pointing to the fields, so that Linker will
fill them at link-time.

So, when we are reading an object file, we need to use relocation info to
find the location of unwind info. When executable, we should just look at the
values in RuntimeFunction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202785 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-04 04:00:55 +00:00
..
CMakeLists.txt [CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt. 2013-12-10 11:13:32 +00:00
COFFDump.cpp llvm-objdump: Print x64 unwind info in executable. 2014-03-04 04:00:55 +00:00
ELFDump.cpp [Object] Split the ELF interface into 3 parts. 2013-08-08 22:27:13 +00:00
llvm-objdump.cpp llvm-objdump: Do not attempt to disassemble symbols outside of section 2014-02-24 22:12:11 +00:00
llvm-objdump.h Re-submit r191472 with a fix for big endian. 2013-09-27 21:04:00 +00:00
LLVMBuild.txt
MachODump.cpp Change the begin and end methods in ObjectFile to match the style guide. 2014-02-10 20:24:04 +00:00
Makefile