qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit c8cd2824eae0137505fe46530c3a8e9788ab9a63
parent d9935ac14a6d74399cd18449d8e0aa8c7b374a41
Author: Roberto E. Vargas Caballero <roberto.vargas@midokura.com>
Date:   Wed, 29 Jun 2022 18:01:59 +0200

Reject multiple section definition for a symbol

Diffstat:
Mparse.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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;