List Info

Thread: 32 bit or 64 bit ELF on UltraSparc IIi?




32 bit or 64 bit ELF on UltraSparc IIi?
country flaguser name
Australia
2007-09-25 21:30:14
Hello All,

I'm confused about why I'm compiling 32 bit ELF despite
having a 64 bit
kernel (see following evidence from 'file' command).
 
/lib/modules/2.6.22-gentoo-r5/kernel/drivers/net/sunhme.ko:
ELF 64-bit
MSB relocatable, SPARC V9, version 1 (SYSV), not stripped

/bin/ls: ELF 32-bit MSB executable, SPARC32PLUS, V8+
Required, version 1
(SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared
libs),
stripped

My CHOST is "sparc-unknown-linux-gnu", but
apparently I'm not meant to
change this to sparc64-unknown-linux-gnu?

Thanks very much,
Frank.

-- 
gentoo-sparcgentoo.org mailing list


Re: 32 bit or 64 bit ELF on UltraSparc IIi?
country flaguser name
Portugal
2007-09-26 04:30:53
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Francis.

Francis Barber wrote:
> Hello All,
> 
> I'm confused about why I'm compiling 32 bit ELF despite
having a 64 bit
> kernel (see following evidence from 'file' command).
>  

As stated on the devmanual
ht
tp://devmanual.gentoo.org/archs/sparc/index.html
"v9 systems use a
pure 64 bit kernel and a pure 32 bit userland".

- --
Regards,

Jorge Vicetto (jmbsvicetto) - jmbsvicetto at gentoo dot org
Gentoo- forums / Userrel / SPARC
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


iD8DBQFG+ibNcAWygvVEyAIRAjS0AJ9dZEkkw42CJaAGZgVJuh1vTHqPUACg
mCiM
Kiqu68shxxYJvbhgFWG+RE4=
=srMx
-----END PGP SIGNATURE-----
-- 
gentoo-sparcgentoo.org mailing list


Re: 32 bit or 64 bit ELF on UltraSparc IIi?
user name
2007-09-26 08:15:56
> My CHOST is "sparc-unknown-linux-gnu", but
apparently I'm not meant to
> change this to sparc64-unknown-linux-gnu?

This is correct.  While there is a sparc64-unknown-linux-gnu
setup
floating around, it is strictly for compiling the kernel. 
Also, there
are some ebuilds (like glibc) that may depend on
sparc-unknown-linux-gnu existing or they will fail.

As for why userland is 32 bits, take a look at the whole
thread on
this topic from the sparclinux mailing list archives[1]. 
While it is
a bit dated, I believe the information is still relevant.

[1] - http://marc.info/?l=linux-sparc&m=99706001104013
&w=2

Cheers,
-- 
Jason Wever
-- 
gentoo-sparcgentoo.org mailing list


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )