summaryrefslogtreecommitdiff
path: root/tools/binman/test/bss_data.c
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2017-11-23 22:48:35 -0500
committerTom Rini <[email protected]>2017-11-23 22:48:35 -0500
commitbb7ab1ccfec9aa4e2df3e8eb49ca85f6c0c65560 (patch)
tree7cf3d11a538ce834689ed3749db66b2f99543443 /tools/binman/test/bss_data.c
parentd9d76023ea0d567b0630e85d1bef67b5b1a788d3 (diff)
parent9677faa34ee81c7abb4c08b0dc4ce4aace5473fc (diff)
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'tools/binman/test/bss_data.c')
-rw-r--r--tools/binman/test/bss_data.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/binman/test/bss_data.c b/tools/binman/test/bss_data.c
new file mode 100644
index 00000000000..f865a9d9f67
--- /dev/null
+++ b/tools/binman/test/bss_data.c
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2016 Google, Inc
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ *
+ * Simple program to create a _dt_ucode_base_size symbol which can be read
+ * by 'nm'. This is used by binman tests.
+ */
+
+int bss_data[10];
+int __bss_size = sizeof(bss_data);
+
+int main()
+{
+ bss_data[2] = 2;
+
+ return 0;
+}