mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
fad1279c61
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 |