Mail Archives: djgpp/1997/01/26/11:18:55
----------
On Sat, 25 Jan 1997, Mark S. Teel wrote:
> I am trying to rebuild gcc and I keep getting the message :
> "c:/djgpp/bin\ld.exe: cc1: .text: line number overflow: 0x10b58 > 0xffff"
> on what appears to be the final link. I have read the FAQ but haven't
> found anything about this. Thanks in advance.
:You need to add -O2 to the compilation switches. The problem is that
:COFF object format only supports 64K source lines per program, but when
:you compile without -O2, you get more lines than that.
:Just add "CFLAGS=-O2" to whatever command line you pass to Make when you
:compile gcc.
Thanks, that seemed to work. But this raises some other questions...
1) Replacing the -g with -O2 causes optimization and no debug information
generated.
Does this mean the libraries were built without debug information? Will I
not be able to
step into the library routines?
2) There was a plethora of EXEs generated in addition to cc1.exe - what
files need to be
moved into the bin directory, lib directory, etc?
An interesting observation is that while I was building gcc, I received
mail via M$ Internet
Mail and it caused the compiler to crash!?! I restarted it and all seemed
fine...
Thanks for your help :) MST
- Raw text -