PERFORCE change 169013 for review
Stanislav Sedov
stas at FreeBSD.org
Tue Sep 29 15:22:29 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=169013
Change 169013 by stas at stas_yandex on 2009/09/29 15:22:00
- Fix 32 bit on amd64 operation.
Affected files ...
.. //depot/projects/valgrind/coregrind/m_ume/elf.c#4 edit
Differences ...
==== //depot/projects/valgrind/coregrind/m_ume/elf.c#4 (text+ko) ====
@@ -400,6 +400,15 @@
VG_(pread)(fd, buf, ph->p_filesz, ph->p_offset);
buf[ph->p_filesz] = '\0';
+#if defined(VGP_x86_freebsd)
+ sres._isError = True;
+ /* Hack. FreeBSD's kernel overloads the interpreter name. */
+ if (VG_(strcmp)(buf, "/libexec/ld-elf.so.1") == 0 ||
+ VG_(strcmp)(buf, "/usr/libexec/ld-elf.so.1") == 0) {
+ sres = VG_(open)("/libexec/ld-elf32.so.1", VKI_O_RDONLY, 0);
+ }
+ if (sr_isError(sres))
+#endif
sres = VG_(open)(buf, VKI_O_RDONLY, 0);
if (sr_isError(sres)) {
VG_(printf)("valgrind: m_ume.c: can't open interpreter\n");
More information about the p4-projects
mailing list