On 2015年08月12日 14:45, Richard Henderson wrote: > On 08/11/2015 11:03 PM, gchen gchen wrote: >> Under Alpha host, for ubuntu12.04.5 i386 guest, it will cause failure: >> "Invalid ELF image for this architecture". >> >> The related issue commit is "a70daba linux-user: Tell guest about big >> host page sizes". >> >> Signed-off-by: Chen Gang<gang.chen.5...@gmail.com> >> --- >> linux-user/elfload.c | 4 ++++ >> 1 file changed, 4 insertions(+) > > Nack. There's 99 problems with host page size> guest page size. This > solves none of them, and in the hackiest way possible. >
Under alpha virtual machine, if set i386 guest page size 8KB, it will cause failure directly (any dynamically linked binaries can not work). This fix can let i386 bash/cp/vi/ls run under alpha virtual machine, although there maybe be many other issues (which I did not meet, now). Do you have any other ideas for solving this issue? e.g. can we rebuild all i386 programs with segment alignment to 8KB? I am not quite sure, but some i386 programs (which are interested in) have no source code! :-(. Thanks. -- Chen Gang Open, share, and attitude like air, water, and life which God blessed