delorie.com/archives/browse.cgi | search |
From: | Martin Str|mberg <ams AT speedy DOT ludd DOT luth DOT se> |
Subject: | Re: ld produces 1024byte file instead of couple bytes big file as expected |
Newsgroups: | comp.os.msdos.djgpp |
References: | <Xns92591AA73E45whitesuneapollolv AT 130 DOT 133 DOT 1 DOT 4> |
User-Agent: | tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (NetBSD/1.5_BETA (alpha)) |
Message-ID: | <1027813515.932131@queeg.ludd.luth.se> |
Cache-Post-Path: | queeg.ludd.luth.se!unknown AT speedy DOT ludd DOT luth DOT se |
X-Cache: | nntpcache 2.4.0b5 (see http://www.nntpcache.org/) |
Date: | 27 Jul 2002 23:45:16 GMT |
Lines: | 24 |
NNTP-Posting-Date: | 27 Jul 2002 23:45:16 GMT |
NNTP-Posting-Host: | queeg.ludd.luth.se |
X-Trace: | 1027813516 news.luth.se 441 130.240.16.109 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Peteris Krumins <whitesunNOSPAM AT e-apollo DOT lv> wrote: : 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 Add --verbose to ld and examine the linker script. Probably it has some ALIGN statements. Right, MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |