]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
When running the valgrind tests, the jm-insns test is segfaulting when it
authorCarl Love <cel@us.ibm.com>
Thu, 28 Jul 2016 16:51:53 +0000 (16:51 +0000)
committerCarl Love <cel@us.ibm.com>
Thu, 28 Jul 2016 16:51:53 +0000 (16:51 +0000)
attempts to patch instructions as it deals with the ppc64 (BE) function
descriptor. This is actually due to the RELRO option being enabled by default
for the ppc64 (BE) platform, per an upstream binutils change.

Bugzilla 365912 reported by  Will Schmidt, Will supplied the patch to fix the
make file none/tests/ppc64/Makefile.a

Patch tested on Power 7 and Power 8.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15917

NEWS
none/tests/ppc64/Makefile.am

diff --git a/NEWS b/NEWS
index dd635b94456d9b6d4b4fa71bfb49265bc310a3b2..238ba02eeefe798c5819f177eb85c1258cdfe6d0 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -135,6 +135,7 @@ where XXXXXX is the bug number as listed below.
 364728  Power PC, missing support for several HW registers in
         get_otrack_shadow_offset_wrk()
 365273  Invalid write to stack location reported after signal handler runs
+365912  ppc64BE segfault during jm-insns test (RELRO)
 
 n-i-bz Fix incorrect (or infinite loop) unwind on RHEL7 x86 and amd64
 n-i-bz massif --pages-as-heap=yes does not report peak caused by mmap+munmap
index f8ec7286011d83bf98ebad409960b41a715b8538..f68d69e257abf26135c4fd3924a57cf7039f2414 100644 (file)
@@ -95,7 +95,7 @@ else
 HTM_FLAG =
 endif
 
-jm_insns_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames \
+jm_insns_CFLAGS = $(AM_CFLAGS) -Wl,-z,norelro -Winline -Wall -O -g -mregnames \
                        @FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_ALTIVEC)
 
 if HAS_ISA_3_0