diff options
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 |
commit | 178cdfffb99f2fd6fb4a5bfd2f9319461d93f53b (patch) | |
tree | b65009d1f7551b2964896be46d9b662cf57e72ce | |
parent | 1f4ad9270d25ae912790fe2e76183fc27d5d3dc8 (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/Kbuild | 2 |
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 |