llvm-6502/test
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
..
Analysis Make BasicAliasAnalysis recognize the fact a noalias argument cannot alias another argument, even if the other argument is not itself marked noalias. 2013-05-28 08:17:48 +00:00
Archive
Assembler
Bindings/Ocaml
Bitcode
BugPoint
CodeGen Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
DebugInfo Teach ReMaterialization to be more cunning about subregisters 2013-05-29 19:32:06 +00:00
ExecutionEngine ARM: use pristine object file while processing relocations 2013-05-28 19:48:19 +00:00
Feature Add a new function attribute 'cold' to functions. 2013-05-24 12:26:52 +00:00
FileCheck
Instrumentation [msan] Fix argument shadow alignment. 2013-05-28 13:07:43 +00:00
Integer
JitListener
Linker Extend RemapInstruction and friends to take an optional new parameter, a ValueMaterializer. 2013-05-28 15:17:05 +00:00
MC Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
Object Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
Other
TableGen
tools Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
Transforms Add support for llvm.vectorizer metadata 2013-05-28 20:00:34 +00:00
Unit
Verifier Also verify llvm.compiler_used. 2013-04-22 15:16:51 +00:00
YAMLParser Convert the uses of '|&' to use '2>&1 |' instead, which works on old 2012-07-02 18:37:59 +00:00
CMakeLists.txt
lit.cfg
lit.site.cfg.in
Makefile add polly to check-all 2013-05-20 18:49:15 +00:00
Makefile.tests
TestRunner.sh