From: Uri Simchoni Date: Sat, 4 Sep 2021 07:30:56 +0000 (+0300) Subject: fuzzing/oss-fuzz: fix samba build script for Ubuntu 20.04 X-Git-Tag: ldb-2.5.0~754 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f94b1d3b31f2fb5bdbfce7b5f79d80f098b91975;p=thirdparty%2Fsamba.git fuzzing/oss-fuzz: fix samba build script for Ubuntu 20.04 Add a linker flag to generate fuzzer binaries with an RPATH header instead of RUNPATH. Signed-off-by: Uri Simchoni Reviewed-by: Andrew Bartlett --- diff --git a/lib/fuzzing/oss-fuzz/do_build.sh b/lib/fuzzing/oss-fuzz/do_build.sh index 3cd4c12546b..b1e009a0577 100755 --- a/lib/fuzzing/oss-fuzz/do_build.sh +++ b/lib/fuzzing/oss-fuzz/do_build.sh @@ -77,12 +77,15 @@ esac # $LIB_FUZZING_ENGINE is provided by the oss-fuzz "compile" command # +# --disable-new-dtags linker flag creates fuzzer binaries with RPATH +# header instead of RUNPATH header. Modern linkers use RUNPATH by +# default. ./configure -C --without-gettext --enable-debug --enable-developer \ --enable-libfuzzer \ $SANITIZER_ARG \ --disable-warnings-as-errors \ --abi-check-disable \ - --fuzz-target-ldflags="$LIB_FUZZING_ENGINE" \ + --fuzz-target-ldflags="-Wl,--disable-new-dtags $LIB_FUZZING_ENGINE" \ --nonshared-binary=ALL \ "$@" \ LINK_CC="$CXX"