Skip to contentSkip to conversation

shared library creation using -Bsymbolic

DISCUSSION Umut Aymakoglu 2 participants 2 messages Sep 12, 2003 – Sep 13, 2003

lore
Share & tools
lore
#0 lore raw

Hi -
I have gcc3(3.0.4) installed on my machine with the ld(2.11.90.0.8). The
following compile fails. Has anybody seen a similar thing?

thanks,
Umut

a.c:

a()
{
call_func();
}

void call_func()
{
b();
}

%gcc3 -fPIC -c a.c
%gcc3 -shared -o a.sl a.o ---> works
%gcc3 -Wl,-Bsymbolic -shared -o a.sl a.o ----> fails
a.o: In function 'call_func':
a.c:8 undefined reference to 'b'
collect2: ld returned 1 exit status

#1 lore raw
Quoted 2 lines · Umut Aymakoglu

I have gcc3(3.0.4) installed on my machine with the ld(2.11.90.0.8). The
following compile fails. Has anybody seen a similar thing?

This works with binutils-2.14, but fails with binutils-2.13. I see the same behaviour with both IA-32 and IPF. So this is apparently a known bug that has already been fixed.

Signature · 1 line
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com