| To: | Arnaud Lacombe <lacombar@gmail.com> |
|---|---|
| Subject: | Re: Build failure triggered by recordmcount |
| From: | Ralf Baechle <ralf@linux-mips.org> |
| Date: | Thu, 2 Dec 2010 14:54:12 +0000 |
| Cc: | wu zhangjin <wuzhangjin@gmail.com>, John Reiser <jreiser@bitwagon.com>, Steven Rostedt <rostedt@goodmis.org>, linux-mips@linux-mips.org |
| In-reply-to: | <AANLkTinr1bU+_YCTW9xyJ9H0qiSOifBMsxC6iujszMvs@mail.gmail.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <AANLkTikjbP89qp24u1Pw6zcsyV7WcYYtmR0Yt3yCaXoh@mail.gmail.com> <AANLkTim-+1csKoCc7kqXERmLZRSt9LAAB=JPK+0gaYPo@mail.gmail.com> <AANLkTikaUxKqsqXKYpETOnWAMuCi5gp30ANux0RQuK6Z@mail.gmail.com> <AANLkTinr1bU+_YCTW9xyJ9H0qiSOifBMsxC6iujszMvs@mail.gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Mon, Nov 22, 2010 at 01:46:54PM -0500, Arnaud Lacombe wrote:
> On Mon, Nov 22, 2010 at 9:57 AM, wu zhangjin <wuzhangjin@gmail.com> wrote:
> > Hi,
> >
> > The cause should be the endian problem, I guess you were cross-compiling it?
> >
> yes.
>
> > If we compile the kernel for (32bit + big endian) target on an x86
> > machine(little endian) or reversely, then, it will fail.
> >
> > Since the scripts/recordmcount is compiled with the local toolchain,
> > the data structs will be explained according to the local
> > configuration(endian...).
> >
> will it ? recordmcount.c does not switch endianness based on the host,
> but based on format of the object file, see the switch
> (ehdr->e_ident[EI_DATA]) { ... } in do_file(), the result does also
> depend a runtime endianness check.
>
> > So, we may need to custom our own elf.h for recordmcount according to
> > the target type(endian here) of the kernel image:
> >
> > At first, pass the target information to recordmcount(only a demo
> > here, we may need to clear it carefully):
Looks all right to me. Steven, can you merge it?
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Ralf
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Build failure triggered by recordmcount, John Reiser |
|---|---|
| Next by Date: | Re: Build failure triggered by recordmcount, Ralf Baechle |
| Previous by Thread: | Re: Build failure triggered by recordmcount, John Reiser |
| Next by Thread: | Re: Build failure triggered by recordmcount, Steven Rostedt |
| Indexes: | [Date] [Thread] [Top] [All Lists] |