This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Defining symvers without using asm()
- From: Jan Engelhardt <jengelh at medozas dot de>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 25 Nov 2011 21:22:41 +0100 (CET)
- Subject: Defining symvers without using asm()
Hi.
from the ld.info manual:
""" [...] the ability to bind a symbol to a version node in the source
file where the symbol is defined instead of in the versioning script.
This was done mainly to reduce the burden on the library maintainer.
You can do this by putting something like:
__asm__(".symver original_foo,foo@VERS_1.1");
in the C source file. This renames the function `original_foo' to
be an alias for `foo' bound to the version node `VERS_1.1'. """
But how does one actually specify such a rename within a version linker
script, outside of the .c file?