lib/fuzzing: Link only the required NDR_ subsystems into ndr_fuzz_X binaries
authorAndrew Bartlett <abartlet@samba.org>
Thu, 28 Nov 2019 23:07:34 +0000 (12:07 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 10 Dec 2019 07:50:28 +0000 (07:50 +0000)
commit6f7a9e87887e50160df6a06b09d8454eef9208a1
tree852ea570c34bbf5d7ccf793880fa0de185869e06
parent3ca76f59070020ea188bea88bece38d8c9036f59
lib/fuzzing: Link only the required NDR_ subsystems into ndr_fuzz_X binaries

This reduces the binary size and shows that we are linked against the correct
ndr_table_ global variable.  This might help the fuzzing engine know there
is not much more of the binary to find if unreachable code is not included.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
buildtools/wafsamba/samba_pidl.py
lib/fuzzing/wscript_build