summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-06-18 17:44:56 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-06-18 17:47:36 -0600
commit178cdfffb99f2fd6fb4a5bfd2f9319461d93f53b (patch)
treeb65009d1f7551b2964896be46d9b662cf57e72ce
parent1f4ad9270d25ae912790fe2e76183fc27d5d3dc8 (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>
-rw-r--r--src/Kbuild2
1 files changed, 1 insertions, 1 deletions
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 <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