forked from OSchip/llvm-project
parent
2f9bb1627a
commit
3adbbc3891
|
@ -1307,7 +1307,8 @@ Expr ScriptParser::readPrimary() {
|
||||||
next();
|
next();
|
||||||
expect(",");
|
expect(",");
|
||||||
uint64_t Val;
|
uint64_t Val;
|
||||||
next().getAsInteger(0, Val);
|
if (next().getAsInteger(0, Val))
|
||||||
|
setError("integer expected");
|
||||||
expect(")");
|
expect(")");
|
||||||
return [=](uint64_t Dot) { return Val; };
|
return [=](uint64_t Dot) { return Val; };
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,3 +20,8 @@
|
||||||
.quad foobar2
|
.quad foobar2
|
||||||
.quad foobar3
|
.quad foobar3
|
||||||
.quad foobar4
|
.quad foobar4
|
||||||
|
|
||||||
|
// RUN: echo "SECTIONS { . = SEGMENT_START(\"foobar\", foo); }" > %t.script
|
||||||
|
// RUN: not ld.lld %t.o %t.script -shared -o %t2.so 2>&1 \
|
||||||
|
// RUN: | FileCheck --check-prefix=ERR %s
|
||||||
|
// ERR: integer expected
|
||||||
|
|
Loading…
Reference in New Issue