public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: "H.J. Lu" <hjl.tools@gmail.com>, Fangrui Song <i@maskray.me>
Cc: Binutils <binutils@sourceware.org>
Subject: Re: [PATCH] ELF: Updated comments for ET_EXEC and ET_DYN
Date: Sat, 30 May 2020 21:13:42 +0100	[thread overview]
Message-ID: <58296bbd-beef-02bd-d671-809334cba0c0@redhat.com> (raw)
In-Reply-To: <CAMe9rOq9oYZQ4eN3_33RgUtUB+EJkt6rHxNRfsiBo945VcWMxA@mail.gmail.com>

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


      parent reply	other threads:[~2020-05-30 20:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-25 18:28 H.J. Lu
2020-05-26 17:45 ` Fangrui Song
     [not found] ` <CAN30aBHV0wxmp0NvLFeyH1Yoed64UOJ0B74ejQgwrQNY-d93qg@mail.gmail.com>
2020-05-30  0:59   ` Fangrui Song
     [not found]   ` <MWHPR12MB14566C7EDEE9DC0828E00DA2CB8C0@MWHPR12MB1456.namprd12.prod.outlook.com>
2020-05-30  1:10     ` H.J. Lu
2020-05-30 17:17       ` Fangrui Song
2020-05-30 20:13       ` Pedro Alves [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58296bbd-beef-02bd-d671-809334cba0c0@redhat.com \
    --to=palves@redhat.com \
    --cc=binutils@sourceware.org \
    --cc=hjl.tools@gmail.com \
    --cc=i@maskray.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).