diff options
author | Meador Inge <meadori@codesourcery.com> | 2012-06-25 14:48:43 +0000 |
---|---|---|
committer | Meador Inge <meadori@codesourcery.com> | 2012-06-25 14:48:43 +0000 |
commit | b935cd15142491bdee9baff00db8d63c18d402db (patch) | |
tree | 0e3f95fe7be88dada7974313552bb1570bd42b01 /test/MC | |
parent | a0706a9ff4469b137ed6eea3f484a0152bab4c88 (diff) | |
download | external_llvm-b935cd15142491bdee9baff00db8d63c18d402db.zip external_llvm-b935cd15142491bdee9baff00db8d63c18d402db.tar.gz external_llvm-b935cd15142491bdee9baff00db8d63c18d402db.tar.bz2 |
PR13013: ELF Type identification fails for MSB type ELF files.
Fix 'sys::IdentifyFileType' to work with big and little endian byte orderings
when reading the ELF object file type.
Initial patch by Stefan Hepp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159138 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/Mips/elf-objdump.s | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/MC/Mips/elf-objdump.s b/test/MC/Mips/elf-objdump.s new file mode 100644 index 0000000..6a5c2a5 --- /dev/null +++ b/test/MC/Mips/elf-objdump.s @@ -0,0 +1,11 @@ +// 32 bit big endian +// RUN: llvm-mc -filetype=obj -triple mips-unknown-linux %s -o - | llvm-objdump -d -triple mips-unknown-linux - | FileCheck %s +// 32 bit little endian +// RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux %s -o - | llvm-objdump -d -triple mips-unknown-linux - | FileCheck %s +// 64 bit big endian +// RUN: llvm-mc -filetype=obj -arch=mips64 -triple mips64-unknown-linux %s -o - | llvm-objdump -d -triple mips-unknown-linux - | FileCheck %s +// 64 bit little endian +// RUN: llvm-mc -filetype=obj -arch=mips64el -triple mips64el-unknown-linux %s -o - | llvm-objdump -d -triple mips-unknown-linux - | FileCheck %s + +// We just want to see if llvm-objdump works at all. +// CHECK: .text |