summaryrefslogtreecommitdiffstats
path: root/backends
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2007-04-27 04:07:41 +0000
committerRoland McGrath <[email protected]>2007-04-27 04:07:41 +0000
commit2be0291b2cc06fc253c73a1564b126580c8f5ea2 (patch)
tree819a2488013d8990da11e8e00f8afccbafe0434c /backends
parent420c8b5374fb39227d6eba5de2e760c3ba048002 (diff)
2007-04-26 Roland McGrath <[email protected]>
* run-elflint-self.sh: Run all tests even if one fails.
Diffstat (limited to 'backends')
-rw-r--r--backends/ChangeLog3
-rw-r--r--backends/alpha_init.c1
-rw-r--r--backends/alpha_symbol.c10
3 files changed, 13 insertions, 1 deletions
diff --git a/backends/ChangeLog b/backends/ChangeLog
index 9bbd6bf9..e962de95 100644
--- a/backends/ChangeLog
+++ b/backends/ChangeLog
@@ -1,5 +1,8 @@
2007-04-26 Roland McGrath <[email protected]>
+ * alpha_symbol.c (alpha_machine_section_flag_check): New function.
+ * alpha_init.c (alpha_init): Initialize hook.
+
* alpha_regs.c: New file.
* Makefile.am (alpha_SRCS): Add it.
* alpha_init.c (alpha_init): Initialize register_info hook.
diff --git a/backends/alpha_init.c b/backends/alpha_init.c
index 3570af70..ba5ca12f 100644
--- a/backends/alpha_init.c
+++ b/backends/alpha_init.c
@@ -55,6 +55,7 @@ alpha_init (elf, machine, eh, ehlen)
HOOK (eh, reloc_simple_type);
HOOK (eh, return_value_location);
HOOK (eh, register_info);
+ HOOK (eh, machine_section_flag_check);
eh->sysvhash_entrysize = sizeof (Elf64_Xword);
return MODVERSION;
diff --git a/backends/alpha_symbol.c b/backends/alpha_symbol.c
index ca93e2a8..dc3cce56 100644
--- a/backends/alpha_symbol.c
+++ b/backends/alpha_symbol.c
@@ -1,5 +1,5 @@
/* Alpha specific symbolic name handling.
- Copyright (C) 2002, 2005 Red Hat, Inc.
+ Copyright (C) 2002, 2005, 2007 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <[email protected]>, 2002.
@@ -69,3 +69,11 @@ alpha_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type)
return ELF_T_NUM;
}
}
+
+
+/* Check whether SHF_MASKPROC flags are valid. */
+bool
+alpha_machine_section_flag_check (GElf_Xword sh_flags)
+{
+ return (sh_flags &~ (SHF_ALPHA_GPREL)) == 0;
+}