https://bugs.kde.org/show_bug.cgi?id=371869

            Bug ID: 371869
           Summary: support '%' in symbol Z-encoding
           Product: valgrind
           Version: 3.12 SVN
          Platform: Compiled Sources
                OS: Solaris
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: iv...@ivosh.net
  Target Milestone: ---

Support '%' (percent character) in Z-encoding of function replacement and
wrapping.

Solaris libc contains several implementations of memmove, memcpy, memset, based
on CPU capabilities. For example for memmove, libc on x86 contains:
- memmove() - the base function
- memmove%avx2() - utilizing AVX-2 instructions when available

The point here is that the detection and correct setup (which memmove
implementation to use) is done by dynamic linker. Therefore we need to replace
all memmove variants, not only the base one.

However specifying "memmove" and "memmoveZa" in shared/vg_replace_strmem.c
causes also other functions to be replaced (such as memmove_s() which has
different number of arguments then memmove()). So we need to specify something
like "memmove" and "memmove%Za". However '%' needs to be escaped from the C
preprocessor.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to