[PATCH] ELF: Updated comments for ET_EXEC and ET_DYN

Pedro Alves palves@redhat.com
Sat May 30 20:13:42 GMT 2020


On 5/30/20 2:10 AM, H.J. Lu via Binutils 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]$
> 

Gold doesn't set it though: https://sourceware.org/bugzilla/show_bug.cgi?id=26039

Thanks,
Pedro Alves



More information about the Binutils mailing list