@@ -77,16 +77,18 @@ def test_MACHO(self):
77
77
write_testcode (source )
78
78
79
79
self .assertEqual (call_security_check (cc , source , executable , ['-Wl,-no_pie' ,'-Wl,-flat_namespace' ,'-Wl,-allow_stack_execute' ,'-fno-stack-protector' ]),
80
- (1 , executable + ': failed PIE NOUNDEFS NX LAZY_BINDINGS Canary' ))
80
+ (1 , executable + ': failed PIE NOUNDEFS NX LAZY_BINDINGS Canary CONTROL_FLOW ' ))
81
81
self .assertEqual (call_security_check (cc , source , executable , ['-Wl,-no_pie' ,'-Wl,-flat_namespace' ,'-Wl,-allow_stack_execute' ,'-fstack-protector-all' ]),
82
- (1 , executable + ': failed PIE NOUNDEFS NX LAZY_BINDINGS' ))
82
+ (1 , executable + ': failed PIE NOUNDEFS NX LAZY_BINDINGS CONTROL_FLOW ' ))
83
83
self .assertEqual (call_security_check (cc , source , executable , ['-Wl,-no_pie' ,'-Wl,-flat_namespace' ,'-fstack-protector-all' ]),
84
- (1 , executable + ': failed PIE NOUNDEFS LAZY_BINDINGS' ))
84
+ (1 , executable + ': failed PIE NOUNDEFS LAZY_BINDINGS CONTROL_FLOW ' ))
85
85
self .assertEqual (call_security_check (cc , source , executable , ['-Wl,-no_pie' ,'-fstack-protector-all' ]),
86
- (1 , executable + ': failed PIE LAZY_BINDINGS' ))
86
+ (1 , executable + ': failed PIE LAZY_BINDINGS CONTROL_FLOW ' ))
87
87
self .assertEqual (call_security_check (cc , source , executable , ['-Wl,-no_pie' ,'-Wl,-bind_at_load' ,'-fstack-protector-all' ]),
88
+ (1 , executable + ': failed PIE CONTROL_FLOW' ))
89
+ self .assertEqual (call_security_check (cc , source , executable , ['-Wl,-no_pie' ,'-Wl,-bind_at_load' ,'-fstack-protector-all' , '-fcf-protection=full' ]),
88
90
(1 , executable + ': failed PIE' ))
89
- self .assertEqual (call_security_check (cc , source , executable , ['-Wl,-pie' ,'-Wl,-bind_at_load' ,'-fstack-protector-all' ]),
91
+ self .assertEqual (call_security_check (cc , source , executable , ['-Wl,-pie' ,'-Wl,-bind_at_load' ,'-fstack-protector-all' , '-fcf-protection=full' ]),
90
92
(0 , '' ))
91
93
92
94
clean_files (source , executable )
0 commit comments