relocatable kernel support, bug #4224

Roland McGrath roland@redhat.com
Thu Mar 22 21:26:00 GMT 2007


I don't understand why a runtime function is involved in this at all.  
The kernel is not like other modules, you always know you can refer to it
directly and know a symbol you can use.  Just generate code that does:

	foo_addr = vmlinux_foo_addr_const - vmlinux_stext_addr_const + &_stext;

The work will be done at load time by kernel/module.c code, and pretty
efficiently.  There is no need for runtime data structures about this.


Thanks,
Roland



More information about the Systemtap mailing list