Re: Compile flags for kernel for maximum debugging symbols (for UML)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 ?




On Mon, Mar 17, 2008 at 8:56 PM, Erik Mouw <mouw@xxxxxxxxxxxx> wrote:
>
> On Mon, Mar 17, 2008 at 07:15:37PM +0700, Mulyadi Santosa wrote:
>  > hello
>  >
>  > On Mon, Mar 17, 2008 at 5:44 PM, Manish Katiyar <mkatiyar@xxxxxxxxx> wrote:
>  > > Hi,
>  > >
>  > >  I want to have maximum debugging symbols in my kernel image and
>  > >  currently I have changed the build flags in my top level Makefile so
>  > >  that they look like below.
>  >
>  > uhm, prevents inlining at all cost? And no -O, even -Os?
>
>  Some inlining is required and it shouldn't really matter for debugging.
>  You probably want -O, not -Os or -O2.
>
>
>  Erik
>
>  --
>  Erik Mouw -- mouw@xxxxxxxxxxxx
>
> -----BEGIN PGP SIGNATURE-----
>  Version: GnuPG v1.4.6 (GNU/Linux)
>
>  iD8DBQFH3o2m/PlVHJtIto0RAgJ3AJ9acU8UdMloGMrQZzhmDdi1k6zUkQCfTkKy
>  fh+HtT+eFzY6Qmai01mDnDs=
>  =60PS
>  -----END PGP SIGNATURE-----
>
>



-- 
Thanks & Regards,
********************************************
Manish Katiyar ( http://mkatiyar.googlepages.com )
3rd Floor, Fair Winds Block
EGL Software Park
Off Intermediate Ring Road
Bangalore 560071, India
***********************************************

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux