Subject: Re: objcopy making a mess of converting kernels to a.out format
To: Jason Thorpe <thorpej@wasabisystems.com>
From: Chuck Silvers <chuq@chuq.com>
List: port-cats
Date: 09/01/2004 17:54:52
hi,
I put one in ftp://ftp.netbsd.org/pub/NetBSD/misc/chs/arm-aout/netbsd.
it's easy enough to make one yourself, though.
just add a global variable like:
const char foo[0x800] = { 1 };
to some .c file, and adjust the 0x800 so that link_set sections extend
into another page after the .text section (like in the example below).
-Chuck
On Wed, Sep 01, 2004 at 12:31:44PM -0700, Jason Thorpe wrote:
>
> On Aug 29, 2004, at 10:33 AM, Chuck Silvers wrote:
>
> >hi,
> >
> >I'm looking into this issue since the PR for it (26160) is designated
> >a show-stopper for the 2.0 release.
>
> I've been discussing this problem with Ian Taylor... do you have a ELF
> kernel you can send me that fails to copy correctly?
...
> >>netbsd: file format elf32-littlearm
> >>
> >>Sections:
> >>Idx Name Size VMA LMA File off Algn
> >> 0 .text 0023bf43 f0000020 f0000020 00008020 2**5
> >> CONTENTS, ALLOC, LOAD, READONLY, CODE
> >> 1 link_set_malloc_types 00000120 f023bf64 f023bf64 00243f64 2**2
> >> CONTENTS, ALLOC, LOAD, READONLY, DATA
> >> 2 link_set_sysctl_funcs 0000008c f023c084 f023c084 00244084 2**2
> >> CONTENTS, ALLOC, LOAD, READONLY, DATA
> >> 3 link_set_evcnts 00000004 f023c110 f023c110 00244110 2**2
> >> CONTENTS, ALLOC, LOAD, READONLY, DATA
> >> 4 .data 000462c0 f023d000 f023d000 00245000 2**2
> >> CONTENTS, ALLOC, LOAD, DATA