Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-fno-semantic-interposition and -Bsymbolic-functions #158

Closed
nickdesaulniers opened this issue Jun 3, 2021 · 2 comments
Closed

-fno-semantic-interposition and -Bsymbolic-functions #158

nickdesaulniers opened this issue Jun 3, 2021 · 2 comments

Comments

@nickdesaulniers
Copy link
Member

-fno-semantic-interposition via https://reviews.llvm.org/D102453 should be enabled now by default IIUC, but IIRC -Bsymbolic-functions got reverted (cc @MaskRay ). I'm curious if these make a difference once statically linking though (#150 )

@nickdesaulniers
Copy link
Member Author

I'm curious if these make a difference once statically linking though

It's not, but until we are statically linking, perhaps they are still interesting.

@MaskRay
Copy link
Member

MaskRay commented Jun 4, 2021

-Bsymbolic-functions for libLLVM-13git.so and libclang-cpp.so was re-committed in https://reviews.llvm.org/D102090.
-Bsymbolic-functions is ignored when linking an executable.

-fno-semantic-interposition was committed separately today https://reviews.llvm.org/D102453. Most files are compiled with -fPIC and they get pessimization when compiled by GCC. -fno-semantic-interposition reclaims the lost performance.

ELF platforms get the benefits automatically, no need for additional CMake options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants