diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2020-02-10 17:02:32 +0100 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2020-02-23 21:57:12 +0100 |
commit | 6f05106e20f0ed26a2dbd6a5d44a302ce81642e0 (patch) | |
tree | 91a31176163d9fc6cadcff163367a92dc91e3aac /arch/arm64/include/asm/efi.h | |
parent | efi/libstub/x86: Avoid overflowing code32_start on PE entry (diff) | |
download | linux-6f05106e20f0ed26a2dbd6a5d44a302ce81642e0.tar.xz linux-6f05106e20f0ed26a2dbd6a5d44a302ce81642e0.zip |
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>
Diffstat (limited to 'arch/arm64/include/asm/efi.h')
-rw-r--r-- | arch/arm64/include/asm/efi.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/arm64/include/asm/efi.h b/arch/arm64/include/asm/efi.h index 44531a69d32b..56ae87401a26 100644 --- a/arch/arm64/include/asm/efi.h +++ b/arch/arm64/include/asm/efi.h @@ -107,9 +107,6 @@ static inline void free_screen_info(struct screen_info *si) { } -/* redeclare as 'hidden' so the compiler will generate relative references */ -extern struct screen_info screen_info __attribute__((__visibility__("hidden"))); - static inline void efifb_setup_from_dmi(struct screen_info *si, const char *opt) { } |