0003-ldso-fix-compile-error-for-bfin-non-mmu.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. From 23098cc9edbcc5aafb2692d83e7cae0b0f7887e5 Mon Sep 17 00:00:00 2001
  2. From: Waldemar Brodkorb <wbx@openadk.org>
  3. Date: Sat, 30 Aug 2014 17:34:07 +0200
  4. Subject: [PATCH 3/3] ldso: fix compile error for bfin non-mmu
  5. When compiling for bfin non-mmu, you get following error:
  6. ldso/ldso/dl-elf.c:731:18: error: '_dl_debug_file' undeclared (first use in this function)
  7. _dl_debug_file is only available when __SUPPORT_LD_DEBUG__ is
  8. defined.
  9. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
  10. ---
  11. ldso/ldso/dl-elf.c | 2 ++
  12. 1 file changed, 2 insertions(+)
  13. diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c
  14. index 1b06bc1..4c42fbc 100644
  15. --- a/ldso/ldso/dl-elf.c
  16. +++ b/ldso/ldso/dl-elf.c
  17. @@ -728,8 +728,10 @@ struct elf_resolve *_dl_load_elf_shared_library(unsigned rflags,
  18. void *new_addr;
  19. new_addr = map_writeable (infile, ppnt, piclib, flags, libaddr);
  20. if (!new_addr) {
  21. +#ifdef __SUPPORT_LD_DEBUG__
  22. _dl_dprintf(_dl_debug_file, "Can't modify %s's text section.",
  23. libname);
  24. +#endif
  25. _dl_exit(1);
  26. }
  27. DL_UPDATE_LOADADDR_HDR(lib_loadaddr,
  28. --
  29. 1.8.5.2 (Apple Git-48)