45 lines · plain
1// REQUIRES: x862// RUN: llvm-mc %s -o %t.o -filetype=obj --triple=x86_64-unknown-linux3// RUN: ld.lld %t.o -o %t --export-dynamic --gc-sections4// RUN: llvm-readelf -S -s %t | FileCheck %s5 6// Ordinarily, the TLS and IFUNC sections would be split into partitions.7// Make sure that that didn't happen by checking that there is only one8// of each section.9 10// CHECK: .ifunc11// CHECK: .tdata12 13// CHECK-NOT: .ifunc14// CHECK-NOT: .tdata15 16.section .llvm_sympart.f1,"",@llvm_sympart17.asciz "part1"18.quad f119 20.section .text._start,"ax",@progbits21.globl _start22_start:23call tls124call ifunc125 26.section .text.f1,"ax",@progbits27.globl f128f1:29call tls230call ifunc231 32.section .ifunc,"ax",@progbits,unique,133.type ifunc1 STT_GNU_IFUNC34ifunc1:35 36.section .ifunc,"ax",@progbits,unique,237.type ifunc2 STT_GNU_IFUNC38ifunc2:39 40.section .tdata,"awT",@progbits,unique,141tls1:42 43.section .tdata,"awT",@progbits,unique,244tls2:45