2015-02-14 16:10:56 +01:00
|
|
|
Do not make symbols hidden on Blackfin
|
|
|
|
|
|
|
|
The libselinux logic to hide internal symbols from the DSO doesn't
|
|
|
|
work properly on Blackfin due to the USER_LABEL_PREFIX not being
|
|
|
|
handled properly. A real fix is not that simple, so this patch simply
|
|
|
|
disables the internal symbol hiding mechanism. This means that those
|
|
|
|
symbols are visible in the final DSO, which is not a problem for
|
|
|
|
proper execution, it just isn't as clean.
|
|
|
|
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
2016-06-27 00:39:12 +02:00
|
|
|
Signed-off-by: Adam Duskett <Aduskett@gmail.com>
|
2015-02-14 16:10:56 +01:00
|
|
|
|
|
|
|
Index: b/src/dso.h
|
|
|
|
===================================================================
|
|
|
|
--- a/src/dso.h
|
|
|
|
+++ b/src/dso.h
|
2016-06-27 00:39:12 +02:00
|
|
|
@@ -5,7 +5,7 @@
|
|
|
|
#define DISABLE_SYMVER 1
|
|
|
|
#endif
|
2015-02-14 16:10:56 +01:00
|
|
|
|
|
|
|
-#ifdef SHARED
|
|
|
|
+#if defined(SHARED) && !defined(__bfin__)
|
|
|
|
# define hidden __attribute__ ((visibility ("hidden")))
|
|
|
|
# define hidden_proto(fct) __hidden_proto (fct, fct##_internal)
|
|
|
|
# define __hidden_proto(fct, internal) \
|
2016-06-27 00:39:12 +02:00
|
|
|
|