aboutsummaryrefslogtreecommitdiffstats
path: root/test/Object
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-10-13 22:30:10 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-10-13 22:30:10 +0000
commit63b2f8c710ec42aa5304cbe8a5e8013e3ac66b8e (patch)
treea2ef7ac0acfa4aa9ce070a782aafedfbb0ca2944 /test/Object
parent942eb009114ef9a2e95e236790faa7a3c04bc2ba (diff)
downloadexternal_llvm-63b2f8c710ec42aa5304cbe8a5e8013e3ac66b8e.zip
external_llvm-63b2f8c710ec42aa5304cbe8a5e8013e3ac66b8e.tar.gz
external_llvm-63b2f8c710ec42aa5304cbe8a5e8013e3ac66b8e.tar.bz2
ELF: Fix the section that relocations apply to. Add test to verify. Patch by Danil Malyshev!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141901 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Object')
-rw-r--r--test/Object/objdump-relocations.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Object/objdump-relocations.test b/test/Object/objdump-relocations.test
index cd90d7a..2dcdb43 100644
--- a/test/Object/objdump-relocations.test
+++ b/test/Object/objdump-relocations.test
@@ -7,18 +7,22 @@ RUN: | FileCheck %s -check-prefix ELF-i386
RUN: llvm-objdump -r %p/TestObjectFiles/trivial-object-test.elf-x86-64 \
RUN: | FileCheck %s -check-prefix ELF-x86-64
+COFF-i386: .text
COFF-i386: IMAGE_REL_I386_DIR32 L_.str
COFF-i386: IMAGE_REL_I386_REL32 _puts
COFF-i386: IMAGE_REL_I386_REL32 _SomeOtherFunction
+COFF-x86-64: .text
COFF-x86-64: IMAGE_REL_AMD64_REL32 L.str
COFF-x86-64: IMAGE_REL_AMD64_REL32 puts
COFF-x86-64: IMAGE_REL_AMD64_REL32 SomeOtherFunction
+ELF-i386: .text
ELF-i386: R_386_32
ELF-i386: R_386_PC32
ELF-i386: R_386_PC32
+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