[Mips] Unify #include guard names.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@200715 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] In case of executable file linking MIPS ABI requires to add even
undefined symbols to '.dynsym' if these symbols have corresponding entries
in a global part of GOT.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@200716 91177308-0d34-0410-b5e6-96231b3b80d8
Accept and handle absolute symbols with empty name.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@200911 91177308-0d34-0410-b5e6-96231b3b80d8
[mach-o] use new way to copy StringRefs

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@200956 91177308-0d34-0410-b5e6-96231b3b80d8
Update for llvm api change.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@201109 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] Add "data" symbols to the test input file. No functional changes.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@201128 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] Handle R_MIPS_COPY relocation.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@201129 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] Simplify the code. Replace redundant 'switch' operator by the single 'if' one.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@201131 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] Use the 'CHECK-NEXT' where we need to check a test output exactly
line by line.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@201133 91177308-0d34-0410-b5e6-96231b3b80d8
[ELF] Fix alignment for dynamic relocation sections.

The sections .rela/.rel.(*) have a alignment of 2 in the final image created by
the linker. This needs to be properly set to the right alignment depending on
the architecture(32/64bits).

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@201740 91177308-0d34-0410-b5e6-96231b3b80d8
[ELF] Dont generate PHDR when creating dynamic libraries.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@201741 91177308-0d34-0410-b5e6-96231b3b80d8
[PECOFF] Driver support for /SAFESEH option.

Syntactically /SAFESEH is a boolean flag -- you can pass /SAFESEH or /SAFESEH:no.

The meaning of /SAFESEH is as follows.

 - If /SAFESEH is specified, the linker will produce an executable with SEH table.
   If any input files are not compatible with SEH, it's an error.
 - If /SAFESEH:no is specified, the linker will not emit SEH table even if all
   input files are compatible with SEH.
 - If no option is specified, the linker emits SEH table if all input files are
   compatible with SEH.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@201895 91177308-0d34-0410-b5e6-96231b3b80d8
[PECOFF] Implement /SAFESEH option.

LLD now prints an error message if /SAFESEH option is specified and one or
more input files are not compatible with SEH.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@201900 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] add_lld_library: link_system_libs is not needed any more. LLVMSupport may provide dependencies to system libs.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@201967 91177308-0d34-0410-b5e6-96231b3b80d8
[PECOFF] Fix uninitialized variable

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@201970 91177308-0d34-0410-b5e6-96231b3b80d8
Don't assume that F_None is the default. It is about to change.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@202039 91177308-0d34-0410-b5e6-96231b3b80d8
Update for LLVM api change.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@202054 91177308-0d34-0410-b5e6-96231b3b80d8
Fix feature detection in lld's lit.cfg

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@202078 91177308-0d34-0410-b5e6-96231b3b80d8
[lld] Include reference kind in cycle detector debug output

This restores the debug output to how it was before r197727 broke it. This
went undetected because the corresponding test was never run due to broken
feature detection.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@202079 91177308-0d34-0410-b5e6-96231b3b80d8
[LinkerScript] parse OUTPUT_ARCH.

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