]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
backends: define strings for all sparc hwcap bits
authorMark Wielaard <mark@klomp.org>
Thu, 16 Jul 2026 20:47:18 +0000 (22:47 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 16 Jul 2026 20:58:07 +0000 (22:58 +0200)
Not all sparc hwcaps bits do have a defined meaning. For those that
don't we use the "resvBIT" string, where BIT is 0..31. Bits 29 to 31
weren't defined, but we forgot to add the "resv29" string causing an
off-by one when trying to find the name for bit 30 (called "resv31")
and 31 (not set, so NULL).

* backends/sparc_attrs.c (sparc_check_object_attribute):
insert "resv29" into hwcaps array.

https://sourceware.org/bugzilla/show_bug.cgi?id=34402

Reported-by: nathan auvray <nathan.auvray60@gmail.com>
Signed-off-by: Mark Wielaard <mark@klomp.org>
backends/sparc_attrs.c

index 974e8fb0b7d1f6a0792393bc8621fda69a690516..ee86e322e8f0234fb80ea52ef63a02ab57782831 100644 (file)
@@ -47,7 +47,7 @@ sparc_check_object_attribute (Ebl *ebl __attribute__ ((unused)),
       "asi_blk_init", "fmaf", "vis3", "hpc", "random", "trans",
       "fjfmau", "ima", "asi_cache_sparing", "aes", "des", "kasumi",
       "camellia", "md5", "sha1", "sha256", "sha512", "mpmul", "mont",
-      "pause", "cbcond", "crc32c", "resv30", "resv31"
+      "pause", "cbcond", "crc32c", "resv29", "resv30", "resv31",
     };