diff options
| author | Rui Ueyama <ruiu@google.com> | 2018-08-06 21:29:41 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2018-08-06 21:29:41 +0000 |
| commit | e262bb1afb391eb705cf2fa733e04cca6d51bf47 (patch) | |
| tree | 7a5ffe9160b74fabf89cc33427b12c6ba959e4e9 /lld/ELF/Driver.h | |
| parent | 5327805d7cadb5cf25ef520bc1dd034a94734f52 (diff) | |
| download | bcm5719-llvm-e262bb1afb391eb705cf2fa733e04cca6d51bf47.tar.gz bcm5719-llvm-e262bb1afb391eb705cf2fa733e04cca6d51bf47.zip | |
Add TARGET(foo) linker script directive.
GNU ld's manual says that TARGET(foo) is basically an alias for
`--format foo` where foo is a BFD target name such as elf64-x86-64.
Unlike GNU linkers, lld doesn't allow arbitrary BFD target name for
--format. We accept only "default", "elf" or "binary". This makes
situation a bit tricky because we can't simply make TARGET an alias for
--target.
A quick code search revealed that the usage number of TARGET is very
small, and the only meaningful usage is to switch to the binary mode.
Thus, in this patch, we handle only TARGET(elf.*) and TARGET(binary).
Differential Revision: https://reviews.llvm.org/D48153
llvm-svn: 339060
Diffstat (limited to 'lld/ELF/Driver.h')
| -rw-r--r-- | lld/ELF/Driver.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lld/ELF/Driver.h b/lld/ELF/Driver.h index 99e194d9b66..81d7f608e58 100644 --- a/lld/ELF/Driver.h +++ b/lld/ELF/Driver.h @@ -42,9 +42,6 @@ private: // True if we are in --start-lib and --end-lib. bool InLib = false; - // True if we are in -format=binary and -format=elf. - bool InBinary = false; - std::vector<InputFile *> Files; }; |

