This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ct-ng 1.6.0 problem with libstdc++



For the record/google:


The uClibc option FORCE_SHAREABLE_TEXT_SEGMENTS caused this. The issue was resolved after disabling this option.

Richard.

Yann E. MORIN wrote:
Richard, All,

On Wednesday 24 February 2010 01:47:11 theHog wrote:
I've built a 'arm-unknown-linux-uclibcgnueabi' toolchain with ct-ng 1.6.0
using the sample profile that comes with ct-ng. However, when running a
program that links to the libstdc++.so.6 shared library, the following errors
occurs:

"Can't modify /lib/libstdc++.so.6's text section. Use GCC option -fPIC for
shared objects, please."

Works for me under qemu, using your supplied test file:


# arm-unknown-linux-uclibcgnueabi-g++ -o ess ess.c
# qemu-arm -L /.../arm-unknown-linux-uclibcgnueabi/sys-root ./ess
1 2 3 4 5 6

Regards,
Yann E. MORIN.



--
For unsubscribe information see http://sourceware.org/lists.html#faq


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