brintos

brintos / llvm-project-archived public Read only

0
0
Text · 790 B · 0d374be Raw
33 lines · plain
1## Test STT_TLS and relocations without PT_TLS. See also invalid/tls-symbol.s.2# REQUIRES: x863# RUN: rm -rf %t && split-file %s %t && cd %t4# RUN: llvm-mc -filetype=obj -triple=x86_64 a.s -o a.o5# RUN: not ld.lld -T a.lds a.o6# RUN: ld.lld -T a.lds a.o --noinhibit-exec 2>&1 | FileCheck %s --implicit-check-not=warning:7 8# CHECK:      warning: a.o has an STT_TLS symbol but doesn't have a PT_TLS segment9# CHECK-NEXT: warning: a.o has an STT_TLS symbol but doesn't have a PT_TLS segment10 11#--- a.lds12PHDRS {13  text PT_LOAD FLAGS(5);14  data PT_LOAD FLAGS(6);15}16 17SECTIONS {18  . = SIZEOF_HEADERS;19  .text : { *(.text .text.*) } :text20  .data : { *(.data .data.*) } :data21}22 23#--- a.s24.globl _start25_start:26  movl %fs:a@TPOFF, %eax27  movl %fs:b@TPOFF, %eax28 29.section .tbss,"awT"30a:31b:32  .long 033