On Mon, 2013-11-18 at 17:21 +1100, Alistair Popple wrote: > The kernel doesn't build correctly using the ELFv2 ABI. This patch > ensures that the ELFv1 ABI is used when building a kernel with an > ELFv2 enabled compiler. > > Signed-off-by: Alistair Popple <alist...@popple.id.au> > --- > arch/powerpc/Makefile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile > index 607acf5..8a24636 100644 > --- a/arch/powerpc/Makefile > +++ b/arch/powerpc/Makefile > @@ -111,6 +111,7 @@ endif > endif > > CFLAGS-$(CONFIG_PPC64) := -mtraceback=no -mcall-aixdesc > +CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv1) > CFLAGS-$(CONFIG_PPC64) += $(call > cc-option,-mcmodel=medium,-mminimal-toc) > CFLAGS-$(CONFIG_PPC64) += $(call > cc-option,-mno-pointers-to-nested-functions) > CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 $(MULTIPLEWORD)
How hard would it be to get the kernel to work with the new ABI? Do you know where I can find a document for it? -Scott _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev