(original) (raw)
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