summaryrefslogtreecommitdiff
path: root/tools/binman/test/u_boot_ucode_ptr.lds
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-11-25 20:15:53 -0700
committerSimon Glass <sjg@chromium.org>2016-12-20 08:09:55 +1300
commite0ff85513858246e5378e4e3676ef6128452c4f6 (patch)
tree8265f67f1246bf73f351a785ea27bfc305384f7e /tools/binman/test/u_boot_ucode_ptr.lds
parent4f44304b0bd881f79252c7b7d2fb796e31ca3b0a (diff)
binman: Add support for building x86 ROMs
The structure of x86 ROMs is pretty complex. There are various binary blobs to place in the image. Microcode requires special handling so that it is available to very early code and can be used without any memory whatsoever. Add support for the various entry types that are currently needed, along with some tests. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'tools/binman/test/u_boot_ucode_ptr.lds')
-rw-r--r--tools/binman/test/u_boot_ucode_ptr.lds18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/binman/test/u_boot_ucode_ptr.lds b/tools/binman/test/u_boot_ucode_ptr.lds
new file mode 100644
index 0000000000..167debfe34
--- /dev/null
+++ b/tools/binman/test/u_boot_ucode_ptr.lds
@@ -0,0 +1,18 @@
+/*
+ * 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 = .;
+ .ucode : {
+ *(.ucode)
+ }
+}