Re: __cxa_atexit and __dso_handle

2003-07-06 Thread Martin v. Löwis
[EMAIL PROTECTED] (David N. Welton) writes: > Since I don't have shared libraries, is it ok if I just define it, > just so it's there? > > void* __dso_handle = (void*) &__dso_handle; That should work, yes. > BTW, can you also confirm that this is for C++ only? In GCC, it is for C++ only, yes

Re: __cxa_atexit and __dso_handle

2003-07-06 Thread David N. Welton
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: [ Please CC replies to me - thankyou ] > David N. Welton wrote: > > The problem is that despite using -nostdlib whilst compiling, I > > still get __cxa_atexit and __dso_handle defined in my .o files > > (yes, eCos utilizes C++ in places). > I think

Re: __cxa_atexit and __dso_handle

2003-07-06 Thread "Martin v. Löwis"
David N. Welton wrote: The problem is that despite using -nostdlib whilst compiling, I still get __cxa_atexit and __dso_handle defined in my .o files (yes, eCos utilizes C++ in places). I think the problem is not that you are getting definitions, but that you are getting references to these symbol