From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?QW5kcmVhcyBCaWXDn21hbm4=?= Date: Sat, 01 Sep 2012 15:20:17 +0200 Subject: [U-Boot] [PATCH] dlmalloc: remove manual reloc alias warning In-Reply-To: <20120901120231.B9C2C205615@gemini.denx.de> References: <1344848523-20359-1-git-send-email-andreas.devel@googlemail.com> <20120901101031.2DA15205615@gemini.denx.de> <20120901120231.B9C2C205615@gemini.denx.de> Message-ID: <50420B91.3080908@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dera Wolfgang Denk, On 01.09.2012 14:02, Wolfgang Denk wrote: > Dear Andreas, > > In message <20120901101031.2DA15205615@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 >