This is the mail archive of the
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: Pedro Alves <palves at redhat dot com>
- To: "Carlos O'Donell" <carlos at redhat dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 17 Mar 2015 09:54:35 +0000
- 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>
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).