Subject: Re: elf2aout
To: Jonathan Stone <jonathan@DSG.Stanford.EDU>
From: Jason R Thorpe <thorpej@zembu.com>
List: tech-toolchain
Date: 05/10/2001 23:03:23
On Thu, May 10, 2001 at 10:39:25PM -0700, Jonathan Stone wrote:

 > Please check with Simon.  elf2ecoff existed to produce ecoff-format
 > kernels which PMAX proms would recognize. Som pmax PROMS versions had
 > much stricter requirements about the order of sections in a file than
 > bfd elf->ECOFF translation would give (and i dont think it' s just
 > libbfd bugs, but a failure on the pmax proms, but its been a long time).

Well, part of the issue is libbfd is insisting on generating ZMAGIC ECOFF
executables.  I discussed this w/ Ian Taylor today, and I think I'm going
to have to fix this problem in libbfd (the problem is that D_PAGED is
getting set in the object's bfd state, which causes the ECOFF writer to
emit a ZMAGIC -- need to properly detect that the ELF executable in question
is not, in fact, a pageable executable, that will cause the ECOFF writer
to emit an OMAGIC, which is what the ARC and DECstation PROMs expect).

Are you sure the magic issue isn't the actual problem, rather than a section
ordering issue?  Remember, everything is glommed into a single loadable
section in OMAGIC...

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>