[U-Boot] [PATCH] dlmalloc: remove manual reloc alias warning

Andreas Bießmann andreas.devel at googlemail.com
Sat Sep 1 15:20:17 CEST 2012

Dera Wolfgang Denk,

On 01.09.2012 14:02, Wolfgang Denk wrote:
> Dear Andreas,
> In message <20120901101031.2DA15205615 at gemini.denx.de> I wrote:
>> i. e. this has the offset 2 added twice, so it is missing the first
>> two real entries, env writing beyond the end of the array.
> Please ignore me. Seems my brain is still in vacation mode.
> However, I really wonder why you say this code would be causing
> runtime errors for you:
>> 	mbinptr *p = &av_[2];
>> 	int i;
>> 	for (i = 2; i < ARRAY_SIZE(av_); ++i)
>> 		*p = (mbinptr)((ulong)*p + gd->reloc_off);
> It looks good to me.

Well, I did not investigate it further, but I can do this weekend (after 
merging/testing/pull request the atmel arm stuff). Hopefully we get a 
solution for the annoying alias warning in upcoming release.

Best regards

Andreas Bießmann

> Can you please add some debug printf()s to find out how the old code
> and this one differ in their results?
> Best regards,
> Wolfgang Denk

More information about the U-Boot mailing list