lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <AANLkTik0E+7mTWT7B0E+MmXWdEO2fBztPZT3yv69M3ig@mail.gmail.com>
Date:	Tue, 15 Feb 2011 08:06:06 -0800
From:	"H.J. Lu" <hjl.tools@...il.com>
To:	GCC Development <gcc@....gnu.org>,
	GNU C Library <libc-alpha@...rceware.org>,
	LKML <linux-kernel@...r.kernel.org>, x32-abi@...glegroups.com
Subject: Hello world from x32 glibc

On Sat, Feb 12, 2011 at 11:41 AM, H.J. Lu <hjl.tools@...il.com> wrote:
> Hi,
>
> We made lots of progresses on x32 pABI:
>
> https://sites.google.com/site/x32abi/
>
> 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@...-6 gcc]$ cat x.c
#include <stdio.h>

int
main ()
{
  printf ("hello world\n");
  return 0;
}
[hjl@...-6 gcc]$ ./xgcc -B./ -mx32 -O x.c
[hjl@...-6 gcc]$ ./a.out
hello world
[hjl@...-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@...-6 gcc]$ /lib32/ld-linux-x32.so.2 --list ./a.out
	linux-gate.so.1 =>  (0x0012e000)
	libc.so.6 => /lib32/libc.so.6 (0xf7c74000)
	/lib32/ld-linux-x32.so.2 (0x00110000)
[hjl@...-6 gcc]$


-- 
H.J.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ