summaryrefslogtreecommitdiffstats
path: root/libelf
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2014-11-27 23:53:30 +0100
committerMark Wielaard <mjw@redhat.com>2014-12-04 14:38:18 +0100
commit805ec833c17b01e1791162227ab0b4119ffe1eb0 (patch)
tree49b51144788da2c08bd393cbb82335bdd6d0af38 /libelf
parent12ab700282dd66d5d2144e13611011426091f260 (diff)
downloadandroid_external_elfutils-805ec833c17b01e1791162227ab0b4119ffe1eb0.tar.gz
android_external_elfutils-805ec833c17b01e1791162227ab0b4119ffe1eb0.tar.bz2
android_external_elfutils-805ec833c17b01e1791162227ab0b4119ffe1eb0.zip
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 'libelf')
-rw-r--r--libelf/ChangeLog4
-rw-r--r--libelf/Makefile.am2
2 files changed, 5 insertions, 1 deletions
diff --git a/libelf/ChangeLog b/libelf/ChangeLog
index 68fb0fc1..e03ee09f 100644
--- a/libelf/ChangeLog
+++ b/libelf/ChangeLog
@@ -1,3 +1,7 @@
+2014-11-27 Mark Wielaard <mjw@redhat.com>
+
+ * Makefile.am (libelf.so): Use textrel_check.
+
2014-11-23 Mark Wielaard <mjw@redhat.com>
* elf_getdata_rawchunk.c (elf_getdata_rawchunk): Change signed
diff --git a/libelf/Makefile.am b/libelf/Makefile.am
index 493e4ec1..68885293 100644
--- a/libelf/Makefile.am
+++ b/libelf/Makefile.am
@@ -103,7 +103,7 @@ libelf.so$(EXEEXT): libelf_pic.a libelf.map
$(LINK) -shared -o $@ -Wl,--whole-archive,$<,--no-whole-archive \
-Wl,--version-script,$(srcdir)/libelf.map,--no-undefined \
-Wl,--soname,$@.$(VERSION),-z,defs,-z,relro $(libelf_so_LDLIBS)
- if $(READELF) -d $@ | fgrep -q TEXTREL; then exit 1; fi
+ $(textrel_check)
ln -fs $@ $@.$(VERSION)
install: install-am libelf.so