Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Henderson <richard@atheist.tamu.edu>
Subject: Re: gcc/as problem
Date: Sun, 23 Jun 1996 15:01:14 -0500 (CDT)	[thread overview]
Message-ID: <7dcb6e9a82189e180a6959142f0ad9e2.axp-list@archive.invalid> (raw)
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~

       reply	other threads:[~1996-06-23 20:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199606221339.PAA07684@jupiter.stochastik.rwth-aachen.de>
1996-06-23 20:01 ` Richard Henderson [this message]
     [not found] <m.schwingen@stochastik.rwth-aachen.de>
1996-06-21 17:47 ` gcc/as problem Stefan Kanthak
1996-06-21 14:29   ` Richard Henderson
1996-06-21  9:23 Michael Schwingen
1996-06-21 14:24 ` Richard Henderson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox