[U-Boot] [PATCH RFC] arm920t: implement elf relocation

Albert ARIBAUD albert.aribaud at free.fr
Sun Oct 31 08:28:53 CET 2010


Thanks Andreas for this helpful contribution; I'll look up the .plt 
section and see if it may lead to the root cause of the issue. However:

Le 31/10/2010 08:25, Andreas Bießmann a écrit :
> Signed-off-by: Andreas Bießmann<andreas.devel at googlemail.com>
> ---
> This changes give segfault in at least codesourcery 2010q1-202 arm lite toolchain. To test this segfault use:
>   # make at91rm9200ek_config
>   # make
>
>   arch/arm/cpu/arm920t/start.S    |  122 ++++++++++++++++++++-------------------
>   arch/arm/cpu/arm920t/u-boot.lds |   26 +++++----
>   2 files changed, 78 insertions(+), 70 deletions(-)
>
> diff --git a/arch/arm/cpu/arm920t/start.S b/arch/arm/cpu/arm920t/start.S
> index d4edde7..adaf193 100644
> --- a/arch/arm/cpu/arm920t/start.S
> +++ b/arch/arm/cpu/arm920t/start.S
> @@ -77,14 +77,17 @@ _TEXT_BASE:
>
>   /*
>    * These are defined in the board-specific linker script.
> + * Subtracting _start from them lets the linker put their
> + * relative position in the executable instead of leaving
> + * them null.
>    */
> -.globl _bss_start
> -_bss_start:
> -	.word __bss_start
> +.globl _bss_start_ofs
> +_bss_start_ofs:
> +	.word __bss_start - _start

This patch seems to apply to u-boot before ELF relocation was 
introduced. Can you make it against the latest master?

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list