Compiling a simple helloworld program has overlapping stack and text sections:
//----------------------------------------- using namespace std; #include <iostream> int main() { cout << "Hello World!" << endl; } //------------------------------------------ An equivalent c program compiles fine. Peter -- Summary: section .stack overlaps section .text Product: gcc Version: 3.4.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: peter at spierepf dot dyndns dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux GCC host triplet: i686-pc-linux GCC target triplet: sh-elf http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18831