• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/gcc/5.4.0/910-microblaze-musl-and-uclibc.patch
Waldemar BrodkorbWaldemar Brodkorb committed d70ade160ef23 Oct 2016
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
Add dynamic linker support for uClibc-ng/musl
2
​
3
Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
4
​
5
​
6
diff -Nur gcc-5.4.0.orig/gcc/config/microblaze/linux.h gcc-5.4.0/gcc/config/microblaze/linux.h
7
--- gcc-5.4.0.orig/gcc/config/microblaze/linux.h    2015-05-28 16:08:19.000000000 +0200
8
+++ gcc-5.4.0/gcc/config/microblaze/linux.h 2016-10-23 17:09:46.962010871 +0200
9
@@ -28,7 +28,26 @@
10
 #undef TLS_NEEDS_GOT
11
 #define TLS_NEEDS_GOT 1
12
 
13
-#define DYNAMIC_LINKER "/lib/ld.so.1"
14
+#define GLIBC_DYNAMIC_LINKER   "/lib/ld.so.1"
15
+#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
16
+
17
+#if TARGET_BIG_ENDIAN_DEFAULT == 0 /* LE */
18
+#define MUSL_DYNAMIC_LINKER_E "%{EB:;:el}"
19
+#else
20
+#define MUSL_DYNAMIC_LINKER_E "%{EL:el}"
21
+#endif
22
+
23
+#undef MUSL_DYNAMIC_LINKER
24
+#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-microblaze" MUSL_DYNAMIC_LINKER_E ".so.1"
25
+
26
+#if DEFAULT_LIBC == LIBC_UCLIBC
27
+#define DYNAMIC_LINKER UCLIBC_DYNAMIC_LINKER
28
+#elif DEFAULT_LIBC == LIBC_MUSL
29
+#define DYNAMIC_LINKER MUSL_DYNAMIC_LINKER
30
+#else
31
+#define DYNAMIC_LINKER GLIBC_DYNAMIC_LINKER
32
+#endif
33
+
34
 #undef  SUBTARGET_EXTRA_SPECS
35
 #define SUBTARGET_EXTRA_SPECS \
36
   { "dynamic_linker", DYNAMIC_LINKER }
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.