This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Can the dynamic linker run with !rtld_multiple_ref?
- From: Florian Weimer <fweimer at redhat dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Cc: "Carlos O'Donell" <carlos at redhat dot com>
- Date: Tue, 24 Jan 2017 12:16:47 +0100
- Subject: Can the dynamic linker run with !rtld_multiple_ref?
- Authentication-results: sourceware.org; auth=none
It seems that libc.so.6 has a DT_NEEDED entry for the dynamic linker on
all architectures because we need to dlopen objects even when not
linking against libdl (for gconv and NSS). The startup code references
__libc_start_main, which is defined in libc.so.6. Therefore, it seems
that rtld_multiple_ref in rtld.c is always true.
Is this correct? If yes, then we can clean this up a bit.
Thanks,
Florian