[PATCH][PPC32] Fix compilation with binutils-2.15

From: Tom Rini (trini_at_kernel.crashing.org)
Date: 07/31/04

  • Next message: Miklos Szeredi: "Re: uid of user who mounts"
    Date:	Sat, 31 Jul 2004 12:24:21 -0700
    To: Linus Torvalds <torvalds@osdl.org>
    
    

    Currently, ppc32 will not always compile with binutils-2.15. The issue
    is that binutils has become even more strict about which opcodes can be
    used with which CPU flags. The problem is that we have a number of
    cases where we compile with altivec instructions (with runtime checks to
    make sure we can actually run them) in code that's not altivec specific.
    The fix for this is to always pass in -maltivec on CONFIG_6xx. To do
    this cleanly, we split our AFLAGS definition up into
    aflags-$(CONFIG_FOO).

    Signed-off-by: Tom Rini <trini@kernel.crashing.org>

    --- 1.57/arch/ppc/Makefile 2004-07-28 21:58:36 -07:00
    +++ edited/arch/ppc/Makefile 2004-07-31 12:16:29 -07:00
    @@ -22,7 +22,7 @@
     
     LDFLAGS_vmlinux := -Ttext $(KERNELLOAD) -Bstatic
     CPPFLAGS += -Iarch/$(ARCH)
    -AFLAGS += -Iarch/$(ARCH)
    +aflags-y += -Iarch/$(ARCH)
     cflags-y += -Iarch/$(ARCH) -msoft-float -pipe \
                     -ffixed-r2 -Wno-uninitialized -mmultiple
     CPP = $(CC) -E $(CFLAGS)
    @@ -33,10 +33,16 @@
     cflags-y += -mstring
     endif
     
    +aflags-$(CONFIG_4xx) += -m405
     cflags-$(CONFIG_4xx) += -Wa,-m405
    +aflags-$(CONFIG_6xx) += -maltivec
    +cflags-$(CONFIG_6xx) += -Wa,-maltivec
    +aflags-$(CONFIG_E500) += -me500
     cflags-$(CONFIG_E500) += -Wa,-me500
    +aflags-$(CONFIG_PPC64BRIDGE) += -mppc64bridge
     cflags-$(CONFIG_PPC64BRIDGE) += -Wa,-mppc64bridge
     
    +AFLAGS += $(aflags-y)
     CFLAGS += $(cflags-y)
     
     head-y := arch/ppc/kernel/head.o

    -- 
    Tom Rini
    http://gate.crashing.org/~trini/
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Miklos Szeredi: "Re: uid of user who mounts"

    Relevant Pages

    • Re: Possible dcache BUG
      ... During the compile, the above line output this warning: ... Copyright 2004 by Maurice Eugene Heskett, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Linux GPL and binary module exception clause?
      ... of them for every exported symbol in turn, ... hacked -E:) we don't need to compile for this, ... `...some suburbanite DSL customer who thinks kernel patches are some ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [patch, 2.6.10-rc2] sched: fix ->nr_uninterruptible handling bugs
      ... > it, run lmbench, then compile a SMP kernel, and run it again. ... The Athlon64 really shines doing atomic ops though, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Compiling cardbus devices monolithic doesnt work?
      ... I should compile a monolithic 2.4 kernel and see what it does...) ... > IIRC hermes provides the low level interface to the device, ... > provides a bridge between the PCMCIA subsystem and orinoco. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Exporting symbols between modules
      ... Hi Sergio, ... > I compile it and install without any problem. ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)