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 For mips64 switch statements in subroutines could generate 2012-08-22 00:49:30 +00:00
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 PR13013: ELF Type identification fails for MSB type ELF files. 2012-06-25 14:48:43 +00:00
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 Mips specific standalone assembler addressing mode %hi and %lo. 2013-02-21 02:09:31 +00:00
lea_64.ll The Mips64InstrInfo.td definitions DynAlloc64 LEA_ADDiu64 2012-08-06 23:29:06 +00:00
lit.local.cfg Continue cleanup of LIT, getting rid of the remaining artifacts from dejagnu 2012-03-25 09:02:19 +00:00
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 Add test cases for correct parsing of register names in 32- and 64-bit modes. 2012-10-11 12:42:49 +00:00
mips64extins.ll The instruction DINS may be transformed into DINSU or DEXTM depending 2012-08-31 18:06:48 +00:00
mips64shift.ll Some instructions are passed to the assembler to be 2012-08-28 19:07:39 +00:00
mips_directives.s Mips assembler: Improve set register alias handling 2013-05-28 22:21:05 +00:00
mips_gprel16.ll This patch produces the correct addend value for 2013-01-08 19:01:28 +00:00
mips-alu-instructions.s Mips assembler: Add TwoOperandConstraint definitions 2013-05-16 20:24:27 +00:00
mips-coprocessor-encodings.s This is a resubmittal. For some reason it broke the bots yesterday 2013-01-18 20:15:06 +00:00
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 Add test cases for correct parsing of register names in 32- and 64-bit modes. 2012-10-11 12:42:49 +00:00
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 Add option disable-mips-delay-filler. Turn on mips' delay slot filler by 2012-08-22 02:51:28 +00:00
nabi-regs.s Use object file specific section type for initial text section 2013-04-14 21:18:36 +00:00
pr11877.s Ensure .AliasedSymbol() is called on all uses of getSymbol(). Affects ARM and MIPS ELF backends. 2012-01-28 15:58:32 +00:00
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 [mips] Stop reserving register AT and use register scavenger when a scratch 2012-11-03 00:05:43 +00:00
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