[PATCH] Move __mcount_internal from GLIBC_PRIVATE to GLIBC_2.16

Mike Frysinger vapier@gentoo.org
Sun May 20 02:39:00 GMT 2012


On Saturday 19 May 2012 10:17:02 Andreas Schwab wrote:
> Mike Frysinger <vapier@gentoo.org> writes:
> > the _mcount symbol lives in libc.so
> 
> No, it doesn't any more.  That's the whole point of the
> __mcount_internal export.

it does in glibc-2.15 and earlier:
$ readelf -sW /lib64/libc.so.6
   110: 00000000000e9310    91 FUNC    GLOBAL DEFAULT   11 _mcount@@GLIBC_2.2.5
  1960: 00000000000e9310    91 FUNC    WEAK   DEFAULT   11 mcount@@GLIBC_2.2.5

which means  __mcount_internal@GLIBC_PRIVATE makes no sense because nothing
external to glibc is referring to it

whether a random glibc git version exported it doesn't matter as we only care
about compatibility with releases
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120520/e0157c4a/attachment.sig>


More information about the Libc-alpha mailing list