Currently, for --rtlib=compiler-rt, when -lunwind or -lc++abi
are in the arguments list, both libgcc_s and libgcc_eh are still
added, which is wrong and duplicates symbols and may break stuff.
This patch makes sure that, when adding compiler-rt companion
libraries (unwind/c++), they haven't been added already.
These tests pass on x86_64, ARM and AArch64, but they may not pass on others. Should I specify the target like the others above?