This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix _exit for Linux


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.

> libc_hidden_def (_exit) is not guaranteed to have the right effect.
> In fact, it fails to link libc.so on mips-linux, not only because
> _exit ends up undefined, but also because INLINE_SYSCALL has no
> arch-specific definition on mips, and we end up with a call to
> __syscall_exit, that does not exist.  I've tweaked the syscall file
> such that a definition for __syscall_exit is generated, but this was
> not enough to get _exit() to be defined, so the link of libc.so still
> failed.

Please send a patch,
Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]