Skip to content
Snippets Groups Projects
Forked from cmucl / cmucl
Source project has a limited visibility.
  • rtoy's avatar
    dc8b7cc2
    First cut at executable images on Darwin/x86. The resulting · dc8b7cc2
    rtoy authored
    executable appears to work!
    
    bootfiles/20a/boot-2010-07-1.lisp:
    o Add :executable for darwin/x86.
    
    code/bsd-os.lisp:
    o Make :elf and :mach-o runtime features too.
    o Register :executable of :executable is defined.
    
    lisp/Config.x86_darwin:
    o Need mach-o.c
    o Add exec-final.c
    
    lisp/lisp.c:
    o Don't include elf.h if we're on Darwin since Darwin uses Mach-O, not
      ELF.
    o For Darwin, we get the initial function address from
      initial_function_addr, not from &initial_function_addr, like for
      Linux.
    
    lisp/save.c
    o Don't include libgen.h and elf.h on Darwin.
    
    tools/linker-x86.sh:
    o Update to support Darwin.
    
    tools/make-main-dist.sh:
    o Add support for executables on Darwin.
    
    lisp/mach-o.c:
    o Initial support for writing Mach-O files for the Lisp spaces.
    o Initial support for reading a Mach-O executable to find and map the
      Lisp spaces.
    dc8b7cc2
    History
    First cut at executable images on Darwin/x86. The resulting
    rtoy authored
    executable appears to work!
    
    bootfiles/20a/boot-2010-07-1.lisp:
    o Add :executable for darwin/x86.
    
    code/bsd-os.lisp:
    o Make :elf and :mach-o runtime features too.
    o Register :executable of :executable is defined.
    
    lisp/Config.x86_darwin:
    o Need mach-o.c
    o Add exec-final.c
    
    lisp/lisp.c:
    o Don't include elf.h if we're on Darwin since Darwin uses Mach-O, not
      ELF.
    o For Darwin, we get the initial function address from
      initial_function_addr, not from &initial_function_addr, like for
      Linux.
    
    lisp/save.c
    o Don't include libgen.h and elf.h on Darwin.
    
    tools/linker-x86.sh:
    o Update to support Darwin.
    
    tools/make-main-dist.sh:
    o Add support for executables on Darwin.
    
    lisp/mach-o.c:
    o Initial support for writing Mach-O files for the Lisp spaces.
    o Initial support for reading a Mach-O executable to find and map the
      Lisp spaces.