RISC-V: pi: Force hidden visibility for all symbol references
authorJesse Taube <jesse@rivosinc.com>
Tue, 9 Jul 2024 17:39:34 +0000 (13:39 -0400)
committerPalmer Dabbelt <palmer@rivosinc.com>
Mon, 5 Aug 2024 19:06:38 +0000 (12:06 -0700)
commit14c3ec67236b2d90c553d2575950369aa6fa43c5
treeb4926567a6bd9a392cec93547117094e7d0c6463
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
RISC-V: pi: Force hidden visibility for all symbol references

Eliminate all GOT entries in the .pi section, by forcing hidden
visibility for all symbol references, which informs the compiler that
such references will be resolved at link time without the need for
allocating GOT entries.

Include linux/hidden.h in Makefile, like arm64, for the
hidden visibility attribute.

Signed-off-by: Jesse Taube <jesse@rivosinc.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20240709173937.510084-2-jesse@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/pi/Makefile