llvm-6502/lib/DebugInfo
Rafael Espindola 7486d92a6c Change how we iterate over relocations on ELF.
For COFF and MachO, sections semantically have relocations that apply to them.
That is not the case on ELF.

In relocatable objects (.o), a section with relocations in ELF has offsets to
another section where the relocations should be applied.

In dynamic objects and executables, relocations don't have an offset, they have
a virtual address. The section sh_info may or may not point to another section,
but that is not actually used for resolving the relocations.

This patch exposes that in the ObjectFile API. It has the following advantages:

* Most (all?) clients can handle this more efficiently. They will normally walk
all relocations, so doing an effort to iterate in a particular order doesn't
save time.

* llvm-readobj now prints relocations in the same way the native readelf does.

* probably most important, relocations that don't point to any section are now
visible. This is the case of relocations in the rela.dyn section. See the
updated relocation-executable.test for example.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182908 91177308-0d34-0410-b5e6-96231b3b80d8
2013-05-30 03:05:14 +00:00
..
CMakeLists.txt Add missing file to CMake list 2013-02-05 23:37:18 +00:00
DIContext.cpp
DWARFAbbreviationDeclaration.cpp
DWARFAbbreviationDeclaration.h
DWARFAttribute.h
DWARFCompileUnit.cpp Create a stub for DWARF parser unittests 2013-04-17 08:29:02 +00:00
DWARFCompileUnit.h
DWARFContext.cpp Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
DWARFContext.h Use zlib to uncompress debug sections in DWARF parser. 2013-04-23 10:17:34 +00:00
DWARFDebugAbbrev.cpp
DWARFDebugAbbrev.h
DWARFDebugAranges.cpp Fix missing std::. Not sure how this compiles for anyone else. 2013-03-21 00:57:21 +00:00
DWARFDebugAranges.h
DWARFDebugArangeSet.cpp xlC doesn't like Header being both a type and a member variable. Rename the 2013-03-20 21:03:41 +00:00
DWARFDebugArangeSet.h xlC doesn't like Header being both a type and a member variable. Rename the 2013-03-20 21:03:41 +00:00
DWARFDebugFrame.cpp Code cleanup: pass Offset by pointer to parseInstruction to more explicitly 2013-02-22 00:50:48 +00:00
DWARFDebugFrame.h
DWARFDebugInfoEntry.cpp Create a stub for DWARF parser unittests 2013-04-17 08:29:02 +00:00
DWARFDebugInfoEntry.h DWARF parser: remove duplicated code and fix code style in DIE extractors. 2013-04-08 14:37:16 +00:00
DWARFDebugLine.cpp
DWARFDebugLine.h
DWARFDebugRangeList.cpp
DWARFDebugRangeList.h
DWARFFormValue.cpp Reformat comments here. 2013-05-30 00:43:30 +00:00
DWARFRelocMap.h
LLVMBuild.txt libDebugInfo depends on libObject nowadays. 2013-05-09 13:48:26 +00:00
Makefile