Handle arbitrary expressions in DATA_SEGMENT_RELRO_END.

llvm-svn: 281521
This commit is contained in:
Rafael Espindola 2016-09-14 19:14:01 +00:00
parent 01f1666471
commit 97bdc7220b
2 changed files with 2 additions and 2 deletions

View File

@ -1330,7 +1330,7 @@ Expr ScriptParser::readPrimary() {
// the next page boundary for simplicity.
if (Tok == "DATA_SEGMENT_RELRO_END") {
expect("(");
next();
readExpr();
expect(",");
readExpr();
expect(")");

View File

@ -9,7 +9,7 @@
# RUN: . = DATA_SEGMENT_ALIGN (CONSTANT (MAXPAGESIZE), CONSTANT (COMMONPAGESIZE)); \
# RUN: .dynamic : { *(.dynamic) } \
# RUN: .got : { *(.got) } \
# RUN: . = DATA_SEGMENT_RELRO_END (24, .); \
# RUN: . = DATA_SEGMENT_RELRO_END (1 ? 24 : 0, .); \
# RUN: .got.plt : { *(.got.plt) } \
# RUN: .data : { *(.data) } \
# RUN: .bss : { *(.bss) } \