* Re: gcc/as problem
[not found] <199606221339.PAA07684@jupiter.stochastik.rwth-aachen.de>
@ 1996-06-23 20:01 ` Richard Henderson
0 siblings, 0 replies; 5+ messages in thread
From: Richard Henderson @ 1996-06-23 20:01 UTC (permalink / raw)
> 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~
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <m.schwingen@stochastik.rwth-aachen.de>]
* Re: gcc/as problem
[not found] <m.schwingen@stochastik.rwth-aachen.de>
@ 1996-06-21 17:47 ` Stefan Kanthak
1996-06-21 14:29 ` Richard Henderson
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Kanthak @ 1996-06-21 17:47 UTC (permalink / raw)
Hello Michael!
> I just tried to compile STonX 0.6.5 (a free Atari ST emulator). When
> compiling cpu.c, after a short time, a huge (24MB) 'as' is started,
> and after some time, this process does not seem to do anything.
When compiling uae (the unix amiga emulator) I had the same problem.
'as' seems to have problems with files that are longer than 64K lines!
> Is this 'normal' behaviour? Any way to get around this?
There does exist a simple solution to the problem:
1. Compile the file with gcc and all necessary options. Do only generate
an assembler file, no object file!
2. Split the assembler file into pieces that have less than 64K lines each
and send them through 'as'/'gas'.
3. Link all pieces one after each other.
That was the only possiblity to compile the large function pointer table of
the uae 68K emulator!
I hope this solution is applicable to STonX, too.
Bye,
Stephan
--
_______________________________________________________________________________
Stephan Kanthak
Department of Computer Science VI
Pattern- and Speech Recognition Research
RWTH Aachen, Germany """""
e-mail: kanthak@i6.informatik.rwth-aachen.de | |
http://www.informatik.rwth-aachen.de/I6/Colleagues/kanthak/ O -
______________________________________________________________.oO_| u |_Oo.____
\_/
^ permalink raw reply [flat|nested] 5+ messages in thread
* gcc/as problem
@ 1996-06-21 9:23 Michael Schwingen
1996-06-21 14:24 ` Richard Henderson
0 siblings, 1 reply; 5+ messages in thread
From: Michael Schwingen @ 1996-06-21 9:23 UTC (permalink / raw)
Hello,
I just tried to compile STonX 0.6.5 (a free Atari ST emulator). When
compiling cpu.c, after a short time, a huge (24MB) 'as' is started,
and after some time, this process does not seem to do anything.
After quite some time, I get the following mesages:
>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
Is this 'normal' behaviour? Any way to get around this?
I am using gcc 2.7.1 from Red Hat 2.x
cu
Michael
--
Michael Schwingen <m.schwingen@stochastik.rwth-aachen.de>
Institut fuer Statistik und Wirtschaftsmathematik, | In the beginning there was
Wuellnerstr. 3, 52056 Aachen | nothing, which exploded.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcc/as problem
1996-06-21 9:23 Michael Schwingen
@ 1996-06-21 14:24 ` Richard Henderson
0 siblings, 0 replies; 5+ messages in thread
From: Richard Henderson @ 1996-06-21 14:24 UTC (permalink / raw)
> >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
>
> Is this 'normal' behaviour? Any way to get around this?
> I am using gcc 2.7.1 from Red Hat 2.x
Not exactly. If you could send me the preprocessed file (-E) and the
assembly file (-S), I can find out where the problem is.
r~
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1996-06-23 20:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <199606221339.PAA07684@jupiter.stochastik.rwth-aachen.de>
1996-06-23 20:01 ` gcc/as problem Richard Henderson
[not found] <m.schwingen@stochastik.rwth-aachen.de>
1996-06-21 17:47 ` Stefan Kanthak
1996-06-21 14:29 ` Richard Henderson
1996-06-21 9:23 Michael Schwingen
1996-06-21 14:24 ` Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox