This is the mail archive of the
mailing list for the glibc project.
Re: [Various] libc/1609: Error in 'make check' origtest with testobj1.so
> Cc: Solar Designer <email@example.com>, firstname.lastname@example.org (James Renken),
> From: Andreas Jaeger <email@example.com>
> 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 <firstname.lastname@example.org>