summaryrefslogtreecommitdiff
path: root/backends/ia64_symbol.c
diff options
context:
space:
mode:
Diffstat (limited to 'backends/ia64_symbol.c')
-rw-r--r--backends/ia64_symbol.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/backends/ia64_symbol.c b/backends/ia64_symbol.c
index 4faec0c9..2609db0f 100644
--- a/backends/ia64_symbol.c
+++ b/backends/ia64_symbol.c
@@ -1,5 +1,5 @@
/* IA-64 specific symbolic name handling.
- Copyright (C) 2002, 2003, 2005, 2006 Red Hat, Inc.
+ Copyright (C) 2002, 2003, 2005, 2006, 2007 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <drepper@redhat.com>, 2002.
@@ -86,6 +86,13 @@ ia64_machine_flag_check (GElf_Word flags)
return ((flags &~ EF_IA_64_ABI64) == 0);
}
+/* Check whether SHF_MASKPROC flags are valid. */
+bool
+ia64_machine_section_flag_check (GElf_Xword sh_flags)
+{
+ return (sh_flags &~ (SHF_IA_64_SHORT | SHF_IA_64_NORECOV)) == 0;
+}
+
/* Return symbolic representation of section type. */
const char *
ia64_section_type_name (int type,
@@ -97,7 +104,7 @@ ia64_section_type_name (int type,
case SHT_IA_64_EXT:
return "SHT_IA_64_EXT";
case SHT_IA_64_UNWIND:
- return "HT_IA_64_UNWIND";
+ return "SHT_IA_64_UNWIND";
}
return NULL;