Re: PROPOSED: 32/64 bit coexistance
- To: Theodore Tso <tytso@mit.edu>
- Cc: Andreas Jaeger <aj@suse.de>, fhs-discuss@ucsd.edu, linux-ia64@linuxia64.org, lsb-spec@lists.linuxbase.org, Brad_Brech/Rochester/IBM@de.ibm.com, jporell@us.ibm.com, Michael_Day/Austin/IBM@de.ibm.com, Ron_Clark/Austin/IBM@de.ibm.com, George_Kraft/Austin/IBM@de.ibm.com, Paul_McKenney/Beaverton/IBM@de.ibm.com, Kenneth_Rozendal/Austin/IBM@de.ibm.com, Satya_Sharma/Austin/IBM@de.ibm.com, ADLUNG@de.ibm.com, dbb@caldera.com, mkraft@suse.de, David Mosberger <davidm@hpl.hp.com>
- Subject: Re: PROPOSED: 32/64 bit coexistance
- From: Jakub Jelinek <jakub@redhat.com>
- Date: Tue, 18 Sep 2001 05:39:19 -0400
- Message-id: <[🔎] 20010918053919.W25384@devserv.devel.redhat.com>
- Reply-to: Jakub Jelinek <jakub@redhat.com>
- In-reply-to: <[🔎] 20010918050050.A2824@thunk.org>; from tytso@mit.edu on Tue, Sep 18, 2001 at 05:00:50AM -0400
- References: <[🔎] 3BA6071A.A5829430@austin.ibm.com> <[🔎] hobsk8oq1h.fsf@gee.suse.de> <[🔎] 20010918050050.A2824@thunk.org>
On Tue, Sep 18, 2001 at 05:00:50AM -0400, Theodore Tso wrote:
> On Tue, Sep 18, 2001 at 10:34:50AM +0200, Andreas Jaeger wrote:
> >
> > * /lib: consistent scheme for all 32bit systems and x86-64,
> > sparc64, ppc64, zSeries (s390x).
> >
> > * iA64 today has a 32bit emulation mode, but 64bit is the
> > (only) favored one; Alpha is too long established. (64bit
> > libs will go to /lib)
> >
>
> Does Sparc/Ultrasparc use /lib and /lib64? Or will this be a change
> for the Ultrasparc platform?
Linux/SPARC uses /lib and /lib64 (dynamic linkers /lib/ld-linux.so.2 and
/lib64/ld-linux.so.2), at least glibc has this in (including /usr/include
headers which are correct for both 32bit and 64bit ports by looking
at preprocessor flags (this is what <bits/wordsize.h> is for, and
magic /usr/include/asm/BuildASM script which creates asm header stubs from
<asm-sparc/*.h> and <asm-sparc64/*.h> headers)), likewise for gcc (the
default dynamic linker for -m64 is there /lib64/ld-linux.so.2; RHL gcc rpm
even contains patch which changes the -m32 resp. -m64 default based on
whether gcc is running in sparc32(8) compatibility environment, so if one
runs sparc32 /bin/sh and in there types ./configure; make, he'll get 32bit
programs, doing the same outside of sparc32 children will result in 64bit
programs (or libraries)), binutils. But as Red Hat SPARC distribution is in
a bad shape (I'm trying to resurrect it at least a little bit in my spare
time during last week), the 64bit stuff consists just of 64bit glibc, gcc,
libtermcap, gdb) there. I think Debian or SuSE folks have played with 64bit
userland too and might get further, though if I remember Debian folks used
to oppose this /lib and /lib64 scheme when I started using it for sparc64
and wanted to do something else.
Jakub
Reply to: