[PATCH] ELF: Updated comments for ET_EXEC and ET_DYN

Fangrui Song i@maskray.me
Sat May 30 17:17:26 GMT 2020


I saw https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=ld/testsuite/ld-elf/pie.d;h=d68b962ca328a981dda980848b794ffd639780df;hb=5fe2850dd96483f176858fd75c098313d5b20bc2
It is a deliberate choice on non-Solaris platforms.

On Fri, May 29, 2020 at 6:10 PM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> On Fri, May 29, 2020 at 6:06 PM Fangrui Song <i@maskray.me> wrote:
> >
> > Does https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=d871d478061f10b0879c688e2fa941407e9137aa
> > start to set DF_1_PIE on non-Solaris platforms (e.g. Linux) as well?
>
> [hjl@gnu-cfl-2 x86-gcc]$ readelf -h /bin/ld | grep Type
>   Type:                              DYN (Shared object file)
> [hjl@gnu-cfl-2 x86-gcc]$ readelf -d /bin/ld | grep PIE
>  0x000000006ffffffb (FLAGS_1)            Flags: NOW PIE
> [hjl@gnu-cfl-2 x86-gcc]$
>
> --
> H.J.


More information about the Binutils mailing list