Changeset 5002


Ignore:
Timestamp:
Aug 22, 2006, 12:57:43 AM (18 years ago)
Author:
Gary Byers
Message:

Much smaller pagezero, much lower seg1addr.

Something in the (m4-generated) symbolic info in some .s files is screwy and
causes ld64 to segfault; it's currently necesssary to use "strip -S" on the
assembler-generated .o files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lisp-kernel/darwinx8664/Makefile

    r4986 r5002  
    4545LD = ld64
    4646
    47 ### The -pagezero_size/-seg1addr args are an attempt to work around a
    48 ### bug (#4057702) in ld64.
     47### the  -pagezero_size and -seg1addr arguments below are critical; if
     48### we accept the default pagezero size, we don't seem to be able to
     49### mmap in the low 32 bits of the address space (at least the very
     50### low end of that) and we may need to ensure that some addresses
     51### are in that range.  (OK, so these exact values may be less than
     52### critical ...)
    4953
    50 ### The -seg1addr and -pagezero_size arguments below are nonsense;
    51 ### early versions of ld64 were/are broken.
    52 LDFLAGS = -M -arch x8664 -dynamic  -o $@ -e start -seg1addr 0x6000
     54LDFLAGS = -arch x86_64 -dynamic  -o $@  -pagezero_size 0x1000 -seg1addr 0x8000
    5355AS = as
    5456M4 = gm4
     
    7173CDEFINES = -DDARWIN -DX86 -DX8664 -DDARWIN_GS_HACK
    7274CDEBUG = -g
    73 COPT = -O2
     75COPT = # -O2
    7476
    7577.s.o:
     
    106108
    107109OSEARLYLIBS = -lcrt1.o
    108 OSLATELIBS = -lSystem -lmx
     110OSLATELIBS = -lSystem
    109111
    110 # If the linker can find an absolute path to -lSystemStubs, use
    111 # -lSystemStubs; otherwise, just use libgcc.a
    112 SYSTEMSTUBSPATH = $(shell $(CC) --print-file-name=libSystemStubs.a)
    113 SYSTEMSTUBSABSOLUTE = $(shell expr $(SYSTEMSTUBSPATH) : "^/*")
    114 ifeq ($(SYSTEMSTUBSABSOLUTE),1)
    115 OSMIDDLELIBS = -lSystemStubs
    116 else
    117 OSMIDDLELIBS = -lgcc
    118 endif
     112OSMIDDLELIBS =
     113
    119114
    120115OSLIBS = $(OSEARLYLIBS) $(OSMIDDLELIBS) $(OSLATELIBS)
Note: See TracChangeset for help on using the changeset viewer.