summaryrefslogtreecommitdiffstats
path: root/libebl/alpha_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'libebl/alpha_init.c')
-rw-r--r--libebl/alpha_init.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/libebl/alpha_init.c b/libebl/alpha_init.c
index 327f3bd0..1ef87d63 100644
--- a/libebl/alpha_init.c
+++ b/libebl/alpha_init.c
@@ -16,7 +16,12 @@
# include <config.h>
#endif
-#include <libebl_alpha.h>
+#define BACKEND alpha_
+#define RELOC_PREFIX R_ALPHA_
+#include "libebl_CPU.h"
+
+/* This defines the common reloc hooks based on alpha_reloc.def. */
+#include "common-reloc.c"
const char *
@@ -32,12 +37,10 @@ alpha_init (elf, machine, eh, ehlen)
/* We handle it. */
eh->name = "Alpha";
- eh->reloc_type_name = alpha_reloc_type_name;
- eh->reloc_type_check = alpha_reloc_type_check;
+ alpha_init_reloc (eh);
eh->dynamic_tag_name = alpha_dynamic_tag_name;
eh->dynamic_tag_check = alpha_dynamic_tag_check;
- eh->copy_reloc_p = alpha_copy_reloc_p;
- eh->destr = alpha_destr;
+ eh->reloc_simple_type = alpha_reloc_simple_type;
return MODVERSION;
}