summaryrefslogtreecommitdiff
path: root/toolchain/uclibc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-08-30 17:37:00 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-08-30 17:37:00 +0200
commit315fc3dff36691185f42ddf74e1cb8f09a4fdce7 (patch)
tree987b30476c721a9f41737ae1768482c120bf4019 /toolchain/uclibc
parent1bbf791c78bd48d3d09d4c121a938ece7b7fe93c (diff)
fix compile error for bfin target
Diffstat (limited to 'toolchain/uclibc')
-rw-r--r--toolchain/uclibc/patches/0.9.34-git/0003-ldso-fix-compile-error-for-bfin-non-mmu.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/toolchain/uclibc/patches/0.9.34-git/0003-ldso-fix-compile-error-for-bfin-non-mmu.patch b/toolchain/uclibc/patches/0.9.34-git/0003-ldso-fix-compile-error-for-bfin-non-mmu.patch
new file mode 100644
index 000000000..30b6de741
--- /dev/null
+++ b/toolchain/uclibc/patches/0.9.34-git/0003-ldso-fix-compile-error-for-bfin-non-mmu.patch
@@ -0,0 +1,33 @@
+From 23098cc9edbcc5aafb2692d83e7cae0b0f7887e5 Mon Sep 17 00:00:00 2001
+From: Waldemar Brodkorb <wbx@openadk.org>
+Date: Sat, 30 Aug 2014 17:34:07 +0200
+Subject: [PATCH 3/3] ldso: fix compile error for bfin non-mmu
+
+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 <wbx@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)
+