llvm-6502/test/MC/Mips
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
..
do_switch.ll
eh-frame.s Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
elf_basic.s Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
elf_eflags.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
elf_st_other.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
elf-bigendian.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
elf-gprel-32-64.ll Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
elf-N64.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
elf-objdump.s
elf-reginfo.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
elf-relsym.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
elf-tls.ll Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
expr1.s Mips assembler: Enable handling of nested expressions 2013-04-17 00:18:04 +00:00
higher_highest.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
hilo-addressing.s
lea_64.ll
lit.local.cfg
micromips-alu-instructions.s [mips] Test for r179873. 2013-04-30 20:48:49 +00:00
micromips-loadstore-instructions.s Test case for r180241. 2013-04-25 02:22:07 +00:00
micromips-shift-instructions.s Test case for r180238. 2013-04-25 02:21:09 +00:00
mips64-alu-instructions.s Mips assembler: Add TwoOperandConstraint definitions 2013-05-16 20:24:27 +00:00
mips64-register-names.s
mips64extins.ll
mips64shift.ll
mips_directives.s Mips assembler: Improve set register alias handling 2013-05-28 22:21:05 +00:00
mips_gprel16.ll
mips-alu-instructions.s Mips assembler: Add TwoOperandConstraint definitions 2013-05-16 20:24:27 +00:00
mips-coprocessor-encodings.s
mips-expansions.s Use object file specific section type for initial text section 2013-04-14 21:18:36 +00:00
mips-fpu-instructions.s Mips assembler: Explicit floating point condition register recognition. 2013-04-15 22:21:55 +00:00
mips-jump-instructions.s Mips assembler: Add branch macro definitions 2013-05-16 19:40:19 +00:00
mips-memory-instructions.s Use object file specific section type for initial text section 2013-04-14 21:18:36 +00:00
mips-register-names.s
mips-relocations.s Use object file specific section type for initial text section 2013-04-14 21:18:36 +00:00
multi-64bit-func.ll
nabi-regs.s Use object file specific section type for initial text section 2013-04-14 21:18:36 +00:00
pr11877.s
r-mips-got-disp.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
set-at-directive.s Use object file specific section type for initial text section 2013-04-14 21:18:36 +00:00
sext_64_32.ll
sym-offset.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
xgot.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00