diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-04-20 14:01:45 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-04-20 14:01:45 +0000 |
commit | 3660a847f1820d73847539f3959dc069396f8e44 (patch) | |
tree | 6fbb268103c684c4a891a64e952c18dc73c42ae9 /test | |
parent | b32204cd16d3dec812bb5be0794214532775dc7e (diff) |
Behave like gnu as when a relocation crosses sections.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129850 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/COFF/diff.s | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/MC/COFF/diff.s b/test/MC/COFF/diff.s new file mode 100644 index 0000000000..b7db5097fd --- /dev/null +++ b/test/MC/COFF/diff.s @@ -0,0 +1,28 @@ +// RUN: llvm-mc -filetype=obj -triple i686-pc-mingw32 %s | coff-dump.py | FileCheck %s + + .def _foobar; + .scl 2; + .type 32; + .endef + .text + .globl _foobar + .align 16, 0x90 +_foobar: # @foobar +# BB#0: + ret + + .data + .globl _rust_crate # @rust_crate + .align 4 +_rust_crate: + .long _foobar-_rust_crate + + +// CHECK: Relocations = [ +// CHECK-NEXT: 0 = { +// CHECK-NEXT: VirtualAddress = 0x0 +// CHECK-NEXT: SymbolTableIndex = +// CHECK-NEXT: Type = IMAGE_REL_I386_REL32 (20) +// CHECK-NEXT: SymbolName = .text +// CHECK-NEXT: } +// CHECK-NEXT: ] |