Comment 4 for bug 672352

Revision history for this message
Loïc Minier (lool) wrote :

(bug #647527 is indeed an earlier report of this issue, but I merged it into this bug because there is more information here.)

The testcase in bug #647527 is at http://launchpadlibrarian.net/56458625/foo.c
gcc -O0 -o foo foo.c && ./foo
=> works
gcc -static -O0 -o foo foo.c && ./foo
=> segvs

Fedora applied a workaround, not a fix, which is also what's mentioned to work in the upstream bug: http://sourceware.org/bugzilla/show_bug.cgi?id=11929

The patch from Gentoo seems to fix the first issue cleanly, but the upstream report mentions that it doesn't work for iconv.