Update toolchain to lowrisc_rv32imcb_20240923-1

- Update to a newer version of lowRISC's toolchain, built against
  libtinfo6.

Change-Id: Ibc92cfabccdb8ab71c160e6baf101da054caf3d0
Bypass-Presubmit-Reason: New build container required, tested manually
diff --git a/third_party/crt/0001-Update-lowrisc_rv32imcb-to-20240923-1.patch b/third_party/crt/0001-Update-lowrisc_rv32imcb-to-20240923-1.patch
new file mode 100644
index 0000000..39e740e
--- /dev/null
+++ b/third_party/crt/0001-Update-lowrisc_rv32imcb-to-20240923-1.patch
@@ -0,0 +1,42 @@
+From 8e3badfd935cdc989231637b05c0624202ac2f4e Mon Sep 17 00:00:00 2001
+From: Alex Van Damme <atv@google.com>
+Date: Wed, 5 Mar 2025 15:04:22 -0800
+Subject: [PATCH] Update lowrisc_rv32imcb to 20240923-1
+
+- Toolchain built on an AlmaLinux 8-based host, to improve compatibility with more recent Linux distributions
+---
+ toolchains/lowrisc_rv32imcb/BUILD.bazel    | 2 +-
+ toolchains/lowrisc_rv32imcb/repository.bzl | 6 +++---
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/toolchains/lowrisc_rv32imcb/BUILD.bazel b/toolchains/lowrisc_rv32imcb/BUILD.bazel
+index b3670f6..f05762e 100644
+--- a/toolchains/lowrisc_rv32imcb/BUILD.bazel
++++ b/toolchains/lowrisc_rv32imcb/BUILD.bazel
+@@ -8,7 +8,7 @@ load("//platforms/riscv32:devices.bzl", "DEVICES")
+ package(default_visibility = ["//visibility:public"])
+ 
+ SYSTEM_INCLUDE_PATHS = [
+-    "external/lowrisc_rv32imcb_files/lib/clang/13.0.1/include",
++    "external/lowrisc_rv32imcb_files/lib/clang/16/include",
+     "external/lowrisc_rv32imcb_files/riscv32-unknown-elf/include",
+     "external/lowrisc_rv32imcb_files/riscv32-unknown-elf/include/c++/10.2.0",
+     "external/lowrisc_rv32imcb_files/riscv32-unknown-elf/include/c++/10.2.0/backward",
+diff --git a/toolchains/lowrisc_rv32imcb/repository.bzl b/toolchains/lowrisc_rv32imcb/repository.bzl
+index 00468bc..01e647f 100644
+--- a/toolchains/lowrisc_rv32imcb/repository.bzl
++++ b/toolchains/lowrisc_rv32imcb/repository.bzl
+@@ -7,7 +7,7 @@ load("@crt//config:repo.bzl", "compiler_repository")
+ def lowrisc_rv32imcb_repos():
+     compiler_repository(
+         name = "lowrisc_rv32imcb_files",
+-        url = "https://github.com/lowRISC/lowrisc-toolchains/releases/download/20220524-1/lowrisc-toolchain-rv32imcb-20220524-1.tar.xz",
+-        sha256 = "a4579324083577a0f20cf4b03d11c6a7563265ced0ed2f7b51c3722d80fd24c4",
+-        strip_prefix = "lowrisc-toolchain-rv32imcb-20220524-1",
++        url = "https://github.com/lowRISC/lowrisc-toolchains/releases/download/20240923-1/lowrisc-toolchain-rv32imcb-20240923-1.tar.xz",
++        sha256 = "aeea1983553f4c81c6409abcf0d6ca33b5ed4716b2b694e7ff030523cf13486a",
++        strip_prefix = "lowrisc-toolchain-rv32imcb-20240923-1",
+     )
+-- 
+2.48.1.711.g2feabab25a-goog
+
diff --git a/third_party/crt/repos.bzl b/third_party/crt/repos.bzl
index eff3506..f4a46f5 100644
--- a/third_party/crt/repos.bzl
+++ b/third_party/crt/repos.bzl
@@ -18,4 +18,8 @@
             url = "https://github.com/lowRISC/crt/archive/refs/tags/v0.3.4.tar.gz",
             sha256 = "01a66778d1a0d5bbfb4ba30e72bd6876d0c20766d0b1921ab36ca3350cb48c60",
             strip_prefix = "crt-0.3.4",
+            patch_args = ["-p1"],
+            patches = [
+                "@lowrisc_opentitan//third_party/crt:0001-Update-lowrisc_rv32imcb-to-20240923-1.patch",
+            ],
         )