The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libselinux / 0001-workaround-blackfin-issue.patch
1 Do not make symbols hidden on Blackfin
2
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.
9
10 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11
12 Index: b/src/dso.h
13 ===================================================================
14 --- a/src/dso.h
15 +++ b/src/dso.h
16 @@ -1,7 +1,7 @@
17  #ifndef _SELINUX_DSO_H
18  #define _SELINUX_DSO_H 1
19  
20 -#ifdef SHARED
21 +#if defined(SHARED) && !defined(__bfin__)
22  # define hidden __attribute__ ((visibility ("hidden")))
23  # define hidden_proto(fct) __hidden_proto (fct, fct##_internal)
24  # define __hidden_proto(fct, internal) \