diff options
author | A. Wilcox <[email protected]> | 2025-05-27 00:05:44 -0500 |
---|---|---|
committer | Aaron Merey <[email protected]> | 2025-05-30 12:03:33 -0400 |
commit | 11db83c3c0ab0d0325165f448ea4b6b254d7e2ea (patch) | |
tree | 87c197c8408d5a03bd0abb1ccb9d39b48cd69c7d | |
parent | a1442fd3f4e6d2dbd770cc70d27925500569f993 (diff) |
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 <[email protected]>
-rw-r--r-- | backends/ppc_attrs.c | 12 |
1 files changed, 12 insertions, 0 deletions
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]; |