http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45375
--- Comment #79 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-04-08 16:10:01 UTC --- (In reply to comment #78) > What matters is what is used to build/link test.so, not elfhack itself, and > from the look at the command line in comment 70, you're building test.so with > unexpected things. It is not meant to be optimized. So, some more variables > tweaking would apparently be required in build/unix/elfhack/Makefile.in. There are two different issues that we're talking about: -The link error when you build with --enable-optimize=-O3 This has nothing to do with test.so AFAICS. -The test failure Jan reported, which only happens _after_ elfhack is successfully build. And in this case your comment above may apply.