From: Wolfgang Denk Date: Mon, 11 Apr 2011 23:09:45 +0200 Subject: [U-Boot] [PATCH V2] Do not copy elf section to same adress In-Reply-To: <4DA360A9.10401@arcor.de> References: <1295367283-4696-1-git-send-email-weisserm@arcor.de> <1295435020-14190-1-git-send-email-weisserm@arcor.de> <20110411195954.E467E14F02E@gemini.denx.de> <4DA360A9.10401@arcor.de> Message-ID: <20110411210945.9B3D214E5B3@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 Matthias Weisser, In message <4DA360A9.10401@arcor.de> you wrote: > > I can't come up with an example where this may produce a problem but who > knows which exotic hardware is out there which expects that a memcpy > with identical src and dst addresses is executed exactly in that way. > But maybe we can ignore this and let these exotic boards come up with a > solution handling that special situation. Right. > > While we are at it, we should do the same with bcopy() and memmove(), > > too. > > Maybe I can post a patch tomorrow. The only thing which I can't handle > are architecture specific memcpy/memmove/... functions besides ARM. That's fine. Optimized arch specific code probably already implements such a shortcut anyway. 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 Winners never talk about glorious victories. That's because they're the ones who see what the battlefield looks like afterwards. It's only the losers who have glorious victories. - Terry Pratchett, _Small Gods_