[U-Boot] [PATCH v2] 85xx: Ensure BSS segment isn't linked at address 0

Kumar Gala galak at kernel.crashing.org
Thu Oct 8 04:47:57 CEST 2009


On Oct 7, 2009, at 5:34 PM, Wolfgang Denk wrote:

> Dear Peter Tyser,
>
> In message <1254933900-16859-1-git-send-email-ptyser at xes-inc.com>  
> you wrote:
>> When U-Boot is relocated from flash to RAM pointers are modified
>> accordingly.  However, pointers initialzed with NULL values should  
>> not
>> be modified so that they maintain their intended NULL value.  If the
>> BSS segment is linked at address 0 its address will not be
>> updated as necessary during relocation.
>>
>> This is a temporary workaround.  The end goal is to add support to
>> U-Boot to dynamically locate the BSS at an arbitrary address at
>> runtime.  When the ability to fixup the BSS inteligently is
>> added, this workaround can be removed and the 85xx link script
>> can put the BSS at a fixed address at link time.
>>
>> Signed-off-by: Peter Tyser <ptyser at xes-inc.com>
>> ---
>> Changes since v1:
>> - Updated commit title and description
>> - Cleaned up logic to determine if we need to fixup bss address
>>
>> cpu/mpc85xx/u-boot.lds |   11 +++++++++++
>> 1 files changed, 11 insertions(+), 0 deletions(-)
>
> Applied to "reloc" branch, thanks.

Is the intent to merge "reloc" for v2009.11 or post?

- k


More information about the U-Boot mailing list