]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Whitespace and comment-only changes. No functional change.
authorJulian Seward <jseward@acm.org>
Sat, 21 Jun 2014 09:37:46 +0000 (09:37 +0000)
committerJulian Seward <jseward@acm.org>
Sat, 21 Jun 2014 09:37:46 +0000 (09:37 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14072

include/pub_tool_redir.h

index 0a679e138f4d36535afa1a96ef7f0148eddcfee1..94b8766eeae598bc10b2157bfd979163db4109b2 100644 (file)
 #elif defined(VGO_darwin) && (DARWIN_VERS <= DARWIN_10_6)
 #  define  VG_Z_LIBC_SONAME  libSystemZdZaZddylib    // libSystem.*.dylib
 
-#elif defined(VGO_darwin) && (DARWIN_VERS == DARWIN_10_7 || DARWIN_VERS == DARWIN_10_8)
+#elif defined(VGO_darwin) && (DARWIN_VERS == DARWIN_10_7 \
+                              || DARWIN_VERS == DARWIN_10_8)
 #  define  VG_Z_LIBC_SONAME  libsystemZucZaZddylib   // libsystem_c*.dylib
+   /* Note that the idea of a single name for the C library falls
+      apart on more recent Darwins (10.8 and later) since the
+      functionality (malloc, free, str*) is split between
+      libsystem_c.dylib, libsystem_malloc.dylib and
+      libsystem_platform.dylib.  This makes VG_Z_LIBC_SONAME somewhat useless
+      at least inside vg_replace_strmem.c, and that hardwires some dylib
+      names directly, for OSX 10.9. */
 
 #elif defined(VGO_darwin) && (DARWIN_VERS >= DARWIN_10_9)
-#  define  VG_Z_LIBC_SONAME  libsystemZumallocZddylib   // libsystem_malloc.dylib
+#  define  VG_Z_LIBC_SONAME  libsystemZumallocZddylib  // libsystem_malloc.dylib
 
 #else
 #  error "Unknown platform"
 #define  VG_Z_LD_LINUX_SO_2         ldZhlinuxZdsoZd2           // ld-linux.so.2
 #define  VG_U_LD_LINUX_SO_2         "ld-linux.so.2"
 
-#define  VG_Z_LD_LINUX_X86_64_SO_2  ldZhlinuxZhx86Zh64ZdsoZd2  // ld-linux-x86-64.so.2
+#define  VG_Z_LD_LINUX_X86_64_SO_2  ldZhlinuxZhx86Zh64ZdsoZd2
+                                                        // ld-linux-x86-64.so.2
 #define  VG_U_LD_LINUX_X86_64_SO_2  "ld-linux-x86-64.so.2"
 
 #define  VG_Z_LD64_SO_1             ld64ZdsoZd1                // ld64.so.1