aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/test/bss_data_zero.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/binman/test/bss_data_zero.c')
-rw-r--r--tools/binman/test/bss_data_zero.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/binman/test/bss_data_zero.c b/tools/binman/test/bss_data_zero.c
new file mode 100644
index 0000000000..7047a3bb01
--- /dev/null
+++ b/tools/binman/test/bss_data_zero.c
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (c) 2016 Google, Inc
+ *
+ * Simple program to create a bss_data region so the symbol can be read
+ * by binutils. This is used by binman tests.
+ */
+
+int bss_data[10];
+
+int main(void)
+{
+ bss_data[2] = 2;
+
+ return 0;
+}