Re: How to tell g++ to use only relative instructions?
Posted: Fri Feb 19, 2010 6:21 am
Hey, that's an interessting idea. The Kernel is like a runtime linker.In our kernel we load kernel modules which are basically just ELF object files (linked with "-r"). They are relocated at runtime by the module loader, which finds space in the area of memory reserved for modules and then loads the module into that region. It performs relocation and linking against both the kernel symbols and the symbols of other modules that are present.
Thanks, but I want to write my own code and learn something.I'm not sure about much of your kernel design, but maybe you could pick something up from our design and make it work for you?