[OpenBIOS] [PATCH] fix ppc builds with ppc64 compiler and ppc64 linker

Blue Swirl blauwirbel at gmail.com
Sun Aug 19 15:26:33 CEST 2012


Thanks, applied.

On Tue, Aug 14, 2012 at 3:20 PM, Kenneth Salerno
<kennethsalerno at yahoo.com> wrote:
> 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 at yahoo.com>
> --- a/config/scripts/switch-arch        2012-08-14 10:33:34.859375000 -0400
> +++ b/config/scripts/switch-arch        2012-08-14 10:34:45.375000000 -0400
> @@ -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)
>
> --- a/arch/ppc/qemu/ldscript    2012-08-14 10:30:42.046875000 -0400
> +++ b/arch/ppc/qemu/ldscript    2012-08-14 10:30:20.218750000 -0400
> @@ -1,5 +1,5 @@
>  OUTPUT_FORMAT(elf32-powerpc)
> -OUTPUT_ARCH(powerpc)
> +OUTPUT_ARCH(powerpc:common)
>
>  /* Initial load address
>   */
>
>
>
> --
> OpenBIOS                 http://openbios.org/
> Mailinglist:  http://lists.openbios.org/mailman/listinfo
> Free your System - May the Forth be with you



More information about the OpenBIOS mailing list