From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 54980 invoked by alias); 9 Nov 2016 13:52:18 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 54957 invoked by uid 89); 9 Nov 2016 13:52:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.8 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=ldl X-HELO: mx1.redhat.com Subject: Re: Pending fixes for all-ABIs builds To: Andreas Schwab References: <35e9c513-c873-3d7e-38e4-6aa14e9ef245@redhat.com> <0a922f13-5130-51ca-fc73-6c003dbb20ce@redhat.com> Cc: Joseph Myers , libc-alpha@sourceware.org From: Florian Weimer Message-ID: Date: Wed, 09 Nov 2016 13:52:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2016-11/txt/msg00336.txt.bz2 On 11/09/2016 02:47 PM, Andreas Schwab wrote: > On Nov 09 2016, Florian Weimer wrote: > >> On 11/09/2016 02:26 PM, Andreas Schwab wrote: >>> On Nov 09 2016, Florian Weimer wrote: >>> >>>> On 11/09/2016 10:01 AM, Andreas Schwab wrote: >>>>> On Nov 09 2016, Florian Weimer wrote: >>>>> >>>>>> Does this mean the dynamic linker starts with it's GOT pointer as NULL, >>>>>> initializes that to point it to the malloc in elf/dl-minimal.c, and then, >>>>>> once libc.so.6 is relocated updates its GOT pointer to point to the malloc >>>>>> in libc.so.6? >>>>> >>>>> ld.so re-relocates itself after all static dependencies have been loaded >>>>> and relocated. >>>> >>>> And even at this point, the code is used for future dynamic linking >>>> operations? >>> >>> "The code" refers to what? >> >> The code in ld.so. > > If that's the only one. Does this mean that if the application links against -ldl and invokes dlopen, a different dynamic linker implementation is used? And the ld.so implementation is only used for internal dynamic loading, e.g. for NSS modules or gconv modules? Thanks, Florian