summaryrefslogtreecommitdiff
path: root/tools/binman/test/bss_data.lds
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-11-12 21:52:25 -0700
committerSimon Glass <sjg@chromium.org>2017-11-22 18:05:38 -0700
commit56509843003570f57f8600642258c77d525da0e5 (patch)
tree0b2b2566f34c5ac83aba52b4f217f86f0decfafa /tools/binman/test/bss_data.lds
parenta25ebed36fcf95d09629e8d2e95fdf4907798fb5 (diff)
binman: Add test for u-boot-spl-bss-pad
Add a test that we can pad the BSS with zero bytes. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/test/bss_data.lds')
-rw-r--r--tools/binman/test/bss_data.lds16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/binman/test/bss_data.lds b/tools/binman/test/bss_data.lds
new file mode 100644
index 0000000000..6b2fe09d35
--- /dev/null
+++ b/tools/binman/test/bss_data.lds
@@ -0,0 +1,16 @@
+/*
+ * Copyright (c) 2016 Google, Inc
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
+OUTPUT_ARCH(i386)
+ENTRY(_start)
+
+SECTIONS
+{
+ . = 0xfffffdf0;
+ _start = .;
+ __bss_size = 10;
+}