Ignore:
Timestamp:
Jan 5, 2009, 5:36:35 AM (12 years ago)
Author:
gb
Message:

Set executable_start to 64K (not 4K). Some Linux kernels get upset
by the presence of code < 64K, and only calm down if the vm.mmap_min_addr
sysctl variable is set to 0. If we move code out of the low 64K (and
remap_spjump() at startup), the sysctl variable can be set to 4K, which
offers some protection against theoretical exploits.

Disable format warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/linuxppc/Makefile

    r10737 r11580  
    2626CDEBUG = -g
    2727COPT = -O2
     28# Once in a while, -Wformat says something useful.  The odds are against that,
     29# however.
     30WFORMAT = -Wno-format
    2831
    2932# If the linker supports a "--hash-style=" option, use traditional
     
    5356        $(M4) $(M4FLAGS) -I../ $< | $(AS) $(A32) $(ASFLAGS) -o $@
    5457.c.o:
    55         $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(PPC32) -o $@
     58        $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) $(PPC32) -o $@
    5659
    5760SPOBJ = pad.o ppc-spjump.o ppc-spentry.o ppc-subprims.o
Note: See TracChangeset for help on using the changeset viewer.