Blame view

buildroot/buildroot-2016.08.1/package/libselinux/0001-workaround-blackfin-issue.patch 899 Bytes
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  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>
  
  Index: b/src/dso.h
  ===================================================================
  --- a/src/dso.h
  +++ b/src/dso.h
  @@ -1,7 +1,7 @@
   #ifndef _SELINUX_DSO_H
   #define _SELINUX_DSO_H	1
   
  -#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)	\