1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux /dev/null -o %t.o
3# RUN: ld.lld -o %t.so -T %s %t.o -shared
4# RUN: llvm-readobj -l %t.so | FileCheck %s
5
6PHDRS {
7  ph_tls PT_TLS;
8}
9
10# Test that we don't crash with an empty PT_TLS
11
12# CHECK:      Type: PT_TLS
13# CHECK-NEXT: Offset: 0x0
14# CHECK-NEXT: VirtualAddress: 0x0
15# CHECK-NEXT: PhysicalAddress: 0x0
16# CHECK-NEXT: FileSize: 0
17# CHECK-NEXT: MemSize: 0
18