Subject: Re: Adding a start-of-data marker to loadelf
To: Martin Husemann <martin@duskware.de>
From: Bill Stouder-Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 06/04/2007 10:25:12
--6c2NcOVqGQ03X4Wi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jun 04, 2007 at 07:15:21PM +0200, Martin Husemann wrote:
> On Mon, Jun 04, 2007 at 09:52:31AM -0700, Jason Thorpe wrote:
> > Looks perfectly reasonable to me, although you could also have your =20
> > ldscript insert a symbol at the beginning of the data segment and then =
=20
> > just get the address of that.
>=20
> How would I get the address of it?

Make the loader tell you:

	uint8_t 	*dstart =3D &StartOfData;

Take care,

Bill

--6c2NcOVqGQ03X4Wi
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)

iD8DBQFGZEr4Wz+3JHUci9cRAmkDAKCV/dVh6wXwaPnMwGXtVgyEERnBtQCbBGoU
8XINRRaV+LKuYGl70niSisU=
=KG/z
-----END PGP SIGNATURE-----

--6c2NcOVqGQ03X4Wi--