This is the mail archive of the libc-alpha@sourceware.cygnus.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: [Various] libc/1609: Error in 'make check' origtest with testobj1.so


> Cc: Solar Designer <solar@false.com>, jrenken@sandwich.net (James Renken),
>         libc-alpha@sourceware.cygnus.com
> From: Andreas Jaeger <aj@suse.de>
> Date: 29 Feb 2000 07:50:16 +0100

> When debugging the problem, I noticed that the following piece of code
> from dl-open seemed to assign the wrong address:
> 
>       /* We have to find out from which object the caller is calling.
> 	 Find the highest-addressed object that ADDRESS is not below.  */
>       call_map = NULL;
>       for (l = _dl_loaded; l; l = l->l_next)
> 	if (l->l_addr != 0 /* Make sure we do not currently set this map up
> 			      in this moment.  */
> 	    && caller >= (const void *) l->l_addr
> 	    && (call_map == NULL || call_map->l_addr < l->l_addr))
> 	  call_map = l;

This should probably be using l_map_start and l_map_end, although that's
probably not the problem.

-- 
- Geoffrey Keating <geoffk@cygnus.com>

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