[llvm-dev] RFC: Add GNU_PROPERTY_UINT32_AND_XXX/GNU_PROPERTY_UINT32_OR_XXX

H.J. Lu via llvm-dev llvm-dev at lists.llvm.org
Thu Jun 17 11:59:22 PDT 2021


On Thu, Jan 21, 2021 at 7:02 AM H.J. Lu <hjl.tools at gmail.com> wrote:
>
> On Wed, Jan 13, 2021 at 9:06 AM H.J. Lu <hjl.tools at gmail.com> wrote:
> >
> > 1. GNU_PROPERTY_UINT32_AND_LO..GNU_PROPERTY_UINT32_AND_HI
> >
> >  #define GNU_PROPERTY_UINT32_AND_LO 0xb0000000
> >  #define GNU_PROPERTY_UINT32_AND_HI 0xb0007fff
> >
> > A bit in the output pr_data field is set only if it is set in all
> > relocatable input pr_data fields.  If all bits in the the output
> > pr_data field are zero, this property should be removed from output.
> >
> > If the bit is 1, all input relocatables have the feature.  If the
> > bit is 0 or the property is missing, the info is unknown.
> >
> > 2. GNU_PROPERTY_UINT32_OR_LO..GNU_PROPERTY_UINT32_OR_HI
> >
> >  #define GNU_PROPERTY_UINT32_OR_LO 0xb0008000
> >  #define GNU_PROPERTY_UINT32_OR_HI 0xb000ffff
> >
> > A bit in the output pr_data field is set if it is set in any
> > relocatable input pr_data fields. If all bits in the the output
> > pr_data field are zero, this property should be removed from output.
> >
> > If the bit is 1, some input relocatables have the feature.  If the
> > bit is 0 or the property is missing, the info is unknown.
> >
> > The PDF is at
> >
> > https://gitlab.com/x86-psABIs/Linux-ABI/-/wikis/uploads/0690db0a3b7e5d8a44e0271a4be54aa7/linux-gABI-and-or-2021-01-13.pdf
> >
> > --
> > H.J.
>
> Here is the binutils patch to implement it.
>

If there are no objections, I will check it in tomorrow.


-- 
H.J.


More information about the llvm-dev mailing list