package/libsepol: add patch to fix Blackfin build issue
PATCH 1/2 package/libsepol: add patch to fix Blackfin build issue
libsepol use the same build system than libselinux, so it's affected by the same issue.
Signed-off-by Romain Naour <[email protected]>
--- .../libsepol/0002-workaround-blackfin-issue.patch | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 package/libsepol/0002-workaround-blackfin-issue.patch
package/libsepol/0002-workaround-blackfin-issue.patch new file +24 -0
@@ -0,0 +1,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 <[email protected]> + +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) \
Signature · 1 line
1.9.3
PATCH 2/2 package/libsemanage: add patch to fix Blackfin build issue
libsemanage use the same build system than libselinux, so it's affected by the same issue.
Fixes:
http://autobuild.buildroot.net/results/39d/39d3460e88a1316ec7dbcd0d67b7fdb992c3fc77
Signed-off-by Romain Naour <[email protected]>
--- .../0002-workaround-blackfin-issue.patch | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 package/libsemanage/0002-workaround-blackfin-issue.patch
package/libsemanage/0002-workaround-blackfin-issue.patch new file +24 -0
@@ -0,0 +1,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 <[email protected]> + +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) \
Signature · 1 line
1.9.3
PATCH 1/2 package/libsepol: add patch to fix Blackfin build issue
In reply to Romain NaourDear Romain Naour,
Quoted 4 lines · Romain Naour
libsepol use the same build system than libselinux, so it's affected by the same issue.
Signed-off-by Romain Naour <[email protected]>
Both patches applied, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com