X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tools-for-build%2Fldso-stubs.lisp;h=c9ee5956e929974a804e8f14a3baedda8a3c5f0b;hb=0e03a9ac950b78d776c4869c809e202d9e929f39;hp=5b2530e207de9ce8a2e4bb50fc2b764804f9d0b0;hpb=2796503e65b0a278d606e22b5283d16036bcc4d0;p=sbcl.git diff --git a/tools-for-build/ldso-stubs.lisp b/tools-for-build/ldso-stubs.lisp index 5b2530e..c9ee595 100644 --- a/tools-for-build/ldso-stubs.lisp +++ b/tools-for-build/ldso-stubs.lisp @@ -57,7 +57,7 @@ ldso_stub__~A: ; \\ #endif .text" -#!+(or (and x86 (not darwin)) x86-64) " +#!+(and (or x86 x86-64) (not darwin)) " #define LDSO_STUBIFY(fct) \\ .align 16 ; \\ .globl ldso_stub__ ## fct ; \\ @@ -85,7 +85,7 @@ ldso_stub__ ## fct: ; \\ .L ## fct ## e1: ; \\ .size ldso_stub__ ## fct,.L ## fct ## e1-ldso_stub__ ## fct ;" -#!+(and linux ppc) " +#!+(and (not darwin) ppc) " #define LDSO_STUBIFY(fct) \\ .globl ldso_stub__ ## fct ; \\ .type ldso_stub__ ## fct,@function ; \\ @@ -130,6 +130,15 @@ L ## fct ## $stub: ; \\ hlt ; \\ .subsections_via_symbols ; " +;;; darwin x86-64 +#!+(and darwin x86-64) " +#define LDSO_STUBIFY(fct) \\ + .align 4 ; \\ +.globl ldso_stub___ ## fct ; \\ +ldso_stub___ ## fct: ; \\ + jmp _ ## fct ; \\ +.L ## fct ## e1: ; " + ;;; KLUDGE: set up the vital fifth argument, passed on the ;;; stack. Do this unconditionally, even if the stub is for a ;;; function with few arguments: it can't hurt. We only do this for @@ -285,7 +294,11 @@ ldso_stub__ ## fct: ; \\ #!+alpha '("ieee_get_fp_control" "ieee_set_fp_control") - #!-win32 + ;; FIXME: After 1.0 this should be made + ;; #!-linkage-table, as we only need these stubs if + ;; we don't have linkage-table. Done this way now to + ;; cut down on the number of ports affected. + #!-(or win32 darwin freebsd) '("ptsname" "grantpt" "unlockpt")