[PATCH] D135402: [LLD] Enable --no-undefined-version by default.

Dan Albert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 13 15:27:32 PDT 2022


danalbert added a comment.

> What would you suggest for solving [differing exported symbols between debug and release builds]?

Two version scripts. In Android we have similar issues, especially in places like libc that differ from ABI to ABI, and we solve this by preprocessing the version script before giving it to the linker.

> Also, I mentioned previously in this thread the errors I was getting with the lto version script. Do you happen to know why these aren't defined?

tbh that sounds like a bug. If you're expecting symbols to be public and LTO is making that not the case (DCE?), the expected ABI is not being fulfilled. Or maybe those weren't meant to be public anyway so it doesn't actually matter and they should just be removed.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D135402



More information about the llvm-commits mailing list