|
|||||||||||
|
kernel/3073: exec_elf w/ compat_netbsd
From: <boris(at)rootroute.com>
Date: Tue Jan 21 2003 - 14:08:06 EST
System : OpenBSD 3.2 Architecture: OpenBSD.i386 and probably other non-64 arch Machine : i386/usr/src/sys/arch/i386/compile/TEST/../../../../kern/exec_elf.c:91: initializer element is not constant /usr/src/sys/arch/i386/compile/TEST/../../../../kern/exec_elf.c:91: (near initialization for `elf32_probes[3].func') *** Error code 1 >Fix: we wrap the exec format probe around this:
diff -u exec_elf.c $rootr/sys
{ linux_elf_probe, 1 << OOS_LINUX },
#endif
#ifdef COMPAT_NETBSD
+#ifdef _KERN_DO_ELF64
{ netbsd_elf64_probe, 1 << OOS_NETBSD },
+#endif
#endif
{ 0, 1 << OOS_OPENBSD }
this fix is according sys/compat/netbsd/netbsd_exec.c then the re-make'd kernel boots and runs ok. >Release-Note:
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:29:48 EDT |
||||||||||
|
|||||||||||