From: Greg Kroah-Hartman Date: Wed, 24 Oct 2012 05:26:17 +0000 (-0700) Subject: 3.0-stable patches X-Git-Tag: v3.0.49~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b1bd92ac11581a74b7260285e1bfd1d666c11995;p=thirdparty%2Fkernel%2Fstable-queue.git 3.0-stable patches added patches: arch-tile-avoid-generating-.eh_frame-information-in-modules.patch --- diff --git a/queue-3.0/arch-tile-avoid-generating-.eh_frame-information-in-modules.patch b/queue-3.0/arch-tile-avoid-generating-.eh_frame-information-in-modules.patch new file mode 100644 index 00000000000..65d9b6f6390 --- /dev/null +++ b/queue-3.0/arch-tile-avoid-generating-.eh_frame-information-in-modules.patch @@ -0,0 +1,37 @@ +From 627072b06c362bbe7dc256f618aaa63351f0cfe6 Mon Sep 17 00:00:00 2001 +From: Chris Metcalf +Date: Fri, 19 Oct 2012 11:43:11 -0400 +Subject: arch/tile: avoid generating .eh_frame information in modules + +From: Chris Metcalf + +commit 627072b06c362bbe7dc256f618aaa63351f0cfe6 upstream. + +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 +Signed-off-by: Greg Kroah-Hartman + +--- + arch/tile/Makefile | 4 ++++ + 1 file changed, 4 insertions(+) + +--- a/arch/tile/Makefile ++++ b/arch/tile/Makefile +@@ -26,6 +26,10 @@ $(error Set TILERA_ROOT or CROSS_COMPILE + 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 diff --git a/queue-3.0/series b/queue-3.0/series new file mode 100644 index 00000000000..5b4899088e2 --- /dev/null +++ b/queue-3.0/series @@ -0,0 +1 @@ +arch-tile-avoid-generating-.eh_frame-information-in-modules.patch