Subject: Re: Global variable name which equals to func name causes coredump(gcc).
To: None <tech-userlevel@netbsd.org>
From: Valeriy E. Ushakov <uwe@bigmac.stderr.spb.ru>
List: tech-userlevel
Date: 09/27/2007 18:43:46
Valeriy E. Ushakov <uwe@bigmac.stderr.spb.ru> wrote:
> Hmm, strange. The example works on my sh3 system where __sread calls
> _read (weak alias to _sys_read - the actual syscall), but fails as you
> described on my macppc where __sread calls read directly.
Ah, it was fixed only recently in namespace.h
revision 1.129
date: 2007/06/03 17:38:07; author: christos; state: Exp; lines: +7 -1
- add read and readlink since they are used internally
...
SY, Uwe
--
uwe@stderr.spb.ru | Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen