mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 15:38:22 +00:00
If cosmo_dlopen() is linked on AMD64 then the runtime will switch to using %gs for thread-local storage. This eliminates the need for the imported symbol trampoline. It's now safer to pass function pointers back and forth with imported libraries. Your program gets recompiled at runtime to make it happen and the overhead is a few milliseconds. |
||
---|---|---|
.. | ||
BUILD.mk | ||
dlfcn.h | ||
dlopen.c | ||
foreign_tramp.S | ||
stubs.c |