This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 5/6] Refactor hp-timing rtld usage
Hi Florian,
>> You need something to compile without timer support without unused
>> variable errors.
>
> I assumed we would get generic timer support?
The generic timer code calls __clock_gettime which requires VDSO
to be setup, so I don't believe it is safe to call it from rtld.
> And then do `if (RTLD_TIMER_ENABLED)` around reporting the results or
> something like that, where RTLD_TIMER_ENABLED is an enum constant.
>
> I hope this won't be much additional effort, and avoids using the
> preprocessor.
Yes it should be feasible to use a C if-statement.
Wilco