From: Mark Wielaard Date: Thu, 16 Jul 2026 20:47:18 +0000 (+0200) Subject: backends: define strings for all sparc hwcap bits X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=01a933566e2606e17893a72121e70c81ba7558dc;p=thirdparty%2Felfutils.git backends: define strings for all sparc hwcap bits 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 Signed-off-by: Mark Wielaard --- diff --git a/backends/sparc_attrs.c b/backends/sparc_attrs.c index 974e8fb0..ee86e322 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", };