This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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
{
        global:
                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


-- Rod


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]