Using Codesoucery external toolchain, and architecture variant 8548 / e500v2, toolchain libraries are copied from powerpc-linux-gnu/libc/nof but should be copied from powerpc-linux-gnu/libc/te500v2. Library powerpc-linux-gnu/libc/nof/usr/lib/libstdc++.so contains 'lwsync' instruction which is invalid on e500v2 and causes Invalid Instruction fault for every c++ based application. I tested the temporaty workaround (copying te500v2 dir to nof dir) and it solved the bug. I suppose that this bug might involve all PowerPC architecture variants.
Did you set BR2_TARGET_OPTIMIZATION ("Target optimizations") correctly in the toolchain menu? The help text of the CodeSourcery toolchains mention this: ------- - e500v2 glibc, 32 bits Set BR2_TARGET_OPTIMIZATION to -te500v2 ------- If this does not work for you, feel free to discuss this problem on the mailing list, IRC, or reopen this bug.