llvm-6502/test/MC/PowerPC
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
..
lit.local.cfg
ppc64-encoding-bookII.s [PowerPC] Add some Book II instructions to AsmParser 2013-05-03 19:51:09 +00:00
ppc64-encoding-ext.s [PowerPC] Support extended mnemonics in AsmParser 2013-05-03 19:50:27 +00:00
ppc64-encoding-fp.s [PowerPC] Add assembler parser 2013-05-03 19:49:39 +00:00
ppc64-encoding-vmx.s [PowerPC] Add assembler parser 2013-05-03 19:49:39 +00:00
ppc64-encoding.s Implement the PowerPC system call (sc) instruction. 2013-05-14 19:35:45 +00:00
ppc64-errors.s [PowerPC] Add assembler parser 2013-05-03 19:49:39 +00:00
ppc64-fixup-apply.s [PowerPC] Fix processing of ha16/lo16 fixups 2013-05-17 12:36:29 +00:00
ppc64-fixups.s [PowerPC] Merge/rename PPC fixup types 2013-05-17 12:37:21 +00:00
ppc64-initial-cfa.ll Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
ppc64-operands.s [PowerPC] Add assembler parser 2013-05-03 19:49:39 +00:00
ppc64-relocs-01.ll Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
ppc64-tls-relocs-01.ll Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00