Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email email@example.com
Re: Problem with StackGuard GCC ---- undefined reference to __canary_death_handler
From: Seth Arnold (sarnoldwirex.com)
Date: Wed Sep 24 2003 - 19:36:19 CDT
On Wed, Sep 24, 2003 at 02:15:52PM +0000, ?? ?? wrote:
> I've successfully built the latest available version of StackGuard GCC, but
> when I test it with a simple program, I got the following error message.
> /usr/local/lib/gcc-lib/i686-pc-linux/2.96/crtbegin.o: In function
> /usr/local/lib/gcc-lib/i686-pc-linux/2.96/crtbegin.o(.text+0xa8): undefined
> reference to `__canary_death_handler'
You need a to supply a __canary_death_handler function for your program.
Immunix OS supplies the __canary_death_handler (CDH) in patched glibc and
dietlibc. If you aren't using an Immunix OS machine to do your testing,
then you will need to provide a __canary_death_handler(). You have
(a) use an immunix os machine :)
(b) recompile your system glibc to provide a CDH
(c) link against a different standard C library that provides a CDH
(d) or provide your own in your program's sources
There are of course benefits and demerits to each option.
The Bill of Rights: 7 out of 10 rights haven't been sold yet! Contact
your congressman for details how *you* can buy one today!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
-----END PGP SIGNATURE-----