[libc-commits] [libc] [libc][config] Add malloc as baremetal arm entrypoint (PR #95827)

via libc-commits libc-commits at lists.llvm.org
Thu Jun 20 13:30:36 PDT 2024


https://github.com/PiJoules updated https://github.com/llvm/llvm-project/pull/95827

>From 97b3a6345ae4543ab0a0e01e6a409fe3992a670b Mon Sep 17 00:00:00 2001
From: Leonard Chan <leonardchan at google.com>
Date: Mon, 17 Jun 2024 11:52:43 -0700
Subject: [PATCH] [libc][config] Add malloc as baremetal arm entrypoint

---
 libc/config/baremetal/arm/entrypoints.txt   | 4 ++++
 libc/config/baremetal/riscv/entrypoints.txt | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/libc/config/baremetal/arm/entrypoints.txt b/libc/config/baremetal/arm/entrypoints.txt
index c2aa5258cb7e6..1443d1e44e10a 100644
--- a/libc/config/baremetal/arm/entrypoints.txt
+++ b/libc/config/baremetal/arm/entrypoints.txt
@@ -167,16 +167,20 @@ set(TARGET_LIBC_ENTRYPOINTS
     # stdlib.h entrypoints
     libc.src.stdlib.abort
     libc.src.stdlib.abs
+    libc.src.stdlib.aligned_alloc
     libc.src.stdlib.atoi
     libc.src.stdlib.atof
     libc.src.stdlib.atol
     libc.src.stdlib.atoll
     libc.src.stdlib.bsearch
+    libc.src.stdlib.calloc
     libc.src.stdlib.div
+    libc.src.stdlib.free
     libc.src.stdlib.labs
     libc.src.stdlib.ldiv
     libc.src.stdlib.llabs
     libc.src.stdlib.lldiv
+    libc.src.stdlib.malloc
     libc.src.stdlib.qsort
     libc.src.stdlib.rand
     libc.src.stdlib.srand
diff --git a/libc/config/baremetal/riscv/entrypoints.txt b/libc/config/baremetal/riscv/entrypoints.txt
index 6d38676b1e8a8..99ae20b726ae2 100644
--- a/libc/config/baremetal/riscv/entrypoints.txt
+++ b/libc/config/baremetal/riscv/entrypoints.txt
@@ -163,16 +163,20 @@ set(TARGET_LIBC_ENTRYPOINTS
     # stdlib.h entrypoints
     libc.src.stdlib.abort
     libc.src.stdlib.abs
+    libc.src.stdlib.aligned_alloc
     libc.src.stdlib.atoi
     libc.src.stdlib.atof
     libc.src.stdlib.atol
     libc.src.stdlib.atoll
     libc.src.stdlib.bsearch
+    libc.src.stdlib.calloc
     libc.src.stdlib.div
+    libc.src.stdlib.free
     libc.src.stdlib.labs
     libc.src.stdlib.ldiv
     libc.src.stdlib.llabs
     libc.src.stdlib.lldiv
+    libc.src.stdlib.malloc
     libc.src.stdlib.qsort
     libc.src.stdlib.rand
     libc.src.stdlib.srand



More information about the libc-commits mailing list