]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/lto/abs-resol.ll
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / lto / abs-resol.ll
1 ; REQUIRES: x86
2
3 ; RUN: llvm-as %s -o %t.o
4 ; RUN: llvm-mc -triple=x86_64-pc-linux %p/Inputs/absolute.s -o %t2.o -filetype=obj
5 ; RUN: ld.lld %t.o %t2.o -o %t3.out -pie
6
7 ; RUN: echo "blah = 0xdeadfeef;" > %t.script
8 ; RUN: ld.lld %t.o -T%t.script -o %t4.out -pie
9
10 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
11 target triple = "x86_64-unknown-linux-gnu"
12
13 @blah = external global i8, align 1
14
15 define i8* @_start() {
16  ret i8* @blah
17 }