From: Mark Wielaard <mark@klomp.org>
To: "H.J. Lu" <hjl.tools@gmail.com>
Cc: Fangrui Song <i@maskray.me>, Cary Coutant <ccoutant@gmail.com>,
"Zhang, Annita" <annita.zhang@intel.com>,
"Liu, Hongtao" <hongtao.liu@intel.com>,
gnu-gabi <gnu-gabi@sourceware.org>,
Binutils <binutils@sourceware.org>
Subject: Re: binutils ld and new PT_GNU_PROPERTY segment
Date: Thu, 20 Feb 2020 09:37:00 -0000 [thread overview]
Message-ID: <f661f98effcc200f28c3e64e6bc40bb5ae60c5a5.camel@klomp.org> (raw)
In-Reply-To: <CAMe9rOoqH9kQ7ipiYWZPV4mwyKNU-k+TRX53E-ZNokOps2bpsg@mail.gmail.com>
Hi,
On Wed, 2020-02-19 at 14:17 -0800, H.J. Lu wrote:
> On Wed, Feb 19, 2020 at 1:46 PM Mark Wielaard <mark@klomp.org> wrote:
> > This code isn't in the kernel yet. So either it gets changed to use the
> > existing scheme with gnu property notes found through PT_NOTE to work
> > with existing binaries. Then there is no need for PT_GNU_PROPERTY
> > headers.
> >
> > Or some future kernel will start using PT_GNU_PROPERTY headers to find
> > the gnu property notes. But that means it won't work with existing
> > binaries that do not have that header. So there is no backwards
> > compatibility anyway and we can define SHT_GNU_PROPERTY like above.
> >
> > So this actually seems the perfect time to make this decision.
>
> Binaries with .note.gnu.property section have been put into many
> OS releases. We must support them.
OK. Then it is option 1. The kernel will need to support PT_NOTE for
parsing the properties, since such older binaries won't have a
PT_GNU_PROPERTY program header. Then we can simply get rid of
PT_GNU_PROPERTY since nobody uses it and all information is already
available through the PT_NOTE segment.
Cheers,
Mark
next prev parent reply other threads:[~2020-02-20 9:37 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-18 12:38 Mark Wielaard
2020-02-18 12:49 ` H.J. Lu
2020-02-19 2:31 ` Fangrui Song via binutils
2020-02-19 5:33 ` Zhang, Annita
2020-02-19 10:58 ` Mark Wielaard
2020-02-19 11:40 ` H.J. Lu
2020-02-19 12:02 ` Mark Wielaard
2020-02-19 12:28 ` H.J. Lu
2020-02-19 12:30 ` H.J. Lu
2020-02-19 13:17 ` Mark Wielaard
2020-02-19 13:45 ` H.J. Lu
2020-02-19 18:27 ` Fangrui Song
2020-02-19 19:29 ` H.J. Lu
2020-02-19 21:46 ` Mark Wielaard
2020-02-19 22:18 ` H.J. Lu
2020-02-20 9:37 ` Mark Wielaard [this message]
2020-02-20 11:51 ` H.J. Lu
2020-02-20 21:43 ` Fangrui Song
2020-02-21 3:00 ` H.J. Lu
2020-02-20 22:43 ` Mark Wielaard
2020-02-22 5:19 ` Fangrui Song
2020-04-01 8:46 ` Florian Weimer
2020-04-01 9:22 ` Szabolcs Nagy
2020-04-01 9:29 ` Florian Weimer
2020-04-01 10:10 ` Szabolcs Nagy
2020-04-01 10:21 ` Florian Weimer
2020-02-19 10:49 ` Mark Wielaard
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=f661f98effcc200f28c3e64e6bc40bb5ae60c5a5.camel@klomp.org \
--to=mark@klomp.org \
--cc=annita.zhang@intel.com \
--cc=binutils@sourceware.org \
--cc=ccoutant@gmail.com \
--cc=gnu-gabi@sourceware.org \
--cc=hjl.tools@gmail.com \
--cc=hongtao.liu@intel.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).