Skip to content
Snippets Groups Projects
Commit dc8b7cc2 authored by rtoy's avatar rtoy
Browse files

First cut at executable images on Darwin/x86. The resulting

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.
parent a5cd2c4f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment