Subject: Re: Non "new-toolchain" platforms
To: None <tech-toolchain@netbsd.org>
From: Chris Gilbert <chris@paradox.demon.co.uk>
List: port-cats
Date: 01/28/2002 23:47:04
--------------Boundary-00=_G2AO77LG8NTT1G9YA4A2
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
On Monday 28 January 2002 10:01 am, Chris Gilbert wrote:
> Oh I've also attached the shell script, see if anyone else looks at it and
> goes oh you've got that wrong 8) Note that the kernel is linked to start
> at 0xf0000020, as that seems to be the start address of the a.out kernels.
Ok I've fixed up the script (one minor buglet in it, bss is larger than
needed), and just booted an ELF kernel with an a.out header on cats (yay)
People might want to try it on other a.out arm ports.
Chris
--------------Boundary-00=_G2AO77LG8NTT1G9YA4A2
Content-Type: application/x-shellscript;
name="test.sh"
Content-Transfer-Encoding: base64
Content-Description: ELF->a.out arm kernel convertor
Content-Disposition: attachment; filename="test.sh"
IyEvYmluL3NoCgojMDAwMDAwICAwMCA4ZiAwMSAwYiAwMCBiMCAxMyAwMCAgMDAgZDAgMDAgMDAg
ZjQgOTUgMDIgMDAgICAuLi4uLi4uLi4uLi4uLi4uCiMwMDAwMTAgIGIwIGQzIDAwIDAwIDIwIDAw
IDAwIGYwICAwMCAwMCAwMCAwMCAwMCAwMCAwMCAwMCAgIC4uLi4gLi4uLi4uLi4uLi4KCgpBV0tQ
Uk9HPSdcCmZ1bmN0aW9uIHIodikgeyByZXR1cm4gc3ByaW50ZigiJWQiLCAoKHYgKyA0MDk1KSAv
IDQwOTYpKSAqIDQwOTYgfSBcCmZ1bmN0aW9uIHgodikgeyBwcmludGYgIiVjJWMlY1wwIiwgdiwg
diAvIDI1NiwgdiAvIDY1NTM2IH0gXAp7IFwKICAgICAgICBwcmludGYgIlwwXDIxN1wwMVwwMTMi
OyBcCiAgICAgICAgeChyKCQxKSk7IFwKICAgICAgICB4KHIoJDIgKyAzMjc2OCAtIChyKCQxKSAt
ICQxKSkpOyBcCiAgICAgICAgeCgkMyk7IFwKIC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