[PATCH v2 1/2] ld: aarch64: Fix scanning of GNU properties for AARCH64_FEATURE_1_AND

Yury Khrustalev yury.khrustalev@arm.com
Tue Apr 1 15:31:52 GMT 2025


On Tue, Apr 01, 2025 at 04:23:27PM +0100, Richard Earnshaw (lists) wrote:
> > @@ -936,8 +936,7 @@ _bfd_aarch64_elf_link_setup_gnu_properties (struct bfd_link_info *info)
> >      {
> >        /* The property list is sorted in order of type.  */
> 
> So this comment is wrong and should be corrected, I presume.

No, the comment is correct, the properties are sorted by pr_type in
ascending order, however since right now we are interested in only
one property, we don't rely on or use this sorting in any way.

Also see Matthieu's comment in [1].

[1] https://inbox.sourceware.org/binutils/96953853-b125-485d-8499-9a5445f58849@arm.com/

Kind regards,
Yury



More information about the Binutils mailing list