diff options
author | Marshall Clow <mclow@qualcomm.com> | 2012-06-23 14:46:18 +0000 |
---|---|---|
committer | Marshall Clow <mclow@qualcomm.com> | 2012-06-23 14:46:18 +0000 |
commit | 50b4c52633b0c933aabcd0741d1dae751ba339dd (patch) | |
tree | 8ee7f663f676a7805b5d202ad5da7ee85631b6f5 /test | |
parent | 6de8ffbbc91bd750fa7212d3cbc4211341ef817e (diff) | |
download | external_llvm-50b4c52633b0c933aabcd0741d1dae751ba339dd.zip external_llvm-50b4c52633b0c933aabcd0741d1dae751ba339dd.tar.gz external_llvm-50b4c52633b0c933aabcd0741d1dae751ba339dd.tar.bz2 |
Add relocation types for Hexagon processor; patch by Sidney Manning <sidneym@codeaurora.org>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Object/Inputs/trivial-object-test.elf-hexagon | bin | 0 -> 800 bytes | |||
-rw-r--r-- | test/Object/objdump-relocations.test | 10 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/Object/Inputs/trivial-object-test.elf-hexagon b/test/Object/Inputs/trivial-object-test.elf-hexagon Binary files differnew file mode 100644 index 0000000..566fa30 --- /dev/null +++ b/test/Object/Inputs/trivial-object-test.elf-hexagon diff --git a/test/Object/objdump-relocations.test b/test/Object/objdump-relocations.test index c4b564e..a394a23 100644 --- a/test/Object/objdump-relocations.test +++ b/test/Object/objdump-relocations.test @@ -6,6 +6,8 @@ RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-i386 \ RUN: | FileCheck %s -check-prefix ELF-i386 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-x86-64 \ RUN: | FileCheck %s -check-prefix ELF-x86-64 +RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-hexagon \ +RUN: | FileCheck %s -check-prefix ELF-hexagon COFF-i386: .text COFF-i386: IMAGE_REL_I386_DIR32 L_.str @@ -26,3 +28,11 @@ ELF-x86-64: .text ELF-x86-64: R_X86_64_32S .rodata.str1.1 ELF-x86-64: R_X86_64_PC32 puts ELF-x86-64: R_X86_64_PC32 SomeOtherFunction + +ELF-hexagon: .text +ELF-hexagon: R_HEX_GOTREL_HI16 .main +ELF-hexagon: R_HEX_GOTREL_LO16 .main +ELF-hexagon: R_HEX_HI16 puts +ELF-hexagon: R_HEX_LO16 puts +ELF-hexagon: R_HEX_B15_PCREL testf +ELF-hexagon: R_HEX_B22_PCREL puts |