NetBSD’s in-tree instance of libelf has been synced with upstream.

This work prepares the ground for various future projects such as:

  • Replacing the ad-hoc ELF parsing code found in NetBSD userland with calls to the cross-platform ELF(3) API implemented by libelf.

  • Implementing Mensurae for NetBSD (the userspace component of which would need to process ELF binaries and shared objects).

As part of this effort, I needed to add processor-specific ABI symbols for all of the architectures that NetBSD supports (NetBSD PR: lib/59564).

The complete list of processor architectures for which Elftoolchain offers psABI symbols is now: EM_68K (Motorola 68000), EM_ARM (aarch32), EM_AARCH64 (aarch64), EM_ALPHA, EM_IAMCU (i386), EM_IA_64, EM_LOONGARCH, EM_MIPS, EM_OPENRISC, EM_PARISC, EM_PPC, EM_PPC64, EM_RISCV EM_S390, EM_SH, EM_SPARC (32-bit and 64-bit SPARC), EM_VAX and EM_X86_64.