Repository navigation
Implement PInvoke Unix asm helpers - #1323
Conversation
|
@janvorli PTLA |
| movq _tls_CurrentThread@TLVP(%rip), %rdi | ||
| callq *(%rdi) | ||
| #else | ||
| leaq tls_CurrentThread@TLSLD(%rip), %rdi |
There was a problem hiding this comment.
This means that we are hardcoding support of only the Local Dynamic TLS model. Since the runtime is used as a static lib that can be linked into any kind of executable, I wonder how to support the other models, e.g. the Initial Exe one. Maybe we should later build separate version of the static lib for each (or subset of) model?
There was a problem hiding this comment.
The ELF loader will patch this with mov from fs and no-ops. There is no actual call here if you step through this code when it is statically linked into main executable. We could have a separate build flavors, but I doubt that it is worth it to save a few no-ops.
There was a problem hiding this comment.
Ah, cool. I didn't know the loader is able to recognize the code sequence.
|
LGTM |
No description provided.