llvm-mirror/test/MC/MachO/ARM
Rafael Espindola d5d60f7168 Improve the --expand-relocs handling of MachO.
In a relocation target can take 3 basic forms

* A r_value in scattered relocations.
* A symbol in external relocations.
* A section is non-external relocations.

Have the dump reflect that. With this change we go from

CHECK-NEXT:       Extern: 0
CHECK-NEXT:       Type: X86_64_RELOC_SUBTRACTOR (5)
CHECK-NEXT:       Symbol: 0x2
CHECK-NEXT:       Scattered: 0

To just

// CHECK-NEXT:       Type: X86_64_RELOC_SUBTRACTOR (5)
// CHECK-NEXT:       Section: __data (2)

Since the relocation is with a section, we print the seciton name and don't
need to say that it is not scattered or external.

Someone motivated can add further special cases for things like
ARM64_RELOC_ADDEND and ARM_RELOC_PAIR.

llvm-svn: 240073
2015-06-18 22:38:20 +00:00
..
aliased-symbols.s MC: For variable symbols, maintain MCSymbol::Section as a cache. 2015-04-03 01:46:11 +00:00
bad-darwin-ARM-reloc.s Fixed a bug in getARMFixupKindMachOInfo() where three ARM fixup kinds 2013-12-13 22:46:54 +00:00
bad-darwin-directives.s ARM: consolidate MachO checks for ARM asm parser 2014-04-05 22:09:51 +00:00
cstexpr-gotpcrel.ll [opaque pointer type] Add textual IR support for explicit type parameter to gep operator 2015-03-13 18:20:45 +00:00
darwin-ARM-reloc.s MachObjectWriter: optimize the string table for common suffices 2014-10-06 17:05:19 +00:00
darwin-Thumb-reloc.s
data-in-code.s Refactor data-in-code annotations. 2012-05-18 19:12:01 +00:00
empty-function-nop.ll Fix flags for test in MC/MachO/ARM/empty-function-nop.ll 2012-03-01 00:29:09 +00:00
ios-version-min-load-command.s Adds the next bit of support for llvm-objdump’s -private-headers for executable Mach-O files. 2014-09-04 16:54:47 +00:00
lit.local.cfg Reduce verbiage of lit.local.cfg files 2014-06-09 22:42:55 +00:00
llvm-objdump-macho-stripped.s Fixed a bug in llvm-objdump when disassembling using -macho option for a binary 2012-05-18 00:13:56 +00:00
llvm-objdump-macho.s Add a test case for r156840, a fix to llvm-objdump when disassembling using 2012-05-15 20:20:50 +00:00
long-call-branch-island-relocation.s ARM: Darwin BL/BLX relocations to out-of-range symbols. 2012-09-25 18:07:17 +00:00
no-subsections-reloc.s ARM Darwin symbol ref differences w/o subsection-via-symbols. 2012-01-24 21:45:25 +00:00
nop-armv4-padding.s Correct ARM NOP encoding 2012-12-05 21:01:27 +00:00
nop-armv6t2-padding.s
nop-thumb2-padding.s
nop-thumb-padding.s
relax-thumb2-branches.s
relax-thumb-ldr-literal.s Thumb2 relaxation for LDR(literal). 2012-01-18 21:54:16 +00:00
static-movt-relocs.s Improve the --expand-relocs handling of MachO. 2015-06-18 22:38:20 +00:00
thumb2-function-relative-load.s Add testcase. 2012-01-19 01:36:59 +00:00
thumb2-movt-fixup.s
thumb2-movw-fixup.s Fix a bug in ARMMachObjectWriter::RecordRelocation() in ARMMachObjectWriter.cpp 2012-07-30 18:46:15 +00:00
thumb-bl-jbits.s Fix issues with the ARM bl and blx thumb instructions and the J1 and J2 bits 2012-05-03 22:41:56 +00:00
version-min-diagnostics.s Move tests that require ARM to an ARM test directory. 2014-03-18 22:43:59 +00:00
version-min.s Move tests that require ARM to an ARM test directory. 2014-03-18 22:43:59 +00:00