shared library creation using -Bsymbolic
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
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