This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: 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>, Carlos O'Donell <carlos at redhat dot com>
- Date: Sun, 25 Jun 2017 18:20:34 +0200
- Subject: Re: Can the dynamic linker run with !rtld_multiple_ref?
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=fweimer at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 683668123D
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 683668123D
- References: <fd34f067-f9b2-f3aa-0415-8d180a0cc2dd@redhat.com> <20170317032144.GH24205@vapier>
On 03/17/2017 04:21 AM, Mike Frysinger wrote:
> On 24 Jan 2017 12:16, Florian Weimer wrote:
>> 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.
>
> looking at just purely symbol pov, these are provided by ld-linux but
> used by libc.so:
> _dl_argv
> ___tls_get_addr
> _rtld_global_ro
> _rtld_global
> __libc_enable_secure
> __libc_stack_end
Does this mean that you agree that rtld_multiple_ref is always true?
Thanks,
Florian