[Mips] Make rel-dynamic-11.test test case independent from external input files.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@212813 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] Remove unused test input file.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@212927 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] Delete the empty directory.


git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@212928 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] Fix test case expectations due the latest changes in the LLVM.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@212949 91177308-0d34-0410-b5e6-96231b3b80d8
[ELF] Implement parsing `-l` prefixed items in the `GROUP` linker script command.
There are two forms of `-l` prefixed expression:

* -l<libname>
* -l:<filename>

In the first case a linker should construct a full library name
`lib + libname + .[so|a]` and search this library as usual. In the second case
a linker should use the `<filename>` as is and search this file through library
search directories.

The patch reviewed by Shankar Easwaran.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@213077 91177308-0d34-0410-b5e6-96231b3b80d8
[mach-o] refactor KindHandler into ArchHandler and simplify passes.

All architecture specific handling is now done in the appropriate
ArchHandler subclass.

The StubsPass and GOTPass have been simplified.  All architecture specific
variations in stubs are now encoded in a table which is vended by the
current ArchHandler.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@213187 91177308-0d34-0410-b5e6-96231b3b80d8
Update .gitignore to ignore hidden MacOSX Finder droppings

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@213195 91177308-0d34-0410-b5e6-96231b3b80d8
[PECOFF] Set DLL bit in PE header if DLL.

Windows loader can load a DLL without this bit but it wouldn't
call the initializer function in the DLL if the bit is absent.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@213216 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] s/context/ctx/ for consistency and reduce lines lengths.

No functional changes.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@213310 91177308-0d34-0410-b5e6-96231b3b80d8
Use std::function instead of llvm::function_ref.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@213312 91177308-0d34-0410-b5e6-96231b3b80d8
Remove all uses of llvm::function_ref from LLD.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@213313 91177308-0d34-0410-b5e6-96231b3b80d8
[PECOFF] Split ExportedSymbolRenameFile.

The code to manage resolvable symbols is now separated from
ExportedSymbolRenameFile so that other class can reuse it.
I'm planning to use it to find the entry function symbol
based on resolvable symbols.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@213322 91177308-0d34-0410-b5e6-96231b3b80d8
References cannot be bound to null.


git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@213323 91177308-0d34-0410-b5e6-96231b3b80d8
[mach-o] implement more x86 and x86_64 relocation support

Add support for adding section relocations in -r mode.  Enhance the test
cases which validate the parsing of .o files to also round trip.  They now
write out the .o file and then parse that, verifying all relocations survived
the round trip.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@213333 91177308-0d34-0410-b5e6-96231b3b80d8
[mach-o] Add support for x86 CALL instruction that uses a scattered relocation

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@213340 91177308-0d34-0410-b5e6-96231b3b80d8
[mach-o] Add support for x86 pointers which use scattered relocations

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@213344 91177308-0d34-0410-b5e6-96231b3b80d8
swapStruct extracted into include/llvm/Support/MachO.h (no functional change)

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@213362 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] Replace assembler code by YAML to make the test 'base-address.test'
target independent.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@213390 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] Replace assembler code by YAML to make the test 'dynlib-dynamic.test'
target independent.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@213462 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] Replace assembler code by YAML to make the 'dynlib-fileheader.test'
test target independent.

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