From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <7dcb6e9a82189e180a6959142f0ad9e2.axp-list@archive.invalid> X-Archive-Original-Message-ID: Date: Sun, 23 Jun 1996 15:01:14 -0500 (CDT) From: Richard Henderson Subject: Re: gcc/as problem In-Reply-To: <199606221339.PAA07684@jupiter.stochastik.rwth-aachen.de> > gcc -fomit-frame-pointer -I/usr/X11R6/include -DSH_MEM -DIS_BIG_ENDIAN=0 > -DSTATFS_USE_VFS -DINLINE=inline -O3 -c cpu.c -o cpu.o > cpu.o: reloc overflow: 0x100c5 > 0xffff > cpu.o: File truncated > /tmp/cca01706.s: Assembler messages: > /tmp/cca01706.s:79853: FATAL: Can't close cpu.o > : File truncated This is not a bug. This is a silly limitation on the part of the COFF object file format that ECOFF did not bother to correct: no section may have more than 65535 relocation entries. Unfortunately for you, cpu.c has a huge table with 65536 function entries, each of which needs one relocation entry. (There are other data bits that bring the total up to 0x100c5). One thing you can do for now is replace the Nil function with NULL and test for NULL in execute(). That should bring the total down under the limit. Or you can wait for ELF; we've got no silly 16-bit (or even 32-bit) restrictions on relocations there. r~