Jivin Mike Frysinger lays it down ...
> The Blackfin port uses _current_shared_library_p5_offset_ for the GOT offset
> symbol, and it adjusts it by 1 rather than 4.
> 
> Signed-off-by: Mike Frysinger <[EMAIL PROTECTED]>

Applied,

Thanks,
Davidm

> ---
>  ld-elf2flt.in |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/ld-elf2flt.in b/ld-elf2flt.in
> index 493e1f5..4f66402 100644
> --- a/ld-elf2flt.in
> +++ b/ld-elf2flt.in
> @@ -127,11 +127,13 @@ then
>                       fi
>  
>                       # Provide the magic parameter that defines the library 
> data segment pointer offset
> +                     GOT_ADJ=4
>                       case "@target_cpu@" in
> +                         bfin)  
> GOT_OFFSET="_current_shared_library_p5_offset_" GOT_ADJ=1;;
>                           h8300) 
> GOT_OFFSET="__current_shared_library_er5_offset_";;
>                           *)     
> GOT_OFFSET="_current_shared_library_a5_offset_";;
>                       esac
> -                     ARG1="$ARG1 -defsym $GOT_OFFSET=`expr ${SHARED_ID} '*' 
> -4 - 4`"
> +                     ARG1="$ARG1 -defsym $GOT_OFFSET=`expr ${SHARED_ID} '*' 
> -${GOT_ADJ} - ${GOT_ADJ}`"
>               fi
>               if [ "@emit_relocs@" = "yes" ]
>               then
> -- 
> 1.6.0.3
> 
> _______________________________________________
> uClinux-dev mailing list
> [email protected]
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by [email protected]
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
> 

-- 
David McCullough,  [EMAIL PROTECTED],   Ph:+61 734352815
Secure Computing - SnapGear  http://www.uCdot.org   http://www.snapgear.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to