www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/12/03:27:08

Date: Mon, 12 Mar 2001 10:19:54 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Cesar Rabak <csrabak AT uol DOT com DOT br>
cc: djgpp AT delorie DOT com
Subject: Re: Strange text in non stripped header files
In-Reply-To: <3AAC38EB.D71AC69E@uol.com.br>
Message-ID: <Pine.SUN.3.91.1010312101936.24860G-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 11 Mar 2001, Cesar Rabak wrote:

> After compiling a relatevely large source file 267652 bytes, I'm getting
> a strange result when creating programs w/o stripping. Namely in the
> start of the a.out file it is possible to find a part of a text which
> seems to be part of a gxxFAQ.info! The strange text starts at offset
> 0xa8 and goes up to 0x10a7.

I think this is a known problem with current Binutils: the alignment
gap between the end of the stub and COFF header and the beginning of
the executable is filled with random garbage which typically comes
from memory or unused disk space.  (The DJGPP programs' entry point is
at 0x10a8.)

Does that garbage go away if you use stubify to create the .exe
program?

> It doesn't happen when one compiles a 'hello world' type of programm, so
> it may be difficult to reproduce*.

What do you see in that portion of the executable in a hello world
program?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019