[osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris
Tue Nov 28 05:45:00 GMT 2006
Rod Evans wrote:
> Martin might have to add some c stub functions to his builds so that
> his libraries provide non-ABS filter symbols in the mean time.
Arrr, but then the gnu linker probably doesn't grok symbol filter
definitions from a mapfile, so the sc tub trick wouldn't provide
much use would it. Sorry.
chaz 940.. cat xxx.c
int bar = 1;
chaz 941.. cat mapfile
foo = FILTER yyy.so;
bar = FILTER yyy.so;
chaz 942.. cc -G -o xxx xxx.c -Mmapfile
chaz 943.. elfdump -y xxx | egrep "bound|foo|bar"
index flags bound to symbol
 F  yyy.so bar
 F  yyy.so foo
chaz 944.. elfdump -sN.dynsym xxx | egrep "foo|bar"
 0x000103b0 0x00000004 OBJT GLOB D 0 .data bar
 0x000002d0 0x00000005 FUNC GLOB D 0 .text foo
More information about the Binutils