This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Forcing BIND_NOW for a symbol
- From: Florian Weimer <fweimer at redhat dot com>
- To: "Carlos O'Donell" <carlos at redhat dot com>
- Cc: libc-help <libc-help at sourceware dot org>
- Date: Mon, 9 Nov 2015 12:18:22 +0100
- Subject: Re: Forcing BIND_NOW for a symbol
- Authentication-results: sourceware.org; auth=none
- References: <56376829 dot 7050707 at redhat dot com> <56377C77 dot 2010209 at redhat dot com> <56377EEA dot 3030302 at redhat dot com> <56378B60 dot 7070803 at redhat dot com> <56378BFE dot 7010503 at redhat dot com> <56378C8D dot 3020706 at redhat dot com> <56378E9E dot 9060809 at redhat dot com> <5637E029 dot 6080203 at redhat dot com>
On 11/02/2015 11:14 PM, Carlos O'Donell wrote:
> An "Early IFUNC", interesting idea.
It doesn't have to be early as such, it just has to be called before
dlopen returns. Maybe there is a different way to achieve that, though.
See the thread âRaise errors from ELF constructorsâ. The idea is to do
something that triggers symbol resolution from libc_nonshared.a.
I wonder if a separate DSO with BIND_NOW would do the trick. But then
we might not want to take that hit in terms of overhead (both at run
time, and for maintenance).
Florian