|author||Jason A. Donenfeld <Jason@zx2c4.com>||2020-06-18 17:44:56 -0600|
|committer||Jason A. Donenfeld <Jason@zx2c4.com>||2020-06-18 17:47:36 -0600|
|parent||compat: drop centos 8.1 support as 8.2 is now out (diff)|
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 <Jason@zx2c4.com>
1 files changed, 1 insertions, 1 deletions
@@ -2,7 +2,7 @@
# Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. 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