Red Hat Bugzilla – Bug 104347
can not create shared object with -Bsymbolic
Last modified: 2007-11-30 17:06:53 EST
Description of problem:Can not create shared object with -Bsymbolic; gives
Version-Release number of selected component (if applicable):
ld version 184.108.40.206.8
Steps to Reproduce:
1.compile and run the below repro
printf("calling b() ...\n");
printf("calling c() ...\n");
printf("This is c().\n");
gcc3 -fPIC -c a.c
gcc3 -fPIC -c b.c
gcc3 -fPIC -c c.c
gcc3 -fPIC -c m.c
gcc3 -Wl,-Bsymbolic -shared -o a.sl a.o
a.o: In function 'call_func':
a.c:12: undefined reference to 'b'
collect2: ld returned 1 exit status
This is a linker bug, not gcc bug, present on ia32 as well.
This bug is filed against RHEL2.1, which is in maintenance phase.
During the maintenance phase, only security errata and select mission
critical bug fixes will be released for enterprise products. Since
this bug does not meet that criteria, it is now being closed.
For more information of the RHEL errata support policy, please visit:
If you feel this bug is indeed mission critical, please contact your
support representative. You may be asked to provide detailed
information on how this bug is affecting you.