summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index f681c40..1912c8b 100644
--- a/parse.c
+++ b/parse.c
@@ -1071,6 +1071,8 @@ parselnk(Lnk *lnk)
 			lnk->export = 1;
 			break;
 		case Tsection:
+			if (lnk->sec)
+				err("only one section allowed");
 			if (next() != Tstr)
 				err("section \"name\" expected");
 			lnk->sec = tokval.str;