From 805ec833c17b01e1791162227ab0b4119ffe1eb0 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Thu, 27 Nov 2014 23:53:30 +0100 Subject: 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 --- libasm/ChangeLog | 4 ++++ libasm/Makefile.am | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'libasm') diff --git a/libasm/ChangeLog b/libasm/ChangeLog index 2613610f..034a64da 100644 --- a/libasm/ChangeLog +++ b/libasm/ChangeLog @@ -1,3 +1,7 @@ +2014-01127 Mark Wielaard + + * Makefile.am (libasm.so): Use textrel_check. + 2014-04-13 Mark Wielaard * Makefile.am: Remove !MUDFLAP conditions. diff --git a/libasm/Makefile.am b/libasm/Makefile.am index 3d6a2e58..88c2530b 100644 --- a/libasm/Makefile.am +++ b/libasm/Makefile.am @@ -66,7 +66,7 @@ libasm.so$(EXEEXT): libasm_pic.a libasm.map -Wl,--version-script,$(srcdir)/libasm.map,--no-undefined \ -Wl,--soname,$@.$(VERSION) \ ../libebl/libebl.a ../libelf/libelf.so $(libasm_so_LDLIBS) - if $(READELF) -d $@ | fgrep -q TEXTREL; then exit 1; fi + $(textrel_check) ln -fs $@ $@.$(VERSION) install: install-am libasm.so -- cgit v1.2.3