Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Re: Why can Digital bins run on Linux?
  1999-02-05  5:00 Why can Digital bins run on Linux? Martin Kahlert
@ 1999-02-05  5:00 ` Serguei Patchkovskii
  1999-02-06  5:00   ` Toon Moene
  1999-02-06  5:00 ` martin
  1999-02-07  5:00 ` Anton Ertl
  2 siblings, 1 reply; 5+ messages in thread
From: Serguei Patchkovskii @ 1999-02-05  5:00 UTC (permalink / raw)


Martin Kahlert (martin.kahlert@keksy.mchp.siemens.de) wrote:
: the subject says it: Why is it possible, to run statically
: linked Digital Unix binaries on Linux-AXP?

: O.k. the libs are statically linked to the binary, both have ELF 
: and the cpu is the same, but why does e.g. a fopen work?

Because some good soul spent a fair bit of his or her time to
implement translation layer for OSF/1 system calls in Linux?

/Serge.P



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

* Why can Digital bins run on Linux?
@ 1999-02-05  5:00 Martin Kahlert
  1999-02-05  5:00 ` Serguei Patchkovskii
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Martin Kahlert @ 1999-02-05  5:00 UTC (permalink / raw)


Hi
the subject says it: Why is it possible, to run statically
linked Digital Unix binaries on Linux-AXP?

O.k. the libs are statically linked to the binary, both have ELF 
and the cpu is the same, but why does e.g. a fopen work?

The fopen call is handled from libc (statically linked to the prog -
no problem) but this function will sooner or later call open
and that's (always?) a system call. I think Linux does an 
interrupt 80h for it. So why does this work?

I don't think i could run Windows binaries on Linux-x86 - even
if MS would change to ELF format.

For explanation: I want to do it the other way round.
Can i savely run statically linked Linux-binaries on Digital UX?

Thanks for any reply,
Martin.


-- 
Your mouse has moved. Windows must be restarted for the change
to take effect. Reboot now?



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

* Re: Why can Digital bins run on Linux?
  1999-02-05  5:00 ` Serguei Patchkovskii
@ 1999-02-06  5:00   ` Toon Moene
  0 siblings, 0 replies; 5+ messages in thread
From: Toon Moene @ 1999-02-06  5:00 UTC (permalink / raw)


Serguei Patchkovskii wrote:

> Because some good soul spent a fair bit of his or her time to
> implement translation layer for OSF/1 system calls in Linux?

Nope - Linux/Alpha was designed that way from the start, because it was
easier to get it up and running that way.

-- 
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
g77 Support: fortran@gnu.org; egcs: egcs-bugs@cygnus.com



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

* Re: Why can Digital bins run on Linux?
  1999-02-05  5:00 Why can Digital bins run on Linux? Martin Kahlert
  1999-02-05  5:00 ` Serguei Patchkovskii
@ 1999-02-06  5:00 ` martin
  1999-02-07  5:00 ` Anton Ertl
  2 siblings, 0 replies; 5+ messages in thread
From: martin @ 1999-02-06  5:00 UTC (permalink / raw)


In article <79eksf$gam$1@news.mch.sbs.de>,
	I wrote:
> O.k. the libs are statically linked to the binary, both have ELF 
> and the cpu is the same, but why does e.g. a fopen work?

Sorry to reply to my own message, but i tried to give a Digital
Unix user a statically linked linux binary.
The problem: They use COFF - not ELF.
Can i compile COFF binaries somehow on my Linux AXP?

> Thanks for any reply,
> Martin.

-- 
Your mouse has moved, Windows must be restarted for changes
to take affect - restart now?



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

* Re: Why can Digital bins run on Linux?
  1999-02-05  5:00 Why can Digital bins run on Linux? Martin Kahlert
  1999-02-05  5:00 ` Serguei Patchkovskii
  1999-02-06  5:00 ` martin
@ 1999-02-07  5:00 ` Anton Ertl
  2 siblings, 0 replies; 5+ messages in thread
From: Anton Ertl @ 1999-02-07  5:00 UTC (permalink / raw)


In article <79eksf$gam$1@news.mch.sbs.de>,
 you write:
> I don't think i could run Windows binaries on Linux-x86 - even
> if MS would change to ELF format.

You can. Take a look at the Wine project.  The emulation is not
complete, though, so only a part of the programs work.

> Can i savely run statically linked Linux-binaries on Digital UX?

No:

[mips:~/a5/gforth:506] uname 
OSF1
[mips:~/a5/gforth:507] file gforth
gforth: Elf format data
[mips:~/a5/gforth:508] ./gforth
bash: ./gforth: cannot execute binary file

This gforth is a Linux/Alpha binary.

- anton
-- 
M. Anton Ertl                    Some things have to be seen to be believed
anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
http://www.complang.tuwien.ac.at/anton/home.html



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

end of thread, other threads:[~1999-02-07  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-05  5:00 Why can Digital bins run on Linux? Martin Kahlert
1999-02-05  5:00 ` Serguei Patchkovskii
1999-02-06  5:00   ` Toon Moene
1999-02-06  5:00 ` martin
1999-02-07  5:00 ` Anton Ertl

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