Biarch patch for s390/s390x.

Jakub Jelinek jakub@redhat.com
Tue Jul 9 11:31:00 GMT 2002


On Tue, Jul 09, 2002 at 08:21:31PM +0200, Martin Schwidefsky wrote:
> Hi,
> I unified the bits and sys header files of s390-32 and s390-64. The goal is to
> be able to compile 31 bit binaries on a 64 bit system with the gcc switch -m31.
> The biarch support in the binutils already works, the compiler is almost done.
> Only the kernel header files are yet to be done.

You could use similar script like Sparc linux is using - BuildASM
is a simple script which for
/usr/include/asm-sparc and /usr/include/asm-sparc64
creates /usr/include/asm directory, which contains headers like:
#ifndef __SPARCSTUB__ASI_H__
#define __SPARCSTUB__ASI_H__
#ifdef __arch64__
#include <asm-sparc64/asi.h>
#else
#include <asm-sparc/asi.h>
#endif
#endif

(if both exist and are different, link to one of the files if they are equal
and have the corresponding #if/#else part removed if some header exists
for 32-bit or 64-bit only).

	Jakub



More information about the Libc-hacker mailing list