daily CVS update output

2022-01-06 Thread NetBSD source update
Updating src tree: P src/distrib/sets/lists/man/mi P src/lib/libcurses/slk.c P src/share/man/man4/Makefile U src/share/man/man4/eqos.4 U src/share/man/man4/mcommphy.4 P src/sys/conf/Makefile.kern.inc P src/sys/dev/acpi/acpi_bat.c P src/sys/dev/mii/makphy.c P src/sys/dev/mii/makphyvar.h P

Re: execute statically-linked linux files

2022-01-06 Thread RVP
I forgot this: ---START PATCH--- --- sys/miscfs/procfs/procfs_vnops.c.orig 2021-12-09 04:11:22.778882692 + +++ sys/miscfs/procfs/procfs_vnops.c2022-01-06 22:24:06.003672573 + @@ -1400,6 +1400,7 @@ nc++; } if (error) { +

Re: execute statically-linked linux files

2022-01-06 Thread RVP
On Thu, 6 Jan 2022, Manuel Bouyer wrote: the second issue is that it expects /emul/linux/proc/self/fd/4 to be a working symlink, and on NetBSD it's not. Note that with /bin/ls I get something similar: armandeche:/local/armandeche1/tmp#ktrace -i ls -l /proc/self/fd/ total 2 crw--w 1 bouyer

Re: execute statically-linked linux files

2022-01-06 Thread Manuel Bouyer
On Thu, Jan 06, 2022 at 05:02:13PM +0100, Anders Magnusson wrote: > Kave you looked at brandelf? > > https://www.freebsd.org/cgi/man.cgi?query=brandelf=1 Looks like what I need, thanks. For the record, attached is my port to NetBSD of this Interestingly, it seems to recognise all binaries as

Re: execute statically-linked linux files

2022-01-06 Thread Anders Magnusson
Kave you looked at brandelf? https://www.freebsd.org/cgi/man.cgi?query=brandelf=1 Den 2022-01-06 kl. 16:48, skrev Manuel Bouyer: Hello, I have linux binaires I'd like to run on NetBSD (this is a commercial product). Some files are dynamically-linked files and run properly. They show up as: ELF

execute statically-linked linux files

2022-01-06 Thread Manuel Bouyer
Hello, I have linux binaires I'd like to run on NetBSD (this is a commercial product). Some files are dynamically-linked files and run properly. They show up as: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24,