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]
- To: DJ Delorie <dj@delorie.com>
- Subject: Re: tiny patch for execvp [Re: Problems with winsup-981223]
- From: Christopher Faylor <cgf@cygnus.com>
- Date: Mon, 1 Feb 1999 14:22:32 -0500
- Cc: cygwin32-developers@cygnus.com
- Delivered-To: listarch-cygwin-developers@sourceware.cygnus.com
- In-Reply-To: <199902011909.OAA29894@envy.delorie.com>; from DJ Delorie on Mon, Feb 01, 1999 at 02:09:58PM -0500
- References: <19981227212632.A24196@cygnus.com> <199901300438.UAA19176@cygnus.com> <19990130010435.O10431@cygnus.com> <199901302309.SAA00319@envy.delorie.com> <19990131001707.A19124@cygnus.com> <36b4f822.165663739@mail.goodnet.com> <19990201103846.A26507@cygnus.com> <199902011909.OAA29894@envy.delorie.com>
- Sender: owner-cygwin32-developers@cygnus.com
On Mon, Feb 01, 1999 at 02:09:58PM -0500, DJ Delorie wrote:
>> 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.
So, I think that I would vastly prefer the link time error to a
runtime core dump.
I've modified libiberty and will be testing this today.
-chris