[all-commits] [llvm/llvm-project] c294bd: libLTO.{so, dylib}: remove unused non-LTO symbols
Fangrui Song via All-commits
all-commits at lists.llvm.org
Thu Feb 2 14:51:47 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c294bdd64768e0954e7dec8ed878bdac7ce7530f
https://github.com/llvm/llvm-project/commit/c294bdd64768e0954e7dec8ed878bdac7ce7530f
Author: Fangrui Song <i at maskray.me>
Date: 2023-02-02 (Thu, 02 Feb 2023)
Changed paths:
M llvm/tools/lto/CMakeLists.txt
R llvm/tools/lto/lto.dylib.exports
M llvm/tools/lto/lto.exports
Log Message:
-----------
libLTO.{so,dylib}: remove unused non-LTO symbols
These dissembler symbols are not used by LTO (see Apple ld64's use
in check-llvm-tools-lto). On ELF platforms, these symbols are not defined and are
rejected by ld --no-undefined-version.
I think this is a more proper solution than D139932 and this fixes
-DBUILD_SHARED_LIBS=on for ELF as well.
More information about the All-commits
mailing list