lkml.org 
[lkml]   [2001]   [Oct]   [8]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateMon, 08 Oct 2001 02:49:46 -0700 (PDT)
SubjectRe: [RFC] Standard way of generating assembler offsets
From"David S. Miller" <>
   From: Pantelis Antoniou <panto@intracom.gr>
   Date: Mon, 08 Oct 2001 12:35:27 +0300

   If anyone is interested I have already made a perl
   script that produces assembler offsets from structure
   members.

   It doesn't need to run native since it reads the
   header files, extract the structures and by using
   objdump calculates the offsets automatically.

BTW, I assume you have already taken a look at how we
do this on Sparc64.  See arch/sparc64/kernel/check_asm.sh
and the "check_asm" target in arch/sparc64/kernel/Makefile

It also works in all cross-compilation etc. environments.
And I bet it would work on every platform with very minimal
changes, if any.

Franks a lot,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:04    [from the cache]
©2003-2008