arch/tile: avoid generating .eh_frame information in modules
authorChris Metcalf <cmetcalf@tilera.com>
Fri, 19 Oct 2012 15:43:11 +0000 (11:43 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Oct 2012 17:56:09 +0000 (10:56 -0700)
commit1e9b1525c67f953107066d7a062a256311199394
tree78946d206725d9a401e9397847fea3dfff7c4738
parenta6828f217248d46865ac1f8043bff2a5ae20d7b2
arch/tile: avoid generating .eh_frame information in modules

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 <cmetcalf@tilera.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/tile/Makefile