This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RFC: Document GNU_PROPERTY_X86_XXX
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Cary Coutant <ccoutant at gmail dot com>, "Carlos O'Donell" <carlos at redhat dot com>, Florian Weimer <fweimer at redhat dot com>
- Cc: x86-64-abi <x86-64-abi at googlegroups dot com>, Binutils <binutils at sourceware dot org>
- Date: Mon, 20 Aug 2018 12:29:03 -0700
- Subject: Re: RFC: Document GNU_PROPERTY_X86_XXX
- References: <CAMe9rOqoWn0vT6TmXkwD5SDDdPWEit=+41PTjRH4kssbDRDq7g@mail.gmail.com>
On Mon, Aug 13, 2018 at 8:45 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Fri, Aug 10, 2018 at 3:40 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
>> On Fri, Aug 10, 2018 at 3:23 PM, Cary Coutant <ccoutant@gmail.com> wrote:
>>>> Add GNU_PROPERTY_X86_FEATURE_2_USED and GNU_PROPERTY_X86_FEATURE_2_NEEDED
>>>> to NT_GNU_PROPERTY_TYPE_0 note to mark processor features used and
>>>> required in x86 ELF binaries. These 2 new properties can be used together
>>>> GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED to describe
>>>> instruction sets and processor features contained in x86 ELF binaries.
>>>> ...
>>>> Any comments?
>>>
>>> Do you expect the FEATURE_2_USED property to be treated the same as
>>> the ISA_USED property -- namely, that if any object is missing the
>>> property (or has all zeroes), the output should not have the property?
>>
>> Yes.
>>
>>> It seems to me that you should generalize the types of merging
>>> operations that a linker is expected to perform, and encode that as
>>> part of the property, so that the linker doesn't need to special-case
>>> the handling of every new property.
>>
>> It sounds a good idea. We have
>>
>> #define GNU_PROPERTY_X86_ISA_1_USED 0xc0000000
>>
>> What is the best way to add a generic type marker to include
>> it?
>>
>
> Here is a proposal to add GNU_PROPERTY_X86_XXX. GNU_PROPERTY_X86_ISA_1_USED
> and GNU_PROPERTY_X86_ISA_1_NEEDED values are different from existing
> values. The
> original values are left unused. Any comments?
>
Here is the update x86-64 psABI pdf file:
https://github.com/hjl-tools/x86-psABI/wiki/x86-64-psABI-property.pdf
Binutils patches are posted at
https://sourceware.org/ml/binutils/2018-08/msg00321.html
I will check them into binutils master banch this Friday.
--
H.J.