This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Is it a GNU Tools failure that PIE use ET_DYN and can't be distinguished from libraries?
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 17 Mar 2015 09:36:37 -0400
- Subject: Re: Is it a GNU Tools failure that PIE use ET_DYN and can't be distinguished from libraries?
- Authentication-results: sourceware.org; auth=none
- References: <55070AEC dot 5080107 at redhat dot com> <20150316183152 dot GF877 at vapier> <5507F9DB dot 5090104 at redhat dot com>
On 03/17/2015 05:54 AM, Pedro Alves wrote:
> On 03/16/2015 06:31 PM, Mike Frysinger wrote:
>> i don't think ET_DYN vs ET_EXEC matters. some main executables export their
>> symbols so that they can be found by plugins they load later on, not so that
>> other things can dlopen them directly. off the top of my head, iproute2 does
>> exactly this.
>
> Even GDB does this, so that glibc's libthread_db.so, which is dlopened by
> gdb, can find some gdb symbols it needs call (gdb/proc-service.list).
Very good point, I had forgotten entirely about this.
Cheers,
Carlos.