]> git.dujemihanovic.xyz Git - u-boot.git/commit
sh: Set gd->malloc_base if MALLOC_F_LEN is set
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 9 May 2020 20:02:50 +0000 (22:02 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 2 Aug 2020 17:58:26 +0000 (19:58 +0200)
commit3223ca99ee5ff98b4189f1c66af64e14c7b472b1
tree9b2e37681c44ddedea42cbe308621581971d535c
parent7bee46fd4057449eef8f698cb2f28219538f2f0a
sh: Set gd->malloc_base if MALLOC_F_LEN is set

The gd->malloc_base must be set before the C runtime if the MALLOC_F_LEN
is non-zero, otherwise we hit assertion in dlmalloc.c initf_malloc(). So
set it.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
arch/sh/lib/start.S