llvm-6502/test/Object
Simon Atanasyan eb0c9094ac [yaml2obj][ELF] ELF Relocations Support.
The patch implements support for both relocation record formats: Elf_Rel
and Elf_Rela. It is possible to define relocation against symbol only.
Relocations against sections will be implemented later. Now yaml2obj
recognizes X86_64, MIPS and Hexagon relocation types.

Example of relocation section specification:
Sections:
- Name: .text
  Type: SHT_PROGBITS
  Content: "0000000000000000"
  AddressAlign: 16
  Flags: [SHF_ALLOC]

- Name: .rel.text
  Type: SHT_REL
  Info: .text
  AddressAlign: 4
  Relocations:
    - Offset: 0x1
      Symbol: glob1
      Type: R_MIPS_32
    - Offset: 0x2
      Symbol: glob2
      Type: R_MIPS_CALL16

The patch reviewed by Michael Spencer, Sean Silva, Shankar Easwaran.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206017 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-11 04:13:39 +00:00
..
ARM Move the test for the data in code into the ARM directory as it is an ARM 2013-06-06 20:28:28 +00:00
Inputs obj2yaml: Don't crash if the characteristics field is zero 2014-04-09 16:38:15 +00:00
Mips [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
X86 YAMLIO: Allow scalars to dictate quotation rules 2014-04-10 07:37:33 +00:00
ar-create.test llvm/test/Object/ar-create.test: Relax a CHECK line to satisfy localized message catalogue. 2013-07-16 23:17:22 +00:00
archive-delete.test Use a more unique name to avoid conflicting with directory.ll tests when running 2013-07-11 13:31:38 +00:00
archive-error-tmp.txt On error, close the temporary file descriptor. 2013-07-16 16:00:32 +00:00
archive-extract-dir.test Split openFileForWrite into windows and unix versions. 2013-07-19 15:02:03 +00:00
archive-format.test Only verify the length in archive test, we can't make assumptions on the spacing. 2013-07-13 15:21:39 +00:00
archive-long-index.test [Object][ELF] Add a maximum alignment. This is used by createELFObjectFile to create a properly aligned reader. 2013-01-04 20:36:28 +00:00
archive-move.test Add tests for the before and after modifiers. 2013-07-11 21:11:55 +00:00
archive-replace-pos.test Replace archive members in the old position. 2013-07-22 15:11:51 +00:00
archive-symtab.test Add a minimal implementation of ranlib. 2013-08-28 16:22:16 +00:00
archive-toc.test Change llvm-ar to use lib/Object. 2013-07-12 20:21:39 +00:00
archive-update.test The archive update test has a subtle race condition in it: if the test 2013-07-14 10:46:51 +00:00
check_binary_output.ll raw_ostream.cpp: Introduce <fcntl.h> to let O_BINARY provided. Or, llvm::outs() would be set to O_TEXT by default. 2013-07-17 02:21:10 +00:00
coff-archive-short.test [Object/COFF] Fix Windows .lib name handling. 2013-06-03 00:27:03 +00:00
coff-archive.test numerically sort the symbols, so that the testcase result is uniform 2012-11-13 21:01:11 +00:00
corrupt.test [Object] Split the ELF interface into 3 parts. 2013-08-08 22:27:13 +00:00
directory.ll llvm-ar: Let opening a directory failed in llvm-ar. 2013-11-08 12:35:56 +00:00
elf-reloc-no-sym.test Handle relocations that don't point to symbols. 2013-06-05 01:33:53 +00:00
extract.ll Fix typo: : not ; 2014-01-16 07:08:22 +00:00
lit.local.cfg [yaml2obj] Initial ELF section support. 2013-06-13 22:19:48 +00:00
mangle-ir.ll Now that it is possible, use the mangler in IRObjectFile. 2014-02-28 02:17:23 +00:00
nm-archive.test Correct word hyphenations 2013-12-05 05:44:44 +00:00
nm-error.test We do use pipefail these days. Update the test. 2014-01-29 04:08:05 +00:00
nm-ir.ll Add a SymbolicFile interface between Binary and ObjectFile. 2014-02-21 20:10:59 +00:00
nm-shared-object.test Mark the first dynamic elf symbol as SF_FormatSpecific. 2014-01-31 21:40:13 +00:00
nm-trivial-object.test Only clear the thumb bit from function addresses. 2014-04-03 02:20:43 +00:00
nm-universal-binary.test Basic support for parsing Mach-O universal binaries in LLVMObject library 2013-06-18 15:03:28 +00:00
nm-weak-global-macho.test Fix llvm-nm to mach OS X's nm on some tests. 2013-11-02 05:03:24 +00:00
obj2yaml-coff-long-file-symbol.test Object: Output .file symbols properly 2014-03-20 06:29:02 +00:00
obj2yaml-coff-weak-external.test obj2yaml: Don't crash if the characteristics field is zero 2014-04-09 16:38:15 +00:00
obj2yaml.test Revert "Revert "YAMLIO: Encode ambiguous hex strings explicitly"" 2014-04-09 17:04:27 +00:00
objdump-file-header.test
objdump-private-headers.test [Object][ELF] Fix incorrect size of members for the 64 version of Elf_Phdr_Impl. 2013-01-06 03:57:11 +00:00
objdump-relocations.test [Object][ELF][Mips] Print symbol name for MIPS ELF relocations. 2014-01-23 15:05:45 +00:00
objdump-section-content.test llvm-objdump: Don't print contents of BSS sections: it makes no sense and crashes llvm-objdump on relocated objects with large bss 2013-04-16 10:53:11 +00:00
objdump-sectionheaders.test [llvm-objdump] Emit addresses with the correct number of leading 0's. 2013-01-10 22:40:50 +00:00
objdump-symbol-table.test Fix SymbolRef::getAddress implementation for ELF. The 'value' field in symbol table entry should be treated differently for relocatable and relocated files. This patch fixes symbol addresses printed by llvm-nm for executables and shared objects. 2012-09-21 07:08:08 +00:00
readobj-elf-versioning.test Teach llvm-readobj to print human friendly description of reserved sections. 2014-03-24 05:00:34 +00:00
readobj-shared-object.test Teach llvm-readobj to print human friendly description of reserved sections. 2014-03-24 05:00:34 +00:00
readobj.test [Object][ELF] Fix crash on no dynamic section. 2013-02-07 18:26:45 +00:00
relocation-executable.test Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
simple-archive.test [Object][ELF] Add a maximum alignment. This is used by createELFObjectFile to create a properly aligned reader. 2013-01-04 20:36:28 +00:00
yaml2obj-elf-bits-endian.test [yaml2obj] Initial ELF support. 2013-06-10 23:44:15 +00:00
yaml2obj-elf-file-headers-with-e_flags.yaml [yaml2obj] Add support for ELF e_flags. 2014-03-31 09:44:05 +00:00
yaml2obj-elf-file-headers.yaml [yaml2obj][ELF] Beef up this test a bit. 2013-06-19 00:55:32 +00:00
yaml2obj-elf-rel.yaml [yaml2obj][ELF] ELF Relocations Support. 2014-04-11 04:13:39 +00:00
yaml2obj-elf-section-basic.yaml [yaml2obj][ELF] Assign name (.shstrtab) to the section holds sections names. 2014-03-14 06:53:16 +00:00
yaml2obj-elf-symbol-basic.yaml Teach llvm-readobj to print human friendly description of reserved sections. 2014-03-24 05:00:34 +00:00
yaml2obj-elf-symbol-LocalGlobalWeak.yaml [yaml2obj][ELF] Make symbol table top-level key. 2013-06-22 01:38:00 +00:00
yaml2obj-readobj.test Write relocations in yaml2obj. 2013-04-23 15:53:02 +00:00