diff options
| author | Roland McGrath <[email protected]> | 2005-11-16 01:57:40 +0000 |
|---|---|---|
| committer | Roland McGrath <[email protected]> | 2005-11-16 01:57:40 +0000 |
| commit | cd60ea83050d9fb48c3204005f475df460f433b6 (patch) | |
| tree | e083a367ff3c5598999f3fe23df1fba35681ef31 /libebl/sh_init.c | |
| parent | 1b8b446a794ac4babfd687ca48de32e5f4aaa539 (diff) | |
Revamp libebl/common-reloc.c code to share source at compile time only and not extend the libebl.a behavior itself.
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; } |
