[PATCH] D102570: [ELF] Add -Bsymbolic-non-weak-functions

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 29 15:17:31 PDT 2021


MaskRay added a subscriber: hjl.tools.
MaskRay added a comment.

Right:) The only reason that GNU ld needed -Bsymbolic-functions is to avoid collision with copy relocations.

In a -fpie/-fpic world, we should not see copy relocations from C/C++ code but GCC x86-64 still has the `HAVE_LD_PIE_COPYRELOC` issue😭 (https://gcc.gnu.org/legacy-ml/gcc/2019-05/msg00215.html) @hjl.tools


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102570



More information about the llvm-commits mailing list