Uhm, so you actually want to change entry.S lines like:
movl %eax,EAX(%esp) # save the return value
to:
movl %eax,.LEAX(%esp) # save the return value
? That sounds seriously ugly.
> > Or it can be avoided by using a header file that #defines the offsets -
> > which is exactly what mips does and other architectures did until some
> > time ago. See arch/mips/tools/offset.c.
> >
> > I think it would be a better idea to generate the offsets automatically
> > and possibly in an architecture-independent way without falling back to
> > using symbols.
>
> However, you don't want to write a program that prints out the offsets, since
> then you are prohibiting building Linux with a cross compiler.
Have you actually looked at offset.c ? It works fine with a cross-compiler,
and so does the $(NM) and sed solution, I suspect.
Philipp Rumpf
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/