summaryrefslogtreecommitdiffstats
path: root/sys/kern/link_elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/link_elf.c')
-rw-r--r--sys/kern/link_elf.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/kern/link_elf.c b/sys/kern/link_elf.c
index fb1e73d..9980005 100644
--- a/sys/kern/link_elf.c
+++ b/sys/kern/link_elf.c
@@ -55,9 +55,6 @@
#include <vm/pmap.h>
#include <vm/vm_map.h>
-#ifdef __AOUT__
-#include <sys/nlist_aout.h>
-#endif
#include <sys/link_elf.h>
#include "linker_if.h"
@@ -177,7 +174,6 @@ extern struct _dynamic _DYNAMIC;
static void
link_elf_init(void* arg)
{
-#ifdef __ELF__
Elf_Dyn *dp;
caddr_t modptr, baseptr, sizeptr;
elf_file_t ef;
@@ -185,11 +181,9 @@ link_elf_init(void* arg)
#ifdef DDB
char *newfilename;
#endif
-#endif
linker_add_class(&link_elf_class);
-#ifdef __ELF__
dp = (Elf_Dyn*) &_DYNAMIC;
modname = NULL;
modptr = preload_search_by_type("elf kernel");
@@ -240,8 +234,6 @@ link_elf_init(void* arg)
r_debug_state(NULL, NULL); /* say hello to gdb! */
#endif
-
-#endif
}
SYSINIT(link_elf, SI_SUB_KLD, SI_ORDER_SECOND, link_elf_init, 0);
OpenPOWER on IntegriCloud