2 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 // RUN: echo "PHDRS { ph_tls PT_TLS; }" > %t.script
4 // RUN: ld.lld -o %t.so -T %t.script %t.o -shared
5 // RUN: llvm-readobj -l %t.so | FileCheck %s
7 // test that we don't crash with an empty PT_TLS
10 // CHECK-NEXT: Offset: 0x0
11 // CHECK-NEXT: VirtualAddress: 0x0
12 // CHECK-NEXT: PhysicalAddress: 0x0
13 // CHECK-NEXT: FileSize: 0
14 // CHECK-NEXT: MemSize: 0