summaryrefslogtreecommitdiffstats
path: root/backends/ppc_symbol.c
diff options
context:
space:
mode:
Diffstat (limited to 'backends/ppc_symbol.c')
-rw-r--r--backends/ppc_symbol.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/backends/ppc_symbol.c b/backends/ppc_symbol.c
index 1273c1d2..4b32003a 100644
--- a/backends/ppc_symbol.c
+++ b/backends/ppc_symbol.c
@@ -57,6 +57,16 @@ ppc_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type)
}
+/* Check whether machine flags are valid. */
+bool
+ppc_machine_flag_check (GElf_Word flags)
+{
+ return ((flags &~ (EF_PPC_EMB
+ | EF_PPC_RELOCATABLE
+ | EF_PPC_RELOCATABLE_LIB)) == 0);
+}
+
+
const char *
ppc_dynamic_tag_name (int64_t tag, char *buf __attribute__ ((unused)),
size_t len __attribute__ ((unused)))