aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-kconf/parser.go
diff options
context:
space:
mode:
Diffstat (limited to 'tools/syz-kconf/parser.go')
-rw-r--r--tools/syz-kconf/parser.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/syz-kconf/parser.go b/tools/syz-kconf/parser.go
index 64aad9403..00455c3e5 100644
--- a/tools/syz-kconf/parser.go
+++ b/tools/syz-kconf/parser.go
@@ -20,6 +20,7 @@ type Instance struct {
Name string
Kernel Kernel
Compiler string
+ Linker string
Verbatim []byte
Shell []Shell
Features Features
@@ -81,6 +82,7 @@ type rawFile struct {
Tag string
}
Compiler string
+ Linker string
Shell []yaml.Node
Verbatim string
Config []yaml.Node
@@ -189,6 +191,12 @@ func mergeFile(inst *Instance, raw *rawFile, file string, errs *Errors) {
}
inst.Compiler = raw.Compiler
}
+ if raw.Linker != "" {
+ if inst.Linker != "" {
+ errs.push("%v: linker is set twice", file)
+ }
+ inst.Linker = raw.Linker
+ }
for _, node := range raw.Shell {
cmd, _, constraints, err := parseNode(node)
if err != nil {