X32 is almost done

H.J. Lu hjl.tools@gmail.com
Fri May 25 23:01:00 GMT 2012


Hi,

Thanks for everyone, x32 is almost done.  The last remaining issue is

http://sourceware.org/bugzilla/show_bug.cgi?id=14112

I have a proposal on hjl/abi branch.  I updated x32 wiki page:

http://sourceware.org/glibc/wiki/x32

to describe how to bootstrap x32 GCC and GLIBC.  I verified the procedure
on openSUSE 12.1:

hjl@gnu-32:/tmp> cat /etc/os-release
NAME=openSUSE
VERSION = 12.1 (Asparagus)
VERSION_ID="12.1"
PRETTY_NAME="openSUSE 12.1 (Asparagus) (x86_64)"
ID=opensuse
hjl@gnu-32:/tmp> cat x.c
#include <stdio.h>

int
main (void)
{
  printf ("hello\n");
  return 0;
}
hjl@gnu-32:/tmp> /usr/gcc-x32-4.7/bin/x86_64-linux-gcc -mx32 x.c
hjl@gnu-32:/tmp> file a.out
a.out: ELF 32-bit LSB executable, x86-64, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.39, not
stripped
hjl@gnu-32:/tmp> ./a.out
hello
hjl@gnu-32:/tmp> uname -a
Linux gnu-32 3.4.0-1.9-desktop+ #3 SMP PREEMPT Fri May 25 05:30:28 PDT
2012 x86_64 x86_64 x86_64 GNU/Linux
hjl@gnu-32:/tmp>

-- 
H.J.



More information about the Libc-alpha mailing list