[ELF/AArch64] Allow only valid dynamic relocations in the output.

All relocations, which cannot be handled by the dynamic linker,
cause a linking error "rebuild with -fPIC".

Differential revision: http://reviews.llvm.org/D15193

llvm-svn: 254840
18 files changed