[Glibc-bsd-commits] r3598 - in trunk/glibc-ports/kfreebsd: . i386 i386/elf mips/elf x86_64/elf

Robert Millan rmh at alioth.debian.org
Sat Jul 16 20:45:22 UTC 2011


Author: rmh
Date: 2011-07-16 20:45:21 +0000 (Sat, 16 Jul 2011)
New Revision: 3598

Added:
   trunk/glibc-ports/kfreebsd/i386/elf/
   trunk/glibc-ports/kfreebsd/i386/elf/elf.h
   trunk/glibc-ports/kfreebsd/mips/elf/elf.h
   trunk/glibc-ports/kfreebsd/x86_64/elf/elf.h
Modified:
   trunk/glibc-ports/kfreebsd/dl-sysdep.c
Log:
Add support for kFreeBSD-specific ELF Notes.

Modified: trunk/glibc-ports/kfreebsd/dl-sysdep.c
===================================================================
--- trunk/glibc-ports/kfreebsd/dl-sysdep.c	2011-07-16 19:47:19 UTC (rev 3597)
+++ trunk/glibc-ports/kfreebsd/dl-sysdep.c	2011-07-16 20:45:21 UTC (rev 3598)
@@ -204,6 +204,14 @@
 	  [AT_GID - 2] =		{ "GID:          ", dec },
 	  [AT_EGID - 2] =		{ "EGID:         ", dec },
 	  [AT_CLKTCK - 2] =		{ "CLKTCK:       ", dec },
+	  [AT_EXECPATH - 2] =		{ "EXECPATH      ", str },
+	  [AT_CANARY - 2] =		{ "CANARY:       0x", hex },
+	  [AT_CANARYLEN - 2] =		{ "CANARYLEN:    ", dec },
+	  [AT_OSRELDATE - 2] =		{ "OSRELDATE:    ", dec },
+	  [AT_NCPUS - 2] =		{ "NCPUS:        ", dec },
+	  [AT_PAGESIZES - 2] =		{ "PAGESIZES:    0x", hex },
+	  [AT_PAGESIZESLEN - 2] =	{ "PAGESIZESLEN: ", dec },
+	  [AT_STACKPROT - 2] =		{ "STACKPROT:    0x", hex },
 	};
       unsigned int idx = (unsigned int) (av->a_type - 2);
 

Added: trunk/glibc-ports/kfreebsd/i386/elf/elf.h
===================================================================
--- trunk/glibc-ports/kfreebsd/i386/elf/elf.h	                        (rev 0)
+++ trunk/glibc-ports/kfreebsd/i386/elf/elf.h	2011-07-16 20:45:21 UTC (rev 3598)
@@ -0,0 +1,39 @@
+/* This file defines standard ELF types, structures, and macros.
+   Copyright (C) 1995-2003,2004,2005,2006,2007,2008,2009,2010
+	Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+   02111-1307 USA.  */
+
+#ifndef _ELF_H
+
+#include_next <elf/elf.h>
+
+__BEGIN_DECLS
+
+#define	AT_EXECPATH	15	/* Path to the executable. */
+#define	AT_CANARY	16	/* Canary for SSP. */
+#define	AT_CANARYLEN	17	/* Length of the canary. */
+#define	AT_OSRELDATE	18	/* OSRELDATE. */
+#define	AT_NCPUS	19	/* Number of CPUs. */
+#define	AT_PAGESIZES	20	/* Pagesizes. */
+#define	AT_PAGESIZESLEN	21	/* Number of pagesizes. */
+#define	AT_STACKPROT	23	/* Initial stack protection. */
+#define	AT_COUNT	24	/* Count of defined aux entry types. */
+
+__END_DECLS
+
+#endif	/* elf.h */

Added: trunk/glibc-ports/kfreebsd/mips/elf/elf.h
===================================================================
--- trunk/glibc-ports/kfreebsd/mips/elf/elf.h	                        (rev 0)
+++ trunk/glibc-ports/kfreebsd/mips/elf/elf.h	2011-07-16 20:45:21 UTC (rev 3598)
@@ -0,0 +1,39 @@
+/* This file defines standard ELF types, structures, and macros.
+   Copyright (C) 1995-2003,2004,2005,2006,2007,2008,2009,2010
+	Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+   02111-1307 USA.  */
+
+#ifndef _ELF_H
+
+#include_next <elf/elf.h>
+
+__BEGIN_DECLS
+
+#define	AT_EXECPATH	15	/* Path to the executable. */
+#define	AT_CANARY	16	/* Canary for SSP */
+#define	AT_CANARYLEN	17	/* Length of the canary. */
+#define	AT_OSRELDATE	18	/* OSRELDATE. */
+#define	AT_NCPUS	19	/* Number of CPUs. */
+#define	AT_PAGESIZES	20	/* Pagesizes. */
+#define	AT_PAGESIZESLEN	21	/* Number of pagesizes. */
+#define	AT_STACKPROT	23	/* Initial stack protection. */
+#define	AT_COUNT	24	/* Count of defined aux entry types. */
+
+__END_DECLS
+
+#endif	/* elf.h */

Added: trunk/glibc-ports/kfreebsd/x86_64/elf/elf.h
===================================================================
--- trunk/glibc-ports/kfreebsd/x86_64/elf/elf.h	                        (rev 0)
+++ trunk/glibc-ports/kfreebsd/x86_64/elf/elf.h	2011-07-16 20:45:21 UTC (rev 3598)
@@ -0,0 +1,39 @@
+/* This file defines standard ELF types, structures, and macros.
+   Copyright (C) 1995-2003,2004,2005,2006,2007,2008,2009,2010
+	Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+   02111-1307 USA.  */
+
+#ifndef _ELF_H
+
+#include_next <elf/elf.h>
+
+__BEGIN_DECLS
+
+#define	AT_EXECPATH	15	/* Path to the executable. */
+#define	AT_CANARY	16	/* Canary for SSP */
+#define	AT_CANARYLEN	17	/* Length of the canary. */
+#define	AT_OSRELDATE	18	/* OSRELDATE. */
+#define	AT_NCPUS	19	/* Number of CPUs. */
+#define	AT_PAGESIZES	20	/* Pagesizes. */
+#define	AT_PAGESIZESLEN	21	/* Number of pagesizes. */
+#define	AT_STACKPROT	23	/* Initial stack protection. */
+#define	AT_COUNT	24	/* Count of defined aux entry types. */
+
+__END_DECLS
+
+#endif	/* elf.h */




More information about the Glibc-bsd-commits mailing list