diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-10-25 10:30:21 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-11-01 10:45:30 +0100 |
commit | c38a10bca63e4fea5573dccf4caa9d17e325a6d8 (patch) | |
tree | 5ec79a755d436d255f12c5214db9637de5128772 /exec/main.c | |
parent | 87c02e03c4ae40e5e96792f67d7aad09b7f50935 (diff) | |
download | hurd-c38a10bca63e4fea5573dccf4caa9d17e325a6d8.tar.gz hurd-c38a10bca63e4fea5573dccf4caa9d17e325a6d8.tar.bz2 hurd-c38a10bca63e4fea5573dccf4caa9d17e325a6d8.zip |
exec: Remove the remaining BFD related bits
* exec/Makefile: Remove commented out lines related to BFD.
* exec/hostarch.c: Remove all BFD related code.
* exec/main.c: Likewise.
Diffstat (limited to 'exec/main.c')
-rw-r--r-- | exec/main.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/exec/main.c b/exec/main.c index d5d6882a..d23cc12c 100644 --- a/exec/main.c +++ b/exec/main.c @@ -29,15 +29,6 @@ const char *argp_program_version = STANDARD_HURD_VERSION (exec); -#ifdef BFD -bfd_arch_info_type host_bfd_arch_info; -bfd host_bfd = { arch_info: &host_bfd_arch_info }; -extern error_t bfd_mach_host_arch_mach (host_t host, - enum bfd_architecture *bfd_arch, - long int *bfd_machine, - ElfW(Half) *elf_machine); -#endif - /* Trivfs hooks. */ int trivfs_fstype = FSTYPE_MISC; int trivfs_fsid = 0; @@ -115,16 +106,6 @@ main (int argc, char **argv) save_argv = argv; -#ifdef BFD - /* Put the Mach kernel's idea of what flavor of machine this is into the - fake BFD against which architecture compatibility checks are made. */ - err = bfd_mach_host_arch_mach (mach_host_self (), - &host_bfd.arch_info->arch, - &host_bfd.arch_info->mach); - if (err) - error (1, err, "Getting host architecture from Mach"); -#endif - task_get_bootstrap_port (mach_task_self (), &bootstrap); if (bootstrap == MACH_PORT_NULL) error (2, 0, "Must be started as a translator"); |