This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Symbol versioning question..
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Marcus Shawcroft <marcus dot shawcroft at linaro dot org>
- Cc: GNU C Library <libc-alpha at sourceware dot org>, Richard Henderson <rth at twiddle dot net>
- Date: Wed, 24 Jul 2013 10:18:07 -0700 (PDT)
- Subject: Re: Symbol versioning question..
- References: <CABXK9ndVsUhXdx5YfV+NDSa99daV9wJtj1ucMAxcH6zQmbChqg at mail dot gmail dot com> <51E96F11 dot 9030300 at twiddle dot net> <CABXK9ndEFLG1Ac9CFwqd3rYg-15oZTLa7He-jLFOT_YrHu993A at mail dot gmail dot com>
Weakness doesn't really matter for the shared library. To use .symver
(i.e. versioned_symbol macro) twice, you have to add an alias for the
purpose:
versioned_symbol (libc, __mcount, _mcount, GLIBC_2_18)
strong_alias (__mcount, __mcount_compat)
versioned_symbol (libc, __mcount_compat, mcount, GLIBC_2_17)