This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]