[osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

Rod Evans Rod.Evans@Sun.com
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
void foo(){}
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
        [6]  F            [0] yyy.so                   bar
        [7]  F            [0] yyy.so                   foo
chaz 944.. elfdump -sN.dynsym xxx | egrep "foo|bar"
        [6]  0x000103b0 0x00000004  OBJT GLOB  D    0 .data          bar
        [7]  0x000002d0 0x00000005  FUNC GLOB  D    0 .text          foo


More information about the Binutils mailing list