mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
6f05106e20
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>
7 lines
233 B
C
7 lines
233 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* To prevent the compiler from emitting GOT-indirected (and thus absolute)
|
|
* references to any global symbols, override their visibility as 'hidden'
|
|
*/
|
|
#pragma GCC visibility push(hidden)
|