[all-commits] [llvm/llvm-project] 33a1b3: [sanitizer] Link Sanitizer-x86_64-Test-Nolibc with...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Dec 27 15:25:15 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 33a1b3d8fceae7dd543cd3cf465f7fa6b71a9e7b
      https://github.com/llvm/llvm-project/commit/33a1b3d8fceae7dd543cd3cf465f7fa6b71a9e7b
  Author: Fangrui Song <maskray at google.com>
  Date:   2019-12-27 (Fri, 27 Dec 2019)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt

  Log Message:
  -----------
  [sanitizer] Link Sanitizer-x86_64-Test-Nolibc with -static

Pass -static so that clang will not pass -Wl,--dynamic-linker,... to the
linker. The test is not expected to run under a ld.so. (Technically it
works under a ld.so but glibc expects to see a PT_DYNAMIC. lld
intentionally does not follow GNU ld's complex rules regarding
PT_DYNAMIC.)

This allows commit 1417558e4a61794347c6bfbafaff7cd96985b2c3 to be
relanded.




More information about the All-commits mailing list