delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/11/22:56:27

From: "Alexei A. Frounze" <dummy_addressee AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Strange text in non stripped header files
Date: Sun, 11 Mar 2001 22:46:52 -0500
Lines: 31
Message-ID: <98hgpa$1vij4$1@ID-57378.news.dfncis.de>
References: <3AAC38EB DOT D71AC69E AT uol DOT com DOT br>
NNTP-Posting-Host: 209-130-220-11.nas1.roc.gblx.net (209.130.220.11)
X-Trace: fu-berlin.de 984368747 2083428 209.130.220.11 (16 [57378])
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Cesar Rabak" <csrabak AT uol DOT com DOT br> wrote in message
news:3AAC38EB DOT D71AC69E AT uol DOT com DOT br...
> Using:
>
> gcc version 2.952, binary size 237112 bytes and dated Jan 14 2000, and
> ld version 2.9.5, binary size 406016  bytes and dated Feb 28 2000.
>
> 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.
>
> It doesn't happen when one compiles a 'hello world' type of programm, so
> it may be difficult to reproduce*.
> Did you notice this before? Can it be considered 'normal'?

This is okay because if sections are aligned to certain location in the
file, there are gaps w/o any meaningful information. And
compiler/linker/whatever can just skip filling those gaps with 0s or
anything and you end up with some junk that was in clusters before.

--
Alexei A. Frounze
alexfru [AT] chat [DOT] ru
http://alexfru.chat.ru
http://members.xoom.com/alexfru/
http://welcome.to/pmode/



- Raw text -


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