From Mike Frysinger and/or Gentoo:
authorRyan C. Gordon <icculus@icculus.org>
Thu, 05 Jan 2006 07:20:12 +0000
changeset 1228f4a3a4129d04
parent 1227 3202d727bb4b
child 1229 1430f5fe092a
From Mike Frysinger and/or Gentoo:

- libsdl-SDL_stretch-PIC.patch
ignoring the general fact of how SDL_stretch relies on executing dynamic code,
the inline asm should let gcc handle the a details for getting the actual
address for _copy_row as it will do the right thing
test case: http://dev.gentoo.org/~vapier/libsdl/sdl-stretch.tar.bz2
src/video/SDL_stretch.c
     1.1 --- a/src/video/SDL_stretch.c	Thu Jan 05 07:08:59 2006 +0000
     1.2 +++ b/src/video/SDL_stretch.c	Thu Jan 05 07:20:12 2006 +0000
     1.3 @@ -286,9 +286,9 @@
     1.4  		    default:
     1.5  #ifdef __GNUC__
     1.6  			__asm__ __volatile__ (
     1.7 -			"call _copy_row"
     1.8 +			"call *%4"
     1.9  			: "=&D" (u1), "=&S" (u2)
    1.10 -			: "0" (dstp), "1" (srcp)
    1.11 +			: "0" (dstp), "1" (srcp), "r" (&_copy_row)
    1.12  			: "memory" );
    1.13  #else
    1.14  #ifdef WIN32