https://sourceware.org/bugzilla/show_bug.cgi?id=32095

            Bug ID: 32095
           Summary: Add support for building gprofng with ubsan
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gprofng
          Assignee: vladimir.mezentsev at oracle dot com
          Reporter: sam at gentoo dot org
  Target Milestone: ---

Building gprofng with UBSAN was a bit of a pain because of how LD_PRELOAD is
heavily used in gprofng (which is fine, of course).

But some build system machinery or checks for whether we've been built with
UBSAN to avoid the need to workarounds would be appreciated to avoid the need
for hacking around it.

I hit this by building with:
CFLAGS="-O2 -fsanitize=undefined"
CXXFLAGS="-O2 -fsanitize=undefined"

Note that the same problems exist with ASAN (-fsanitize=address) but given that
relies on interposing malloc, I'm not sure if it's possible to make that work.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to