aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle McMartin <kyle@redhat.com>2009-03-23 15:25:49 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-03-23 17:21:26 -0400
commit003086497f07f7f1e67c0c295e261740f822b377 (patch)
tree109be4a657d67b76a5cef8d4b7b0d1cea93ef8b1
parent1db4b2d221f14b9715c717dbd9a476469a687080 (diff)
Build with -fno-dwarf2-cfi-asm
With a sufficiently new compiler and binutils, code which wasn't previously generating .eh_frame sections has begun to. Certain architectures (powerpc, in this case) may generate unexpected relocation formats in response to this, preventing modules from loading. While the new relocation types should probably be handled, revert to the previous behaviour with regards to generation of .eh_frame sections. (This was reported against Fedora, which appears to be the only distro doing any building against gcc-4.4 at present: RH bz#486545.) Signed-off-by: Kyle McMartin <kyle@redhat.com> Acked-by: Roland McGrath <roland@redhat.com> Cc: Alexandre Oliva <aoliva@redhat.com> Cc: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a2c2efe9e82e..210107d3aa97 100644
--- a/Makefile
+++ b/Makefile
@@ -569,6 +569,9 @@ KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,)
569# disable invalid "can't wrap" optimzations for signed / pointers 569# disable invalid "can't wrap" optimzations for signed / pointers
570KBUILD_CFLAGS += $(call cc-option,-fwrapv) 570KBUILD_CFLAGS += $(call cc-option,-fwrapv)
571 571
572# revert to pre-gcc-4.4 behaviour of .eh_frame
573KBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm)
574
572# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments 575# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments
573# But warn user when we do so 576# But warn user when we do so
574warn-assign = \ 577warn-assign = \