aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2020-07-24 00:23:46 -0700
committerFangrui Song <maskray@google.com>2020-07-24 00:24:46 -0700
commitf7ffb122d08e7a8203557898c67eaac3a857b152 (patch)
treea8258ccf697473b389dbd5f84e7802b1071abb2d /llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
parent99d03f03919498b688a8921b2ec669057772803f (diff)
downloadllvm-f7ffb122d08e7a8203557898c67eaac3a857b152.zip
llvm-f7ffb122d08e7a8203557898c67eaac3a857b152.tar.gz
llvm-f7ffb122d08e7a8203557898c67eaac3a857b152.tar.bz2
[libFuzzer] Instrument bcmp
If we define memcmp in an archive, bcmp should be defined as well (many libc define bcmp/memcmp in one object file). Otherwise if the application calls bcmp or strcmp which gets optimized to bcmp (SimplifyLibCalls), the undefined reference may pull in an optimized bcmp/strcmp implementation (libc replacement) later on the linker command line. If both libFuzzer's memcmp and the optimized memcmp are strong => there will be a multiple definition error.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp')
0 files changed, 0 insertions, 0 deletions