sparc/shared/.../linkcmds.base: Correct C++ support

Add KEEP() for .eh_frame*, .ctor*, and .dtor*.