From bba0c33fdca7081053094f201ea9ca91f6be6a42 Mon Sep 17 00:00:00 2001 From: David McCullough Date: Thu, 6 Nov 2008 03:33:30 +0000 Subject: [PATCH] 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 --- ld-elf2flt.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5