re: ELF e_ident[EI_OSABI] not being set on objects?
matthew green <[email protected]>
| Newsgroups | gmane.os.netbsd.ports.arm |
|---|---|
| Message-ID | <[email protected]> |
Joseph Koshy writes: > I noticed that NetBSD/evbarm binaries are being built as 'SysV' binaries. > > nbarm% readelf -h /usr/bin/nm | grep OS/ABI > OS/ABI: UNIX - System V > nbarm% readelf -h /usr/lib/libc.so | grep OS/ABI > OS/ABI: UNIX - System V > > This was on recent -current: > > % uname -a > NetBSD nbarm 10.99.12 NetBSD 10.99.12 (GENERIC64) #0: Fri Dec 27 > 00:57:53 UTC 2024 > [email protected]:/usr/src/sys/arch/evbarm/compile/GENERIC64 > evbarm > > Any idea why the e_ident[EI_OSABI] field isn't being set to ELFOSABI_NETBSD? 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. .mrg.