about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2015-01-22 17:54:21 +0100
committerAndreas Schwab <schwab@suse.de>2015-02-23 12:35:54 +0100
commit51225803259c69a792a272d067443f3fbc9b79d7 (patch)
treeae3c59d3822aae89ba478dcd7a95846c90bf8b0f
parentbdf1ff052a8e23d637f2c838fa5642d78fcedc33 (diff)
downloadglibc-51225803259c69a792a272d067443f3fbc9b79d7.tar.gz
glibc-51225803259c69a792a272d067443f3fbc9b79d7.tar.xz
glibc-51225803259c69a792a272d067443f3fbc9b79d7.zip
Fix failure of elf/tst-audit2 when compiled with GCC-5
-rw-r--r--ChangeLog4
-rw-r--r--elf/Makefile2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9ae6b8b6db..82299e5ebe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-02-23  Andreas Schwab  <schwab@suse.de>
+
+	* elf/Makefile (CFLAGS-tst-audit2.c): Define.
+
 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
 
 	[BZ #17269]
diff --git a/elf/Makefile b/elf/Makefile
index b43b48ed95..f78642ed09 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -1017,6 +1017,8 @@ $(objpfx)tst-audit1.out: $(objpfx)tst-auditmod1.so
 tst-audit1-ENV = LD_AUDIT=$(objpfx)tst-auditmod1.so
 
 $(objpfx)tst-audit2.out: $(objpfx)tst-auditmod1.so
+# Prevent GCC-5 from translating a malloc/memset pair into calloc
+CFLAGS-tst-audit2.c += -fno-builtin
 tst-audit2-ENV = LD_AUDIT=$(objpfx)tst-auditmod1.so
 
 $(objpfx)tst-audit9: $(libdl)