diff options
author | Pixel <pixel@nobis-crew.org> | 2010-11-26 13:25:49 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2010-11-26 13:25:49 -0800 |
commit | deed24e136d6bf2d40074d62238c4f0c78c20137 (patch) | |
tree | 31bcd2cee58c62e99e3269b45538032e9a0fe0a0 /src/generate-gl-glue.sh | |
parent | 286d2c3c3ee8a43d681321226ab43a91fee6f26f (diff) |
Making the gl-glue working again for Darwin.
Diffstat (limited to 'src/generate-gl-glue.sh')
-rwxr-xr-x | src/generate-gl-glue.sh | 19 |
1 files changed, 1 insertions, 18 deletions
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 |