|
|
8c60bf |
From 817bd9376dd01039a30dfc4cf9dddd8cdd247446 Mon Sep 17 00:00:00 2001
|
|
|
8c60bf |
From: Mark Wielaard <mark@klomp.org>
|
|
|
8c60bf |
Date: Wed, 15 Feb 2017 14:30:27 +0100
|
|
|
8c60bf |
Subject: [PATCH] backends: Add support for EM_PPC64 GNU_ATTRIBUTES.
|
|
|
8c60bf |
|
|
|
8c60bf |
ppc64 and ppc64le ELF files can also contain a power specific
|
|
|
8c60bf |
.gnu.attributes section. Add support for those and recognize the new
|
|
|
8c60bf |
GNU_Power_ABI_FP Single-precision hard float value.
|
|
|
8c60bf |
|
|
|
8c60bf |
Signed-off-by: Mark Wielaard <mark@klomp.org>
|
|
|
8c60bf |
---
|
|
|
8c60bf |
diff --git a/backends/ppc64_init.c b/backends/ppc64_init.c
|
|
|
8c60bf |
index 2ba8232..11d3a77 100644
|
|
|
8c60bf |
--- a/backends/ppc64_init.c
|
|
|
8c60bf |
+++ b/backends/ppc64_init.c
|
|
|
8c60bf |
@@ -67,6 +67,7 @@ ppc64_init (Elf *elf __attribute__ ((unused)),
|
|
|
8c60bf |
HOOK (eh, syscall_abi);
|
|
|
8c60bf |
HOOK (eh, core_note);
|
|
|
8c60bf |
HOOK (eh, auxv_info);
|
|
|
8c60bf |
+ HOOK (eh, check_object_attribute);
|
|
|
8c60bf |
HOOK (eh, abi_cfi);
|
|
|
8c60bf |
/* gcc/config/ #define DWARF_FRAME_REGISTERS. */
|
|
|
8c60bf |
eh->frame_nregs = (114 - 1) + 32;
|
|
|
8c60bf |
diff --git a/backends/ppc_attrs.c b/backends/ppc_attrs.c
|
|
|
8c60bf |
index 612c576..48d7129 100644
|
|
|
8c60bf |
--- a/backends/ppc_attrs.c
|
|
|
8c60bf |
+++ b/backends/ppc_attrs.c
|
|
|
8c60bf |
@@ -51,6 +51,7 @@ ppc_check_object_attribute (Ebl *ebl __attribute__ ((unused)),
|
|
|
8c60bf |
"Hard or soft float",
|
|
|
8c60bf |
"Hard float",
|
|
|
8c60bf |
"Soft float",
|
|
|
8c60bf |
+ "Single-precision hard float",
|
|
|
8c60bf |
};
|
|
|
8c60bf |
if (value < sizeof fp_kinds / sizeof fp_kinds[0])
|
|
|
8c60bf |
*value_name = fp_kinds[value];
|
|
|
8c60bf |
|
|
|
8c60bf |
--
|
|
|
8c60bf |
1.8.3.1
|
|
|
8c60bf |
|