[PATCH v1.2] Deprecate malloc_(sg)et state.
Joseph S. Myers
joseph@codesourcery.com
Mon Apr 28 14:55:00 GMT 2014
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.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list