Dear all:
I try to build a kernel with -O and I try to modify below lines in Makefile:

ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS   += -O
else
KBUILD_CFLAGS   += -O
endif

but the result will fail like below.

calibrate.c:(.init.text+0x1338): undefined reference to
`__you_cannot_kmalloc_that_much'
init/built-in.o: In function `rd_load_image':
calibrate.c:(.init.text+0x1810): undefined reference to
`__you_cannot_kmalloc_that_much'
init/built-in.o: In function `crd_load':
calibrate.c:(.init.text+0x3da0): undefined reference to
`__you_cannot_kmalloc_that_much'
calibrate.c:(.init.text+0x3ef4): undefined reference to
`__you_cannot_kmalloc_that_much'
kernel/built-in.o: In function `call_usermodehelper_setup':
utsname_sysctl.c:(.text+0x15b38): undefined reference to
`__you_cannot_kmalloc_that_much'
kernel/built-in.o:utsname_sysctl.c:(.text+0x16c70): more undefined
references to `__you_cannot_kmalloc_that_much' follow
make[1]: *** [.tmp_vmlinux1] Error 1
make[1]: Leaving directory `/mnt/hdb/uclinux/uClinux-dist/linux-2.6.x'
make: *** [linux] Error 1

Is there any possibilities to build a kernel with -O version?
appreciate your help,
miloody

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to