[LLD] Segmentation fault in case of TLS mismatch

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: