[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: valgrind/memcheck/tests
From: Nicholas Nethercote <njn25 () cam ! ac ! uk>
Date: 2004-10-27 12:06:00
Message-ID: 20041027120600.5AD8E16C18 () office ! kde ! org
[Download RAW message or body]
CVS commit by nethercote:
Jump through a hoop to make vgtest_ume work again on PIE-supporting systems.
M +11 -0 Makefile.am 1.51
--- valgrind/memcheck/tests/Makefile.am #1.50:1.51
@@ -148,6 +148,17 @@
# Valgrind unit self-tests
hello_SOURCES = hello.c
+## If we support PIE, build hello as a PIE, otherwise vgtest_ume cannot load
+## (I'm not completely sure why, since stage2 can load both PIEs and non-PIEs,
+## maybe it's because stage2 is loaded up high; anyway, it doesn't really
+## matter so long as vgtest_ume can load hello ok. --njn)
+if USE_PIE
+hello_CFLAGS = $(AM_CFLAGS) -fpie
+hello_LDFLAGS = -pie
+else
hello_LDFLAGS = -Wl,-defsym,kickstart_base=0x50000000 \
-Wl,-T,../../coregrind/${VG_ARCH}/stage2.lds
+hello_DEPENDENCIES = ../../coregrind/${VG_ARCH}/stage2.lds
+endif
+
vgtest_ume_SOURCES = vgtest_ume.c
vgtest_ume_LDADD = ../../coregrind/ume.o \
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic