www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/08/25/09:52:31

Date: Tue, 25 Aug 1998 09:52:28 -0400 (EDT)
Message-Id: <199808251352.JAA19833@delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: eliz AT is DOT elta DOT co DOT il
CC: robert DOT hoehne AT gmx DOT net, djgpp-workers AT delorie DOT com
In-reply-to: <Pine.SUN.3.91.980825094243.6686B-100000@is> (message from Eli
Zaretskii on Tue, 25 Aug 1998 09:47:46 +0300 (IDT))
Subject: Re: Bug in crt1.c (alpha 980712)

> Btw, why is that stubinfo 16 bytes long?  argv[0] cannot be more than 
> 8+3+1+1 = 13 bytes, so what are the extra 3 bytes for?  DJ?

It might come from the alternate argv[0] stored in the stub, which is
up to 16 bytes.  The stub has a field to allow you to specify an
alternate argv[0], just in case the program needs it to be a specific
value longer than 8 characters or case sensitive.  For example,
"sendmail" acts differently if it is called as "newaliases", but
"newaliases" is longer than 8 characters.  Yes, I know symlinks would
be used in that case, but there may be cases where they aren't, or
when *all* variants are longer 8 characters.

- Raw text -


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