Files
u-boot/include
Simon Glass 22f87ef530 malloc: Avoid defining calloc()
The C runtime calls malloc() before starting main(), e.g. to get some
memory to use for dynamic linking.

If CONFIG_TPL_SYS_MALLOC_SIMPLE is enabled, the calloc() symbol is
defined within U-Boot. The C runtime may call that too.

Use the same #define technique as for malloc_simple(), to fix a crash
on my machine when running:

   /tmp/b/sandbox_vpl/tpl/u-boot-tpl -D

This does not happen in CI, perhaps because the C runtime uses malloc()
instead of calloc().

Signed-off-by: Simon Glass <sjg@chromium.org>
2025-08-20 07:41:19 -06:00
..
2025-07-11 21:12:11 +02:00
2025-06-12 19:43:54 +00:00
2025-06-27 07:50:11 -06:00
2025-05-29 19:06:29 +01:00
2025-07-28 13:06:51 +12:00
2025-08-14 07:45:25 -06:00
2025-06-05 13:59:50 -06:00
2025-06-28 07:53:25 -06:00
2025-06-28 07:53:25 -06:00
2025-06-28 12:30:56 -06:00
2025-05-29 19:06:30 +01:00
2025-08-11 15:01:27 -06:00
2025-05-16 14:45:25 +02:00
2025-08-20 07:41:19 -06:00
2025-05-29 17:21:36 +01:00
2025-05-16 14:45:25 +02:00
2025-05-16 18:17:17 +02:00
2025-08-04 14:40:00 -06:00
2025-06-05 13:59:50 -06:00