From c783cce0b040d32dc24aa6b99831287f46659458 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 23 Jul 2009 05:01:14 -0400 Subject: Blackfin: add elf_machine_load_address() stub The Blackfin port never defined elf_machine_load_address() because the one place this code is called never matters to us. But without it, common code likes to hit a build failure, so stub it out. ldso/ldso/dl-startup.c: In function '_dl_start': ldso/ldso/dl-startup.c:170: warning: implicit declaration of function 'elf_machine_load_address' Signed-off-by: Mike Frysinger --- ldso/ldso/bfin/dl-sysdep.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ldso/ldso/bfin/dl-sysdep.h b/ldso/ldso/bfin/dl-sysdep.h index f0c5129b2..89483ae00 100644 --- a/ldso/ldso/bfin/dl-sysdep.h +++ b/ldso/ldso/bfin/dl-sysdep.h @@ -210,6 +210,14 @@ while (0) #endif #include + +static __always_inline Elf32_Addr +elf_machine_load_address (void) +{ + /* this is never an issue on Blackfin systems, so screw it */ + return 0; +} + static __always_inline void elf_machine_relative (DL_LOADADDR_TYPE load_off, const Elf32_Addr rel_addr, Elf32_Word relative_count) -- cgit v1.2.3