LKML Archive on
help / color / mirror / Atom feed
From: "H.J. Lu" <>
To: GCC Development <>,
	GNU C Library <>,
	LKML <>,
Subject: Hello world from x32 glibc
Date: Tue, 15 Feb 2011 08:06:06 -0800	[thread overview]
Message-ID: <> (raw)

On Sat, Feb 12, 2011 at 11:41 AM, H.J. Lu <> wrote:
> Hi,
> We made lots of progresses on x32 pABI:
> 1. Kernel interface with syscall is close to be finalized.
> 2. GCC x32 branch is stabilizing.
> 3. The Bionic C library works with the syscall kernel interface.
> The next major milestone will be x32 glibc port.

[hjl@gnu-6 gcc]$ cat x.c
#include <stdio.h>

main ()
  printf ("hello world\n");
  return 0;
[hjl@gnu-6 gcc]$ ./xgcc -B./ -mx32 -O x.c
[hjl@gnu-6 gcc]$ ./a.out
hello world
[hjl@gnu-6 gcc]$ readelf -h a.out
ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           Advanced Micro Devices X86-64
  Version:                           0x1
  Entry point address:               0x4002b0
  Start of program headers:          52 (bytes into file)
  Start of section headers:          3684 (bytes into file)
  Flags:                             0x0
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         8
  Size of section headers:           40 (bytes)
  Number of section headers:         36
  Section header string table index: 33
[hjl@gnu-6 gcc]$ /lib32/ --list ./a.out =>  (0x0012e000) => /lib32/ (0xf7c74000)
	/lib32/ (0x00110000)
[hjl@gnu-6 gcc]$


                 reply	other threads:[~2011-02-15 16:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \
    --subject='Re: Hello world from x32 glibc' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).