Please do not top-post. On Tue, Mar 18, 2008 at 09:54:48PM +0530, Manish Katiyar wrote: > hmmm.... when I used -Os I got the below error (last few lines) > > LD init/built-in.o > LD .tmp_vmlinux1 > mm/built-in.o: In function `index_of': > /home/mkatiyar/personal/uml/linux-2.6.23.12/mm/slab.c:341: undefined > reference to `__bad_size' > /home/mkatiyar/personal/uml/linux-2.6.23.12/mm/slab.c:341: undefined > reference to `__bad_size' > /home/mkatiyar/personal/uml/linux-2.6.23.12/mm/slab.c:341: undefined > reference to `__bad_size' > /home/mkatiyar/personal/uml/linux-2.6.23.12/mm/slab.c:341: undefined > reference to `__bad_size' > /home/mkatiyar/personal/uml/linux-2.6.23.12/mm/slab.c:341: undefined > reference to `__bad_size' > mm/built-in.o:/home/mkatiyar/personal/uml/linux-2.6.23.12/mm/slab.c:341: > more undefined references to `__bad_size' follow > collect2: ld returned 1 exit status > KSYM .tmp_kallsyms1.S > nm: '.tmp_vmlinux1': No such file > No valid symbol. > make: *** [.tmp_kallsyms1.S] Error 1 > > However using just -O I am able to compile properly . What does "s" > specify with -O ? From gcc(1): -Os Optimize for size. -Os enables all -O2 optimizations that do not typically increase code size. It also performs further optimiza‐ tions designed to reduce code size. Erik -- Erik Mouw -- mouw@xxxxxxxxxxxx
Attachment:
signature.asc
Description: Digital signature