[PATCH v1.2] Deprecate malloc_(sg)et state.
Joseph S. Myers
joseph@codesourcery.com
Fri May 16 20:33:00 GMT 2014
On Fri, 16 May 2014, Ondrej Bilka wrote:
> On Mon, Apr 28, 2014 at 03:07:20PM +0000, Joseph S. Myers wrote:
> > On Mon, 28 Apr 2014, Ondrej Bilka wrote:
> >
> > > 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?
> >
> > Try stringizing the expansion of VERSION_libc_GLIBC_2_0 from
> > abi-versions.h.
> >
> Here is new version. Is there some other concern?
This sort of feature change should include an addition to the NEWS file.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list