Closed sbc100 closed 1 week ago
Why doesn't this function actually need to work?
The function is only used to keep track of shared library loading (i.e. when MAIN_MODULE
is defined).
The problem is that the native code that calls this function cannot distinguish between MAIN_MODULE
and RELOCATABLE
since we only build just one PIC flavor of libc.. not one for MAIN_MODULE
and another for RELOCATABLE
.
I would really love to completely get rid of the "RELOCATABLE but not MAIN_MODULE" build mode one day.. because I don't think it has any/many valid uses.
Fixes: #22108