From: Wolfgang Denk Date: Sat, 18 Sep 2010 00:42:04 +0200 Subject: [U-Boot] [PATCH 12/26] ARM: add relocation support In-Reply-To: <4C93E978.9010508@free.fr> References: <4C62E8E7.2000407@denx.de> <4C91356B.5060701@free.fr> <4C91A69A.8050102@denx.de> <4C91F659.7020607@free.fr> <20100916112920.C568C15242D@gemini.denx.de> <4C927C0C.1080007@free.fr> <20100916212646.5F5A415242D@gemini.denx.de> <4C9307C4.40208@free.fr> <20100917110525.70928135155@gemini.denx.de> <4C9365E7.50505@free.fr> <20100917145251.2AC6815242D@gemini.denx.de> <4C9399A7.5020006@free.fr> <20100917190451.5E9C315242D@gemini.denx.de> <4C93E978.9010508@free.fr> Message-ID: <20100917224204.2C5A6157D71@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 Albert ARIBAUD, In message <4C93E978.9010508@free.fr> you wrote: > > > u-boot.map for this board shows: > > > > ... > > arch/powerpc/lib/cache.o(.text) > > .text 0x40007c20 0x64 arch/powerpc/lib/cache.o > > 0x40007c20 flush_cache > > 0x00008000 . = DEFINED (env_offset)?env_offset:. > > *fill* 0x40007c84 0x37c 00 > > common/env_embedded.o(.ppcenv) > > .ppcenv 0x40008000 0x8000 common/env_embedded.o > > 0x40008000 environment > > 0x4000c000 redundand_environment > > *(.text) > > .text 0x40010000 0x4 common/env_embedded.o > > 0x40010000 env_size > > .text 0x40010004 0x0 lib/libgeneric.a(ctype.o) > > ... > > > > So we are "wasting" 0x37c = 892 bytes of memory for an unused gap. > > The last changes where the object placing had to be changed due to > > code size etc. were commit 32482be6 (Feb 19, 2009), and before that > > fe57bb19 (Sep 18, 2002). Having to tweak this file every 7 years or > > so is something I'm considering to be acceptable. YMMV... > > This is a simple alignment. I do not need to align code, I need to map > *one* symbol, namely _start, at a given location, here 0xffff0000, so > that the 64 KB sector which contains start is not wasted and the image > resides in as few sectors as possible. And I map *one* symbol, namely environment, at a given location, here 0x40008000. It seems you are not willing or trying or able to understand. I give up here. Viele Gr??e, 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 When in doubt, mumble; when in trouble, delegate; when in charge, ponder. -- James H. Boren