X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fforeign.lisp;h=f6a24623ce2fe3de17103999e3fb74112b661c81;hb=5d04a95274c9ddaebbcd6ddffc5d646e2c25598c;hp=edc559c65f41cabad4899a6cd60a1c04f2abec0c;hpb=32eb2c37fb2d9b12c5b5f674fe33b77f611120cb;p=sbcl.git diff --git a/src/code/foreign.lisp b/src/code/foreign.lisp index edc559c..f6a2462 100644 --- a/src/code/foreign.lisp +++ b/src/code/foreign.lisp @@ -35,8 +35,8 @@ (values (or (gethash extern table) (gethash (concatenate 'base-string - #!+(and darwin (or x86 x86-64)) "_ldso_stub__" - #!-(and darwin (or x86 x86-64)) "ldso_stub__" + #!+(and darwin (or x86 x86-64 ppc)) "_ldso_stub__" + #!-(and darwin (or x86 x86-64 ppc)) "ldso_stub__" extern) table))))) (defun find-foreign-symbol-address (name) @@ -131,9 +131,8 @@ if the symbol isn't found." sb!vm:linkage-table-space-end) (dohash ((name-and-datap info) *linkage-info* :locked t) (let ((table-addr (linkage-info-address info))) - (when (<= table-addr - addr - (+ table-addr sb!vm:linkage-table-entry-size)) + (when (and (<= table-addr addr) + (< addr (+ table-addr sb!vm:linkage-table-entry-size))) (return-from sap-foreign-symbol (car name-and-datap)))))) #!+os-provides-dladdr (with-alien ((info (struct dl-info