Mail Archives: cygwin-developers/1999/02/01/11:38:13
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
- Raw text -