This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Defining symvers without using asm()
- From: Ian Lance Taylor <iant at google dot com>
- To: Jan Engelhardt <jengelh at medozas dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 25 Nov 2011 22:20:25 -0800
- Subject: Re: Defining symvers without using asm()
- References: <alpine.LNX.2.01.1111252113130.27197@frira.zrqbmnf.qr>
Jan Engelhardt <jengelh@medozas.de> writes:
> 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?
This question is not appropriate for the mailing list gcc@gcc.gnu.org.
It would be appropriate for the mailing list gcc-help@gcc.gnu.org. Or,
since this question is really about the GNU linker, not about gcc, the
mailing list binutils@sourceware.org (see
http://sourceware.org/binutils/). Please take any followups to one of
those other mailing lists. Thanks.
As far as I know, there is no way to rename a symbol in a linker version
script. I think the docs are misleading when they imply that there is a
way.
Ian