Open prabhjotsingh3 opened 2 months ago
Closed this issue by mistake. Is there any way to reopen it?
@llvm/issue-subscribers-backend-x86
Author: None (prabhjotsingh3)
Hi, Can anyone please provide some insights on the difference and how "movl $0x0,%gs:0xfffffffc" instruction works?
Hi,
The tls offsets used is different for target i386 and i386-unknonwn-linux for local-exec model.
Example code :-
For target i386 :- Command -
clang -ftls-model=local-exec --target=i386 -v thread.c
For target i386-unknown-linux :- Command -
clang -ftls-model=local-exec --target=i386-unknown-linux -v thread.c
Would be grateful if anyway could please let me know the reason for this and is there anyway to control this via clang arguments?