* [PATCH] Build with -fno-dwarf2-cfi-asm
@ 2009-03-23 19:25 Kyle McMartin
0 siblings, 0 replies; only message in thread
From: Kyle McMartin @ 2009-03-23 19:25 UTC (permalink / raw)
To: torvalds; +Cc: roland, aoliva, sam, linux-kernel, linux-kbuild
From: Kyle McMartin <kyle@redhat.com>
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>
Cc: roland@redhat.com
Cc: aoliva@redhat.com
Cc: sam@ravnborg.org
---
As near as I can tell, the only case previously was for the vdso images,
which are explicitly built with -fasynchronous-unwind-tables, and
annotated with cfi directives.
Everyone else either unwinds their stack manually, or has a custom
unwind format like parisc or ia64.
Hopefully this is a somewhat better description than the last time.
cheers, Kyle
diff --git a/Makefile b/Makefile
index a2c2efe..057230a 100644
--- a/Makefile
+++ b/Makefile
@@ -569,6 +569,9 @@ KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,)
# disable invalid "can't wrap" optimzations for signed / pointers
KBUILD_CFLAGS += $(call cc-option,-fwrapv)
+# revert to pre-gcc-4.4 behaviour of .eh_frame
+KBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm)
+
# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments
# But warn user when we do so
warn-assign = \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-23 19:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-23 19:25 [PATCH] Build with -fno-dwarf2-cfi-asm Kyle McMartin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®