brintos

brintos / llvm-project-archived public Read only

0
0
Text · 487 B · bedbb1c Raw
21 lines · plain
1; REQUIRES: x862 3; RUN: llvm-as %s -o %t.o4; RUN: ld.lld %t.o -o %t.so -shared5; RUN: llvm-readobj -r %t.so | FileCheck %s6 7; CHECK:      Relocations [8; CHECK-NEXT:   Section ({{.*}}) .rela.plt {9; CHECK-NEXT:     R_X86_64_JUMP_SLOT bar 0x010; CHECK-NEXT:   }11; CHECK-NEXT: ]12 13target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"14target triple = "x86_64-unknown-linux-gnu"15 16declare void @bar()17define void @foo() {18  call void @bar()19  ret void20}21