[Gloucs] make gcc switch
Will Roe
gloucs at mailman.lug.org.uk
Sun Nov 24 16:31:00 2002
--JP+T4n/bALQSJXh8
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi,
After reading Guy's message, the first person I thought of who could
answer this was Adam. But thinking he is at UNI and probably busy with
various activities, I had a little think about it. But there was no way
on God's earth that I could have come up with all this!
Hope you're not spending too much time with stuff like this Adam, and
enjoying yourself.=20
Have fun,
Will
On Sun, Nov 24, 2002 at 04:14:04PM +0000 or thereabouts, Adam Langley wrote:
> On Sun, Nov 24, 2002 at 02:25:46PM +0000, Guy Edwards wrote:
> > But how do I apply that to a larger project that uses ./configure and
> > make?
>=20
> export CFLAGS=3D"-pedantic ..."
>=20
> is worth a shot, as is editing the generated Makefile and searching for
> a line starting "CFLAGS =3D " and editing that.
>=20
> > Also would anyone on Tuesday be able to run through simple tools for
> > checking your code with and a rough overview of how they work (eg
> > electricfence checks for memory problems I believe?)
>=20
> Put "-lefence" as the first argument to ld/gcc, when linking your
> program and run it in gdb. Any overruns will cause SIGSEGV during the
> memory write.
>=20
> After that you can run with $EF_PROTECT_FREE=3D1 to cause a segv when
> writing to free()ed areas of memory and $EF_PROTECT_BELOW=3D1 to catch
> underruns (but not overruns).
>=20
> Just be warned that it uses up huge amounts of memory and the core files
> can be hundreds of megs if you don't run it in gdb.
>=20
>=20
> --=20
> Adam Langley agl@imperialviolet.org
> http://www.imperialviolet.org (+44) (0)7986 296753
> PGP: 9113 256A CC0F 71A6 4C84 5087 CDA5 52DF 2CB6 3D60
>=20
> _______________________________________________
> gloucs mailing list
> gloucs@mailman.lug.org.uk
> http://mailman.lug.org.uk/mailman/listinfo/gloucs
--=20
Life's the same, except for the shoes.
- The Cars
--JP+T4n/bALQSJXh8
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE94P64nDChyePHZXkRAnolAJ4ruOoX1DP3EE7/COZTpMDGCCn5CQCgn47P
nxtQAbxrPIHNsLkYb6dYwhk=
=koi1
-----END PGP SIGNATURE-----
--JP+T4n/bALQSJXh8--