Changeset 11580


Ignore:
Timestamp:
Jan 5, 2009, 5:36:35 AM (11 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.

Location:
trunk/source/lisp-kernel/linuxppc
Files:
2 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
  • trunk/source/lisp-kernel/linuxppc/elf32ppclinux.x

    r5661 r11580  
    99SECTIONS
    1010{
    11   PROVIDE (__executable_start = 0x00001000);
    12   . = 0x00001000;
     11  PROVIDE (__executable_start = 0x00010000);
     12  . = 0x00010000 + SIZEOF_HEADERS;
    1313  .pad : { pad.o(.text) }
    1414  .subprims ALIGN(0x1000)    : 
Note: See TracChangeset for help on using the changeset viewer.