board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / libsepol / 0002-workaround-blackfin-issue.patch
blob3c3bd4827fd1c4af5ce2228318bd4b9f90f5bf1a
1 Do not make symbols hidden on Blackfin
3 The libselinux logic to hide internal symbols from the DSO doesn't
4 work properly on Blackfin due to the USER_LABEL_PREFIX not being
5 handled properly. A real fix is not that simple, so this patch simply
6 disables the internal symbol hiding mechanism. This means that those
7 symbols are visible in the final DSO, which is not a problem for
8 proper execution, it just isn't as clean.
10 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11 Signed-off-by: Adam Duskett <Aduskett@gmail.com>
13 Index: b/src/dso.h
14 ===================================================================
15 --- a/src/dso.h
16 +++ b/src/dso.h
17 @@ -5,7 +5,7 @@
18 #define DISABLE_SYMVER 1
19 #endif
21 -#ifdef SHARED
22 +#if defined(SHARED) && !defined(__bfin__)
23 # define hidden __attribute__ ((visibility ("hidden")))
24 # define hidden_proto(fct) __hidden_proto (fct, fct##_internal)
25 # define __hidden_proto(fct, internal) \