[PATCH] elf: Make tst-ro-dynamic-mod.map compatible with older binutils

Florian Weimer fweimer@redhat.com
Mon Jan 20 19:05:40 GMT 2025


Older versions such as binutils 2.35.2 do not recognize
PT_GNU_PROPERTY.

Fixes commit d3f2b71ef1d146137a25dd1367d97a14fac341c6
("aarch64: Fix tests not compatible with targets supporting GCS").

Tested on x86_64-linux-gnu.  Current binutils still produces the correct
note when --enable-cet is used, as far as I can see.

---
 elf/tst-ro-dynamic-mod.map | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elf/tst-ro-dynamic-mod.map b/elf/tst-ro-dynamic-mod.map
index 2a158480c0..8fdd2b0ec4 100644
--- a/elf/tst-ro-dynamic-mod.map
+++ b/elf/tst-ro-dynamic-mod.map
@@ -11,5 +11,5 @@ PHDRS
  text PT_LOAD FLAGS(5) FILEHDR PHDRS;
  dynamic PT_DYNAMIC FLAGS(4);
  note PT_NOTE FLAGS(4);
- gnu_property PT_GNU_PROPERTY FLAGS(4);
+ gnu_property /* PT_GNU_PROPERTY */ 0x6474e553 FLAGS(4);
 }

base-commit: b3a6bd625ce96bcec0e5d41b9835b1367d97e548



More information about the Libc-alpha mailing list