public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* fat / multi arch binaries?
@ 2005-09-28 17:18 Andreas Jellinghaus
  2005-09-28 17:29 ` Antonio Vargas
  2005-09-29  0:30 ` Alan Cox
  0 siblings, 2 replies; 4+ messages in thread
From: Andreas Jellinghaus @ 2005-09-28 17:18 UTC (permalink / raw)
  To: linux-kernel

Hi,

does linux support binaries with code
for several architectures? I read that
elf allowes that, and for example
apple plans to use it on mac os X,
but I couldn't find anything whether
such binaries would work with linux
or not. can you tell me?

if linux supports that, it should
also work for merging x86 and x86_64
into one binary? would ther be a way
to run the 32bit version in the 64bit
kernel, if requested? are there any
tools to create such binaries?

with google I found info from 97
that indicades elf format has no
provision for fat binaries and linux
doesn't support them. is that still
true?

Thanks, Andreas

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: fat / multi arch binaries?
  2005-09-28 17:18 fat / multi arch binaries? Andreas Jellinghaus
@ 2005-09-28 17:29 ` Antonio Vargas
  2005-09-28 21:58   ` Bernd Petrovitsch
  2005-09-29  0:30 ` Alan Cox
  1 sibling, 1 reply; 4+ messages in thread
From: Antonio Vargas @ 2005-09-28 17:29 UTC (permalink / raw)
  To: linux-kernel

On 9/28/05, Andreas Jellinghaus <aj@dungeon.inka.de> wrote:
> Hi,
>
> does linux support binaries with code
> for several architectures? I read that
> elf allowes that, and for example
> apple plans to use it on mac os X,
> but I couldn't find anything whether
> such binaries would work with linux
> or not. can you tell me?

OSX begat from NeXT and NeXT had these same "fat binaries". They are not new :)


> if linux supports that, it should
> also work for merging x86 and x86_64
> into one binary? would ther be a way

you don't want that ;)

> to run the 32bit version in the 64bit
> kernel, if requested? are there any

32bit user-space can run 100% on 64bit kernel, this is usual in sparc
if i'm not mistaken

> tools to create such binaries?
>
> with google I found info from 97
> that indicades elf format has no
> provision for fat binaries and linux
> doesn't support them. is that still
> true?

just remember that linux is mainly about source access, so having
"fat" binaries is just wrong because the one-true-way is to get the
sources and compile for your arch directly. this can be done by hand,
semi-automated (aka gentoo) or automated (aka debian, fedora, etc...)
by just installing from precompiled binaries

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


--
Greetz, Antonio Vargas aka winden of network

http://wind.codepixel.com/


Every day, every year
you have to work
you have to study
you have to scene.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: fat / multi arch binaries?
  2005-09-28 17:29 ` Antonio Vargas
@ 2005-09-28 21:58   ` Bernd Petrovitsch
  0 siblings, 0 replies; 4+ messages in thread
From: Bernd Petrovitsch @ 2005-09-28 21:58 UTC (permalink / raw)
  To: Antonio Vargas; +Cc: linux-kernel

On Wed, 2005-09-28 at 19:29 +0200, Antonio Vargas wrote:
> On 9/28/05, Andreas Jellinghaus <aj@dungeon.inka.de> wrote:
[...]
> > does linux support binaries with code
> > for several architectures? I read that
> > elf allowes that, and for example
> > apple plans to use it on mac os X,
> > but I couldn't find anything whether
> > such binaries would work with linux
> > or not. can you tell me?
> 
> OSX begat from NeXT and NeXT had these same "fat binaries". They are not new :)

Yup. For 4 archs IIRC.

> > if linux supports that, it should
> > also work for merging x86 and x86_64
> > into one binary? would ther be a way
> 
> you don't want that ;)

ACK. It boils down to have n (i.e. lots of) cross-compilers installed.
Compiling needs n times as much time - you compile once for every
architecture. The binaries get much larger. You have to store and
transport them at startup (OK, this is pretty pathetic.) And then the
shared loader/kernel throws n-1 versions away.
On NeXT folks started to disable the FAT binaries just because of these
reasons.
ANd I hear the Intel-using world moan if they det on Debian >10 times as
large binaroes just to support MIPS and 68k ....

> > to run the 32bit version in the 64bit
> > kernel, if requested? are there any
> 
> 32bit user-space can run 100% on 64bit kernel, this is usual in sparc
> if i'm not mistaken

And on Linux too. OO.org is on the major distros only as 32bit available
and runs "natively" on x86_64.
Actually the example is not that good.

> > tools to create such binaries?
> >
> > with google I found info from 97
> > that indicades elf format has no
> > provision for fat binaries and linux
> > doesn't support them. is that still
> > true?
> 
> just remember that linux is mainly about source access, so having
> "fat" binaries is just wrong because the one-true-way is to get the
> sources and compile for your arch directly. this can be done by hand,
> semi-automated (aka gentoo) or automated (aka debian, fedora, etc...)
> by just installing from precompiled binaries

ACK. With apt-get/yum/portage/... most of the problems which were solved
with fat binaries a decade ago are already solved.

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: fat / multi arch binaries?
  2005-09-28 17:18 fat / multi arch binaries? Andreas Jellinghaus
  2005-09-28 17:29 ` Antonio Vargas
@ 2005-09-29  0:30 ` Alan Cox
  1 sibling, 0 replies; 4+ messages in thread
From: Alan Cox @ 2005-09-29  0:30 UTC (permalink / raw)
  To: Andreas Jellinghaus; +Cc: linux-kernel

> but I couldn't find anything whether
> such binaries would work with linux
> or not. can you tell me?

Linux doesn't. Instead there are a set of policies allowing parallel
library installations which although far from perfect do work.

If you want to put both architectures in one package then a simple
script to front it will do what is needed.

Alan


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-09-29  0:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-28 17:18 fat / multi arch binaries? Andreas Jellinghaus
2005-09-28 17:29 ` Antonio Vargas
2005-09-28 21:58   ` Bernd Petrovitsch
2005-09-29  0:30 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox