[clang] [Driver] Remove special handling for older Ubuntu (PR #162518)
Brad Smith via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 8 10:55:23 PDT 2025
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/162518
Releases of Ubuntu that do not support the GNU hash style
are long unsupported.
>From b93c418279e12131e2368d82df9153f5807ab7ba Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Wed, 8 Oct 2025 13:41:08 -0400
Subject: [PATCH] [Driver] Remove special handling for older Ubuntu
Releases of Ubuntu that do not support the GNU hash style
are long unsupported.
---
clang/lib/Driver/ToolChains/Linux.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp
index 16e35b08cfbd6..49e7c482afda4 100644
--- a/clang/lib/Driver/ToolChains/Linux.cpp
+++ b/clang/lib/Driver/ToolChains/Linux.cpp
@@ -303,9 +303,7 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
// Android loader does not support .gnu.hash until API 23.
// Hexagon linker/loader does not support .gnu.hash
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