diff options
author | fanquake <fanquake@gmail.com> | 2020-04-21 09:55:12 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-04-21 11:32:06 +0800 |
commit | 8334ee31f868f0f9baf0920d14d20174ed889dbe (patch) | |
tree | dce35d4aca616217f470f647632da45b1563cadb /contrib/devtools/test-security-check.py | |
parent | 7b99c7454cdb74cd9cd7a5eedc2fb9d0a19df456 (diff) |
scripts: add MACHO LAZY_BINDINGS test to test-security-check.py
I didn't add the relevant test in #18295.
Diffstat (limited to 'contrib/devtools/test-security-check.py')
-rwxr-xr-x | contrib/devtools/test-security-check.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/contrib/devtools/test-security-check.py b/contrib/devtools/test-security-check.py index a0b2f86ee2..d09f1d0064 100755 --- a/contrib/devtools/test-security-check.py +++ b/contrib/devtools/test-security-check.py @@ -65,14 +65,16 @@ class TestSecurityChecks(unittest.TestCase): write_testcode(source) self.assertEqual(call_security_check(cc, source, executable, ['-Wl,-no_pie','-Wl,-flat_namespace','-Wl,-allow_stack_execute','-fno-stack-protector']), - (1, executable+': failed PIE NOUNDEFS NX Canary')) + (1, executable+': failed PIE NOUNDEFS NX LAZY_BINDINGS Canary')) self.assertEqual(call_security_check(cc, source, executable, ['-Wl,-no_pie','-Wl,-flat_namespace','-Wl,-allow_stack_execute','-fstack-protector-all']), - (1, executable+': failed PIE NOUNDEFS NX')) + (1, executable+': failed PIE NOUNDEFS NX LAZY_BINDINGS')) self.assertEqual(call_security_check(cc, source, executable, ['-Wl,-no_pie','-Wl,-flat_namespace','-fstack-protector-all']), - (1, executable+': failed PIE NOUNDEFS')) + (1, executable+': failed PIE NOUNDEFS LAZY_BINDINGS')) self.assertEqual(call_security_check(cc, source, executable, ['-Wl,-no_pie','-fstack-protector-all']), + (1, executable+': failed PIE LAZY_BINDINGS')) + self.assertEqual(call_security_check(cc, source, executable, ['-Wl,-no_pie','-Wl,-bind_at_load','-fstack-protector-all']), (1, executable+': failed PIE')) - self.assertEqual(call_security_check(cc, source, executable, ['-Wl,-pie','-fstack-protector-all']), + self.assertEqual(call_security_check(cc, source, executable, ['-Wl,-pie','-Wl,-bind_at_load','-fstack-protector-all']), (0, '')) if __name__ == '__main__': |