[PATCH] D102090: [CMake][ELF] Add -fno-semantic-interposition and -Bsymbolic-functions

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 7 13:59:19 PDT 2021


MaskRay added a comment.

In D102090#2745331 <https://reviews.llvm.org/D102090#2745331>, @tstellar wrote:

> Does this change mean that LD_PRELOAD will no longer work?  Are there any other downsides to adding these flags?

The downside is that it will behave more like Windows dll and Mach-O dylib using two-level namespace lookup.
No runtime preemption.

LD_PRELOAD will not work. It probably never works properly: replacing a program linked with libLLVM-11.so with a different libLLVM-11.so version at runtime?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102090



More information about the cfe-commits mailing list