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

Andreas Färber andreas.faerber at web.de
Sun Oct 3 23:42:41 CEST 2010

Am 03.10.2010 um 16:18 schrieb Blue Swirl:

> On Sun, Oct 3, 2010 at 1:20 PM, Andreas Färber  
> <andreas.faerber at web.de> wrote:
>>  The -m64 is not yet working in my gcc configuration. Using - 
>> mcpu=powerpc64 instead, the C files compiled
>>  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.

I built powerpc-elf- binutils with --enable-targets=powerpc64-elf,  
which added above elf64ppc to -V...

LD=powerpc64-elf-ld does solve the above but leaves me with:

PMG5-2:obj-ppc64 andreas$ make V=1 LD="powerpc64-elf-ld"
powerpc64-elf-ld --warn-common -N -T ../arch/ppc64/qemu/ldscript -o  
openbios-qemu.elf.nostrip --whole-archive target/arch/ppc/qemu/start.o  
target/arch/ppc/timebase.o libqemu.a libbootstrap.a libopenbios.a  
libpackages.a libdrivers.a libfs.a liblibc.a libgcc.a
target/arch/ppc/qemu/start.o: In function `vector__0x300':
start.S:209: relocation truncated to fit: R_PPC64_ADDR24 against  
target/arch/ppc/qemu/start.o: In function `vector__0x400':
start.S:217: relocation truncated to fit: R_PPC64_ADDR24 against  
make: *** [openbios-qemu.elf] Error 1

ldscript is unchanged except for the output format.


More information about the OpenBIOS mailing list