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 Rewrite DIContext interface to take an object. Update all callers. 2012-11-12 21:40:38 +00:00
DWARFAbbreviationDeclaration.cpp Rename the 'Attributes' class to 'Attribute'. It's going to represent a single attribute in the future. 2012-12-19 07:18:57 +00:00
DWARFAbbreviationDeclaration.h Rename the 'Attributes' class to 'Attribute'. It's going to represent a single attribute in the future. 2012-12-19 07:18:57 +00:00
DWARFAttribute.h
DWARFCompileUnit.cpp Create a stub for DWARF parser unittests 2013-04-17 08:29:02 +00:00
DWARFCompileUnit.h Add support for applying in-memory relocations to the .debug_line section and, in the case of ELF files, using symbol addresses when available for relocations to the .debug_info section. Also extending the llvm-rtdyld tool to add the ability to dump line number information for testing purposes. 2013-01-25 22:50:58 +00:00
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 Audited all the format strings in libDebugInfo and fixed those that didn't match the types. 2011-11-05 16:01:13 +00:00
DWARFDebugAbbrev.h Audited all the format strings in libDebugInfo and fixed those that didn't match the types. 2011-11-05 16:01:13 +00:00
DWARFDebugAranges.cpp Fix missing std::. Not sure how this compiles for anyone else. 2013-03-21 00:57:21 +00:00
DWARFDebugAranges.h [DebugInfo] Generate address ranges for compile units even if .debug_aranges is present: it is often the case that .debug_aranges section contains ranges only for a small subset of compile units. Test cases will be added in separate commits. 2012-11-16 08:36:25 +00:00
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 Initial support for DWARF CFI parsing and dumping in LLVM 2013-02-05 23:30:58 +00:00
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.cpp: Fix true path. Did you forget "return true" here? 2013-01-26 01:45:06 +00:00
DWARFDebugLine.h Add DIContext::getLineInfoForAddressRange() function and test. This function allows a caller to obtain a table of line information for a function using the function's address and size. 2013-01-26 00:28:05 +00:00
DWARFDebugRangeList.cpp Add support for fetching inlining context (stack of source code locations) 2012-09-04 08:12:33 +00:00
DWARFDebugRangeList.h Add support for fetching inlining context (stack of source code locations) 2012-09-04 08:12:33 +00:00
DWARFFormValue.cpp Reformat comments here. 2013-05-30 00:43:30 +00:00
DWARFRelocMap.h Fix a warning in the new DWARFheader. Add a new line at the end of the file. 2013-01-25 22:57:05 +00:00
LLVMBuild.txt libDebugInfo depends on libObject nowadays. 2013-05-09 13:48:26 +00:00
Makefile