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. * sysdeps/x86_64/ffsll.c (ffsl): Likewise. * sysdeps/x86_64/preconfigure.in: Likewise. * sysdeps/x86_64/preconfigure: Regenerated.
This commit is contained in:
parent
7e73e17d3f
commit
34a27407f4
13
ChangeLog
13
ChangeLog
@ -1,3 +1,16 @@
|
||||
2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* 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.
|
||||
* sysdeps/x86_64/ffsll.c (ffsl): Likewise.
|
||||
* sysdeps/x86_64/preconfigure.in: Likewise.
|
||||
* sysdeps/x86_64/preconfigure: Regenerated.
|
||||
|
||||
2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
|
||||
|
@ -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__
|
||||
# define pltenter la_x86_64_gnu_pltenter
|
||||
# define pltexit la_x86_64_gnu_pltexit
|
||||
# define La_regs La_x86_64_regs
|
||||
|
@ -105,7 +105,7 @@ la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
|
||||
return sym->st_value;
|
||||
}
|
||||
|
||||
#ifdef __LP64__
|
||||
# ifndef __ILP32__
|
||||
# define pltenter la_x86_64_gnu_pltenter
|
||||
# define pltexit la_x86_64_gnu_pltexit
|
||||
# define La_regs La_x86_64_regs
|
||||
|
@ -94,7 +94,7 @@ la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
|
||||
return sym->st_value;
|
||||
}
|
||||
|
||||
#ifdef __LP64__
|
||||
# ifndef __ILP32__
|
||||
# define pltenter la_x86_64_gnu_pltenter
|
||||
# define pltexit la_x86_64_gnu_pltexit
|
||||
# define La_regs La_x86_64_regs
|
||||
|
@ -95,7 +95,7 @@ la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
|
||||
return sym->st_value;
|
||||
}
|
||||
|
||||
#ifdef __LP64__
|
||||
# ifndef __ILP32__
|
||||
# define pltenter la_x86_64_gnu_pltenter
|
||||
# define pltexit la_x86_64_gnu_pltexit
|
||||
# define La_regs La_x86_64_regs
|
||||
|
@ -94,7 +94,7 @@ la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
|
||||
return sym->st_value;
|
||||
}
|
||||
|
||||
#ifdef __LP64__
|
||||
# ifndef __ILP32__
|
||||
# define pltenter la_x86_64_gnu_pltenter
|
||||
# define pltexit la_x86_64_gnu_pltexit
|
||||
# define La_regs La_x86_64_regs
|
||||
|
@ -94,7 +94,7 @@ la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
|
||||
return sym->st_value;
|
||||
}
|
||||
|
||||
#ifdef __LP64__
|
||||
# ifndef __ILP32__
|
||||
# define pltenter la_x86_64_gnu_pltenter
|
||||
# define pltexit la_x86_64_gnu_pltexit
|
||||
# define La_regs La_x86_64_regs
|
||||
|
@ -94,7 +94,7 @@ la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
|
||||
return sym->st_value;
|
||||
}
|
||||
|
||||
#ifdef __LP64__
|
||||
#ifndef __ILP32__
|
||||
# define pltenter la_x86_64_gnu_pltenter
|
||||
# define pltexit la_x86_64_gnu_pltexit
|
||||
# define La_regs La_x86_64_regs
|
||||
|
@ -36,7 +36,7 @@ ffsll (long long int x)
|
||||
return cnt + 1;
|
||||
}
|
||||
|
||||
#ifdef __LP64__
|
||||
#ifndef __ILP32__
|
||||
#undef ffsl
|
||||
weak_alias (ffsll, ffsl)
|
||||
#endif
|
||||
|
@ -133,7 +133,7 @@ if ${libc_cv_x32+:} false; then :
|
||||
else
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
#ifdef __LP64__
|
||||
#ifndef __ILP32__
|
||||
# error not x32
|
||||
#endif
|
||||
int
|
||||
|
@ -8,7 +8,7 @@ x86_64)
|
||||
AC_CACHE_CHECK(whether $CC compiles in -mx32 mode by default,
|
||||
libc_cv_x32, [dnl
|
||||
AC_TRY_COMPILE(dnl
|
||||
[#ifdef __LP64__
|
||||
[#ifndef __ILP32__
|
||||
# error not x32
|
||||
#endif], [], libc_cv_x32=yes, libc_cv_x32=no)])
|
||||
if test $libc_cv_x32 = yes; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user