diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-09-20 19:20:47 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-09-20 19:20:47 +0000 |
commit | 43779dcfef7f4e921c6fc12bb5394a1b2efcd81d (patch) | |
tree | 31d3dc51aef7dc1b81efb823ca084873aa920a3a /test | |
parent | 7af6dc47a552d0d7d09752ad2e747d3973125b48 (diff) | |
download | llvm-43779dcfef7f4e921c6fc12bb5394a1b2efcd81d.tar.gz llvm-43779dcfef7f4e921c6fc12bb5394a1b2efcd81d.tar.bz2 llvm-43779dcfef7f4e921c6fc12bb5394a1b2efcd81d.tar.xz |
Produce a R_X86_64_32 when the value is >=0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114339 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/ELF/basic-elf.ll | 4 | ||||
-rw-r--r-- | test/MC/ELF/relocation.s | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/test/MC/ELF/basic-elf.ll b/test/MC/ELF/basic-elf.ll index abdce7e358..bc9ec13186 100644 --- a/test/MC/ELF/basic-elf.ll +++ b/test/MC/ELF/basic-elf.ll @@ -72,7 +72,7 @@ declare i32 @puts(i8* nocapture) nounwind ; 64: ('_relocations', [ ; 64: # Relocation 0 ; 64: (('r_offset', 5) -; 64: ('r_type', 11) +; 64: ('r_type', 10) ; 64: ('r_addend', 0) ; 64: ), ; 64: # Relocation 1 @@ -82,7 +82,7 @@ declare i32 @puts(i8* nocapture) nounwind ; 64: ), ; 64: # Relocation 2 ; 64: (('r_offset', 15) -; 64: ('r_type', 11) +; 64: ('r_type', 10) ; 64: ('r_addend', 6) ; 64: ), ; 64: # Relocation 3 diff --git a/test/MC/ELF/relocation.s b/test/MC/ELF/relocation.s new file mode 100644 index 0000000000..b9b87dd204 --- /dev/null +++ b/test/MC/ELF/relocation.s @@ -0,0 +1,12 @@ +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump --dump-section-data | FileCheck %s + +// Test that we produce a R_X86_64_32. + + .long Lset1 + + +// CHECK: # Relocation 0 +// CHECK-NEXT: (('r_offset', 0) +// CHECK-NEXT: ('r_sym', 4) +// CHECK-NEXT: ('r_type', 10) +// CHECK-NEXT: ('r_addend', 0) |