Current-Users archive

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

Re: execute statically-linked linux files



Kave you looked at brandelf?

https://www.freebsd.org/cgi/man.cgi?query=brandelf&sektion=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 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, BuildID[sha1]=38afca809a07f7e934012f7dac9094e3bcd2585d, stripped

But there are also some statically-linked files, which shows up as
ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped
(note the missing "for GNU/Linux" here) and NetBSD don't want to run them
(Exec format error. Binary file not executable.).

Is there a way to convert the ELF header so that NetBSD can run them ?

thanks




Home | Main Index | Thread Index | Old Index