aboutsummaryrefslogtreecommitdiffstats
path: root/roms/u-boot/tools/binman/test/bss_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'roms/u-boot/tools/binman/test/bss_data.c')
-rw-r--r--roms/u-boot/tools/binman/test/bss_data.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/roms/u-boot/tools/binman/test/bss_data.c b/roms/u-boot/tools/binman/test/bss_data.c
new file mode 100644
index 000000000..79537c31b
--- /dev/null
+++ b/roms/u-boot/tools/binman/test/bss_data.c
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (c) 2016 Google, Inc
+ *
+ * Simple program to create a _dt_ucode_base_size symbol which can be read
+ * by binutils. This is used by binman tests.
+ */
+
+int bss_data[10];
+int __bss_size = sizeof(bss_data);
+
+int main()
+{
+ bss_data[2] = 2;
+
+ return 0;
+}