From: "Peter Sassone" <pete@play.com>
Subject: Redhat linux -> ecoff binaries?
Date: Wed, 18 Feb 2004 21:49:55 -0500 [thread overview]
Message-ID: <c117pq$38g$1@news-int.gatech.edu> (raw)
I was hoping someone could help me with this:
I have acquired an old AlphaStation 21064 with Redhat 7.2 from a collegue.
My goal is to use this machine to compile alpha ecoff binaries for some
architecture and compiler research, but we don't have a copy of DEC unix or
Compaq c.
Compiling hello world with the default gcc 2.95 produces an elf binary, and
adding -Wl,-oformat,ecoff-littlealpha gives errors about no libc.so.6.1. I
think it means that the installed glibc is elf, instead of the expected
ecoff, which is the case.
On a hunch, I made cross-binutils (2.11) and cross-gcc (3.3.2) to target
alpha-dec-osf4, so that I could compile glibc into an ecoff format. Problem
is that though the new gcc successfully compiles programs into objects, it
can't link in the c runtime crt0.o. I believe that Linux elf systems use
crt1.o, so understandably there's no crt0.o. But I can't find any
package/source/webpage/etc that can provides the right crt0.o.
Now, I did find the following:
www.kernel.org/pub/linux/libs/klibc/cvsroot/klibc/arch/alpha/crt0.S,v
Which does compile into a crt0.o file, but it gives funky "multiple
definition of main" and "relocation trucated" errors when I use it to link,
so I don't think its the right crt0.
So, I have two big questions I hope someone can answer:
1. Am I going down the easiest path to make ecoff executables?
I'd prefer not buy DEC unix and using gcc would be beneficial
to my research.
2. If this is the right path, then where can I get/make the right
crt0.o? I don't have access to any other Alpha systems to
steal it from.
Thanks for any help,
--
Peter Sassone
next reply other threads:[~2004-02-19 2:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-19 2:49 Peter Sassone [this message]
2004-02-19 2:51 ` Redhat linux -> ecoff binaries? Jafir Elkurd
2004-02-19 3:34 ` Peter Sassone
2004-02-20 3:22 ` fybar
2004-02-19 6:52 ` Peter Sassone
2004-02-19 14:10 ` Followup
2004-02-19 14:03 ` Juhana Paavola
2004-02-20 6:11 ` dooley
2004-02-20 18:42 ` Peter Sassone
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox