diff options
author | Rui Ueyama <ruiu@google.com> | 2017-04-13 23:40:00 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-04-13 23:40:00 +0000 |
commit | 15732b718bada82b45e78dacd8ebd5401ad1a49b (patch) | |
tree | 26c848d5242c47bd868808f04df9afe4d8a95ec8 | |
parent | f0e879dffd1e054f4e9b4f9f7e11cfd9e948dee2 (diff) | |
download | bcm5719-llvm-15732b718bada82b45e78dacd8ebd5401ad1a49b.tar.gz bcm5719-llvm-15732b718bada82b45e78dacd8ebd5401ad1a49b.zip |
Fix FILL linker script command.
FILL command doesn't need a semicolon.
Fixes https://bugs.llvm.org/show_bug.cgi?id=32657
llvm-svn: 300280
-rw-r--r-- | lld/ELF/ScriptParser.cpp | 1 | ||||
-rw-r--r-- | lld/test/ELF/linkerscript/fill.s | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/ScriptParser.cpp b/lld/ELF/ScriptParser.cpp index 155b08a26ac..75cc25b6d5b 100644 --- a/lld/ELF/ScriptParser.cpp +++ b/lld/ELF/ScriptParser.cpp @@ -559,7 +559,6 @@ uint32_t ScriptParser::readFill() { expect("("); uint32_t V = readOutputSectionFiller(next()); expect(")"); - expect(";"); return V; } diff --git a/lld/test/ELF/linkerscript/fill.s b/lld/test/ELF/linkerscript/fill.s index 71ed2119882..604506084a7 100644 --- a/lld/test/ELF/linkerscript/fill.s +++ b/lld/test/ELF/linkerscript/fill.s @@ -2,7 +2,7 @@ # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { \ # RUN: .out : { \ -# RUN: FILL(0x11111111); \ +# RUN: FILL(0x11111111) \ # RUN: . += 2; \ # RUN: *(.aaa) \ # RUN: . += 4; \ |