]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
backends/ppc_attrs.c: Add PPC long double tags
authorA. Wilcox <AWilcox@Wilcox-Tech.com>
Tue, 27 May 2025 05:05:44 +0000 (00:05 -0500)
committerAaron Merey <amerey@redhat.com>
Fri, 30 May 2025 16:03:33 +0000 (12:03 -0400)
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 <AWilcox@Wilcox-Tech.com>
backends/ppc_attrs.c

index 48d7129d01b814d8d1798880d9904258f653f22a..6b00bccdfb94f00e5f13f44f8acd947620cbfba3 100644 (file)
@@ -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];