Magic number problems

Michael Bloom mb at ttidca.TTI.COM
Wed Oct 31 12:16:18 AEST 1990


In article <JSANTOS.90Oct29160142 at bubba.ma30.bull.com> jsantos at 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.



More information about the Comp.unix.sysv386 mailing list