u-boot/arch
Andre Przywara 1416e2d225 armv8: make SPL exception vectors optional
Even though the exception vector table is a fundamental part of the ARM
architecture, U-Boot mostly does not make real use of it, except when
crash dumping. But having it in takes up quite some space, partly due to
the architectural alignment requirement of 2KB. Since we don't take special
care of that, the compiler adds a more or less random amount of padding
space, which increases the image size quite a bit, especially for the SPL.

On a typical Allwinner build this is around 1.5KB of padding, plus 1KB
for the vector table (mostly padding space again), then some extra code
to do the actual handling. This amounts to almost 10% of the maximum image
size, which is quite a lot for a pure debugging feature.

Add a Kconfig symbol to allow the exception vector table to be left out
of the build for the SPL.
For now this is "default y" for everyone, but specific defconfigs,
platforms or .config files can opt out here at will, to mitigate the code
size pressure we see for some SPLs.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2018-08-03 19:53:54 -04:00
..
arc ARC: Enable unaligned access in hardware if compiler uses it 2018-07-31 07:49:47 +03:00
arm armv8: make SPL exception vectors optional 2018-08-03 19:53:54 -04:00
m68k m68k: m5253evbe: Remove this board 2018-07-23 14:33:21 -04:00
microblaze dm: Change CMD_DM enabling 2018-07-30 07:18:48 -04:00
mips Kconfig: Sort bool, default, select and imply options 2018-07-30 07:18:48 -04:00
nds32 nds32: Define PLATFORM__CLEAR_BIT for generic_clear_bit() 2018-05-15 21:44:05 -04:00
nios2 .gitignore: move *.dtb and *.dtb.S patterns to the top-level .gitignore 2018-06-18 14:43:12 -04:00
powerpc Kconfig: Sort bool, default, select and imply options 2018-07-30 07:18:48 -04:00
riscv efi_loader: Rename sections to allow for implicit data 2018-07-25 14:57:44 +02:00
sandbox clk: add clk_valid() 2018-08-03 19:53:10 -04:00
sh SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
x86 binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
xtensa SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig dm: Change CMD_DM enabling 2018-07-30 07:18:48 -04:00