[OpenBIOS] [RFC 1/2] switch-arch: Prepare ppc64 support
andreas.faerber at web.de
Sat Oct 30 15:26:52 CEST 2010
Am 04.10.2010 um 06:08 schrieb Segher Boessenkool:
>>> Â 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
>> 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?
For the record, the linker script had OUTPUT_ARCH(powerpc), changing
that to OUTPUT_ARCH(powerpc:common64) helped. Thanks for pointing me
in the right direction.
More information about the OpenBIOS