[git commit 0_9_30] Blackfin: add elf_machine_load_address() stub
Mike Frysinger
vapier at gentoo.org
Sat Oct 10 16:44:02 UTC 2009
commit: http://git.uclibc.org/uClibc/commit/?id=d6d6d6c6aa3aed667f5e843c50be53e0087b68d5
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/0_9_30
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 at gentoo.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
ldso/ldso/bfin/dl-sysdep.h | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/ldso/ldso/bfin/dl-sysdep.h b/ldso/ldso/bfin/dl-sysdep.h
index fcea80a..7a91fb4 100644
--- a/ldso/ldso/bfin/dl-sysdep.h
+++ b/ldso/ldso/bfin/dl-sysdep.h
@@ -207,6 +207,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)
--
1.6.3.3
More information about the uClibc-cvs
mailing list