From deed24e136d6bf2d40074d62238c4f0c78c20137 Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 26 Nov 2010 13:25:49 -0800 Subject: Making the gl-glue working again for Darwin. --- src/generate-gl-glue.sh | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'src') diff --git a/src/generate-gl-glue.sh b/src/generate-gl-glue.sh index d141e99..de6042a 100755 --- a/src/generate-gl-glue.sh +++ b/src/generate-gl-glue.sh @@ -51,31 +51,14 @@ cat $symlist | while read symbol ; do echo ".globl _m$symbol" echo "_m$symbol:" case "$arch" in - x86_64) + i386 | x86_64) echo "jmp _$symbol" ;; - i386) - echo "jmp L_$symbol\$stub" - ;; *) echo "b _$symbol" esac done -if [ "x$arch" = "xi386" ] ; then - -echo ".section __IMPORT,__jump_table,symbol_stubs,self_modifying_code+pure_instructions,5" - -cat $symlist | while read symbol ; do - echo "L_$symbol\$stub:" - echo ".indirect_symbol _$symbol" - echo "hlt; hlt; hlt; hlt; hlt;" -done - -echo ".subsections_via_symbols" - -fi - elif [ "x$os" = "xLinux" ] ; then cat $symlist | while read symbol ; do -- cgit v1.2.3