See this answer .
int Func() __asm__("_Func@X");
This will force GCC to call the _Func@X character no matter what it would normally do.
Oh right, @ is special: it is used to control character versions. I thought __asm__("...@...") used to working, but I think this is no more.
int Func() __asm__("_Func"); __asm__(".symver _Func, _Func@X");
This should be followed by a version script file, for example:
1 { global: _Func; };
specified by gcc -Wl,--version-script=foo.version when linking.
ephemient
source share