Re: ELF e_ident[EI_OSABI] not being set on objects?

Lloyd Parkes <[email protected]>
Newsgroups gmane.os.netbsd.ports.arm
Message-ID <571239cc8bac58b87407f8863684b4b2f7f8ce1c.camel@must-have-coffee.gen.nz>
On Thu, 2025-01-09 at 10:03 +1100, matthew green wrote:
> 
> AFAIK, this field has to do with how ELF binaries are interpreted,
> and
> netbsd uses plain ELF.  i think freebsd is the only elf platform that
> does not use sysV here.
> 
> this is true for all netbsd platforms, not just arm.
> 

e.g.

$ file /bin/ls
/bin/ls: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV),
dynamically linked, interpreter /libexec/ld.elf_so, for NetBSD 10.1,
not stripped

$ file /bin/ls
/bin/ls: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV),
dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2,
BuildID[sha1]=36b86f957a1be53733633d184c3a3354f3fc7b12, for GNU/Linux
3.2.0, stripped

Ngā mihi,
Lloyd
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.