- vanilla 2.6.14 kernel (unpacked and configured with allnoconfig) - added the debug config and info (with additional make oldconfig) - built with 'make' # gcc --version gcc (GCC) 3.3.5 (Mandrake Linux 8.2 3.3.5-1mdk) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. (this is mainline 3.3.5 gcc, built on a mandrake host, no mandrake specific patches) # ld --version GNU ld version 2.16.91.0.5 20051219 Copyright 2005 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. (this is mainline 2.16.91.0.5 binutils, again built on a mandrake host, no mandrake specific patches) # gdb vmlinux GNU gdb 6.0-2mdk (Mandrake Linux) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-mandrake-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) disassemble printk Dump of assembler code for function printk: 0xc010f500 : sub $0x8,%esp 0xc010f503 : lea 0x10(%esp,1),%eax 0xc010f507 : mov %eax,0x4(%esp,1) 0xc010f50b : mov 0xc(%esp,1),%eax 0xc010f50f : mov %eax,(%esp,1) 0xc010f512 : call 0xc010f520 0xc010f517 : add $0x8,%esp 0xc010f51a : ret End of assembler dump. (gdb) l *0xc010f512 0xc010f512 is in printk (kernel/printk.c:516). 511 { 512 va_list args; 513 int r; 514 515 va_start(args, fmt); 516 r = vprintk(fmt, args); 517 va_end(args); 518 519 return r; 520 } (gdb) q now a few tries with addr2line: # addr2line -e vmlinux c010f512 ??:0 # addr2line -e vmlinux 0xc010f512 ??:0 # addr2line -e vmlinux c010f400 printk.c:0 # addr2line -e vmlinux c010f480 printk.c:0