lkml.org 
[lkml]   [2003]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectcompiling with -g changes symbol addresses
Hello,

Sorry if this is NOT related to kernel per se. but...

Compiling a kernel module with and without "-g" gcc flag,
(rest of the compiler flags remaining exactly the same/usual)
changes the offsets/addresses of some (not all) symbols
[saw using nm(1)].

Is this normal? I thought "-g" just adds debug info into the object
file. and it should not change the offsets/addresses that
symbols get assigned during compilation.

btw I am using gcc 2.96 (from RH).

Thanks
A.
[Pleas Cc: me the reply]

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.023 / U:11.024 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site