[PATCH v3 0/3] aarch64: Fix scanning of GNU properties

Yury Khrustalev yury.khrustalev@arm.com
Wed Apr 2 13:05:23 GMT 2025


Fixes PR32818 [1] and adds relevant tests.
Regression tested on AArch64 and no regressions found. OK for trunk?

base commit: c4fce3ef292

[1] PR32818 https://sourceware.org/bugzilla/show_bug.cgi?id=32818

Changes in v3:
 - Addressed feedback from review of v2: (use find property function instead of
   for loop and renamed new tests).
 - Split fixing typo in a test into a separate commit.
Link to v2: https://inbox.sourceware.org/binutils/20250401150614.346237-1-yury.khrustalev@arm.com/

Changes in v2:
 - Added relevant tests.
Link to v1: https://inbox.sourceware.org/binutils/20250327170928.826438-1-yury.khrustalev@arm.com/

Yury Khrustalev (3):
  aarch64: ld: Fix scanning of GNU properties for AARCH64_FEATURE_1_AND
  aarch64: ld: add tests for combination of bti and memory-seal
  testsuite: fix typo in bti-plt-1-b.d test

 bfd/elfxx-aarch64.c                           | 31 +++++--------
 .../protections/bti-and-memory-seal-plt-1-a.d | 45 +++++++++++++++++++
 .../protections/bti-and-memory-seal-plt-1-b.d | 14 ++++++
 .../ld-aarch64/protections/bti-plt-1-b.d      |  2 +-
 4 files changed, 71 insertions(+), 21 deletions(-)
 create mode 100644 ld/testsuite/ld-aarch64/protections/bti-and-memory-seal-plt-1-a.d
 create mode 100644 ld/testsuite/ld-aarch64/protections/bti-and-memory-seal-plt-1-b.d

-- 
2.39.5



More information about the Binutils mailing list