Fix _exit for Linux
Alexandre Oliva
aoliva@redhat.com
Mon Sep 16 09:52:00 GMT 2002
On Sep 16, 2002, Andreas Jaeger <aj@suse.de> wrote:
> Alexandre Oliva <aoliva@redhat.com> writes:
>> On Sep 16, 2002, Andreas Jaeger <aj@suse.de> wrote:
>>
>>> +libc_hidden_def (_exit)
>>
>> Hmm. I don't think this is right. libc_hidden_proto (_exit) is
>> commented out in include/unistd.h, so, if my understanding is correct,
> In that case it couldn't have worked before, have a look at
> sysdeps/unix/_exit.S, I just copied the declarations from there and
> that was the default used before AFAIK.
I found that confusing too. But the difference is that in the
assembly implementation, the prototype declaration doesn't matter, as
it is the assembly code that determines the symbol name in the
function definition, whereas in C it is the prototype declaration that
has the symbol renamed.
> Please send a patch,
As soon as I get confirmation on whether we're to actually hide
_exit() or not.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
More information about the Libc-hacker
mailing list