]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/linkerscript/empty-tls.s
Vendor import of lld trunk r290819:
[FreeBSD/FreeBSD.git] / test / ELF / linkerscript / empty-tls.s
1 // REQUIRES: x86
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
6
7 // test that we don't crash with an empty PT_TLS
8
9 // CHECK:      Type: 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