[PATCH] D102090: [CMake][ELF] Link libLLVM.so and libclang-cpp.so with -Bsymbolic-functions
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 5 20:57:39 PST 2021
MaskRay added a comment.
To add on rnk's comment (deduplication of vague linkage data which may be included in multiple shared objects), another big reason is -Bsymbolic data does not work with copy relocations. -fno-pic programs generally cannot avoid copy relocations (except mips; mips did this thing correctly). GCC 5 x86-64 has a regression <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98112> that -fpie code can have copy relocations, too.
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
More information about the cfe-commits