This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Any particular reason why mmap family functions aren't hidden in ld.so?
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 15 Oct 2015 12:28:40 -0700 (PDT)
- Subject: Re: Any particular reason why mmap family functions aren't hidden in ld.so?
- Authentication-results: sourceware.org; auth=none
- References: <CAMe9rOp3tnr8iuJiH0wGgv69tdixyquqP_J8K4Q-xobpd8cQXw at mail dot gmail dot com>
> All mmap family functions aren't hidden in ld.so and are called
> via PLT. Is this an oversight?
It's necessary in the Hurd. I don't know a reason for it elsewhere. You
mean just that the compiler doesn't know they will be resolved without a
PLT, right? The linker doesn't actually produce PLT entries for them
(except for Hurd).