On Wed, 03 Nov 2004 17:12:52 -0700, Steven Dake <[EMAIL PROTECTED]> wrote: >Folks > >I was looking around for a kallsyms for x86_64 and found a kallsyms for >ia64. I hacked it to cross compile for x86_64 (by changing a few elf >header variables). the 2.4.25 patch for kdb works with this version of >kallsyms. > >I need a kallsyms that works for all architectures such as xscale, i386, >x86_64. In the sources, there is talk of a rewrite of kallsyms. Has >this been done? > >If not, I can spend a few days on it. I was thinking of making kallsyms >read the header and use the appropriate object loader for the >architecture (xscale, x86_64, ia32, ppc) to load the object once it >finds a matching elf header. > >Has this work been started or already done? I looked at the 2.4 >modutils package (2.4.26 I think?) and it doesn't appear to be done >there. I don't see any later version of modutils.
http://oss.sgi.com/archives/kdb/2003-04/msg00018.html - I could never get kksymoops into the 2.4 kernel so I gave up on making kallsyms platform independent. BTW, it is not as simple as you think. Both word sizes and endianess vary between platforms. Every structure used by kallsyms needs to work in crfoss platform mode, including routines to convert from the build endianess to the target endianess as each structure is read from or written to disk. Those routines have to work on a field by field basis. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
