NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Flags a kernel was build with
Hello Martin,
On Mon, Sep 27, 2021 at 7:32 AM Martin Husemann <martin%duskware.de@localhost> wrote:
>
> On Mon, Sep 27, 2021 at 09:59:51AM +0300, Riza Dindir wrote:
> > Hello All,
> >
> > Is it possible to see or get the list of flags a kernel was build with. I
> > am using NetBSD 9.2, and am using a generic kernel, I think. Would like to
> > see if EXEC_ELF* flag was set when the kernel was build? Or also what other
> > flags were set during build.
>
> Try: config -x /netbsd
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
###> options EXEC_ELF64 # exec ELF binaries
It seems, from what I understand, that I have linux compatibility set
(for 32 bits and 64 bits). But I do not have the options set to run 64
bit ELF files. Would that be correct?
I have a linux executable that outputs these lines when I run this
executable through "file" (that is "file <file-name>").
ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically
linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24,
not stripped
Can I run linux executables that are for 64 bit using compat_linux
when the /netbsd kernel is as configured above?
>
> Martin
>
Riza
Home |
Main Index |
Thread Index |
Old Index