PERFORCE change 152097 for review

Peter Wemm peter at FreeBSD.org
Tue Oct 28 11:41:00 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=152097

Change 152097 by peter at peter_overcee on 2008/10/28 11:40:55

	Stop the debug reader from choking when it finds a 64 bit memcheck instance
	in procfs.  Our procfs doesn't have file offsets, and procstat doesn't either.
	Tweaking the alignment here causes binutils to generate a single PT_LOAD segment
	and that fools valgrind into not thinking that it might be an elf binary. (!)

Affected files ...

.. //depot/projects/valgrind/Makefile.am#7 edit

Differences ...

==== //depot/projects/valgrind/Makefile.am#7 (text+ko) ====

@@ -223,6 +223,7 @@
 	$(CC) -m64 -Wl,--verbose -nostdlib 2>&1 | sed \
 		-e '1,/^=====\+$$/d' \
 		-e '/^=====\+$$/d' \
+		-e '/ALIGN/s/0x100000/0x1000/g' \
 		-e '/\. = 0x[0-9A-Fa-f]\+ + SIZEOF_HEADERS/s/0x[0-9A-Fa-f]\+/valt_load_address/g' > $@ \
 	|| rm -f $@
 


More information about the p4-projects mailing list