summaryrefslogtreecommitdiffstats
path: root/arch/tile/Makefile
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2012-10-19 17:43:11 +0200
committerChris Metcalf <cmetcalf@tilera.com>2012-10-23 16:21:43 +0200
commit627072b06c362bbe7dc256f618aaa63351f0cfe6 (patch)
tree1bd7b33b5433edc3e42a6e5ab837dc83dee0b9f2 /arch/tile/Makefile
parentLinux 3.7-rc2 (diff)
downloadlinux-627072b06c362bbe7dc256f618aaa63351f0cfe6.tar.xz
linux-627072b06c362bbe7dc256f618aaa63351f0cfe6.zip
arch/tile: avoid generating .eh_frame information in modules
The tile tool chain uses the .eh_frame information for backtracing. The vmlinux build drops any .eh_frame sections at link time, but when present in kernel modules, it causes a module load failure due to the presence of unsupported pc-relative relocations. When compiling to use compiler feedback support, the compiler by default omits .eh_frame information, so we don't see this problem. But when not using feedback, we need to explicitly suppress the .eh_frame. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com> Cc: stable@vger.kernel.org
Diffstat (limited to '')
-rw-r--r--arch/tile/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/tile/Makefile b/arch/tile/Makefile
index 55640cf92597..3d15364c6071 100644
--- a/arch/tile/Makefile
+++ b/arch/tile/Makefile
@@ -26,6 +26,10 @@ $(error Set TILERA_ROOT or CROSS_COMPILE when building $(ARCH) on $(HOST_ARCH))
endif
endif
+# The tile compiler may emit .eh_frame information for backtracing.
+# In kernel modules, this causes load failures due to unsupported relocations.
+KBUILD_CFLAGS += -fno-asynchronous-unwind-tables
+
ifneq ($(CONFIG_DEBUG_EXTRA_FLAGS),"")
KBUILD_CFLAGS += $(CONFIG_DEBUG_EXTRA_FLAGS)
endif