crunchgen diff
Holger Mikolon <holger <at> mikolon.com>
2009-12-01 22:57:19 GMT
Below is a crunchgen diff, which enables a new keyword "proglibs".
This basically allows to specify per-program libraries for the linker.
With that change it is possible to make for example a crunched binary
with ssh, sshd and ssh-keygen ... something I couldn't manage to do
with the default crunchgen tool in base.
Here is an example:
# cat ./ssh.cbin.conf
libs -lgssapi -lkrb5 -lkafs -lcrypto -lutil -lz -ldes
progs ssh sshd ssh-keygen
special ssh srcdir /usr/src/usr.bin/ssh/ssh
special ssh proglibs /usr/src/usr.bin/ssh/lib/obj/libssh.a
special sshd srcdir /usr/src/usr.bin/ssh/sshd
special sshd proglibs /usr/src/usr.bin/ssh/lib/obj/libssh.a /usr/lib/libwrap.a
special ssh-keygen srcdir /usr/src/usr.bin/ssh/ssh-keygen
special ssh-keygen proglibs /usr/src/usr.bin/ssh/lib/obj/libssh.a
Here is the diff:
Index: usr.sbin/crunchgen/crunchgen.8
===================================================================
RCS file: /cvs/src/usr.sbin/crunchgen/crunchgen.8,v
retrieving revision 1.4
diff -u usr.sbin/crunchgen/crunchgen.8
--- usr.sbin/crunchgen/crunchgen.8 24 Nov 2008 18:03:22 -0000 1.4
+++ usr.sbin/crunchgen/crunchgen.8 1 Dec 2009 22:52:54 -0000
<at> <at> -237,6 +237,10 <at> <at>
.Ar progname .
(Continue reading)