[PATCH] D61053: [compiler-rt] Build custom libc++abi without exceptions.

Matt Morehouse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 26 10:08:13 PDT 2019


morehouse added a comment.

In D61053#1477275 <https://reviews.llvm.org/D61053#1477275>, @morehouse wrote:

> In D61053#1477178 <https://reviews.llvm.org/D61053#1477178>, @phosek wrote:
>
> > Related to this does anything in libFuzzer uses RTTI? If not we could also consider disabling RTTI to save extra space.
>
>
> I'll look into this and mail a followup patch if possible.


It doesn't look like we need RTTI, but I tried building libc++ without it and started getting link errors:

  llvm-build/projects/compiler-rt/lib/fuzzer/tests/libRTFuzzerTest.x86_64.a(FuzzerDriver.cpp.o):(.data.rel.ro._ZTINSt6Fuzzer18basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE[_ZTINSt6Fuzzer18basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE]+0x10): undefined reference to `typeinfo for std::Fuzzer::basic_iostream<char, std::Fuzzer::char_traits<char> >'
  
  llvm-build/projects/compiler-rt/lib/fuzzer/tests/libRTFuzzerTest.x86_64.a(FuzzerDriver.cpp.o):(.data.rel.ro._ZTINSt6Fuzzer15basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE[_ZTINSt6Fuzzer15basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE]+0x10): undefined reference to `typeinfo for std::Fuzzer::basic_streambuf<char, std::Fuzzer::char_traits<char> >'
  
  llvm-build/projects/compiler-rt/lib/fuzzer/tests/libRTFuzzerTest.x86_64.a(FuzzerFork.cpp.o):(.data.rel.ro._ZTCNSt6Fuzzer19basic_istringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE0_NS_13basic_istreamIcS2_EE[_ZTCNSt6Fuzzer19basic_istringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE0_NS_13basic_istreamIcS2_EE]+0x10): undefined reference to `typeinfo for std::Fuzzer::basic_istream<char, std::Fuzzer::char_traits<char> >'


Repository:
  rCRT Compiler Runtime

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61053/new/

https://reviews.llvm.org/D61053





More information about the llvm-commits mailing list