[Driver] Add x86-64 target.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@171557 91177308-0d34-0410-b5e6-96231b3b80d8
Style

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@171575 91177308-0d34-0410-b5e6-96231b3b80d8
[ELF][Writer] Don't infinite loop.

This will be tested by a following committ that runs the linker
with no inputs.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@171576 91177308-0d34-0410-b5e6-96231b3b80d8
[Driver] Add -flavor core support. This will be tested by other tests using -flavor core.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@171577 91177308-0d34-0410-b5e6-96231b3b80d8
[ELF] Add skeleton for X86-64 relocations.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@171578 91177308-0d34-0410-b5e6-96231b3b80d8
Target test fix.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@171579 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Add lld to the list of test dependencies.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@171580 91177308-0d34-0410-b5e6-96231b3b80d8
Avoid MSVCRT assertion on comparing phdr iterators

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@171591 91177308-0d34-0410-b5e6-96231b3b80d8
Removes files for separate ReaderYAML.cpp and WriterYAML.cpp 
and adds a new file ReaderWriterYAML.cpp that uses YAML I/O.

Lots of tweaks to test suite for slightly different YAML encoding.


git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@171592 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Don't add flags this late and don't force libc++. Error if we know the compiler doesn't support c++11.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@171596 91177308-0d34-0410-b5e6-96231b3b80d8
[YAML] Fix -Wcovered-switch-default

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@171645 91177308-0d34-0410-b5e6-96231b3b80d8
[ELF] Update to llvm change.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@171652 91177308-0d34-0410-b5e6-96231b3b80d8
[ELF] Give a slightly better message for unknown relocation types.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@171692 91177308-0d34-0410-b5e6-96231b3b80d8
[Driver] x86-64 should use ELF 64.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@171693 91177308-0d34-0410-b5e6-96231b3b80d8
[ELF] Add common x86_64 relocation types.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@171703 91177308-0d34-0410-b5e6-96231b3b80d8
[ELF] Emit zeroFill as STT_OBJECT in the final executable. ld does this.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@171704 91177308-0d34-0410-b5e6-96231b3b80d8
[ELF] Remove dead variable.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@171707 91177308-0d34-0410-b5e6-96231b3b80d8
[ELF] Change Segment to hold Chunks instead of Sections. No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@171708 91177308-0d34-0410-b5e6-96231b3b80d8
[ELF] Emit the file header and program headers at the beginning of the first segment.

This is required for the loader to correctly set AT_PHDR.

With this lld can correctly link against dietlibc and get to main.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@171709 91177308-0d34-0410-b5e6-96231b3b80d8
[lld] Add -emit-yaml option. This outputs yaml instead of a binary.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@171710 91177308-0d34-0410-b5e6-96231b3b80d8