Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: conflicting elf definitions in system headers
mh> I think elfdefintions.h should be removed. If anything is missing
in exec_elf.h
mh> it should be added there. Two header with nearly but not quite identical
mh> definitions does not make sense.
My firsl attempt at writing libelf (in FreeBSD) had taken this approach
(i.e. of using headers under <sys/>).
But this turned out to be a maintenance headache - I soon discovered that
different OSes differed in the ELF-related definitions they kept under <sys/>,
that those definitions weren't always up to date with upstream
developments, etc.
So now I am trying a different approach: of moving ELF-related definitions to
a <sys/elfdefinitions.h> file that is meant to be complete, up to date, portable
and usable by both userspace and the kernel. The idea being that kernel
headers (e.g. <sys/exec_elf.h>) could then #include this, allowing those
headers to focus on just the functionality needed for the kernel's ELF handling.
Regards,
Joseph Koshy
Home |
Main Index |
Thread Index |
Old Index