diff options
Diffstat (limited to 'backends/x86_64_init.c')
-rw-r--r-- | backends/x86_64_init.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/backends/x86_64_init.c b/backends/x86_64_init.c index 8abafb7f..44c1ad28 100644 --- a/backends/x86_64_init.c +++ b/backends/x86_64_init.c @@ -41,16 +41,11 @@ extern __typeof (EBLHOOK (core_note)) x32_core_note attribute_hidden; -const char * +Ebl * x86_64_init (Elf *elf __attribute__ ((unused)), GElf_Half machine __attribute__ ((unused)), - Ebl *eh, - size_t ehlen) + Ebl *eh) { - /* Check whether the Elf_BH object has a sufficent size. */ - if (ehlen < sizeof (Ebl)) - return NULL; - /* We handle it. */ x86_64_init_reloc (eh); HOOK (eh, reloc_simple_type); @@ -70,5 +65,5 @@ x86_64_init (Elf *elf __attribute__ ((unused)), HOOK (eh, set_initial_registers_tid); HOOK (eh, unwind); - return MODVERSION; + return eh; } |