This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
RE: Create a hook for inspecting program headers during library load
- From: Matthew Fortune <Matthew dot Fortune at imgtec dot com>
- To: Will Newton <will dot newton at linaro dot org>
- Cc: Roland McGrath <roland at hack dot frob dot com>, "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>, "Joseph Myers (joseph at codesourcery dot com)" <joseph at codesourcery dot com>
- Date: Thu, 2 Oct 2014 15:19:22 +0000
- Subject: RE: Create a hook for inspecting program headers during library load
- Authentication-results: sourceware.org; auth=none
- References: <6D39441BF12EF246A7ABCE6654B0235320F18A1B at LEMAIL01 dot le dot imgtec dot org> <20141001214949 dot 239022C3AAD at topped-with-meat dot com> <6D39441BF12EF246A7ABCE6654B0235320F18CA4 at LEMAIL01 dot le dot imgtec dot org> <20141001230906 dot 9B9852C3AAA at topped-with-meat dot com> <6D39441BF12EF246A7ABCE6654B0235320F1971F at LEMAIL01 dot le dot imgtec dot org> <CANu=DmjjOqGP_35hEBjGHzniPPHqagfBvPam==YCuV5iUo9fOw at mail dot gmail dot com>
> On 2 October 2014 16:02, Matthew Fortune <Matthew.Fortune@imgtec.com>
> wrote:
> > Patch updated below. Though I did remember Joseph steering me away from
> > an ifdef based interface while reworking this:
> >
> > https://sourceware.org/ml/libc-alpha/2014-05/msg00045.html
> >
> > Does this seem more appropriate?
>
> You could implement it using the sysdeps mechanism, e.g. see how
> dl-irel.h and similar headers operate.
Thanks. I didn't quite follow what Roland was referring to by a sysdeps file.
That will be much neater.
Matthew