* [PATCH] sandbox: use barebox' own sbrk
@ 2024-12-02 8:16 Ahmad Fatoum
2024-12-02 11:07 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2024-12-02 8:16 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
dlmalloc uses sbrk, but so far this directly called into the libc
instead of using the barebox-internal symbol.
Fix this by adding a define for sbrk as well as brk for completion's
sake, even if we don't yet define the latter.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
arch/sandbox/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile
index 9f110d5a6a0d..157e856c59b1 100644
--- a/arch/sandbox/Makefile
+++ b/arch/sandbox/Makefile
@@ -33,6 +33,7 @@ KBUILD_CFLAGS += -Dmalloc=barebox_malloc -Dcalloc=barebox_calloc \
-Dmalloc_stats=barebox_malloc_stats -Dmemalign=barebox_memalign \
-Dmalloc_usable_size=barebox_malloc_usable_size \
-Dfree=barebox_free -Drealloc=barebox_realloc \
+ -Dbrk=barebox_brk -Dsbrk=barebox_sbrk \
-Dread=barebox_read -Dwrite=barebox_write \
-Dopen=barebox_open -Dclose=barebox_close \
-Dlseek=barebox_lseek -Dperror=barebox_perror \
--
2.39.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] sandbox: use barebox' own sbrk
2024-12-02 8:16 [PATCH] sandbox: use barebox' own sbrk Ahmad Fatoum
@ 2024-12-02 11:07 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2024-12-02 11:07 UTC (permalink / raw)
To: barebox, Ahmad Fatoum
On Mon, 02 Dec 2024 09:16:36 +0100, Ahmad Fatoum wrote:
> dlmalloc uses sbrk, but so far this directly called into the libc
> instead of using the barebox-internal symbol.
>
> Fix this by adding a define for sbrk as well as brk for completion's
> sake, even if we don't yet define the latter.
>
>
> [...]
Applied, thanks!
[1/1] sandbox: use barebox' own sbrk
https://git.pengutronix.de/cgit/barebox/commit/?id=69333f239782 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-02 11:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-02 8:16 [PATCH] sandbox: use barebox' own sbrk Ahmad Fatoum
2024-12-02 11:07 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox