efi/libstub: Use hidden visibility for all source files
authorArd Biesheuvel <ardb@kernel.org>
Mon, 10 Feb 2020 16:02:32 +0000 (17:02 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Sun, 23 Feb 2020 20:57:12 +0000 (21:57 +0100)
commit6f05106e20f0ed26a2dbd6a5d44a302ce81642e0
tree91a31176163d9fc6cadcff163367a92dc91e3aac
parent04a7d0e15606769ef58d5cee912c5d08d93ded92
efi/libstub: Use hidden visibility for all source files

Instead of setting the visibility pragma for a small set of symbol
declarations that could result in absolute references that we cannot
support in the stub, declare hidden visibility for all code in the
EFI stub, which is more robust and future proof.

To ensure that the #pragma is taken into account before any other
includes are processed, put it in a header file of its own and
include it via the compiler command line using the -include option.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/arm64/include/asm/efi.h
drivers/firmware/efi/libstub/Makefile
drivers/firmware/efi/libstub/arm64-stub.c
drivers/firmware/efi/libstub/hidden.h [new file with mode: 0644]