shared library creation using -Bsymbolic

From: Umut Aymakoglu <umuta_at_us.ibm.com>
Date: 2003-09-13 08:45:57
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

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Sep 12 18:49:43 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:17 EST