linux emulation: Preliminary support for more auxvec's [patch]

Alexander Leidinger Alexander at Leidinger.net
Mon Jul 14 08:44:12 UTC 2008


Quoting Marcin Cieslak <saper at system.pl> (from Fri, 11 Jul 2008  
21:55:36 +0200):

> The patch is here:
>
> http://akson.sgh.waw.pl/~saper/FreeBSD/linux/auxvec.diff

I'm a little bit worried about this:
---snip---
--- sys/i386/include/elf.h	4 Oct 2006 21:37:09 -0000	1.17
+++ sys/i386/include/elf.h	11 Jul 2008 11:20:03 -0000
@@ -104,8 +104,12 @@
  #define	AT_EUID		12	/* Effective uid. */
  #define	AT_GID		13	/* Real gid. */
  #define	AT_EGID		14	/* Effective gid. */
+#define	AT_PLATFORM	15	/* CPU identification string. */
+#define	AT_HWCAP	16	/* CPU capabilities (arch dependent). */
+#define	AT_CLKTCK	17	/* Frequency at which times() increments */
+#define	AT_SECURE	23	/* Secure mode */

-#define	AT_COUNT	15	/* Count of defined aux entry types. */
+#define	AT_COUNT	18	/* Count of defined aux entry types. */
---snip---

I would expect that count is 24, not 18. But what happens if we  
increase it to 24, is it expected to have some valid data by some  
automatism based upon AT_COUNT then? What's in 18-22?

Bye,
Alexander.

-- 
Only kings, presidents, editors, and people with tapeworms have the right
to use the editorial "we".

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137


More information about the freebsd-emulation mailing list