This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH to support __cxa_atexit


On Fri, Dec 17, 1999 at 06:03:28PM -0800, Mark Mitchell wrote:
> However, dlopen'd DSOs keep their own value of __dso_handle; I know
> this because I tried it.  Although that could be a bug in ld.so, I
> suppose.

How did you try it?  The gnu linker by default does not export
symbols from applications if they are not referred to by some
shared library they're linked against.

So a valid test would require that you either link the application
against a second library that referenced __dso_handle, or that
you use --export-dynamic when linking the application.

What's needed is some of the ELF extensions recently approved by
the committee but not yet implemented in gnu ld (or anywhere else
for that matter).  I'm thinking here of STV_PROTECTED.



r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]