diff options
author | Stephen Warren <swarren@nvidia.com> | 2018-01-03 14:31:51 -0700 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2018-01-12 09:52:11 -0700 |
commit | 8163faf952c467b01758b8a9a0dc8538e487aa9a (patch) | |
tree | 2964e95d8dccd8367b2115876e7e481a32c2f0ff /arch/arm/cpu/armv8/u-boot.lds | |
parent | f097532d279dd7a6ab2d579425d1318051ac1f8d (diff) | |
download | u-boot-8163faf952c467b01758b8a9a0dc8538e487aa9a.tar.gz |
ARMv8: add optional Linux kernel image header
Allow placing a Linux kernel image header at the start of the U-Boot
binary. This is useful since the image header reports the amount of memory
(BSS and similar) that U-Boot needs to use, but that isn't part of the
binary size. This can be used by the code that loads U-Boot into memory to
determine where to load U-Boot, based on other users of memory.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'arch/arm/cpu/armv8/u-boot.lds')
-rw-r--r-- | arch/arm/cpu/armv8/u-boot.lds | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv8/u-boot.lds b/arch/arm/cpu/armv8/u-boot.lds index 22195b8834..7b76e0f9f0 100644 --- a/arch/arm/cpu/armv8/u-boot.lds +++ b/arch/arm/cpu/armv8/u-boot.lds @@ -159,4 +159,8 @@ SECTIONS /DISCARD/ : { *(.plt*) } /DISCARD/ : { *(.interp*) } /DISCARD/ : { *(.gnu*) } + +#ifdef CONFIG_LINUX_KERNEL_IMAGE_HEADER +#include "linux-kernel-image-header-vars.h" +#endif } |