[all-commits] [llvm/llvm-project] bbb721: [scudo][test] Link with -no-pie to be agnostic of ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Apr 8 23:30:20 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bbb72122aa27a2398b7c06394c879149fd723ccb
      https://github.com/llvm/llvm-project/commit/bbb72122aa27a2398b7c06394c879149fd723ccb
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-04-08 (Fri, 08 Apr 2022)

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

  Log Message:
  -----------
  [scudo][test] Link with -no-pie to be agnostic of CLANG_DEFAULT_PIE_ON_LINUX

This keeps the test behavior unchanged when CLANG_DEFAULT_PIE_ON_LINUX switches
to ON by default.

Note: current clang --target=mips64el-linux-gnu -fpie -pie -fuse-ld=lld
does not link with C++ exceptions, using -pie would lead to

```
ld.lld: error: cannot preempt symbol: DW.ref.__gxx_personality_v0
...
ld.lld: error: relocation R_MIPS_64 cannot be used against local symbol; recompile with -fPIC
...
```

when linking `ScudoUnitTests`: https://lab.llvm.org/buildbot/#/builders/169/builds/7311/steps/18/logs/stdio




More information about the All-commits mailing list