public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* linux object file containing all kernel symbols and suitable for userspace linking?
@ 2008-09-28  2:57 Daniel Rosenthal
  2008-09-28  3:13 ` Grant Coady
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Rosenthal @ 2008-09-28  2:57 UTC (permalink / raw)
  To: linux-kernel; +Cc: jdike

Is there an object file generated by the kernel build process just
before vmlinuz and arch/x86/boot/bzImage are created that contains all
the requisite kernel symbols to complete compilation?  I understand
that such an object file wouldn't make a lot of sense to keep around,
because at the point at which such a file were able to be generated
the compilation process could just be completed instead.  If it's not
available is there some easy way to generate it?  I am trying to test
some kernel code I wrote, and I wanted to test it by running it in
userspace by linking it to a *.o file with a main() function (just to
test out various API facilities; i.e. unit tests).  This is so I can
use the API provided by the kernel without having to rewrite it for
userspace.  User-Mode Linux won't work for this because the code in
question relies on some architecture specific features and thread
flags of x86, but I guess the approach would probably similar to what
UML uses.

Is there some simple way to do this?

Thanks,
Daniel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-09-29  6:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-28  2:57 linux object file containing all kernel symbols and suitable for userspace linking? Daniel Rosenthal
2008-09-28  3:13 ` Grant Coady
2008-09-28  7:22   ` Daniel Rosenthal
2008-09-28 14:06     ` Jeff Dike
2008-09-29  6:18       ` Daniel Rosenthal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox