[Glibc-bsd-commits] r3207 - trunk/glibc-ports/kfreebsd

Robert Millan rmh at alioth.debian.org
Tue Dec 14 13:55:24 UTC 2010


Author: rmh
Date: 2010-12-14 13:55:24 +0000 (Tue, 14 Dec 2010)
New Revision: 3207

Modified:
   trunk/glibc-ports/kfreebsd/dl-machine.h
Log:
Do not attempt to define VALID_ELF_ABIVERSION(), leave this to next dl-machine.h as this macro is cpu-specific.

Modified: trunk/glibc-ports/kfreebsd/dl-machine.h
===================================================================
--- trunk/glibc-ports/kfreebsd/dl-machine.h	2010-12-14 13:16:16 UTC (rev 3206)
+++ trunk/glibc-ports/kfreebsd/dl-machine.h	2010-12-14 13:55:24 UTC (rev 3207)
@@ -1,5 +1,5 @@
 /* Dynamic linker magic for glibc on FreeBSD kernel.
-   Copyright (C) 2006 Free Software Foundation, Inc.
+   Copyright (C) 2006, 2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Aurelien Jarno <aurelien at aurel32.net>, 2006.
 
@@ -18,14 +18,15 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
+#include_next <dl-machine.h>
+
 /* Contrary to most kernels which use ELFOSABI_SYSV aka ELFOSABI_NONE,
    FreeBSD uses ELFOSABI_FREEBSD for the OSABI field. */
 
-# define VALID_ELF_OSABI(osabi)		(osabi == ELFOSABI_FREEBSD)
-# define VALID_ELF_ABIVERSION(ver)	(ver == 0)
-# define VALID_ELF_HEADER(hdr,exp,size) \
+#undef VALID_ELF_OSABI
+#define VALID_ELF_OSABI(osabi)		(osabi == ELFOSABI_FREEBSD)
+#undef VALID_ELF_HEADER
+#define VALID_ELF_HEADER(hdr,exp,size) \
   memcmp (hdr,exp,size-2) == 0 \
   && VALID_ELF_OSABI (hdr[EI_OSABI]) \
   && VALID_ELF_ABIVERSION (hdr[EI_ABIVERSION])
-
-#include_next <dl-machine.h>




More information about the Glibc-bsd-commits mailing list