lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 27 Sep 2008 22:57:10 -0400
From:	"Daniel Rosenthal" <danielrosenthal@....org>
To:	linux-kernel@...r.kernel.org
Cc:	jdike@...ux.com
Subject: linux object file containing all kernel symbols and suitable for userspace linking?

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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ