summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LinkerScript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
-rw-r--r--lld/ELF/LinkerScript.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index 77ba023b049..1cfe358c857 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -94,6 +94,14 @@ uint64_t LinkerScript<ELFT>::parsePrimary(ArrayRef<StringRef> &Tokens) {
return 0;
return V;
}
+ if (Tok == "ALIGN") {
+ if (!expect(Tokens, "("))
+ return 0;
+ uint64_t V = parseExpr(Tokens);
+ if (!expect(Tokens, ")"))
+ return 0;
+ return alignTo(Dot, V);
+ }
return getInteger(Tok);
}
OpenPOWER on IntegriCloud