--- trunk/mkinitrd-magellan/klibc/usr/kinit/run-init/Kbuild 2009/04/24 18:09:28 814 +++ trunk/mkinitrd-magellan/klibc/usr/kinit/run-init/Kbuild 2009/04/24 18:32:46 815 @@ -14,6 +14,10 @@ # Create built-in.o with all object files (used by kinit) lib-y := $(objs) +# force run-init to not have an executable stack (to keep READ_IMPLIES_EXEC +# personality(2) flag from getting set and passed to init). +EXTRA_KLIBCLDFLAGS += -z noexecstack + # .o files used to built executables static/run-init-y := $(objs) shared/run-init-y := $(objs)