Mail Archives: djgpp/2002/07/27/21:11:56
From: | Peteris Krumins <whitesunNOSPAM AT e-apollo DOT lv>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | ld produces 1024byte file instead of couple bytes big file as expected
|
Date: | 27 Jul 2002 23:30:51 GMT
|
Lines: | 17
|
Message-ID: | <Xns92591AA73E45whitesuneapollolv@130.133.1.4>
|
NNTP-Posting-Host: | 80.232.240.27
|
X-Trace: | fu-berlin.de 1027812651 34073265 80.232.240.27 (16 [136105])
|
User-Agent: | Xnews/5.04.25
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
hello,
the problem i have is that after compiling dummy c program:
int main() { }
and compiling it 'gcc -c dummy_program.c'
then trying 'ld dummy_program.o -o dummy.bin -Ttext 0x0 -e main --oformat
binary', i have 1024 byte file, which of right assembler code at the
beginning but all the other bytes till 1024th are filled with zeros '0'.
whats wrong?
gcc version 3.1
ld 2.12.1
compiling on win9x
- Raw text -