forked from OSchip/llvm-project
Handle arbitrary expressions in DATA_SEGMENT_RELRO_END.
llvm-svn: 281521
This commit is contained in:
parent
01f1666471
commit
97bdc7220b
|
@ -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(")");
|
||||
|
|
|
@ -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) } \
|
||||
|
|
Loading…
Reference in New Issue