From: Wolfgang Denk Date: Mon, 09 Aug 2010 14:27:16 +0200 Subject: [U-Boot] [PATCH] memmove_wd: Allow overlapping memory area In-Reply-To: <201008091351.39800.alexander.stein@systec-electronic.com> References: <1279701826-20083-1-git-send-email-alexander.stein@systec-electronic.com> <201008091310.37634.alexander.stein@systec-electronic.com> <20100809114332.9A4771536EF@gemini.denx.de> <201008091351.39800.alexander.stein@systec-electronic.com> Message-ID: <20100809122716.A05311536EF@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Alexander Stein, In message <201008091351.39800.alexander.stein@systec-electronic.com> you wrote: > > > Better do not build on undefined behaviour. > > Yes, of course. But it seems difficult to recognise thing like a simple > memmove with dest < src as an undefined behavior. See the FAQ: http://www.denx.de/wiki/view/DULG/LinuxUncompressingError It has been explained before (and often) that the download address of a kernel image must be sufficiently far away from the load address in the image header. > > Please note that I'm not against fixing this problem, but if we > > address it, it should be fixed correctly, i. e. in sich a way that it > > will always work, not only for certain cases. > > So how to fix this then? I'm totally inexperienced to compressed images. Well, I don't an easy fix for the compression case. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Only a fool fights in a burning house. -- Kank the Klingon, "Day of the Dove", stardate unknown