summaryrefslogtreecommitdiffstats
path: root/libebl/ia64_init.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2005-11-16 01:57:40 +0000
committerRoland McGrath <[email protected]>2005-11-16 01:57:40 +0000
commitcd60ea83050d9fb48c3204005f475df460f433b6 (patch)
treee083a367ff3c5598999f3fe23df1fba35681ef31 /libebl/ia64_init.c
parent1b8b446a794ac4babfd687ca48de32e5f4aaa539 (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/ia64_init.c')
-rw-r--r--libebl/ia64_init.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/libebl/ia64_init.c b/libebl/ia64_init.c
index f5c3f364..1431f2de 100644
--- a/libebl/ia64_init.c
+++ b/libebl/ia64_init.c
@@ -16,8 +16,12 @@
# include <config.h>
#endif
-#include <libebl_ia64.h>
+#define BACKEND ia64_
+#define RELOC_PREFIX R_IA64_
+#include "libebl_CPU.h"
+/* This defines the common reloc hooks based on ia64_reloc.def. */
+#include "common-reloc.c"
const char *
ia64_init (elf, machine, eh, ehlen)
@@ -32,13 +36,13 @@ ia64_init (elf, machine, eh, ehlen)
/* We handle it. */
eh->name = "Intel IA-64";
- eh->reloc_type_name = ia64_reloc_type_name;
- eh->reloc_type_check = ia64_reloc_type_check;
+ ia64_init_reloc (eh);
+ eh->reloc_simple_type = ia64_reloc_simple_type;
eh->segment_type_name = ia64_segment_type_name;
+ eh->section_type_name = ia64_section_type_name;
eh->dynamic_tag_name = ia64_dynamic_tag_name;
- eh->copy_reloc_p = ia64_copy_reloc_p;
+ eh->dynamic_tag_check = ia64_dynamic_tag_check;
eh->machine_flag_check = ia64_machine_flag_check;
- eh->destr = ia64_destr;
return MODVERSION;
}