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 | 2025e8b82092978bb268a818518de28de73a69cc (patch) | |
tree | 9b64d886997fd5d825311c666f2160147e0faf82 /llvm/test/Object/objdump-relocations.test | |
parent | 13de1566d00eeb6fe3a3321649861a9dffbd8c0e (diff) | |
download | bcm5719-llvm-2025e8b82092978bb268a818518de28de73a69cc.tar.gz bcm5719-llvm-2025e8b82092978bb268a818518de28de73a69cc.zip |
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.
llvm-svn: 178694
Diffstat (limited to 'llvm/test/Object/objdump-relocations.test')
-rw-r--r-- | llvm/test/Object/objdump-relocations.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Object/objdump-relocations.test b/llvm/test/Object/objdump-relocations.test index 6d35a2651d7..95c4c4dcaed 100644 --- a/llvm/test/Object/objdump-relocations.test +++ b/llvm/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 |