Add initial support executables on Solaris with gcc. Executables are
created and will run, but you can't load new files. Still needs work. src/exec-init.c: o New file that defines builtin_image_flag and initial_function_addr, instead of being defined in lisp.c code/sunos-os.lisp: o Register the :executable feature if needed. lisp/GNUmakefile: o Add exec-init.c to list of src files. o Remove exec-init.o from lisp.a when building on Solaris. lisp/elf.c: o Port the elf code to Solaris. - Basically set up the correct values for the elf header and sections. - The ELF core sections on Solaris don't have valid addresses so we explicitly set them when mapping the core sections. lisp/elf.h o Use SOLARIS instead of sparc. lisp/lisp.c: o builtin_image_flag and initial_function_addr moved to exec-init.c. tools/linker.sh: o Support Solaris tools/make-main-dist.sh: o Support Solaris tools/SunOS-cmucl-linker-script: o New file for SunOS executable.
Showing
- code/sunos-os.lisp 5 additions, 1 deletioncode/sunos-os.lisp
- lisp/GNUmakefile 8 additions, 1 deletionlisp/GNUmakefile
- lisp/elf.c 54 additions, 4 deletionslisp/elf.c
- lisp/elf.h 3 additions, 3 deletionslisp/elf.h
- lisp/exec-init.c 16 additions, 0 deletionslisp/exec-init.c
- lisp/lisp.c 3 additions, 3 deletionslisp/lisp.c
- tools/SunOS-cmucl-linker-script 24 additions, 0 deletionstools/SunOS-cmucl-linker-script
- tools/linker.sh 41 additions, 22 deletionstools/linker.sh
- tools/make-main-dist.sh 4 additions, 1 deletiontools/make-main-dist.sh
Loading
Please register or sign in to comment