Date: Wed, 23 Dec 1998 14:44:33 -0500 Message-Id: <199812231944.OAA19298@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: <914439857.10644.0.nnrp-12.c1ed260d@news.demon.co.uk> (jazz AT uknet DOT demon DOT co DOT uk) Subject: Re: ld (that comes with djgpp) major problems References: <914404117 DOT 2848 DOT 0 DOT nnrp-09 DOT c1ed260d AT news DOT demon DOT co DOT uk> <199812231437 DOT JAA27935 AT envy DOT delorie DOT com> <914439857 DOT 10644 DOT 0 DOT nnrp-12 DOT c1ed260d AT news DOT demon DOT co DOT uk> Reply-To: djgpp AT delorie DOT com > >This is just the way DOS works. If you seek past the end of a file > >and then write to it, DOS fills the "gap" with junk. > > But that doesn't change the fact that I have a useless file! > What is ld or me doing wrong? The file isn't useless. The parts where you see junk wouldn't have data in them anyway - the only alternative is to fill them with zeros, but that takes longer. The final output file doesn't use every single byte in the file for data - some is just filler to make things the right sizes.