kdb
[Top] [All Lists]

Re: cross kallsyms on different endian platform

To: edie <eddie.dong@xxxxxxxxx>
Subject: Re: cross kallsyms on different endian platform
From: Keith Owens <kaos@xxxxxxx>
Date: Tue, 08 Apr 2003 14:44:08 +1000
Cc: kdb@xxxxxxxxxxx
In-reply-to: Your message of "Tue, 08 Apr 2003 08:06:01 +0800." <200304080806.01526.eddie.dong@intel.com>
Sender: kdb-bounce@xxxxxxxxxxx
On Tue, 8 Apr 2003 08:06:01 +0800, 
edie <eddie.dong@xxxxxxxxx> wrote:
>I want to build a cross kallsyms tool that works on IA32 host(little endian) 
>but parses arm big endian target files, I met problems to make this tool work 
>correctly, all the WORDs stored in target big endian format file are treated 
>as little endian datas by host, so either I need to make bunch of source 
>changes for cross endian platform or I need to use a same endian environment. 
>Can anybody give me some hints?
>eddie

kallsyms does not support cross compilation.  Google for kallsyms i386
ia64 for a hard coded version that handles ia64 kernels on i386.  For
different endianess, you have to swap all fields as they are read in
and written out.

I have told the linux-kernel mailing list that I am willing to make
modutils work in cross compile mode, with any combination of word size
and endianess.  But only after there is a demonstrated need for it,
such as adding the kksymoops patch to the 2.4 kernel tree.  At the
moment, the "need" for cross compile modutils does not justify me doing
a complete rewrite on modutils to support cross build.  As long as
debuggers are second class citizens in the kernel, they will get poor
support.


<Prev in Thread] Current Thread [Next in Thread>