diff options
Diffstat (limited to 'elfutils/libebl/x86_64_init.c')
-rw-r--r-- | elfutils/libebl/x86_64_init.c | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/elfutils/libebl/x86_64_init.c b/elfutils/libebl/x86_64_init.c new file mode 100644 index 000000000..145dd0bac --- /dev/null +++ b/elfutils/libebl/x86_64_init.c @@ -0,0 +1,44 @@ +/* Initialization of x86-64 specific backend library. + Copyright (C) 2002 Red Hat, Inc. + Written by Ulrich Drepper <drepper@redhat.com>, 2002. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2 as + published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif + +#include <libebl_x86_64.h> + + +int +x86_64_init (elf, machine, eh, ehlen) + Elf *elf; + GElf_Half machine; + Ebl *eh; + size_t ehlen; +{ + /* Check whether the Elf_BH object has a sufficent size. */ + if (ehlen < sizeof (Ebl)) + return 1; + + /* We handle it. */ + eh->name = "AMD x86-64"; + eh->reloc_type_name = x86_64_reloc_type_name; + eh->reloc_type_check = x86_64_reloc_type_check; + //eh->core_note = i386_core_note; + eh->destr = x86_64_destr; + + return 0; +} |