Skip to content

Commit 801b940

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clang/lib/Driver/ToolChains/BareMetal.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ 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 {
61+
return "ld.lld";
62+
}
63+
5964
CXXStdlibType GetDefaultCXXStdlibType() const override;
6065

6166
RuntimeLibType GetDefaultRuntimeLibType() const override;

0 commit comments

Comments
 (0)