18 lines · plain
1; REQUIRES: x862 3; RUN: llvm-as %s -o %t.o4; RUN: llvm-mc -triple=x86_64-pc-linux %p/Inputs/absolute.s -o %t2.o -filetype=obj5; RUN: ld.lld %t.o %t2.o -o %t3.out -pie6 7; RUN: echo "blah = 0xdeadfeef;" > %t.script8; RUN: ld.lld %t.o -T%t.script -o %t4.out -pie9 10target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"11target triple = "x86_64-unknown-linux-gnu"12 13@blah = external global i8, align 114 15define ptr @_start() {16 ret ptr @blah17}18