jsantos@bubba.ma30.bull.com (Jim Santos) (10/30/90)
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: $ gcc -v test.c -o test gcc version 1.37 /usr/local/lib/gcc-cpp -v -undef -D__GNUC__ -Dunix -Di386 -D__unix__ -D__i386__ test.c /usr/tmp/cca02086.cpp GNU CPP version 1.37 /usr/local/lib/gcc-cc1 /usr/tmp/cca02086.cpp -quiet -dumpbase test.c -version - o /usr/tmp/cca02086.s GNU C version 1.37 (80386, BSD syntax) compiled by GNU C version 1.37.1. default target switches: -m80387 /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 What do I need to do so that it uses the correct 'magic number'? I looked in the module 'coff-conv.c' where it seems to define the magic number, but changing it there didn't seem to do me any good. I cannot figure out where it is coming up with '107'. Any help would be greatly appreciated. Please respond via email. __________ Jim Santos Bull Worldwide Information Systems santos@granite.cr.bull.com
mb@ttidca.TTI.COM (Michael Bloom) (10/31/90)
In article <JSANTOS.90Oct29160142@bubba.ma30.bull.com> 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.