diff options
Diffstat (limited to 'libebl/sh_init.c')
| -rw-r--r-- | libebl/sh_init.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libebl/sh_init.c b/libebl/sh_init.c index bb6c9040..4fadd9b4 100644 --- a/libebl/sh_init.c +++ b/libebl/sh_init.c @@ -16,7 +16,12 @@ # include <config.h> #endif -#include <libebl_sh.h> +#define BACKEND sh_ +#define RELOC_PREFIX R_SH_ +#include "libebl_CPU.h" + +/* This defines the common reloc hooks based on sh_reloc.def. */ +#include "common-reloc.c" const char * @@ -32,9 +37,8 @@ sh_init (elf, machine, eh, ehlen) /* We handle it. */ eh->name = "Hitachi SH"; - eh->reloc_type_name = sh_reloc_type_name; - eh->copy_reloc_p = sh_copy_reloc_p; - eh->destr = sh_destr; + sh_init_reloc (eh); + eh->reloc_simple_type = sh_reloc_simple_type; return MODVERSION; } |
