trim ld.so code for unsupported architectures

ok natano@ patrick@