|
|
@ -60,6 +60,8 @@ class TestSecurityChecks(unittest.TestCase):
|
|
|
|
cc = 'clang'
|
|
|
|
cc = 'clang'
|
|
|
|
write_testcode(source)
|
|
|
|
write_testcode(source)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.assertEqual(call_security_check(cc, source, executable, ['-Wl,-no_pie','-Wl,-flat_namespace', '-Wl,-allow_stack_execute']),
|
|
|
|
|
|
|
|
(1, executable+': failed PIE NOUNDEFS NX'))
|
|
|
|
self.assertEqual(call_security_check(cc, source, executable, ['-Wl,-no_pie','-Wl,-flat_namespace']),
|
|
|
|
self.assertEqual(call_security_check(cc, source, executable, ['-Wl,-no_pie','-Wl,-flat_namespace']),
|
|
|
|
(1, executable+': failed PIE NOUNDEFS'))
|
|
|
|
(1, executable+': failed PIE NOUNDEFS'))
|
|
|
|
self.assertEqual(call_security_check(cc, source, executable, ['-Wl,-no_pie']),
|
|
|
|
self.assertEqual(call_security_check(cc, source, executable, ['-Wl,-no_pie']),
|
|
|
|