Index: ELF/ScriptParser.cpp =================================================================== --- ELF/ScriptParser.cpp +++ ELF/ScriptParser.cpp @@ -821,7 +821,7 @@ std::string Location = getCurrentLocation(); if (consume("AT")) Cmd->LMAExpr = readParenExpr(); - if (consume("ALIGN")) + if (consume("ALIGN") || consume("BLOCK")) Cmd->AlignExpr = checkAlignment(readParenExpr(), Location); if (consume("SUBALIGN")) Cmd->SubalignExpr = checkAlignment(readParenExpr(), Location); Index: test/ELF/linkerscript/align-r.test =================================================================== --- test/ELF/linkerscript/align-r.test +++ test/ELF/linkerscript/align-r.test @@ -17,5 +17,5 @@ . = 0x10000; .aaa : { *(.aaa) } .bbb : ALIGN(4096) { *(.bbb) } - .ccc : ALIGN(4096 * 4) { *(.ccc) } + .ccc : BLOCK(4096 * 4) { *(.ccc) } }