brintos

brintos / llvm-project-archived public Read only

0
0
Text · 742 B · babbf6a Raw
28 lines · plain
1; REQUIRES: x862; RUN: llvm-as %s -o %t.o3; RUN: echo ".global __progname; .data; .dc.a __progname" > %t2.s4; RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %t2.s -o %t2.o5; RUN: ld.lld -shared %t2.o -o %t2.so6; RUN: ld.lld -o %t %t.o %t2.so7; RUN: llvm-readobj --dyn-syms %t | FileCheck %s8 9; CHECK:      Name:     __progname10; CHECK-NEXT: Value:11; CHECK-NEXT: Size:     112; CHECK-NEXT: Binding:  Global (0x1)13; CHECK-NEXT: Type:     Function14; CHECK-NEXT: Other:    015; CHECK-NEXT: Section:  .text16; CHECK-NEXT: }17 18target triple = "x86_64-unknown-linux-gnu"19target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"20 21define void @_start() {22  ret void23}24 25define void @__progname() {26  ret void27}28