Magic number problem

Jim Santos jsantos at bubba.ma30.bull.com
Wed Oct 31 01:12:31 AEST 1990


Hi,
	I have built gcc 1.37 and gas 1.36 on my 386 running SCO Unix
3.2.1, using the COFF patches from tut.cis.ohio-state.edu.  When I try
to compile a test program, I get the following:  

$ 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/cca03324.cpp
GNU CPP version 1.37
 /usr/local/lib/gcc-cc1 /usr/tmp/cca03324.cpp -quiet -dumpbase test.c -version -
o /usr/tmp/cca03324.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/cca03324.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

According to the man page for ar, the magic number for this system is
0xff65.  How do I make gas believe this, though?

Please respond via email.

-------------------------
Jim Santos
Bull Worldwide Information Systems
santos at granite.cr.bull.com



More information about the Comp.unix.sysv386 mailing list