I want to use the "add-symbol-file" in GCC to debug kernel modules. How can I found out the addresses for ".text", ".bss" and ".data" sections, in order to add a symbol table?hey no way to debug the kernel with gcc. Use a kernel debuger like kdb (which is included in the lastest kernels). Have a look here :
Fei
http://www-106.ibm.com/developerworks/linux/library/l-kdbug/
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/