[lld] r280724 - Add a comment.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 6 10:46:43 PDT 2016


Author: ruiu
Date: Tue Sep  6 12:46:43 2016
New Revision: 280724

URL: http://llvm.org/viewvc/llvm-project?rev=280724&view=rev
Log:
Add a comment.

Modified:
    lld/trunk/ELF/LinkerScript.cpp

Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=280724&r1=280723&r2=280724&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Tue Sep  6 12:46:43 2016
@@ -981,6 +981,10 @@ Expr ScriptParser::readAssert() {
   };
 }
 
+// Reads a FILL(expr) command. We handle the FILL command as an
+// alias for =fillexp section attribute, which is different from
+// what GNU linkers do.
+// https://sourceware.org/binutils/docs/ld/Output-Section-Data.html
 std::vector<uint8_t> ScriptParser::readFill() {
   expect("(");
   std::vector<uint8_t> V = readOutputSectionFiller(next());




More information about the llvm-commits mailing list