diff options
author | dchagin <dchagin@FreeBSD.org> | 2009-03-04 12:14:33 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2009-03-04 12:14:33 +0000 |
commit | 45cda70b8f7151a76c1a1bc83aaa3acc0f361054 (patch) | |
tree | 62f76cca88478d27784a620e697797cefd2ec667 /sys/compat/linux/linux_misc.h | |
parent | e609fbb43b577bbe85d61ed52b9fcec80adeb290 (diff) | |
download | FreeBSD-src-45cda70b8f7151a76c1a1bc83aaa3acc0f361054.zip FreeBSD-src-45cda70b8f7151a76c1a1bc83aaa3acc0f361054.tar.gz |
Add AT_PLATFORM, AT_HWCAP and AT_CLKTCK auxiliary vector entries which
are used by glibc. This silents the message "2.4+ kernel w/o ELF notes?"
from some programs at start, among them are top and pkill.
Do the assignment of the vector entries in elf_linux_fixup()
as it is done in glibc.
Fix some minor style issues.
Submitted by: Marcin Cieslak <saper at SYSTEM PL>
Approved by: kib (mentor)
MFC after: 1 week
Diffstat (limited to 'sys/compat/linux/linux_misc.h')
-rw-r--r-- | sys/compat/linux/linux_misc.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_misc.h b/sys/compat/linux/linux_misc.h index c80a432..37991f3 100644 --- a/sys/compat/linux/linux_misc.h +++ b/sys/compat/linux/linux_misc.h @@ -45,4 +45,19 @@ #define LINUX_MREMAP_MAYMOVE 1 #define LINUX_MREMAP_FIXED 2 +extern const char *linux_platform; + +/* + * Non-standard aux entry types used in Linux ELF binaries. + */ + +#define LINUX_AT_PLATFORM 15 /* String identifying CPU */ +#define LINUX_AT_HWCAP 16 /* CPU capabilities */ +#define LINUX_AT_CLKTCK 17 /* frequency at which times() increments */ +#define LINUX_AT_SECURE 23 /* secure mode boolean */ +#define LINUX_AT_BASE_PLATFORM 24 /* string identifying real platform, may + * differ from AT_PLATFORM. + */ +#define LINUX_AT_EXECFN 31 /* filename of program */ + #endif /* _LINUX_MISC_H_ */ |