[LLVMdev] [LLD] Segmentation fault in case of TLS mismatch

shridHar joshi shridhar.j8 at gmail.com
Fri Jul 24 03:28:56 PDT 2015


Hello,

In case a variable is defined as TLS and referenced as non TLS, lld causes
segmentation fault.
Filed new bug 24244 and working on it.

Test case:

test.c:
==================
extern int tlsvar;

int main() {
   printf("%d\n",tlsvar);
   return 0;
}
==================

tls.c
==================
int __thread tlsvar = 10;

==================


-Shridhar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150724/5e63405c/attachment.html>


More information about the llvm-dev mailing list