Re: RFC: Add PT_GNU_PROPERTY to cover .note.gnu.property section
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: "H.J. Lu" <hjl.tools@gmail.com>
- Subject: Re: RFC: Add PT_GNU_PROPERTY to cover .note.gnu.property section
- From: Cary Coutant <ccoutant@gmail.com>
- Date: Wed, 12 Dec 2018 08:12:11 -0800
- Authentication-results: sourceware.org; auth=none
- Cc: Mark Wielaard <mark@klomp.org>, Florian Weimer <fweimer@redhat.com>, Binutils <binutils@sourceware.org>, GNU C Library <libc-alpha@sourceware.org>, gnu-gabi@sourceware.org, x86-64-abi <x86-64-abi@googlegroups.com>
- Delivered-to: listarch-gnu-gabi@sourceware.org
- Delivered-to: mailing list gnu-gabi@sourceware.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YstNUB4wvaOq85MFsmuXymVngRQ5AZDQH1B8hR7E9n4=; b=PdDaKQ0EvYjvy2nVESNcr8PD6GDcTWpl2xdiIwKSbaCKT5wtzJwT0wdSKdyJ/ZCExk kHgCQL6QBpBItb9GqX31/2nmsY8bh82T8RDIVwWypgh9AHLABCav/mChl4Wg04sjkXsc ZSgk+f8vvzOuZRhJEo8ID3MUqBZEecSpAZ4he3D4XsSU40JzTnOJeI+bQy88xiv8T6aB ShwIyHRJ0/okWGYEs9aGKsos4rCUlTsBbcyE43Jt3yA7WODJ9dWXfuRV2lYkkv7z4AS4 GSrr7kFcoXHaaGumgGx1d289wotVbUguo3gpkbHu/c045lAJuYlGOM2dI/RE9wv/5o+f /wQw==
- In-reply-to: <CAMe9rOrgOu_EYnxqXOZa54Q0a36126a2o-DMFRVqv45Uor82pw@mail.gmail.com>
- List-help: <mailto:gnu-gabi-help@sourceware.org>
- List-id: <gnu-gabi.sourceware.org>
- List-post: <mailto:gnu-gabi@sourceware.org>
- List-subscribe: <mailto:gnu-gabi-subscribe@sourceware.org>
- Mailing-list: contact gnu-gabi-help@sourceware.org; run by ezmlm
- References: <87k1kyhbki.fsf@oldenburg.str.redhat.com> <CAMe9rOq6AgykBthApfHsFgbTHM9LjocDP-DNjB=Dht5uOagT7g@mail.gmail.com> <CAJimCsEDCNWBZsMEMeco0Vkj03iXML08KpLvAxC3DtyzXq8abA@mail.gmail.com> <CAMe9rOqHfqfbu_V1bPgykyN352btS8eZpRm-HAwJDfTf_Fiy-Q@mail.gmail.com> <CAMe9rOp7C_HS4cg-GcHH6NhT5oP-BxzE9emc6+Szx_-mAvxONw@mail.gmail.com> <CAMe9rOq4viqCYVXuVbyzTY0R0XVxzjc_tis9Uxw9OmgZRYcOjA@mail.gmail.com> <CAMe9rOp724pNQhndd8_-bVOS=42=0a4Ajsmgi2LUzA1P2BeWvw@mail.gmail.com> <87zhtcz7cg.fsf@oldenburg2.str.redhat.com> <20181211131933.GA9599@gmail.com> <CAJimCsGvEf5PF81n_-=M78UX81UY_stg_6_wMmYsM_kczOh3-w@mail.gmail.com> <20181212104449.GB62340@wildebeest.org> <CAMe9rOrgOu_EYnxqXOZa54Q0a36126a2o-DMFRVqv45Uor82pw@mail.gmail.com>
- Sender: gnu-gabi-owner@sourceware.org
> > > As you might expect, I support this new program header. Ideally, I'd > > > have liked to replace the input SHT_NOTE sections with > > > SHT_GNU_PROPERTY sections and dispense with all the note section > > > overhead, but I'll take this as a compromise. > > > > Why can't we switch to SHT_GNU_PROPERTY? My fear with combining > > PT_GNU_PROPERTY with SHT_NOTE is that it will be even more confusing > > There is no requirement for PT_XXX to have SHT_XXX, like PT_GNU_RELRO. But it is not normal for the linker to perform such special processing on an SHT_NOTE section. When a section requires special processing, it is customary to use a new section type. Otherwise, the linker has to resort to string matching on the section name. Section names in ELF are not supposed to have special meaning to the linker. > > Also I thought there was still a question whether any or all > > newly proposed property features and flags are actually needed > > as loadable segments. There is a clear overlap with the GNU > > Attributes (which are non-loadable). I would like to see consensus > > first on the new property format/flags and which are and which > > aren't needed as loadable properties at runtime. > > Yes, they are needed in loadable segment. That is the main motivation > for GNU program property, The only properties required in a loadable segment are those that will be used by the loader. From what I can tell so far, the USED bits can't be used by the loader, so why can't they go in the GNU attributes section? -cary
- Follow-Ups:
- Re: RFC: Add PT_GNU_PROPERTY to cover .note.gnu.property section
- From: "H.J. Lu" <hjl.tools@gmail.com>
- Re: RFC: Add PT_GNU_PROPERTY to cover .note.gnu.property section
- References:
- Re: RFC: Linux gABI: Add a GNU_PROPERTY_BY_LINKER property
- From: Florian Weimer <fweimer@redhat.com>
- Re: RFC: Linux gABI: Add a GNU_PROPERTY_BY_LINKER property
- From: "H.J. Lu" <hjl.tools@gmail.com>
- Re: RFC: Linux gABI: Add a GNU_PROPERTY_BY_LINKER property
- From: Cary Coutant <ccoutant@gmail.com>
- Re: RFC: Linux gABI: Add a GNU_PROPERTY_BY_LINKER property
- From: "H.J. Lu" <hjl.tools@gmail.com>
- Re: RFC: Linux gABI: Add a GNU_PROPERTY_BY_LINKER property
- From: "H.J. Lu" <hjl.tools@gmail.com>
- RFC: Add PT_GNU_PROPERTY to cover .note.gnu.property section
- From: "H.J. Lu" <hjl.tools@gmail.com>
- Re: RFC: Add PT_GNU_PROPERTY to cover .note.gnu.property section
- From: "H.J. Lu" <hjl.tools@gmail.com>
- Re: RFC: Add PT_GNU_PROPERTY to cover .note.gnu.property section
- From: Florian Weimer <fweimer@redhat.com>
- Re: RFC: Add PT_GNU_PROPERTY to cover .note.gnu.property section
- From: "H.J. Lu" <hjl.tools@gmail.com>
- Re: RFC: Add PT_GNU_PROPERTY to cover .note.gnu.property section
- From: Cary Coutant <ccoutant@gmail.com>
- Re: RFC: Add PT_GNU_PROPERTY to cover .note.gnu.property section
- From: Mark Wielaard <mark@klomp.org>
- Re: RFC: Add PT_GNU_PROPERTY to cover .note.gnu.property section
- From: "H.J. Lu" <hjl.tools@gmail.com>
- Re: RFC: Linux gABI: Add a GNU_PROPERTY_BY_LINKER property
- Prev by Date: Re: RFC: Add PT_GNU_PROPERTY to cover .note.gnu.property section
- Next by Date: Re: RFC: Add PT_GNU_PROPERTY to cover .note.gnu.property section
- Previous by thread: Re: RFC: Add PT_GNU_PROPERTY to cover .note.gnu.property section
- Next by thread: Re: RFC: Add PT_GNU_PROPERTY to cover .note.gnu.property section
- Index(es):