[clang] 07ca4db - [Driver] Remove special handling for older Ubuntu (#162518)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 9 19:33:41 PDT 2025
Author: Brad Smith
Date: 2025-10-10T02:33:37Z
New Revision: 07ca4db1e1f53876b14e5773e8b9d77c20774fca
URL: https://github.com/llvm/llvm-project/commit/07ca4db1e1f53876b14e5773e8b9d77c20774fca
DIFF: https://github.com/llvm/llvm-project/commit/07ca4db1e1f53876b14e5773e8b9d77c20774fca.diff
LOG: [Driver] Remove special handling for older Ubuntu (#162518)
Releases of Ubuntu that do not support the GNU hash style
are long unsupported.
Added:
Modified:
clang/lib/Driver/ToolChains/Linux.cpp
Removed:
################################################################################
diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp
index 16e35b08cfbd6..8eb4d34e0827a 100644
--- a/clang/lib/Driver/ToolChains/Linux.cpp
+++ b/clang/lib/Driver/ToolChains/Linux.cpp
@@ -301,11 +301,10 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
// .gnu.hash needs symbols to be grouped by hash code whereas the MIPS
// ABI requires a mapping between the GOT and the symbol table.
// Android loader does not support .gnu.hash until API 23.
- // Hexagon linker/loader does not support .gnu.hash
+ // Hexagon linker/loader does not support .gnu.hash.
+ // SUSE SLES 11 will stop being supported Mar 2028.
if (!IsMips && !IsHexagon) {
- if (Distro.IsOpenSUSE() || Distro == Distro::UbuntuLucid ||
- Distro == Distro::UbuntuJaunty || Distro == Distro::UbuntuKarmic ||
- (IsAndroid && Triple.isAndroidVersionLT(23)))
+ if (Distro.IsOpenSUSE() || (IsAndroid && Triple.isAndroidVersionLT(23)))
ExtraOpts.push_back("--hash-style=both");
else
ExtraOpts.push_back("--hash-style=gnu");
More information about the cfe-commits
mailing list