aboutsummaryrefslogtreecommitdiff
path: root/lld/ELF/Driver.h
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2018-08-06 21:29:41 +0000
committerRui Ueyama <ruiu@google.com>2018-08-06 21:29:41 +0000
commite262bb1afb391eb705cf2fa733e04cca6d51bf47 (patch)
tree7a5ffe9160b74fabf89cc33427b12c6ba959e4e9 /lld/ELF/Driver.h
parent5327805d7cadb5cf25ef520bc1dd034a94734f52 (diff)
downloadllvm-e262bb1afb391eb705cf2fa733e04cca6d51bf47.zip
llvm-e262bb1afb391eb705cf2fa733e04cca6d51bf47.tar.gz
llvm-e262bb1afb391eb705cf2fa733e04cca6d51bf47.tar.bz2
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.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/lld/ELF/Driver.h b/lld/ELF/Driver.h
index 99e194d..81d7f60 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;
};