summaryrefslogtreecommitdiffstats
path: root/backends/sparc_symbol.c
diff options
context:
space:
mode:
Diffstat (limited to 'backends/sparc_symbol.c')
-rw-r--r--backends/sparc_symbol.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/backends/sparc_symbol.c b/backends/sparc_symbol.c
index 3a261a00..237620c9 100644
--- a/backends/sparc_symbol.c
+++ b/backends/sparc_symbol.c
@@ -1,5 +1,5 @@
/* SPARC specific symbolic name handling.
- Copyright (C) 2002, 2003, 2005 Red Hat, Inc.
+ Copyright (C) 2002, 2003, 2005, 2007 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Jakub Jelinek <[email protected]>, 2002.
@@ -55,3 +55,14 @@ sparc_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type)
return ELF_T_NUM;
}
}
+
+/* Check whether machine flags are valid. */
+bool
+sparc_machine_flag_check (GElf_Word flags)
+{
+ return ((flags &~ (EF_SPARCV9_MM
+ | EF_SPARC_LEDATA
+ | EF_SPARC_32PLUS
+ | EF_SPARC_SUN_US1
+ | EF_SPARC_SUN_US3)) == 0);
+}