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]

Creating dynamic library linked statically to libc.so





Hello,

I am trying to create dynamic library, statically linked to libc.so.
I have compiled glibc package 2.3.5 for that purpose and the commands I use
are:

> gcc -m64 -c mylib.c
> gcc -m64 -shared -Wl,-Bsymbolic mylib.o -o mylib.so -static
~/glibc-build64/libc.a
I get the following error message:
      /usr/bin/ld: libfdprinst64.so: undefined versioned symbol name
siglongjmp@@GLIBC_2.3.4
      /usr/bin/ld: failed to set dynamic section sizes: Bad value
      collect2: ld returned 1 exit status

I suspect that the problem is in the options I use.
Any help is highly appreciated.

Thanks,
_______________________________
Alex Kogan
IBM Research Labs


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