diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-03 21:02:51 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-03 21:02:51 +0000 |
commit | d787a41b118a3724d1df87dc3d38cc3fddb3a145 (patch) | |
tree | 4bb427304568d39764c3b25fb96d4e5ef4bcd45c /test/Object | |
parent | 6107bbbbdf1c801b80f28a4d20e2194087f13c62 (diff) |
Implement the "mips endian" for r_info.
Normally r_info is just a 32 of 64 bit number matching the endian of the rest
of the file. Unfortunately, mips 64 bit little endian is special: The top 32
bits are a little endian number and the following 32 are a big endian one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178694 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Object')
-rw-r--r-- | test/Object/Inputs/trivial-object-test.elf-mips64el | bin | 0 -> 1064 bytes | |||
-rw-r--r-- | test/Object/objdump-relocations.test | 7 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/Object/Inputs/trivial-object-test.elf-mips64el b/test/Object/Inputs/trivial-object-test.elf-mips64el Binary files differnew file mode 100644 index 0000000000..5ad9ba3a0b --- /dev/null +++ b/test/Object/Inputs/trivial-object-test.elf-mips64el diff --git a/test/Object/objdump-relocations.test b/test/Object/objdump-relocations.test index 6d35a2651d..95c4c4dcae 100644 --- a/test/Object/objdump-relocations.test +++ b/test/Object/objdump-relocations.test @@ -8,6 +8,8 @@ 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 +RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-mips64el \ +RUN: | FileCheck %s -check-prefix ELF-MIPS64EL RUN: llvm-objdump -r %p/Inputs/relocations.elf-x86-64 \ RUN: | FileCheck %s -check-prefix ELF-complex-x86-64 @@ -40,6 +42,11 @@ ELF-hexagon: R_HEX_LO16 puts ELF-hexagon: R_HEX_B15_PCREL testf ELF-hexagon: R_HEX_B22_PCREL puts +// Note: this file was produced with gas to make sure we don't end up in a +// situation where LLVM produces and accepts a broken file. +ELF-MIPS64EL: .data +ELF-MIPS64EL: R_MIPS_64 + ELF-complex-x86-64: .text ELF-complex-x86-64-NEXT: R_X86_64_8 .data-4 ELF-complex-x86-64-NEXT: R_X86_64_16 .data-4 |