From 178cdfffb99f2fd6fb4a5bfd2f9319461d93f53b Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 18 Jun 2020 17:44:56 -0600 Subject: Kbuild: remove -fvisibility=hidden from cflags This was originally done in 2015 as a means of decreasing module size, but it has the effect of creating JUMP11 relocations on ARM when compiled in THUMB2 mode without CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11=y, which results in `B ...` instructions being generated with jumps that are too far, rather than `B.W ...` instructions, which can handle the larger sized jump. Get rid of the old hack, which had minimum utility anyway. Signed-off-by: Jason A. Donenfeld --- src/Kbuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kbuild b/src/Kbuild index f1b4ad7..a0d433f 100644 --- a/src/Kbuild +++ b/src/Kbuild @@ -2,7 +2,7 @@ # # Copyright (C) 2015-2019 Jason A. Donenfeld . All Rights Reserved. -ccflags-y := -O3 -fvisibility=hidden +ccflags-y := -O3 ccflags-$(CONFIG_WIREGUARD_DEBUG) += -DDEBUG -g ccflags-y += -D'pr_fmt(fmt)=KBUILD_MODNAME ": " fmt' ccflags-y += -Wframe-larger-than=2048 -- cgit v1.2.3