RFC: The CPU run-time library for C

H.J. Lu hjl.tools@gmail.com
Mon Dec 3 18:33:00 GMT 2018


On Mon, Dec 3, 2018 at 10:20 AM Szabolcs Nagy <Szabolcs.Nagy@arm.com> wrote:
>
> On 03/12/18 17:46, H.J. Lu wrote:
> > 4. It should be binary compatible with all existing glibc binaries so
> > that LD_PRELOAD=libcpu-rt-c.so” can be used to override functions in
> > libc.so.
>
> is that possible in the presence of multiple
> symbol versions for the same symbol?
>
> (e.g. if i want to do this for the math library,
> now that we have separate svid vs non-svid compat
> symbols it's not clear to me if you could get the
> right symbol version with preloading)

In this case, the CPU run-time library needs to provide
a compat symbol so that reference to the compat symbol
works correctly with LD_PRELOAD.  I believe it is doable.

-- 
H.J.



More information about the Libc-alpha mailing list