[all-commits] [llvm/llvm-project] 7f1026: [cfi][test] cross-dso/stats.cpp: don't assume the ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Jan 8 15:50:56 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f1026a7520eb3d7e99da77f6738deb72de17980
      https://github.com/llvm/llvm-project/commit/7f1026a7520eb3d7e99da77f6738deb72de17980
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-01-08 (Wed, 08 Jan 2020)

  Changed paths:
    M compiler-rt/test/cfi/cross-dso/stats.cpp

  Log Message:
  -----------
  [cfi][test] cross-dso/stats.cpp: don't assume the order of static constructors

__sanitizer_stat_init is called for the executable first, then the
shared object. In WriterModuleReport(), the information for the shared
object will be recorded first. It'd be nice to get rid of the order
requirement of static constructors. (This should make .ctors platforms
work.)




More information about the All-commits mailing list