@@ -77,16 +77,18 @@ def test_MACHO(self):
7777 write_testcode (source )
7878
7979 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 ' ))
8181 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 ' ))
8383 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 ' ))
8585 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 ' ))
8787 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' ]),
8890 (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' ]),
9092 (0 , '' ))
9193
9294 clean_files (source , executable )
0 commit comments