diff options
author | Roland McGrath <roland@gnu.org> | 1999-07-10 23:01:36 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-07-10 23:01:36 +0000 |
commit | 835b2dd76d875f25eeedeffc6476bc74d51f5866 (patch) | |
tree | 81bfa7d348de859fc171f1128469fcbd04b0c0ef | |
parent | 8ef460f59cbc9ccab0f7567ffc8568b456048d90 (diff) |
1999-07-10 Roland McGrath <roland@baalperazim.frob.com>
* exec.c (check_elf): Call elf_machine_matches_host instead of
comparing against elf_machine.
(load_section): #if 0 out no-op code that uses elf_machine.
* priv.h (elf_machine_matches_host): Declare it.
(elf_machine, mach_host_elf_machine): Remove decls.
* main.c (main) [!BFD]: Don't call mach_host_elf_machine.
(elf_machine): Variable removed.
-rw-r--r-- | exec/main.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/exec/main.c b/exec/main.c index 3a9ce2c8..033f7f0f 100644 --- a/exec/main.c +++ b/exec/main.c @@ -36,8 +36,6 @@ extern error_t bfd_mach_host_arch_mach (host_t host, Elf32_Half *elf_machine); #endif -Elf32_Half elf_machine; /* ELF e_machine for the host. */ - /* Trivfs hooks. */ int trivfs_fstype = FSTYPE_MISC; int trivfs_fsid = 0; @@ -122,11 +120,9 @@ main (int argc, char **argv) err = bfd_mach_host_arch_mach (mach_host_self (), &host_bfd.arch_info->arch, &host_bfd.arch_info->mach); -#endif - err = mach_host_elf_machine (mach_host_self (), &elf_machine); - if (err) error (1, err, "Getting host architecture from Mach"); +#endif task_get_bootstrap_port (mach_task_self (), &bootstrap); if (bootstrap == MACH_PORT_NULL) |