summaryrefslogtreecommitdiffstats
path: root/libebl/arm_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'libebl/arm_init.c')
-rw-r--r--libebl/arm_init.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/libebl/arm_init.c b/libebl/arm_init.c
index a0a65f83..ee739078 100644
--- a/libebl/arm_init.c
+++ b/libebl/arm_init.c
@@ -16,7 +16,12 @@
# include <config.h>
#endif
-#include <libebl_arm.h>
+#define BACKEND arm_
+#define RELOC_PREFIX R_ARM_
+#include "libebl_CPU.h"
+
+/* This defines the common reloc hooks based on arm_reloc.def. */
+#include "common-reloc.c"
const char *
@@ -31,11 +36,9 @@ arm_init (elf, machine, eh, ehlen)
return NULL;
/* We handle it. */
- eh->name = "Arm";
- eh->reloc_type_name = arm_reloc_type_name;
- eh->reloc_type_check = arm_reloc_type_check;
- eh->copy_reloc_p = arm_copy_reloc_p;
- eh->destr = arm_destr;
+ eh->name = "ARM";
+ arm_init_reloc (eh);
+ eh->reloc_simple_type = arm_reloc_simple_type;
return MODVERSION;
}