This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

environ is autofiltered from dll export list?


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 }
};


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]