From: David McCullough Date: Thu, 6 Nov 2008 03:33:30 +0000 (+0000) Subject: The Blackfin port uses _current_shared_library_p5_offset_ for the GOT offset X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=bba0c33fdca7081053094f201ea9ca91f6be6a42;p=elf2flt.git 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 --- diff --git a/ld-elf2flt.in b/ld-elf2flt.in index b876636..b3881ec 100644 --- a/ld-elf2flt.in +++ b/ld-elf2flt.in @@ -126,11 +126,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