• Jeff Dike's avatar
    [PATCH] uml skas0: stop gcc's insanity · 5b7b15af
    Jeff Dike authored
    With Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
    
    UML skas0 stub has been miscompiling for many people (incidentally not
    the authors), depending on the used GCC versions.
    
    I think (and testing on some GCC versions shows) this patch avoids the
    fundamental issue which is behind this, namely gcc using the stack when
    we have just replaced it, behind gcc's back.  The remapping and storage
    of the return value is hidden in a blob of asm, hopefully giving gcc no
    room for creativity.
    Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    5b7b15af
stub.h 2.14 KB