j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: blueswirl Date: Sun Aug 19 15:25:31 2012 New Revision: 1062 URL: http://tracker.coreboot.org/trac/openbios/changeset/1062
Log: fix ppc builds with ppc64 compiler and ppc64 linker
Need to specify ppc object code output arch (gcc/as -m32) and 32-bit C run-time (ldscript arch) when using ppc64 compiler and linker.
Signed-of-by: Kenneth Salerno kennethsalerno@yahoo.com Signed-off-by: Blue Swirl blauwirbel@gmail.com
Modified: trunk/openbios-devel/arch/ppc/qemu/ldscript trunk/openbios-devel/config/scripts/switch-arch
Modified: trunk/openbios-devel/arch/ppc/qemu/ldscript ============================================================================== --- trunk/openbios-devel/arch/ppc/qemu/ldscript Sat Jun 9 19:05:32 2012 (r1061) +++ trunk/openbios-devel/arch/ppc/qemu/ldscript Sun Aug 19 15:25:31 2012 (r1062) @@ -1,5 +1,5 @@ OUTPUT_FORMAT(elf32-powerpc) -OUTPUT_ARCH(powerpc) +OUTPUT_ARCH(powerpc:common)
/* Initial load address */
Modified: trunk/openbios-devel/config/scripts/switch-arch ============================================================================== --- trunk/openbios-devel/config/scripts/switch-arch Sat Jun 9 19:05:32 2012 (r1061) +++ trunk/openbios-devel/config/scripts/switch-arch Sun Aug 19 15:25:31 2012 (r1062) @@ -232,11 +232,12 @@ ppc) select_prefix powerpc if [ "$unix" = "no" ]; then - CFLAGS="-msoft-float -fno-builtin-bcopy -fno-builtin-log2" + CFLAGS="-m32 -msoft-float -fno-builtin-bcopy -fno-builtin-log2" + AS_FLAGS="-m32" else CFLAGS="-fno-builtin" + AS_FLAGS= fi - AS_FLAGS= ;;
ppc64)