Silence unsigned integer overflows in binutils project (#3178)

* Silence unsigned integer overflows in binutils

* Use fno-sanitize

* Condition on sanitizer
This commit is contained in:
Catena cyber 2020-01-09 16:46:31 +01:00 committed by Abhishek Arya
parent 5fdbd83220
commit 7cfb7aab73
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,10 @@
################################################################################
# build project
if [ "$SANITIZER" = undefined ]; then
export CFLAGS="$CFLAGS -fsanitize=unsigned-integer-overflow -fno-sanitize-recover=unsigned-integer-overflow"
export CXXFLAGS="$CXXFLAGS -fsanitize=unsigned-integer-overflow -fno-sanitize-recover=unsigned-integer-overflow"
fi
cd binutils-gdb
./configure --disable-gdb --enable-targets=all
make MAKEINFO=true && true