This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: exporting symbols, help with export list
- From: Robert Schweikert <Robert dot Schweikert at abaqus dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: binutils <binutils at sources dot redhat dot com>,Robert Schweikert <rjschwei at abaqus dot com>
- Date: 02 Aug 2004 16:29:49 -0400
- Subject: Re: exporting symbols, help with export list
- Organization: ABAQUS
- References: <1091472849.1349.540.camel@cheetah.hks.com> <20040802201038.GA21720@lucon.org>
[SNIP}
On Mon, 2004-08-02 at 16:10, H. J. Lu wrote:
>
> By default, all symbols are global. You need to list the symbols you
> don't want to export. You can use
>
> local: *;
> global:
> x1;
> x2;
> ...
>
> H.J.
Using a file of the format above results in the following error:
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../../i486-suse-linux/bin/ld:xportScript_3.txt:3: parse error in VERSION script
collect2: ld returned 1 exit status
However, using the following
VERS_1.1 {
global:
_ZN1a8getValueEv;
_ZN1a8setValueEi;
_ZN1aC1Ev;
_ZN1aC2Ev;
local: *;
};
works. I'll see if I can incorporate this into our build system.
Thanks,
Robert
--
Robert Schweikert <Robert.Schweikert@abaqus.com>
ABAQUS