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

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