From 45cda70b8f7151a76c1a1bc83aaa3acc0f361054 Mon Sep 17 00:00:00 2001 From: dchagin Date: Wed, 4 Mar 2009 12:14:33 +0000 Subject: 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 Approved by: kib (mentor) MFC after: 1 week --- sys/compat/linux/linux_misc.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'sys/compat/linux/linux_misc.h') 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_ */ -- cgit v1.1