From: Rui Ueyama Date: Thu, 13 Apr 2017 23:40:00 +0000 (+0000) Subject: Fix FILL linker script command. X-Git-Tag: llvmorg-5.0.0-rc1~7726 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15732b718bada82b45e78dacd8ebd5401ad1a49b;p=platform%2Fupstream%2Fllvm.git 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 --- diff --git a/lld/ELF/ScriptParser.cpp b/lld/ELF/ScriptParser.cpp index 155b08a..75cc25b 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 71ed211..6045060 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; \