[PATCH v1.2] Deprecate malloc_(sg)et state.

Ondřej Bílka neleai@seznam.cz
Mon Apr 28 15:00:00 GMT 2014


On Mon, Apr 28, 2014 at 02:55:18PM +0000, Joseph S. Myers wrote:
> On Mon, 28 Apr 2014, Ondrej Bilka wrote:
> 
> > +  malloc_get_state = dlvsym (RTLD_NEXT, "malloc_get_state", "GLIBC_2.2.5");
> > +  malloc_set_state = dlvsym (RTLD_NEXT, "malloc_set_state", "GLIBC_2.2.5");
> 
> That's not correct.  GLIBC_2.2.5 is what GLIBC_2.0 maps to on x86_64, but 
> on other architectures it maps to other versions; you need the correct 
> version depending on the architecture.
> 
Any macro for that?



More information about the Libc-alpha mailing list