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

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Kyle McMartin and committed by
Linus Torvalds
00308649 1db4b2d2

+3
+3
Makefile
··· 569 569 # disable invalid "can't wrap" optimzations for signed / pointers 570 570 KBUILD_CFLAGS += $(call cc-option,-fwrapv) 571 571 572 + # revert to pre-gcc-4.4 behaviour of .eh_frame 573 + KBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm) 574 + 572 575 # Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments 573 576 # But warn user when we do so 574 577 warn-assign = \