aboutsummaryrefslogblamecommitdiff
path: root/test/ELF/i386-relative.s
blob: d814b5b6786a3448a8f9839eea0b2b1ff00021af (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                              
// REQUIRES: x86
// RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %s -o %t.o
// RUN: ld.lld -shared %t.o -o %t.so
// RUN: llvm-readobj -r %t.so | FileCheck %s

// CHECK:      Relocations [
// CHECK-NEXT:   Section ({{.*}}) .rel.dyn {
// CHECK-NEXT:     R_386_RELATIVE - 0x0
// CHECK-NEXT:   }
// CHECK-NEXT: ]

        .data
foo:
        .long foo