This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: --version-script
"Mathieu Lacage" <mathieu.lacage@gmail.com> writes:
> mathieu@mathieu:~/code$ cat test.map
> A {
> global:
> test;
> local:
> *;
> };
> B {
> global:
> test;
> } A;
You can't use a version script to assign different versions to the
same symbol. To do that, you need to use .symver in your input file.
I probably have the details wrong, but you need something like
asm(".symver test_version_a,test@A");
That assumes that you have a different test_version_a symbol. To give
the same symbol different versions you need to use a symbol alias.
Ian