Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rutgers!rochester!cornell!uw-beaver!mit-eddie!wuarchive!rice!uupsi!psivax!ttidca!mb From: mb@ttidca.TTI.COM (Michael Bloom) Newsgroups: comp.unix.sysv386 Subject: Re: Magic number problems Message-ID: <20897@ttidca.TTI.COM> Date: 31 Oct 90 01:16:18 GMT References: Organization: Citicorp/TTI, Santa Monica Lines: 15 In article jsantos@bubba.ma30.bull.com (Jim Santos) writes: Hi, I have built gcc and gas on a 386 system running SCO Unix V3.2.1 (using the COFF patches from tut.cis.ohio-state.edu). I created a little test program just to try them out. But I get the following output: /usr/local/lib/gcc-as -C -o test.o /usr/tmp/cca02086.s ld -o test /lib/crt0.o test.o /usr/local/lib/gcc-gnulib -lc /usr/local/lib/gcc->gnulib ld crt0.o: file test.o is of unknown type: magic number = 107 The code in coff-conv.c is not being invoked, and you are getting a BSD object rather than a coff object. This is because gas has been configured to produce coff objects by default and BSD objects when passed the "-C" switch. Remove the "-C" from ASM_SPEC.