From: A. Wilcox Date: Tue, 27 May 2025 05:05:44 +0000 (-0500) Subject: backends/ppc_attrs.c: Add PPC long double tags X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=11db83c3c0ab0d0325165f448ea4b6b254d7e2ea;p=thirdparty%2Felfutils.git backends/ppc_attrs.c: Add PPC long double tags When an explicit type of long double is specified in the ELF GNU_Power_ABI_FP attribute, elflint and friends were erroring out: section [36] '.gnu.attributes': offset 15: unrecognized GNU_Power_ABI_FP attribute value 9 Add the different long double tags to fp_kinds so that these values are correctly recognised and printed. Signed-off-by: A. Wilcox --- diff --git a/backends/ppc_attrs.c b/backends/ppc_attrs.c index 48d7129d..6b00bccd 100644 --- a/backends/ppc_attrs.c +++ b/backends/ppc_attrs.c @@ -52,6 +52,18 @@ ppc_check_object_attribute (Ebl *ebl __attribute__ ((unused)), "Hard float", "Soft float", "Single-precision hard float", + "Hard or soft float (IBM style long doubles)", + "Hard float (IBM style long doubles)", + "Soft float (IBM style long doubles)", + "Single-precision hard float (IBM style long doubles)", + "Hard or soft float (64-bit long doubles)", + "Hard float (64-bit long doubles)", + "Soft float (64-bit long doubles)", + "Single-precision hard float (64-bit long doubles)", + "Hard or soft float (IEEE 128-bit long doubles)", + "Hard float (IEEE 128-bit long doubles)", + "Soft float (IEEE 128-bit long doubles)", + "Single-precision hard float (IEEE 128-bit long doubles)", }; if (value < sizeof fp_kinds / sizeof fp_kinds[0]) *value_name = fp_kinds[value];