From: Maria Guseva Date: Wed, 5 Jul 2017 08:45:03 +0000 (+0300) Subject: Revert "Add removing of the -Wl,-Bsymbolic options in gcc-force-options script" X-Git-Tag: submit/tizen/20170714.013956~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ab758a07b1e039a564c9449e812ffc23a3d5d514;p=tools%2FlibFuzzer.git Revert "Add removing of the -Wl,-Bsymbolic options in gcc-force-options script" This reverts commit 76f20263d005bcb2db00dedbb4e1429a95e6a486. Reverted as the libsancov_cb hack was removed in previous commit. --- diff --git a/packaging/gcc-force-options b/packaging/gcc-force-options index b68c3d2..34f4945 100755 --- a/packaging/gcc-force-options +++ b/packaging/gcc-force-options @@ -47,16 +47,10 @@ if echo "$PREFLAGS "\$@" $POSTFLAGS" | grep -q -- "-fsanitize=undefined" && echo # Don't instrument kernel modules # Don't instrument with "-nostdlib" linking elif ! echo "\$@" | grep -q -e __KERNEL__ -e \-nostdlib; then - ARGS="\$@" - if echo "$PREFLAGS \$ARGS $POSTFLAGS" | grep -q -- 'libsancov_cb.a\\|-lsancov_cb'; then - # Remove -Bsymbolic flags to use weak symbols in libsancov_cb.a - echo "Warning: -Bsymbolic linkage flags will be removed, see gcc-force-options for details" >&2 - ARGS=\$(echo "\$@" | sed 's/-Wl,-Bsymbolic\\(-functions\\)\\?\\b//g') - fi # Use readlink in order to follow symlinks if any - \$(readlink -f \$0)-real $PREFLAGS \$ARGS $POSTFLAGS + \$(readlink -f \$0)-real $PREFLAGS "\$@" $POSTFLAGS else - \$(readlink -f \$0)-real \$ARGS + \$(readlink -f \$0)-real "\$@" fi EOF chmod +x $TMP