[PATCH] Support older compilers by wrapping smc .arch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: William Roberts <bill.c.roberts@xxxxxxxxx>

Fixes build bug
security/smc/bridge_pub2sec.S:95: Error: selected processor does not support ARM mode `smc #0'

Signed-off-by: William Roberts <w.roberts@xxxxxxxxxxxxxxx>
---
 security/smc/bridge_pub2sec.S |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/security/smc/bridge_pub2sec.S b/security/smc/bridge_pub2sec.S
index 30b8b35..e433380 100644
--- a/security/smc/bridge_pub2sec.S
+++ b/security/smc/bridge_pub2sec.S
@@ -74,7 +74,9 @@ return_from_irq:
 	b	label_smc
 
 label_smc:
-	.arch_extension sec
+#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
+        .arch_extension sec
+#endif
 	INVALIDATE_BTB
 	dsb
 	dmb
-- 
1.7.0.4


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.


[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux