This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Skip PT_DYNAMIC segment if its p_filesz == 0 [BZ #22101]
- From: Zack Weinberg <zackw at panix dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 26 Sep 2017 10:44:47 -0400
- Subject: Re: [PATCH] Skip PT_DYNAMIC segment if its p_filesz == 0 [BZ #22101]
- Authentication-results: sourceware.org; auth=none
- References: <20170926003314.GA18765@gmail.com> <CAKCAbMhF6M8VGs+nybEsjCEXKNwCxOteRc6Wac4sjQ1Zydtg9Q@mail.gmail.com> <CAMe9rOqUUdZDiztO_mo=10GOWJp4UqocrU9RFF4Xty6uVDkpyw@mail.gmail.com> <CAKCAbMhqh7dwqW6N6W+W5v4p=C=iTKQs7gXDLHFDz9Y04XbziA@mail.gmail.com> <CAMe9rOrojePiwA=q5OUuvBJj6eu_1RjWeCfGkc_pBgSRpgQxoQ@mail.gmail.com>
On Mon, Sep 25, 2017 at 9:46 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On 9/25/17, Zack Weinberg <zackw@panix.com> wrote:
>> What
>> _exactly_ does our ld.so do with this now, in the absence of your
>> change?
>
> ld.so simply crashes without my change:
OK, in that case I am fine with the patch, _except_:
>> (And I'd like you to specifically check that your change doesn't break
>> GDB's ability to load debug-only objects, even though I'm pretty sure
>> it doesn't use dlopen to do it.)
>
> GDB doesn't call dlopen to load debug-only objects.
I want you to test it anyway.
zw