environ is autofiltered from dll export list?

Pedro Alves pedro_alves@portugalmail.pt
Wed May 24 07:38:00 GMT 2006


Hi all,

char** environ is explicitly disabled from dll exporting in pe-dll.c's 
autofilters. Why is it? I tried to look in the archives,
back when the auto-importing was introduced, but couldn't find the 
rationale.
Should every dll have its own environ?

Also, while looking at it, why are _fmode, _impure_ptr, 
cygwin_attach_dll, cygwin_premain0, cygwin_premain1, cygwin_premain2,
cygwin_premain3 and environ in the autofilter_symbolprefixlist[] instead 
of the autofilter_symbollist[]? Probably an oversight.

Cheers,
Pedro Alves

from pe-dll.c:

static autofilter_entry_type autofilter_symbolprefixlist[] =
{
  { "__imp", 5 },
  /* Do __imp_ explicitly to save time.  */

   (...)

  { "_impure_ptr", 11 },
  { "cygwin_attach_dll", 17 },
  { "cygwin_premain0", 15 },
  { "cygwin_premain1", 15 },
  { "cygwin_premain2", 15 },
  { "cygwin_premain3", 15 },
  { "environ", 7 },
  { NULL, 0 }
};



More information about the Binutils mailing list