[Orc] Remote the <unistd> include introduced in r257305 - it's not needed, and
[oota-llvm.git] / test / MC / COFF / relocation-imgrel.s
1 // COFF Image-relative relocations
2 //
3 // Test that we produce image-relative relocations (IMAGE_REL_I386_DIR32NB
4 // and IMAGE_REL_AMD64_ADDR32NB) when accessing foo@imgrel.
5
6 // RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj -r | FileCheck --check-prefix=W32 %s
7 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj -r | FileCheck --check-prefix=W64 %s
8
9 .data
10 foo:
11     .long 1
12
13 .text
14     mov foo@IMGREL(%ebx, %ecx, 4), %eax
15     mov foo@imgrel(%ebx, %ecx, 4), %eax
16
17 // W32:      Relocations [
18 // W32-NEXT:   Section (1) .text {
19 // W32-NEXT:     0x3 IMAGE_REL_I386_DIR32NB foo
20 // W32-NEXT:     0xA IMAGE_REL_I386_DIR32NB foo
21 // W32-NEXT:   }
22 // W32-NEXT: ]
23
24 // W64:      Relocations [
25 // W64-NEXT:   Section (1) .text {
26 // W64-NEXT:     0x4 IMAGE_REL_AMD64_ADDR32NB foo
27 // W64-NEXT:     0xC IMAGE_REL_AMD64_ADDR32NB foo
28 // W64-NEXT:   }
29 // W64-NEXT: ]