From: Roland Dreier <roland@topspin.com>
To: kaos@ocs.com.au
Cc: linux-kernel@vger.kernel.org
Subject: modutils: using kallsyms when cross-compiling kernel
Date: 24 Jan 2003 16:51:42 -0800 [thread overview]
Message-ID: <52lm1auk4h.fsf@topspin.com> (raw)
Hi, I'm trying to run kallsyms on x86 while cross-compiling a kernel
for PowerPC. I'd like to use the kksymoops patch for 2.4, and the
build process tries to call kallsyms. I had no problem building a
version of kallsyms (from modutils 2.4.22) that runs on x86 and is
targeted to PPC.
However, kallsyms seems to have endianness problems. Specifically,
when it runs on my kernel, the test of MATCH_MACHINE(f->header.e_machine)
in obj_load.c fails because EM_PPC is 0x14, but f->header.e_machine has
0x1400 in it.
Looking further in the code it looks like none of ELF handling stuff
takes endianness into account. For example, e_type is also
byte-swapped from what kallsyms is looking for.
Is my diagnosis correct? Is there any easy way for me to fix this (at
least enough so that I can build a PPC kernel on x86 with kkallsyms
support), or is the only solution to bite the bullet and fix the
modutils ELF code to be endianness clean?
Thanks,
Roland
next reply other threads:[~2003-01-25 0:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-25 0:51 Roland Dreier [this message]
2003-01-25 0:59 ` modutils: using kallsyms when cross-compiling kernel Keith Owens
2003-01-25 4:06 ` Kai Germaschewski
2003-01-25 7:44 ` Keith Owens
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52lm1auk4h.fsf@topspin.com \
--to=roland@topspin.com \
--cc=kaos@ocs.com.au \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox