Skip to content

Commit 07ca4db

Browse files
authored
[Driver] Remove special handling for older Ubuntu (#162518)
Releases of Ubuntu that do not support the GNU hash style are long unsupported.
1 parent 47d3c5f commit 07ca4db

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

clang/lib/Driver/ToolChains/Linux.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,10 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
301301
// .gnu.hash needs symbols to be grouped by hash code whereas the MIPS
302302
// ABI requires a mapping between the GOT and the symbol table.
303303
// Android loader does not support .gnu.hash until API 23.
304-
// Hexagon linker/loader does not support .gnu.hash
304+
// Hexagon linker/loader does not support .gnu.hash.
305+
// SUSE SLES 11 will stop being supported Mar 2028.
305306
if (!IsMips && !IsHexagon) {
306-
if (Distro.IsOpenSUSE() || Distro == Distro::UbuntuLucid ||
307-
Distro == Distro::UbuntuJaunty || Distro == Distro::UbuntuKarmic ||
308-
(IsAndroid && Triple.isAndroidVersionLT(23)))
307+
if (Distro.IsOpenSUSE() || (IsAndroid && Triple.isAndroidVersionLT(23)))
309308
ExtraOpts.push_back("--hash-style=both");
310309
else
311310
ExtraOpts.push_back("--hash-style=gnu");

0 commit comments

Comments
 (0)