This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Fix for emulparms/elf
On Mon, Apr 30, 2001 at 06:21:52PM +0200, Andreas Jaeger wrote:
> "H . J . Lu" <hjl@lucon.org> writes:
>
> > On Mon, Apr 30, 2001 at 11:37:08AM +0200, Andreas Jaeger wrote:
> > >
> > > I've committed the appended patch to synch the bfd and ld files.
> > >
> > > Andreas
> > >
> > > 2001-04-30 Andreas Jaeger <aj@suse.de>
> > >
> > > * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
> > >
> > >
> > > ============================================================
> > > Index: ld/emulparams/elf_x86_64.sh
> > > --- ld/emulparams/elf_x86_64.sh 2000/11/30 19:30:33 1.1
> > > +++ ld/emulparams/elf_x86_64.sh 2001/04/30 09:35:52
> > > @@ -2,7 +2,7 @@
> > > ELFSIZE=64
> > > OUTPUT_FORMAT="elf64-x86-64"
> > > TEXT_START_ADDR=0x1000
> > > -MAXPAGESIZE=0x1000
> > > +MAXPAGESIZE=0x100000
> > > NONPAGED_TEXT_START_ADDR=0x1000
> > > ARCH=i386
> > > MACHINE=
> > >
> >
> > It looks very strang to me. It seems that TEXT_START_ADDR and
> > NONPAGED_TEXT_START_ADDR may be to set to non-page boundary.
>
> I'll change this soon to an address that's greater than MAXPAGESIZE.
> AFAIK it can be on a non-page boundary, compare e.g. armnbsd.sh.
We are talking ELF here. I think any values should be ok as long as
the linke can put in the right padding.
>
> What's a good value for the TEXT_START_ADDR constants? What should I
> consider in setting the value?
I don't think it matters too much.
H.J.