summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi.software>2021-10-22 07:46:14 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-10-23 11:11:18 +0000
commitf02ed614d2a031aeb73777b06dc0934bb9520e50 (patch)
treef66223a58c330934265d8f22fbb499a351caf840
parent6794ce02d45273427c1c6675950c8468380c040a (diff)
downloadcoreboot-4.8_branch.tar.gz
coreboot-4.8_branch.tar.bz2
coreboot-4.8_branch.zip
util/sconfig: Avoid duplicate symbols in link step4.8_branch
Recent linkers became more picky about unifying identical symbols, so avoid struct *device head to appear several times by marking it "extern". Follows a change in commit 79e8412665567c, but without carrying all the other refactorings done there. Change-Id: Icede0936cc99f1c183c09812bffc3cc9a3993efa Signed-off-by: Patrick Georgi <patrick@georgi.software> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58534 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
-rw-r--r--util/sconfig/sconfig.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sconfig/sconfig.h b/util/sconfig/sconfig.h
index 119d7b5fbf24..3ca13b3e7c03 100644
--- a/util/sconfig/sconfig.h
+++ b/util/sconfig/sconfig.h
@@ -77,7 +77,7 @@ struct device {
struct reg *reg;
};
-struct device *head;
+extern struct device *head;
struct header;
struct header {