When compiling for bfin non-mmu, you get following error:
ldso/ldso/dl-elf.c:731:18: error: '_dl_debug_file' undeclared (first use in 
this function)
_dl_debug_file is only available when __SUPPORT_LD_DEBUG__ is
defined.

Signed-off-by: Waldemar Brodkorb <w...@openadk.org>
---
 ldso/ldso/dl-elf.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c
index 1b06bc1..4c42fbc 100644
--- a/ldso/ldso/dl-elf.c
+++ b/ldso/ldso/dl-elf.c
@@ -728,8 +728,10 @@ struct elf_resolve *_dl_load_elf_shared_library(unsigned 
rflags,
                                void *new_addr;
                                new_addr = map_writeable (infile, ppnt, piclib, 
flags, libaddr);
                                if (!new_addr) {
+#ifdef __SUPPORT_LD_DEBUG__
                                        _dl_dprintf(_dl_debug_file, "Can't 
modify %s's text section.",
                                                    libname);
+#endif
                                        _dl_exit(1);
                                }
                                DL_UPDATE_LOADADDR_HDR(lib_loadaddr,
-- 
1.8.5.2 (Apple Git-48)

_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to