Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHippo wrote....
--- Quote Start --- originally posted by hippo@Feb 24 2006, 11:55 AM the libstdc++ which we built with uclibc still have problems, it compiled and linked, but crashed when running on uclinux. --- Quote End --- Exactly, I'm getting this when I try to compile and link C++ on uClinux <div class='quotetop'>QUOTE </div> --- Quote Start --- # Compile the helloWorld app nios2-linux-uclibc-g++ hello.cpp -o hello -elf2flt /home/hootsmon/buildroot/build_nios2/staging_dir/bin-ccache/../lib/gcc/nios2-linux-uclibc/3.4.5/../../../../nios2-linux-uclibc/bin/ld.real: section .gnu.linkonce.sb._ZGVNSt7collateIcE2idE [0002dc40 -> 0002dc47] overlaps section .text [00000000 -> 0004d45f] /home/hootsmon/buildroot/build_nios2/staging_dir/bin-ccache/../lib/gcc/nios2-linux-uclibc/3.4.5/../../../../nios2-linux-uclibc/bin/ld.real: section .gnu.linkonce.sb._ZGVNSt8messagesIcE2idE [0002dc48 -> 0002dc4f] overlaps section .text [00000000 -> 0004d45f] etc....[/b] --- Quote End --- I spent some time digging into this problem, but I need some help please. Q) Can someone explain what W_RODATA and R_RODATA mean? I see these things get zapped by the Nios-specific linker script, but why? Grateful for any advice please.