[OpenBIOS] [RFC 1/2] switch-arch: Prepare ppc64 support

Segher Boessenkool segher at kernel.crashing.org
Mon Oct 4 06:08:32 CEST 2010

>> Â The -m64 is not yet working in my gcc configuration. Using
>> -mcpu=powerpc64 instead, the C files compiled

They compiled as 32-bit objects, that's no good.

>> Â but despite tweaking the linker script and adding -melf64ppc to LD
>> there was a mismatch:
>> Â powerpc-elf-ld: powerpc:common64 architecture of input file
>> `target/arch/ppc/qemu/start.o' is incompatible with powerpc:common
>> output
> You should build binutils for powerpc64-elf.

Or enable 64-bit target support in binutils.  It sounds like
the linker script does OUTPUT_ARCH(powerpc:common); fix that?


More information about the OpenBIOS mailing list