summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/u-boot.lds
diff options
context:
space:
mode:
authorGabe Black <gabeblack@chromium.org>2012-11-27 21:08:06 (GMT)
committerSimon Glass <sjg@chromium.org>2012-11-28 19:40:03 (GMT)
commitb16f521a5e87208cebbd17964452e11704416c3f (patch)
treef3a37b94139b202e67fcebd905a91e2ff6eb07da /arch/x86/cpu/u-boot.lds
parent8a487a4417221412d1cd23d4e08253fc9413be51 (diff)
downloadu-boot-fsl-qoriq-b16f521a5e87208cebbd17964452e11704416c3f.tar.xz
x86: Allow excluding reset vector code from u-boot
When running from coreboot we don't want this code. This version works by ifdef-ing out all of the code that would go into those sections and all the code that refers to it. The sections are then empty, and the linker will either leave them empty for the loader to ignore or remove them entirely. Signed-off-by: Gabe Black <gabeblack@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/u-boot.lds')
-rw-r--r--arch/x86/cpu/u-boot.lds3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/cpu/u-boot.lds b/arch/x86/cpu/u-boot.lds
index a1ecefa..0c6f0e3 100644
--- a/arch/x86/cpu/u-boot.lds
+++ b/arch/x86/cpu/u-boot.lds
@@ -86,6 +86,8 @@ SECTIONS
__bios_start = LOADADDR(.bios);
__bios_size = SIZEOF(.bios);
+#ifndef CONFIG_X86_NO_RESET_VECTOR
+
/*
* The following expressions place the 16-bit Real-Mode code and
* Reset Vector at the end of the Flash ROM
@@ -95,4 +97,5 @@ SECTIONS
. = RESET_VEC_LOC;
.resetvec : AT (CONFIG_SYS_TEXT_BASE + (CONFIG_SYS_MONITOR_LEN - RESET_SEG_SIZE + RESET_VEC_LOC)) { KEEP(*(.resetvec)); }
+#endif
}