/[cmucl]/src/lisp/mach-o.c
ViewVC logotype

Log of /src/lisp/mach-o.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Tag:

Revision 1.7 - (view) (annotate) - [select for diffs]
Mon Aug 2 21:59:43 2010 UTC (3 years, 8 months ago) by rtoy
Branch: MAIN
CVS Tags: GIT-CONVERSION, HEAD, RELEASE_20b, cross-sol-x86-2010-12-20, cross-sol-x86-base, cross-sol-x86-merged, cross-sparc-branch-base, release-20b-pre1, release-20b-pre2, snapshot-2010-08, snapshot-2010-11, snapshot-2010-12, snapshot-2011-01, snapshot-2011-02, snapshot-2011-03, snapshot-2011-04, snapshot-2011-06, snapshot-2011-07, snapshot-2011-09
Branch point for: RELEASE-20B-BRANCH, cross-sol-x86-branch, cross-sparc-branch
Changes since 1.6: +9 -3 lines
Diff to previous 1.6
More comment cleanups.

Revision 1.6 - (view) (annotate) - [select for diffs]
Mon Aug 2 21:45:36 2010 UTC (3 years, 8 months ago) by rtoy
Branch: MAIN
Changes since 1.5: +1 -18 lines
Diff to previous 1.5
Let the linker remove the object files we created for the Lisp spaces.

lisp/elf.c:
lisp/mach-o.c:
o Remove obj_cleanup function.

lisp/save.c:
o Don't call obj_cleanup anymore (because it doesn't exist.)

toosl/linker-x86.sh:
o Remove CORRO.o CORSTA.o CORDYN.o on exit.

Revision 1.5 - (view) (annotate) - [select for diffs]
Sun Aug 1 15:23:28 2010 UTC (3 years, 8 months ago) by rtoy
Branch: MAIN
Changes since 1.4: +88 -6 lines
Diff to previous 1.4
No functional changes.  Just update and clarify comments.

Revision 1.4 - (view) (annotate) - [select for diffs]
Sat Jul 31 02:45:45 2010 UTC (3 years, 8 months ago) by rtoy
Branch: MAIN
Changes since 1.3: +28 -3 lines
Diff to previous 1.3
For Linux and Darwin, we don't actually need to set the starting
address of the core sections.  In map_core_sections, we can map them
to the correct addresses, just like we do on Solaris.

lisp/elf.c:
o Mmap the Lisp core sections with the correct address, not using the
  one in the executable itself, just like on Solaris.

lisp/mach-o.c:
o Add the array of addresses of the dynamic, static, and read-only
  spaces.
o Mmap the Lisp core sections with the correct address, not using the
  one in the executable itself, just like on Solaris.
o Small update to print out the names of the spaces, just like for elf
  files.

tools/linker-x86.sh:
o Don't need to tell the linker the starting addresses of the sections
  anymore for Linux and Darwin.  map_core_sections handles that.

Revision 1.3 - (view) (annotate) - [select for diffs]
Sat Jul 31 00:18:40 2010 UTC (3 years, 8 months ago) by rtoy
Branch: MAIN
Changes since 1.2: +27 -15 lines
Diff to previous 1.2
More cleanups.

o Disable all of those debugging prints.
o Add ability to enable those debugging prints if desired.  (May go a
  way some day.)
o Get rid of some compiler warnings.
o Get rid of the global eh variable; it's not required to be global.

Revision 1.2 - (view) (annotate) - [select for diffs]
Sat Jul 31 00:03:23 2010 UTC (3 years, 8 months ago) by rtoy
Branch: MAIN
Changes since 1.1: +31 -34 lines
Diff to previous 1.1
Some cleanup of the names of main functions for creating executable
images.

lisp/elf.c:
o Change write_elf_object, elf_cleanup, and elf_run_linker to
  write_space_object, obj_cleanup, and obj_run_linker.

lisp/elf.h:
o Update so that this can used for both elf and mach-o.  Not great,
  but I don't want to rename this file.

lisp/mach-o.c:
o Include elf.h
o Remove items that are defined in elf.h.
o Change function names from elf to mach_o.

lisp/save.c:
o Update names to new ones.

Revision 1.1 - (view) (annotate) - [select for diffs]
Fri Jul 30 22:51:58 2010 UTC (3 years, 8 months ago) by rtoy
Branch: MAIN
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.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.5