Re: Choosing a default text address for user programs for a new port

Jason R Thorpe <[email protected]> Thu, 18 Apr 2002 16:26:59 -0700
Newsgroups gmane.os.netbsd.devel.ports
Organization Wasabi Systems, Inc.
Message-ID <[email protected]>
On Thu, Apr 18, 2002 at 03:59:23PM -0700, Glenn Serre wrote:

 > It's a processor that's not currently supported by NetBSD (I'm not
 > supposed to mention it's name), with a MMU that's similar to mips.  I'm
 > using ELF.

Ah.  Ok, fair enough.

 > > For ELF, what is generally done is "pick the largest page size
 > > that is both reasonable and that the architecture provides and
 > > use that".
 > 
 > OK.  In my case that means 0x400000 (4Meg).

...and that is, in fact, where ld/emulparams/elf32lmip.sh (from a
binutils-2.11 tree, at least) puts it.

 > > The GNU Binutils should provide some hints as what to use, too.
 > >
 > 
 > I'm sorry, I don't understand what you mean.  The man pages, or some other
 > docs that normally come with a Binutils distribution, or ???  The default
 > ldscripts that come with the linker just use 0.

See above :-)

-- 
        -- Jason R. Thorpe <[email protected]>