mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
Reject multiple section definition for a symbol
This commit is contained in:
parent
d9935ac14a
commit
c8cd2824ea
2
parse.c
2
parse.c
@ -1071,6 +1071,8 @@ parselnk(Lnk *lnk)
|
|||||||
lnk->export = 1;
|
lnk->export = 1;
|
||||||
break;
|
break;
|
||||||
case Tsection:
|
case Tsection:
|
||||||
|
if (lnk->sec)
|
||||||
|
err("only one section allowed");
|
||||||
if (next() != Tstr)
|
if (next() != Tstr)
|
||||||
err("section \"name\" expected");
|
err("section \"name\" expected");
|
||||||
lnk->sec = tokval.str;
|
lnk->sec = tokval.str;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user