From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,e1d00d1219dd9e35 X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2004-02-19 22:11:41 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dooleys@snowy.net.au (dooley) Newsgroups: comp.os.linux.alpha Subject: Re: Redhat linux -> ecoff binaries? Date: 19 Feb 2004 22:11:41 -0800 Organization: http://groups.google.com Message-ID: <1ca82fc6.0402192211.d74691d@posting.google.com> References: NNTP-Posting-Host: 203.102.206.62 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1077257501 22097 127.0.0.1 (20 Feb 2004 06:11:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 20 Feb 2004 06:11:41 +0000 (UTC) Xref: archiver1.google.com comp.os.linux.alpha:505 "Peter Sassone" wrote in message news:... > 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, see http://sources.redhat.com/ml/crossgcc/2003-09/msg00110.html they seem to know what they are talking about If this is for "non commercial" use you can get Tru64 and the compilers for $US 99 from HP Phil