diff options
| author | Roberto E. Vargas Caballero <[email protected]> | 2022-06-29 18:01:59 +0200 |
|---|---|---|
| committer | Quentin Carbonneaux <[email protected]> | 2022-07-01 13:20:45 +0200 |
| commit | c8cd2824eae0137505fe46530c3a8e9788ab9a63 (patch) | |
| tree | 6370028268c4382174a51412eb7213b402f1486d /parse.c | |
| parent | d9935ac14a6d74399cd18449d8e0aa8c7b374a41 (diff) | |
Reject multiple section definition for a symbol
Diffstat (limited to 'parse.c')
| -rw-r--r-- | parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |
