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

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

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


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   `------------------------


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