26 lines · plain
1; TLS attribute needs to be preserved.2; REQUIRES: x863; RUN: llvm-as %s -o %t1.o4; RUN: ld.lld -shared %t1.o -o %t15; RUN: llvm-readobj --symbols %t1 | FileCheck %s6 7target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"8target triple = "x86_64-unknown-linux-gnu"9 10@tsp_int = thread_local global i32 111 12define void @_start() {13 %val = load i32, ptr @tsp_int14 ret void15}16 17; CHECK: Symbol {18; CHECK: Name: tsp_int19; CHECK-NEXT: Value: 0x020; CHECK-NEXT: Size: 421; CHECK-NEXT: Binding: Global22; CHECK-NEXT: Type: TLS23; CHECK-NEXT: Other: 024; CHECK-NEXT: Section: .tdata25; CHECK-NEXT: }26