From 835b2dd76d875f25eeedeffc6476bc74d51f5866 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 10 Jul 1999 23:01:36 +0000 Subject: 1999-07-10 Roland McGrath * 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. --- exec/main.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'exec/main.c') 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) -- cgit v1.2.3