[memprof] Support symbolization of PIE binaries.
authorSnehasish Kumar <snehasishk@google.com>
Sat, 11 Mar 2023 00:16:03 +0000 (00:16 +0000)
committerSnehasish Kumar <snehasishk@google.com>
Tue, 21 Mar 2023 20:13:18 +0000 (20:13 +0000)
commitcef71d0105c5ccade716e8b96f0ebc2ea42e21b9
tree8e95568173f3c504c91b2fa6d3834ea34174184f
parente240e6b8b7cc68a29bc8a5d6a7d0e3b7eaa61dc0
[memprof] Support symbolization of PIE binaries.

Support symolization of PIE binaries in memprof. We assume that the
profiled binary has one executable text segment for simplicity. Update
the memprof-pic test to now expect the same output as the memprof-basic test.

Reviewed By: tejohnson

Differential Revision: https://reviews.llvm.org/D146181
llvm/include/llvm/ProfileData/RawMemProfReader.h
llvm/lib/ProfileData/RawMemProfReader.cpp
llvm/test/tools/llvm-profdata/memprof-pic.test