[elf2] Add basic relocation support for x86-64.

This currently doesn't handle local symbols.

Differential Revision: http://reviews.llvm.org/D11612

llvm-svn: 246234
8 files changed