[PATCH] Restore dlsym(RTLD_NEXT, ...) behaviour (take 2)

Ulrich Drepper drepper@redhat.com
Wed May 16 22:48:00 GMT 2001


Jakub Jelinek <jakub@redhat.com> writes:

> Ok, here are two variants of the patch.

Finally managed to look at the patches... and don't like them.  Code like


+             if (! _dl_loaded
+                 || _dl_loaded->l_addr != 0
+                 || caller < _dl_loaded->l_map_start)


makes certain assumptions about the memory layout and load addresses.
This should not happen.  There is no reason why the application code
should always be below all dynamically loaded code.  In fact, isn't
the x86 emulation on IA-64 doing something funny like this?

I hope I can take a look at this myself soon.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------



More information about the Libc-hacker mailing list