Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+4
+4
arch/tile/Makefile
··· 26 26 endif 27 27 endif 28 28 29 + # The tile compiler may emit .eh_frame information for backtracing. 30 + # In kernel modules, this causes load failures due to unsupported relocations. 31 + KBUILD_CFLAGS += -fno-asynchronous-unwind-tables 32 + 29 33 ifneq ($(CONFIG_DEBUG_EXTRA_FLAGS),"") 30 34 KBUILD_CFLAGS += $(CONFIG_DEBUG_EXTRA_FLAGS) 31 35 endif