FYI, it is a linker bug:
http://sourceware.org/bugzilla/show_bug.cgi?id=2218
I posted a patch for it.
H.J.
On Jan 25, 2006, at 8:49 PM, Mike Frysinger wrote:
we were playing with arrays of pointers to weak functions in a utility
program
when we noticed the code started crashing whenever built with a Gentoo
hardened toolchain. Gentoo vanilla toolchains would produce code that
ran
nicely and as expe
before people dismiss this as a Gentoo-specific issue, the code fails with
Redhat and Debian toolchains as well. tested gcc 3.4.5, 4.0.3, and a snap of
4.1.x dated 20060120.
we were playing with arrays of pointers to weak functions in a utility program
when we noticed the code started crashing