From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,e1d00d1219dd9e35,start X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2004-02-18 18:45:03 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!logbridge.uoregon.edu!arclight.uoregon.edu!news-ext.gatech.edu!news-int.gatech.edu!not-for-mail From: "Peter Sassone" Newsgroups: comp.os.linux.alpha Subject: Redhat linux -> ecoff binaries? Date: Wed, 18 Feb 2004 21:49:55 -0500 Organization: Georgia Institute of Technology Sender: gt7146b@user-11212gl.dsl.mindspring.com Message-ID: NNTP-Posting-Host: user-11212gl.dsl.mindspring.com X-Trace: news-int.gatech.edu 1077158523 3344 66.32.138.21 (19 Feb 2004 02:42:03 GMT) X-Complaints-To: usenet@news-int.gatech.edu NNTP-Posting-Date: Thu, 19 Feb 2004 02:42:03 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Xref: archiver1.google.com comp.os.linux.alpha:498 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