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

My uclinux is uClinux-dist-20080808.tar.bz2, and toolchain is
arm-linux-tools-20061213.tar.gz.
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
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to