[Openmcl-cvs-notifications] r11580 - in /trunk/source/lisp-kernel/linuxppc: Makefile elf32ppclinux.x
gb at clozure.com
gb at clozure.com
Mon Jan 5 00:36:35 EST 2009
Author: gb
Date: Mon Jan 5 00:36:35 2009
New Revision: 11580
Log:
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.
Modified:
trunk/source/lisp-kernel/linuxppc/Makefile
trunk/source/lisp-kernel/linuxppc/elf32ppclinux.x
Modified: trunk/source/lisp-kernel/linuxppc/Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/source/lisp-kernel/linuxppc/Makefile (original)
+++ trunk/source/lisp-kernel/linuxppc/Makefile Mon Jan 5 00:36:35 2009
@@ -25,6 +25,9 @@
CDEFINES =3D -DLINUX -DPPC -D_REENTRANT -D_GNU_SOURCE
CDEBUG =3D -g
COPT =3D -O2
+# Once in a while, -Wformat says something useful. The odds are against t=
hat,
+# however.
+WFORMAT =3D -Wno-format
=
# If the linker supports a "--hash-style=3D" option, use traditional
# Sysv hash tables. (If it doesn't support that option, assume
@@ -52,7 +55,7 @@
.s.o:
$(M4) $(M4FLAGS) -I../ $< | $(AS) $(A32) $(ASFLAGS) -o $@
.c.o:
- $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(PPC32) -o $@
+ $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) $(PPC32) -o $@
=
SPOBJ =3D pad.o ppc-spjump.o ppc-spentry.o ppc-subprims.o
ASMOBJ =3D ppc-asmutils.o imports.o
Modified: trunk/source/lisp-kernel/linuxppc/elf32ppclinux.x
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/source/lisp-kernel/linuxppc/elf32ppclinux.x (original)
+++ trunk/source/lisp-kernel/linuxppc/elf32ppclinux.x Mon Jan 5 00:36:35 2=
009
@@ -8,8 +8,8 @@
VERSION {default { global : __trampoline_setup ; } ;}
SECTIONS
{
- PROVIDE (__executable_start =3D 0x00001000);
- . =3D 0x00001000;
+ PROVIDE (__executable_start =3D 0x00010000);
+ . =3D 0x00010000 + SIZEOF_HEADERS;
.pad : { pad.o(.text) }
.subprims ALIGN(0x1000) : =
{
More information about the Openmcl-cvs-notifications
mailing list