diff options
author | Mark Wielaard <mjw@redhat.com> | 2014-11-27 23:53:30 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2014-12-04 14:38:18 +0100 |
commit | 805ec833c17b01e1791162227ab0b4119ffe1eb0 (patch) | |
tree | 49b51144788da2c08bd393cbb82335bdd6d0af38 /config | |
parent | 12ab700282dd66d5d2144e13611011426091f260 (diff) | |
download | elfutils-805ec833c17b01e1791162227ab0b4119ffe1eb0.tar.gz |
Add configure --disable-textrelcheck option to enable CC=afl-fuzz on 32bit.
Using american fuzzy lop has found a lot of issues. It would be nice to
make using it a bit easier. Our build files make sure that no shared
library uses text relocations, but afl-gcc will insert some on i686.
http://www.akkadia.org/drepper/textrelocs.html
Now CC=afl-gcc ./configure --disable-textrelcheck will allow them so
that afl can instrument the libraries.
Don't try to use or install them except with afl-fuzz. When selinux is
enabled it might prevent loading the libraries with DT_TEXTREL set.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/ChangeLog | 5 | ||||
-rw-r--r-- | config/eu.am | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index 9ebf14f4..a05f5522 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,8 @@ +2014-11-27 Mark Wielaard <mjw@redhat.com> + + * eu.am: Define textrel_msg, textrel_found and textrel_check based + on FATAL_TEXTREL. + 2014-08-25 Mark Wielaard <mjw@redhat.com> * elfutils.spec.in: Update for 0.160. diff --git a/config/eu.am b/config/eu.am index c3b00e08..faf8add4 100644 --- a/config/eu.am +++ b/config/eu.am @@ -52,4 +52,10 @@ endif CLEANFILES = *.gcno *.gcda -textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then exit 1; fi +textrel_msg = echo "WARNING: TEXTREL found in '$@'" +if FATAL_TEXTREL +textrel_found = $(textrel_msg); exit 1 +else +textrel_found = $(textrel_msg) +endif +textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi |