1 |
/* Determine the BFD and ELF architecture and machine flavor |
/* Determine the BFD and ELF architecture and machine flavor |
2 |
from a Mach host port. Used by the exec and core servers. |
from a Mach host port. Used by the exec and core servers. |
3 |
Copyright (C) 1992,93,95,96,99,2000 Free Software Foundation, Inc. |
Copyright (C) 1992,93,95,96,99,2000,02 Free Software Foundation, Inc. |
4 |
Written by Roland McGrath. |
Written by Roland McGrath. |
5 |
|
|
6 |
This file is part of the GNU Hurd. |
This file is part of the GNU Hurd. |
26 |
#include <elf.h> |
#include <elf.h> |
27 |
|
|
28 |
error_t |
error_t |
29 |
elf_machine_matches_host (Elf32_Half e_machine) |
elf_machine_matches_host (ElfW(Half) e_machine) |
30 |
{ |
{ |
31 |
static void *host_type; /* Cached entry into the switch below. */ |
static void *host_type; /* Cached entry into the switch below. */ |
32 |
struct host_basic_info hostinfo; |
struct host_basic_info hostinfo; |