tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Sharing ELF definitions between NetBSD userspace and kernel
On 2025-11-25 22:13 Mouse <mouse%rodents-montreal.org@localhost> wrote:
m> Maybe it's just me being iconoclastic, but:
jk> Goal 1: To wean userland off the use of <sys/exec_elf.h> (a kernel
jk> header).
m> Why is this desirable? There are numerous <sys/...> headers which
m> define/describe interfaces between userland and the kernel (which to at
m> least some extent ELF is); a simple example is <sys/socket.h>.
Very little of <sys/exec_elf.h> is actually used by the kernel;
this file currently holds both kernel code (under #ifdef _KERNEL)
and ELF-related definitions for use by userland.
Other systems use one set of files for ELF (e.g. <elf.h>/<sys/elf.h>)
and another for kernel-related symbols, offering better separation of
concerns.
Regards,
Joseph Koshy | jkoshy%netbsd.org@localhost | https://jkoshy.net/
Home |
Main Index |
Thread Index |
Old Index