Blame SOURCES/valgrind-3.16.0-some-Wl-z-now.patch

39285c
commit d3c977726064ba09fed6dfc7daf22b16824c97b4
39285c
Author: Mark Wielaard <mark@klomp.org>
39285c
Date:   Fri May 24 18:24:56 2019 +0200
39285c
39285c
    Add -Wl,-z,now to some binaries.
39285c
39285c
diff --git a/auxprogs/Makefile.am b/auxprogs/Makefile.am
39285c
index 1b7842b..e211eec 100644
39285c
--- a/auxprogs/Makefile.am
39285c
+++ b/auxprogs/Makefile.am
39285c
@@ -32,7 +32,7 @@ valgrind_listener_SOURCES = valgrind-listener.c
39285c
 valgrind_listener_CPPFLAGS  = $(AM_CPPFLAGS_PRI) -I$(top_srcdir)/coregrind
39285c
 valgrind_listener_CFLAGS    = $(AM_CFLAGS_PRI) -fstack-protector-strong
39285c
 valgrind_listener_CCASFLAGS = $(AM_CCASFLAGS_PRI)
39285c
-valgrind_listener_LDFLAGS   = $(AM_CFLAGS_PRI)
39285c
+valgrind_listener_LDFLAGS   = $(AM_CFLAGS_PRI) -Wl,-z,now
39285c
 if VGCONF_PLATVARIANT_IS_ANDROID
39285c
 valgrind_listener_CFLAGS    += -static
39285c
 endif
39285c
@@ -51,7 +51,7 @@ valgrind_di_server_SOURCES   = valgrind-di-server.c
39285c
 valgrind_di_server_CPPFLAGS  = $(AM_CPPFLAGS_PRI) -I$(top_srcdir)/coregrind
39285c
 valgrind_di_server_CFLAGS    = $(AM_CFLAGS_PRI) -fstack-protector-strong
39285c
 valgrind_di_server_CCASFLAGS = $(AM_CCASFLAGS_PRI)
39285c
-valgrind_di_server_LDFLAGS   = $(AM_CFLAGS_PRI)
39285c
+valgrind_di_server_LDFLAGS   = $(AM_CFLAGS_PRI) -Wl,-z,now
39285c
 if VGCONF_PLATVARIANT_IS_ANDROID
39285c
 valgrind_di_server_CFLAGS    += -static
39285c
 endif
39285c
@@ -86,7 +86,7 @@ getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES   = getoff.c
39285c
 getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS  = $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
39285c
 getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS    = $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) -fstack-protector-strong
39285c
 getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CCASFLAGS = $(AM_CCASFLAGS_PRI)
39285c
-getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS   = $(AM_CFLAGS_PRI) @LIB_UBSAN@
39285c
+getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS   = $(AM_CFLAGS_PRI) @LIB_UBSAN@ -Wl,-z,now
39285c
 if HAVE_DLINFO_RTLD_DI_TLS_MODID
39285c
 getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = $(LDADD) -ldl
39285c
 endif
39285c
diff --git a/cachegrind/Makefile.am b/cachegrind/Makefile.am
39285c
index f572741..1c07e50 100644
39285c
--- a/cachegrind/Makefile.am
39285c
+++ b/cachegrind/Makefile.am
39285c
@@ -27,7 +27,7 @@ cg_merge_SOURCES = cg_merge.c
39285c
 cg_merge_CPPFLAGS  = $(AM_CPPFLAGS_PRI)
39285c
 cg_merge_CFLAGS    = $(AM_CFLAGS_PRI) -fstack-protector-strong
39285c
 cg_merge_CCASFLAGS = $(AM_CCASFLAGS_PRI)
39285c
-cg_merge_LDFLAGS   = $(AM_CFLAGS_PRI)
39285c
+cg_merge_LDFLAGS   = $(AM_CFLAGS_PRI) -Wl,-z,now
39285c
 # If there is no secondary platform, and the platforms include x86-darwin,
39285c
 # then the primary platform must be x86-darwin.  Hence:
39285c
 if ! VGCONF_HAVE_PLATFORM_SEC
39285c
diff --git a/coregrind/Makefile.am b/coregrind/Makefile.am
39285c
index 3c73210..fb6b7bb 100644
39285c
--- a/coregrind/Makefile.am
39285c
+++ b/coregrind/Makefile.am
39285c
@@ -57,7 +57,7 @@ RANLIB = ${LTO_RANLIB}
39285c
 valgrind_CPPFLAGS  = $(AM_CPPFLAGS_PRI)
39285c
 valgrind_CFLAGS    = $(AM_CFLAGS_PRI) $(LTO_CFLAGS) -fstack-protector-strong
39285c
 valgrind_CCASFLAGS = $(AM_CCASFLAGS_PRI)
39285c
-valgrind_LDFLAGS   = $(AM_CFLAGS_PRI) @LIB_UBSAN@
39285c
+valgrind_LDFLAGS   = $(AM_CFLAGS_PRI) @LIB_UBSAN@ -Wl,-z,now
39285c
 # If there is no secondary platform, and the platforms include x86-darwin,
39285c
 # then the primary platform must be x86-darwin.  Hence:
39285c
 if ! VGCONF_HAVE_PLATFORM_SEC
39285c
@@ -96,7 +96,7 @@ endif
39285c
 vgdb_CPPFLAGS  = $(AM_CPPFLAGS_PRI)
39285c
 vgdb_CFLAGS    = $(AM_CFLAGS_PRI) $(LTO_CFLAGS) -fstack-protector-strong
39285c
 vgdb_CCASFLAGS = $(AM_CCASFLAGS_PRI)
39285c
-vgdb_LDFLAGS   = $(AM_CFLAGS_PRI) @LIB_UBSAN@
39285c
+vgdb_LDFLAGS   = $(AM_CFLAGS_PRI) @LIB_UBSAN@ -Wl,-z,now
39285c
 if VGCONF_PLATVARIANT_IS_ANDROID
39285c
 vgdb_CFLAGS    += -static
39285c
 endif