https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83074

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Stefan Vargyas from comment #3)
> This feature is quite useful in practice -- for example, the
> GNU C library is runnable this way too:
> 
>   $ /lib64/libc.so.6
>   GNU C Library stable release version 2.11.3 (20110527), by Roland McGrath
> et al.
>   ...

libc.so.6 is a shared library, not a PIE.  It is normally linked with -shared,
just arranged to have .interp section and a meaningful e_entry in Ehdr.
PIE is something significantly different, in particular it is the executable,
albeit position independent, e.g. required to be the first in symbol search
scope so that its symbols bind locally.

Reply via email to