[COMMITTED] backends: define strings for all sparc hwcap bits
Mark Wielaard
mark@klomp.org
Thu Jul 16 20:59:08 GMT 2026
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backends/sparc_attrs.c b/backends/sparc_attrs.c
index 974e8fb0b7d1..ee86e322e8f0 100644
--- a/backends/sparc_attrs.c
+++ b/backends/sparc_attrs.c
@@ -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",
};
--
2.55.0
More information about the Elfutils-devel
mailing list