Date: Tue, 28 Oct 2008 11:41:00 GMT From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 152097 for review Message-ID: <200810281141.m9SBf0OY098491@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=152097 Change 152097 by peter@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 $@
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810281141.m9SBf0OY098491>