]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
coregrind: Vg_FnNameKind recognize __libc_start_call_main as below main
authorMark Wielaard <mark@klomp.org>
Wed, 13 Oct 2021 15:05:29 +0000 (17:05 +0200)
committerMark Wielaard <mark@klomp.org>
Wed, 13 Oct 2021 15:13:39 +0000 (17:13 +0200)
Depending on architecture glibc has various functions that set things
up to call "main". glibc 2.34 added  __libc_start_call_main (at least
on ppc64le and s390x). Other variants recognized are __libc_start_main,
generic_start_main and variants of those names.

This fixes the massif/tests/deep-D and massif/tests/mmapunmap on ppc64le.

coregrind/m_debuginfo/debuginfo.c

index 2e5b9b0192cd8a1c51163264306e71e5974b418d..60f9ea195d1329eba1f90e87e95da33971608cd5 100644 (file)
@@ -2293,6 +2293,7 @@ Vg_FnNameKind VG_(get_fnname_kind) ( const HChar* name )
    } else if (
 #      if defined(VGO_linux)
        VG_STREQ("__libc_start_main",  name) ||  // glibc glibness
+       VG_STREQ("__libc_start_call_main",  name) ||  // glibc glibness
        VG_STREQN(18, "__libc_start_main.", name) || // gcc optimization
        VG_STREQ("generic_start_main", name) ||  // Yellow Dog doggedness
        VG_STREQN(19, "generic_start_main.", name) || // gcc optimization