This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
problems with version script
- From: Robert Schweikert <rjschwei at cox dot net>
- To: binutils at sources dot redhat dot com
- Cc: rjschwei at cox dot net
- Date: 26 Feb 2003 20:39:45 -0500
- Subject: problems with version script
- Organization:
I am trying to specify global, i.e. exported symbols for a DSO using
Ulrich Drepper's paper as an example I came up with the following.
{
global:
BC;
COLORS;
COLOR_PAIR;
COLOR_PAIRS;
COLS;
ESCDELAY;
LINES;
PAIR_NUMBER;
PC;
SP;
TABSIZE;
UP;
_Z12aif_finalizeRi;
_Z12chk_finalizeRi;
_Z13ajbK_finalizeRi;
_Z14aif_initializeRi;
_Z14ajbK_ArchEntryv;
_Z14chk_initializeRi;
_Z15ajbK_initializeRi;
...
local: *;
};
Now when linking with this script specified as -Wl,--version-script I
get the following error:
ld:export.tmp:1: parse error in VERSION script
ld:export.tmp:1: parse error in VERSION script
Line 1 of course only has the {. When changing line 1 to the following
everything works.
VERS_1.0{
So what do I need to do to get the linker to play nicely if no version
number is specified?
I am using ld version 2.11.2 on a SuSE 7.3 box.
Thanks,
Robert
--
Robert Schweikert MAY THE SOURCE BE WITH YOU
rjschwei at cox dot net LINUX