This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


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

Re: glibc 2.2.4pre2


Andreas Jaeger <aj@suse.de> writes:

> Jakub Jelinek <jakub@redhat.com> writes:
>
>> On Wed, Aug 08, 2001 at 10:10:18AM +0200, Andreas Jaeger wrote:
>> > > Does atexit work properly there? If yes, the better.
>>> 
>>> It passes the testsuite
>>
>> That's because:
>>
>>   if (&__dso_handle == NULL)
>>     {
>>       puts ("__dso_handle not available, cannot perform the test");
>>       exit (0);
>>     }
>>
>> but that means atexit won't work properly (it will not run the exit handlers
>> at dlclose time).
>>
>>> - but we do not have yet the __dso_handle patch in.
>>> 
>>> Jakub, can you post the patch again - or send a URL?
>>
>> http://gcc.gnu.org/ml/gcc/2001-06/msg00748.html
>
> The patch has one bug, you do not include "auto-host.h" and therefore
> HAVE_GAS_HIDDEN is not defined at all :-(.
>
> Here's a patch on top of it.  I'm testing glibc now with a GCC
> compiled with this patch,


Does this look correct?  

gee:/builds/glibc/main-gcc-2.95/dlfcn:[0]$ readelf -a modcxaatexit.so  |grep dso 
    58: 00001954     0 OBJECT  LOCAL  HIDDEN   15 __dso_handle

I still get:

gee:/builds/glibc/main-gcc-2.95/dlfcn:[1]$ LD_LIBRARY_PATH=. ./tstcxaatexit
This is bar
module unload didn't change `v'
Segmentation fault

:-(

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

PGP signature


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