Mail Archives: djgpp-workers/1996/08/01/12:36:31
On Thu, 1 Aug 1996, Robert Hoehne wrote:
> Can you give a list of things, which should be tested to work?
First, there is a bug with .o files that declare large static arrays/data
structures. See a simple test case posted to the news group at the end of
this message (I checked that test case: it indeed won't link with ld from
Binutils 2.5.2).
Then there is the case of large libraries. Maybe it's a good idea to ask
on the news group that people who had these problems contact you and send
you examples of such libraries, so you could check. (I don't have any
examples of such libraries.) You can also use the mail-archives to
search for such posts and contact people that complained about these
problems.
There is also a need to teach Binutils to know about DJGPP stubbed
executables. This is not a bug, but it prevents e.g. `strip' to be able
to strip a stubbed executable, so you need to exe2coff-strip-stubify.
--------------------------- cut here ----------------------------
Xref: news2.mv.net comp.os.msdos.djgpp:5671
From: dmicolet AT u-bourgogne DOT fr (Dominique Micollet)
Newsgroups: comp.os.msdos.djgpp
Subject: [Q] Length of static arrays
Date: 4 Jul 1996 13:42:18 GMT
Organization: Universite de Bourgogne - Dijon - France
Lines: 25
Message-ID: <4rghnq$6qd AT tempo DOT univ-lyon1 DOT fr>
NNTP-Posting-Host: satie.u-bourgogne.fr
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Trying to convince a friend of mine to use DJGPP, I try to compile the
following, in essai.c :
#include <stdio.h>
unsigned char Tableau[1024L*1024L*16L];
int main(int argc, char * argv[])
{
printf("hello world\n");
return(0);
}
(In french "Tableau" means "array", and "essai" means "try")
It compiles fine, but does not link : I got the folowing :
e:/miko/trash/essai.o : could not read symbols : Bad value.
If I reduce the size of the array to 1024*1024*15, the linking is OK.
So my question : is there a maximum length for a static array ?
Curiously my computer has 16 M of memory : is there a connexion ?
- Raw text -