[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Request for openhackware.git mirror
From: |
Mark Cave-Ayland |
Subject: |
Re: [Qemu-devel] Request for openhackware.git mirror |
Date: |
Mon, 03 Mar 2014 18:42:29 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 |
On 03/03/14 18:31, Andreas Färber wrote:
Am I missing something from the build in order for the final link to
complete correctly?
Hm, repository looks okay, and I didn't run into this yet. Possibly you
are using different binutils?
Presumably you did try make clean CROSS_COMPILE=... :)
I chose not to apply one hunk from Rene Rebe since not needed here.
Maybe the above .rodata.str1.4 would end up in .rodata this way?
Make it link at al.
- Rene Rebe<address@hidden>
--- OpenHackWare-release-0.4/src/main.ld 2005-03-31
09:23:33.000000000 +0200
+++ OpenHackWare-release-0.4-hacked/src/main.ld 2008-05-06
11:23:29.000000000 +0200
@@ -49,7 +49,7 @@
_sdata_end = . ;
. = ALIGN(4) ;
_ro_start = . ;
- .rodata : { *(.rodata) }> bios
+ .rodata : { *(.rodata*) }> bios
_ro_end = . ;
. = ALIGN(4) ;
_RTAS_start = .;
Cheers,
Andreas
Hi Andreas,
That patch definitely helps as it reduces the error to just:
powerpc-elf-ld: .objs/main.out section .text.startup will not fit in
region start
powerpc-elf-ld: section .text [0000000005800400 -> 0000000005812e23]
overlaps section .text.startup [0000000005800054 -> 00000000058006d7]
powerpc-elf-ld: region start overflowed by 728 bytes
So if I then apply the same trick to the .text section (patch attached)
then I get a successful link and an output image. The output image does
execute under QEMU, although for all of the CD images I have it reports
"ERROR: Found no boot partition!". Do you have pointers to any ISOs that
can boot from the resulting image?
FWIW my cross-compile setup is based upon binutils 2.19.
ATB,
Mark.
ohw-fix-ld.patch
Description: Text Data