Hi,
Here are 3 patches to check __ILP32__ instead of __LP64__. They
are tested on Linux/x32 and Linux/x86-64. OK to install?
Thanks.
H.J.
---
From e1049703b6757f9c33175a98e0759836117292b8 Mon Sep 17 00:00:00 2001
From: "H.J. Lu"<hjl.tools@gmail.com>
Date: Fri, 13 Apr 2012 14:57:13 -0700
Subject: Check __ILP32__ instead of __LP64__
* elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
* elf/tst-auditmod3b.c: Likewise.
* elf/tst-auditmod4b.c: Likewise.
* elf/tst-auditmod5b.c: Likewise.
* elf/tst-auditmod6b.c: Likewise.
* elf/tst-auditmod6c.c: Likewise.
* elf/tst-auditmod7b.c: Likewise.
diff --git a/elf/tst-auditmod1.c b/elf/tst-auditmod1.c
index 67fc758..108d6de 100644
--- a/elf/tst-auditmod1.c
+++ b/elf/tst-auditmod1.c
@@ -109,7 +109,7 @@ la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
# define La_retval La_i86_retval
# define int_retval lrv_eax
#elif defined __x86_64__
-# ifdef __LP64__
+# ifndef __ILP32__