This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Biarch patch for s390/s390x.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]