efi/libstub: Optimize for size instead of speed
authorArvind Sankar <nivedita@alum.mit.edu>
Mon, 18 May 2020 19:06:57 +0000 (15:06 -0400)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 19 May 2020 08:30:52 +0000 (10:30 +0200)
commitbbf8e8b0fe0401e1952c77088692fd273a9635a1
treecbec01ae963346a9a6317beccae6fbfac5416a80
parent2c7d1e30e5884dc6f6727ecd9417491c9f321b59
efi/libstub: Optimize for size instead of speed

Reclaim the bloat from the addition of printf by optimizing the stub for
size. With gcc 9, the text size of the stub is:

ARCH    before  +printf    -Os
arm      35197    37889  34638
arm64    34883    38159  34479
i386     18571    21657  17025
x86_64   25677    29328  22144

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200518190716.751506-6-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/Makefile