Removing some cruft...
M. Warner Losh
imp at bsdimp.com
Wed Dec 17 13:39:42 PST 2008
In message: <20081217172047.GA2884 at dchagin.dialup.corbina.ru>
Chagin Dmitry <dchagin at freebsd.org> writes:
: Hi, I am ready to offer more radical patch :)
:
: Move all Linux aux entry types to a new file compat/linux/linux_elf.h
: Add two new aux entries which improve work of futexes.
:
: Please review. thnx!
:
: diff --git a/sys/amd64/include/elf.h b/sys/amd64/include/elf.h
: index a4c7f79..3c2cd20 100644
: --- a/sys/amd64/include/elf.h
: +++ b/sys/amd64/include/elf.h
: @@ -81,16 +81,8 @@ __ElfType(Auxinfo);
: #define AT_BASE 7 /* Interpreter's base address. */
: #define AT_FLAGS 8 /* Flags (unused for i386). */
: #define AT_ENTRY 9 /* Where interpreter should transfer control. */
: -/*
: - * The following non-standard values are used in Linux ELF binaries.
: - */
: -#define AT_NOTELF 10 /* Program is not ELF ?? */
: -#define AT_UID 11 /* Real uid. */
: -#define AT_EUID 12 /* Effective uid. */
: -#define AT_GID 13 /* Real gid. */
: -#define AT_EGID 14 /* Effective gid. */
:
: -#define AT_COUNT 15 /* Count of defined aux entry types. */
It turns out that these are not non-standard Linux values. SYSV
also uses these, and the MIPS ABI defines them as well. Let's leave
them in place. It may make sense to move these AT_ definitions to a
more central location, however, since I think they are the same on all
platforms. A quick grep of the Binutils directory seems to support
this, but I only have the MIPS ABI specs.
I also think that we should be exporting them in the normal path, but
that may open up a can of warms so needs to be tested/reviewed
carefully before we pull the trigger.
Warner
More information about the freebsd-arch
mailing list