This is the mail archive of the cygwin-developers@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: tiny patch for execvp [Re: Problems with winsup-981223]




> If we removed the DATA keyword, does that mean that there will be a
> sys_errlist symbol in libcygwin.a but it won't refer to the actual
> table?

Yes.

> If so, does that mean that this code would do something funky:
> 
> char *sys_errlist[];
> main()
> {
>   puts(sys_errlist[1]);
> }

Yes.  sys_errlist would be the address of a chunk of i386 opcodes, not
the address of the table of pointers to strings.