unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 93c52ff7097491db31b9ab7418b7f5a3db0c40b6 604 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
 
Arrange so that LLVM's shared object doesn't end up using 'calloc' from
U-Boot's 'malloc_simple.c' when it's initialized.

  https://issues.guix.gnu.org/74270

diff --git a/common/malloc_simple.c b/common/malloc_simple.c
index 5a8ec538f8..4f5e350a3c 100644
--- a/common/malloc_simple.c
+++ b/common/malloc_simple.c
@@ -64,6 +64,8 @@ void *memalign_simple(size_t align, size_t bytes)
 }
 
 #if CONFIG_IS_ENABLED(SYS_MALLOC_SIMPLE)
+void *calloc(size_t nmemb, size_t elem_size)
+  __attribute__ ((visibility ("hidden")));
 void *calloc(size_t nmemb, size_t elem_size)
 {
 	size_t size = nmemb * elem_size;

debug log:

solving 93c52ff709 ...
found 93c52ff709 in https://git.savannah.gnu.org/cgit/guix.git

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).