NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Flags a kernel was build with



On Mon, Sep 27, 2021 at 12:27:14PM +0000, Riza Dindir wrote:
> I have these lines (regarding linux compatibility)
> 
> options         COMPAT_LINUX
> options         COMPAT_LINUX32  # req. COMPAT_LINUX and COMPAT_NETBSD32
> 
> and regarding EXEC_ELF I have these
> 
> options         EXEC_ELF32

The above are from the direct config input file, and this:

> ###> options    EXEC_ELF64      # exec ELF binaries

is from a file included by that config file. There typically is a boundary
printed that looks similar to this:

# options       UHUB_DEBUG
# options       UGEN_DEBUG
### END CONFIG FILE "WHOEVER"
### (included from "arch/sparc64/conf/MODULAR")
###> # $NetBSD: MODULAR,v 1.8 2020/03/25 17:06:19 jdolecek Exp $

so you can find out which option gets there from what file.


You should be able to exec both 32bit and 64bit linux binaries if you
have the proper lib paths set up (with the linux shared libs).

Martin


Home | Main Index | Thread Index | Old Index