Page 2 of 2

Posted: Tue Oct 09, 2007 1:58 pm
by Colonel Kernel
JamesM wrote::? so use --retain-symbols-file ...? :?

You're just describing the default, "out of the box" setup.
Hmmm... I haven't used that switch before. The one I've seen to hack around the difference I described is -Bsymbolic, which on Solaris 9 caused global constructors and destructors in the shared library to not run (probably because .init and .fini got killed or something).

In any case, if you can make ELF shared libraries behave like Windows DLLs, I think it's a safe bet that you can't do the opposite.

<edit>
BTW, is using --retain-symbols-file considered common practice? I'm pretty sure the use of -Bsymbolic is highly discouraged, at least on Solaris...
</edit>

Posted: Wed Oct 10, 2007 1:31 am
by JamesM
<edit>
BTW, is using --retain-symbols-file considered common practice? I'm pretty sure the use of -Bsymbolic is highly discouraged, at least on Solaris...
</edit>
I'm sorry, I have no idea! I use it to export only certain symbols from my kernel - I'm not sure if it's heavily used elsewhere.