diff options
author | jake <jake@FreeBSD.org> | 2003-01-04 22:07:48 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2003-01-04 22:07:48 +0000 |
commit | a307536f906cea2e4ba4d10d51b320520f1a30c1 (patch) | |
tree | 343968325cabcf3b367593c41e6e0ce573592013 /sys/kern/init_main.c | |
parent | fdbb382f1cbb42ab486d1f7812f0f78c0317b799 (diff) | |
download | FreeBSD-src-a307536f906cea2e4ba4d10d51b320520f1a30c1.zip FreeBSD-src-a307536f906cea2e4ba4d10d51b320520f1a30c1.tar.gz |
Improve the way that an elf image activator for an alternate word size is
included in the kernel. Include imgact_elf.c in conf/files, instead of
both imgact_elf32.c and imgact_elf64.c, which will use the default word
size for an architecture as defined in machine/elf.h. Architectures that
wish to build an additional image activator for an alternate word size can
include either imgact_elf32.c or imgact_elf64.c in files.${ARCH}, which
allows it to be dependent on MD options instead of solely on architecture.
Glanced at by: peter
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index e49ce08..354536f 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -97,7 +97,6 @@ static struct vmspace vmspace0; struct proc *initproc; int cmask = CMASK; -extern int fallback_elf_brand; struct vnode *rootvp; int boothowto = 0; /* initialized so that it can be patched */ @@ -585,10 +584,6 @@ start_init(void *dummy) strlcpy(init_path, var, sizeof(init_path)); freeenv(var); } - if ((var = getenv("kern.fallback_elf_brand")) != NULL) { - fallback_elf_brand = strtol(var, NULL, 0); - freeenv(var); - } for (path = init_path; *path != '\0'; path = next) { while (*path == ':') |