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
* Wilco Dijkstra:
> 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.
It would be safe to call if we provide a definition of __clock_gettime
which uses the system call, which gets then interposed by the libc
definition (potentially using the vDSO) after full relocation. So it
would just turn into a matter of performance then. (I assume the time
scales of the vDSO and non-vDSO version of the system call are
compatible.)
Thanks,
Florian