Re: [U-Boot] [PATCH 1/6] dlmalloc: ensure gd is set for early alloc

2014-11-05 Thread Rabin Vincent
On Sat, Nov 01, 2014 at 09:11:34AM -0600, Simon Glass wrote: > On 29 October 2014 16:21, Rabin Vincent wrote: > > Attempting to run the sandbox leads to a segfault, because some dynamic > > libraries (outside of u-boot) attempt to use malloc() to allocate memory > > before u-boot's gd variable is

Re: [U-Boot] [PATCH 1/6] dlmalloc: ensure gd is set for early alloc

2014-11-01 Thread Simon Glass
Hi Rabin, On 29 October 2014 16:21, Rabin Vincent wrote: > > Attempting to run the sandbox leads to a segfault, because some dynamic > libraries (outside of u-boot) attempt to use malloc() to allocate memory > before u-boot's gd variable is initialized. > > Check for gd not being NULL in the SYS_

[U-Boot] [PATCH 1/6] dlmalloc: ensure gd is set for early alloc

2014-10-29 Thread Rabin Vincent
Attempting to run the sandbox leads to a segfault, because some dynamic libraries (outside of u-boot) attempt to use malloc() to allocate memory before u-boot's gd variable is initialized. Check for gd not being NULL in the SYS_MALLOC_F_LEN handling, so that malloc() doesn't crash when called at t