Re: -Bsymbolic for exactly one symbol.

Ian Lance Taylor <ian@airs.com>
15 Aug 2001 01:14:30 -0400

          From comp.compilers

Related articles
-Bsymbolic for exactly one symbol. vugluskr@unicorn.math.spbu.ru (2001-08-08)
Re: -Bsymbolic for exactly one symbol. jfc@mit.edu (2001-08-08)
Re: -Bsymbolic for exactly one symbol. ian@airs.com (Ian Lance Taylor) (2001-08-15)
Re: -Bsymbolic for exactly one symbol. shankarunni@earthlink.net (Shankar Unni) (2001-08-15)
| List of all articles for this month |
From: Ian Lance Taylor <ian@airs.com>
Newsgroups: comp.compilers
Date: 15 Aug 2001 01:14:30 -0400
Organization: Compilers Central
References: 01-08-051
Keywords: linker
Posted-Date: 15 Aug 2001 01:14:30 EDT

vugluskr@unicorn.math.spbu.ru (Roman Shaposhnick) writes:


> So my question is: how can I force linker to resolve just one reference
> to the particular symbol ( A::A() from the shared2.cc in my example ).


If you are using the GNU linker, you can use a version script:
        http://sources.redhat.com/binutils/docs-2.10/ld_3.html#SEC40


The documentation kind of sucks, but basically, among other things,
you can define particular symbols as local. They will be resolved
within the shared library as though you used -Bsymbolic.


Ian


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.