Skip to content

Commit

Permalink
1.0.39.15: delete all traces of the darwin dlshim
Browse files Browse the repository at this point in the history
 * following up on previous commits which still used the shim with the
   :dlshim feature, now completely remover all traces of the dlshim.
  • Loading branch information
Cyrus Harmon committed Jun 13, 2010
1 parent 2ac4543 commit b43d36d
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 284 deletions.
9 changes: 2 additions & 7 deletions src/code/foreign.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

(defun extern-alien-name (name)
(handler-case
#!+(or elf (and mach-o (not dlshim))) (coerce name 'base-string)
#!+(or (and mach-o dlshim) win32) (concatenate 'base-string "_" name)
(coerce name 'base-string)
(error ()
(error "invalid external alien name: ~S" name))))

Expand All @@ -34,11 +33,7 @@
(let ((extern (extern-alien-name name)))
(values
(or (gethash extern table)
(gethash (concatenate 'base-string
#!+(and mach-o dlshim) "_ldso_stub_"
#!+(and mach-o (not dlshim)) "ldso_stub__"
#!-mach-o "ldso_stub__"
extern) table)))))
(gethash (concatenate 'base-string "ldso_stub__" extern) table)))))

(defun find-foreign-symbol-address (name)
"Returns the address of the foreign symbol NAME, or NIL. Does not enter the
Expand Down
4 changes: 2 additions & 2 deletions src/compiler/generic/genesis.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -1597,11 +1597,11 @@ core and return a descriptor to it."
(subseq line (1+ p2)))
(values (parse-integer line :end p1 :radix 16)
(subseq line (1+ p2))))
; KLUDGE CLH 2010-05-31: on darwin, nm gives us
;; KLUDGE CLH 2010-05-31: on darwin, nm gives us
;; _function but dlsym expects us to look up
;; function, without the leading _ . Therefore, we
;; strip it off here.
#!+(and darwin (not dlshim))
#!+darwin
(when (equal (char name 0) #\_)
(setf name (subseq name 1)))
(multiple-value-bind (old-value found)
Expand Down
3 changes: 0 additions & 3 deletions src/runtime/Config.ppc-darwin
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ CFLAGS = -g -Wall -O2 -fdollars-in-identifiers -mmacosx-version-min=10.4
LINKFLAGS += -mmacosx-version-min=10.4

OS_SRC = bsd-os.c darwin-os.c ppc-darwin-os.c
ifdef LISP_FEATURE_DLSHIM
OS_SRC += darwin-dlshim.c
endif

OS_LIBS = -lSystem -lc

Expand Down
3 changes: 0 additions & 3 deletions src/runtime/Config.x86-64-darwin
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ CFLAGS += -D_DARWIN_USE_64_BIT_INODE
endif

OS_SRC = bsd-os.c x86-64-bsd-os.c darwin-os.c x86-64-darwin-os.c
ifdef LISP_FEATURE_DLSHIM
OS_SRC += darwin-dlshim.c
endif

OS_LIBS = -lSystem -lc -ldl
ifdef LISP_FEATURE_SB_THREAD
Expand Down
3 changes: 0 additions & 3 deletions src/runtime/Config.x86-darwin
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ LINKFLAGS += -mmacosx-version-min=10.4
endif

OS_SRC = bsd-os.c x86-bsd-os.c darwin-os.c x86-darwin-os.c
ifdef LISP_FEATURE_DLSHIM
OS_SRC += darwin-dlshim.c
endif

OS_LIBS = -lSystem -lc -ldl
ifdef LISP_FEATURE_SB_THREAD
Expand Down
232 changes: 0 additions & 232 deletions src/runtime/darwin-dlshim.c

This file was deleted.

24 changes: 0 additions & 24 deletions src/runtime/darwin-dlshim.h

This file was deleted.

3 changes: 0 additions & 3 deletions src/runtime/darwin-os.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
#include <mach-o/dyld.h>
#include "bsd-os.h"
#include <errno.h>

#ifndef LISP_FEATURE_DLSHIM
#include <dlfcn.h>
#endif

char *
os_get_runtime_executable_path(int external)
Expand Down
6 changes: 1 addition & 5 deletions tools-for-build/grovel-headers.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@
#include <sys/ioctl.h>
#include <sys/termios.h>
#include <langinfo.h>
#ifdef LISP_FEATURE_DLSHIM
#include "../src/runtime/darwin-dlshim.h"
#else
#include <dlfcn.h>
#endif
#include <dlfcn.h>
#endif

#include <sys/stat.h>
Expand Down
1 change: 0 additions & 1 deletion tools-for-build/ldso-stubs.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ ldso_stub__ ## fct: ; \\
"unlockpt")
#!+openbsd
'("openpty")
#!-dlshim
'("dlclose"
"dlerror"
"dlopen"
Expand Down
2 changes: 1 addition & 1 deletion version.lisp-expr
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
"1.0.39.14"
"1.0.39.15"

0 comments on commit b43d36d

Please sign in to comment.