1 ; TLS attribute needs to be preserved.
3 ; RUN: llvm-as %s -o %t1.o
4 ; RUN: ld.lld -shared %t1.o -o %t1
5 ; RUN: llvm-readobj --symbols %t1 | FileCheck %s
7 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
8 target triple = "x86_64-unknown-linux-gnu"
10 @tsp_int = thread_local global i32 1
12 define void @_start() {
13 %val = load i32, ptr @tsp_int
18 ; CHECK: Name: tsp_int
19 ; CHECK-NEXT: Value: 0x0
21 ; CHECK-NEXT: Binding: Global
22 ; CHECK-NEXT: Type: TLS
23 ; CHECK-NEXT: Other: 0
24 ; CHECK-NEXT: Section: .tdata