summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-07-23 05:01:14 -0400
committerAustin Foxley <austinf@cetoncorp.com>2009-08-19 12:40:15 -0700
commitf8ff2711a8489e256a948871aad0811a2310e84a (patch)
treeac756b674b19c668d54c5fdc1200e453a4cca89e
parentcd7ddf7c0eabaf6ed2133af614b99900ef074e77 (diff)
downloaduClibc-alpine-f8ff2711a8489e256a948871aad0811a2310e84a.tar.bz2
uClibc-alpine-f8ff2711a8489e256a948871aad0811a2310e84a.tar.xz
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 <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
-rw-r--r--ldso/ldso/bfin/dl-sysdep.h8
1 files changed, 8 insertions, 0 deletions
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 <elf.h>
+
+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)