[lld] r300280 - Fix FILL linker script command.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 13 16:40:00 PDT 2017


Author: ruiu
Date: Thu Apr 13 18:40:00 2017
New Revision: 300280

URL: http://llvm.org/viewvc/llvm-project?rev=300280&view=rev
Log:
Fix FILL linker script command.

FILL command doesn't need a semicolon.
Fixes https://bugs.llvm.org/show_bug.cgi?id=32657

Modified:
    lld/trunk/ELF/ScriptParser.cpp
    lld/trunk/test/ELF/linkerscript/fill.s

Modified: lld/trunk/ELF/ScriptParser.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/ScriptParser.cpp?rev=300280&r1=300279&r2=300280&view=diff
==============================================================================
--- lld/trunk/ELF/ScriptParser.cpp (original)
+++ lld/trunk/ELF/ScriptParser.cpp Thu Apr 13 18:40:00 2017
@@ -559,7 +559,6 @@ uint32_t ScriptParser::readFill() {
   expect("(");
   uint32_t V = readOutputSectionFiller(next());
   expect(")");
-  expect(";");
   return V;
 }
 

Modified: lld/trunk/test/ELF/linkerscript/fill.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/fill.s?rev=300280&r1=300279&r2=300280&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/fill.s (original)
+++ lld/trunk/test/ELF/linkerscript/fill.s Thu Apr 13 18:40:00 2017
@@ -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;            \




More information about the llvm-commits mailing list