diff options
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
-rw-r--r-- | lld/ELF/LinkerScript.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 4d05e10f7e4..ddd82663eee 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -45,6 +45,7 @@ private: void readGroup(); void readInclude(); void readOutput(); + void readOutputArch(); void readOutputFormat(); void readSearchDir(); @@ -65,6 +66,8 @@ void LinkerScript::run() { readInclude(); } else if (Tok == "OUTPUT") { readOutput(); + } else if (Tok == "OUTPUT_ARCH") { + readOutputArch(); } else if (Tok == "OUTPUT_FORMAT") { readOutputFormat(); } else if (Tok == "SEARCH_DIR") { @@ -208,6 +211,13 @@ void LinkerScript::readOutput() { expect(")"); } +void LinkerScript::readOutputArch() { + // Error checking only for now. + expect("("); + next(); + expect(")"); +} + void LinkerScript::readOutputFormat() { // Error checking only for now. expect("("); |