g++: unrecognized option `-symbolic'

Chad Gatesman chadg@redrose.net
Wed Feb 23 13:53:00 GMT 2000


"Martin v. Loewis" wrote:

> > Am I doing something wrong?
>
> Please see (ld)VERSION in the ld texinfo pages. You need a version
> script, and you need a local: directive inside it.

I have been getting my info from the ld info pages.  I am doing it in
the source file instead of using a linker script.

>From the ld info page:

There are several GNU extensions to Sun's versioning approach.  The
first of these is 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'.  The `local:'
directive can be used to prevent the symbol `original_foo' from being
exported.




More information about the Gcc mailing list