]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add x86-64 support to i386 sys/elf.h and sys/vm86.h
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 31 May 2012 22:55:37 +0000 (15:55 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 31 May 2012 22:55:37 +0000 (15:55 -0700)
ChangeLog
sysdeps/unix/sysv/linux/i386/sys/elf.h
sysdeps/unix/sysv/linux/i386/sys/vm86.h

index 73b45a2e5cd335619985bec0b0d7e8eeec6e774b..3cab2d6e5010bb636128b3ef877a59c7e24c6526 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
+
+       [BZ #14117]
+       * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
+       for x86-64.
+       * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
+
 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
 
        * math/math.h (M_El): Use two more decimal places.
index 9d64e976883e6c832499a196100be754afe3d17a..1f4524cba4d6f5269e86350685c9aa1621660d8e 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1998-2012 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
 #ifndef _SYS_ELF_H
 #define _SYS_ELF_H     1
 
-#warning "This header is obsolete; use <sys/procfs.h> instead."
+#ifdef __x86_64__
+# error This header is unsupported on x86-64.
+#else
+# warning "This header is obsolete; use <sys/procfs.h> instead."
 
-#include <sys/procfs.h>
+# include <sys/procfs.h>
+#endif
 
 #endif /* _SYS_ELF_H */
index cd2ac0716299e93b8bb33e6bb46e979aedbf9369..c41b55d7b6a359946d847f583e7cf70487e71a0f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1999, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2012 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
 #define _SYS_VM86_H    1
 #include <features.h>
 
+#ifdef __x86_64__
+# error This header is unsupported on x86-64.
+#else
 /* Get constants and data types from kernel header file.  */
-#include <asm/vm86.h>
+# include <asm/vm86.h>
 
 __BEGIN_DECLS
 
@@ -30,5 +33,6 @@ extern int vm86 (unsigned long int __subfunction,
                 struct vm86plus_struct *__info) __THROW;
 
 __END_DECLS
+# endif
 
 #endif /* _SYS_VM86_H */