Skip to content

Commit 45988c3

Browse files
committed
[CHERIoT] Restore pre-clang-21 behavior of using LLD as the default baremetal linker.
1 parent 6c5cd94 commit 45988c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Driver/ToolChains/BareMetal.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ class LLVM_LIBRARY_VISIBILITY BareMetal : public Generic_ELF {
5656
return UnwindTableLevel::None;
5757
}
5858

59+
// XXX CHERIOT: Restore pre-clang21 behavior of defaulting to lld.
60+
const char *getDefaultLinker() const override { return "ld.lld"; }
61+
5962
CXXStdlibType GetDefaultCXXStdlibType() const override;
6063

6164
RuntimeLibType GetDefaultRuntimeLibType() const override;

0 commit comments

Comments
 (0)