From: Albert ARIBAUD <albert.aribaud@free.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 12/26] ARM: add relocation support
Date: Sat, 18 Sep 2010 01:25:57 +0200 [thread overview]
Message-ID: <4C93F905.3000601@free.fr> (raw)
In-Reply-To: <20100917224204.2C5A6157D71@gemini.denx.de>
Le 18/09/2010 00:42, Wolfgang Denk a ?crit :
> 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.
I *am* willing to understand, and *able* I think too; I believe I never
expressed any doubt on your own will or ability to understand, and I
would appreciate if you kept your doubts about me to yourself.
I still fail to see a mapping of _start at a given here, at least I fail
to see a manual action to get there. Are we both talking about the
boards/tqc/tqm8xx/u-boot.lds linker file? If so, then it places _start
right at the beginning of the .text section (line 58 of the linker file)
-- just like all linker files I saw so far -- and does the alignment
trick on the location pointer later, at line 67, which aligns the
location of env_embedded, not of _start.
Maybe the intent was to move env_embedded out of the sector where
start.o et al. are put; but then, that is not what I am look for. I do
not want to isolate _start within a given sector; I want to make sure it
gets flashed at a given location, where it cannot end up if it was
mapped at the beginning of the iagem, because the image is bigger than
the space from the reset vector location to the end of the addressable
space.
> Viele Gr??e,
>
> Wolfgang Denk
Amicalement,
--
Albert.
prev parent reply other threads:[~2010-09-17 23:25 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-11 18:16 [U-Boot] [PATCH 12/26] ARM: add relocation support Heiko Schocher
2010-09-15 21:06 ` Albert ARIBAUD
2010-09-16 5:09 ` Heiko Schocher
2010-09-16 6:23 ` Alessandro Rubini
2010-09-16 7:06 ` Wolfgang Denk
2010-09-16 7:18 ` Graeme Russ
2010-09-16 8:23 ` Wolfgang Denk
2010-09-16 9:54 ` Graeme Russ
2010-09-16 10:18 ` Wolfgang Wegner
2010-09-16 10:49 ` Albert ARIBAUD
2010-09-16 11:06 ` Wolfgang Denk
2010-09-16 11:24 ` Wolfgang Wegner
2010-09-16 10:50 ` Albert ARIBAUD
2010-09-16 11:29 ` Wolfgang Denk
2010-09-16 20:20 ` Albert ARIBAUD
2010-09-16 21:26 ` Wolfgang Denk
2010-09-17 6:16 ` Albert ARIBAUD
2010-09-17 11:05 ` Wolfgang Denk
2010-09-17 12:58 ` Albert ARIBAUD
2010-09-17 14:52 ` Wolfgang Denk
2010-09-17 16:39 ` Albert ARIBAUD
2010-09-17 19:04 ` Wolfgang Denk
2010-09-17 22:19 ` Albert ARIBAUD
2010-09-17 22:42 ` Wolfgang Denk
2010-09-17 23:25 ` Albert ARIBAUD [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C93F905.3000601@free.fr \
--to=albert.aribaud@free.fr \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox