http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45841
--- Comment #31 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2010-10-05 21:26:23 UTC --- (In reply to comment #28) > I'm a little confused. Is that supposed to be a sticky state? Nope. Don't worry. The patch I quoted just fixes a bug on the return path from the host file i/o call, which messed up the return value so the lseek syscall (as seen from the simulated syscall) returns -0 (just the expression, no sign-magnitude machine here :) instead of -EINVAL in Linux syscall parlance.