[PATCH] D102453: [CMake][ELF] Add -fno-semantic-interposition for GCC and Clang>=13

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 19 17:18:41 PDT 2021


MaskRay added a comment.

In D102453#2769978 <https://reviews.llvm.org/D102453#2769978>, @phosek wrote:

> Have you considered using `-fvisibility=protected` instead?

I have considered it and excluded that option. Options affecting variables are incompatible with -fno-pic caused copy relocations.

Worse, -fvisbility=protected is very broken in the GNU x86 world (not broken in clang/lld world, not broken in the non-x86 world). https://maskray.me/blog/2021-01-09-copy-relocations-canonical-plt-entries-and-protected


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102453



More information about the llvm-commits mailing list