shared libstdc++
Lei Sun
lei_sun at comcast.net
Tue Jan 10 16:26:26 UTC 2006
Hi:
I am having trouble runing C++ application uClinux, the elf2flt couldn't product correct binary with pic_and_got set, I disabled the shared lib support in uClibc, so all the C program is OK. But I got "reloc outside program"error when loading C++ application, the problem is that buildroot automatically built the gcclib and libstdc++ with PIC and GOT, the elf2flt linker script grep the C++ binary and found "GLOBAL_OFFSET_TABLE" and then set the pic_and_got, therefore , created faulty binary( I think it has some bugs).
As Mike pointed that uClinux list doesn't response question regarding elf2flt.
My question is, do i have to build gcc with -enable-shared option? as specified in buildroot's Makefile? if not, should buildroot add an option to let user select shared option when building gcclib?
Thank you!
lei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20060110/7ba9ace4/attachment.htm
More information about the uClibc
mailing list