@@ -120,13 +120,13 @@ def test_MACHO(self):
120120
121121        if  arch  ==  lief .ARCHITECTURES .X86 :
122122            self .assertEqual (call_security_check (cc , source , executable , ['-Wl,-no_pie' ,'-Wl,-flat_namespace' ,'-Wl,-allow_stack_execute' ,'-fno-stack-protector' ]),
123-                 (1 , executable + ': failed NOUNDEFS LAZY_BINDINGS  Canary PIE NX CONTROL_FLOW' ))
123+                 (1 , executable + ': failed NOUNDEFS Canary PIE NX CONTROL_FLOW' ))
124124            self .assertEqual (call_security_check (cc , source , executable , ['-Wl,-no_pie' ,'-Wl,-flat_namespace' ,'-Wl,-allow_stack_execute' ,'-fstack-protector-all' ]),
125-                 (1 , executable + ': failed NOUNDEFS LAZY_BINDINGS  PIE NX CONTROL_FLOW' ))
125+                 (1 , executable + ': failed NOUNDEFS PIE NX CONTROL_FLOW' ))
126126            self .assertEqual (call_security_check (cc , source , executable , ['-Wl,-no_pie' ,'-Wl,-flat_namespace' ,'-fstack-protector-all' ]),
127-                 (1 , executable + ': failed NOUNDEFS LAZY_BINDINGS  PIE CONTROL_FLOW' ))
127+                 (1 , executable + ': failed NOUNDEFS PIE CONTROL_FLOW' ))
128128            self .assertEqual (call_security_check (cc , source , executable , ['-Wl,-no_pie' ,'-fstack-protector-all' ]),
129-                 (1 , executable + ': failed LAZY_BINDINGS  PIE CONTROL_FLOW' ))
129+                 (1 , executable + ': failed PIE CONTROL_FLOW' ))
130130            self .assertEqual (call_security_check (cc , source , executable , ['-Wl,-no_pie' ,'-Wl,-bind_at_load' ,'-fstack-protector-all' ]),
131131                (1 , executable + ': failed PIE CONTROL_FLOW' ))
132132            self .assertEqual (call_security_check (cc , source , executable , ['-Wl,-no_pie' ,'-Wl,-bind_at_load' ,'-fstack-protector-all' , '-fcf-protection=full' ]),
@@ -136,11 +136,9 @@ def test_MACHO(self):
136136        else :
137137            # arm64 darwin doesn't support non-PIE binaries, control flow or executable stacks 
138138            self .assertEqual (call_security_check (cc , source , executable , ['-Wl,-flat_namespace' ,'-fno-stack-protector' ]),
139-                 (1 , executable + ': failed NOUNDEFS LAZY_BINDINGS  Canary' ))
139+                 (1 , executable + ': failed NOUNDEFS Canary' ))
140140            self .assertEqual (call_security_check (cc , source , executable , ['-Wl,-flat_namespace' ,'-fstack-protector-all' ]),
141-                 (1 , executable + ': failed NOUNDEFS LAZY_BINDINGS' ))
142-             self .assertEqual (call_security_check (cc , source , executable , ['-fstack-protector-all' ]),
143-                 (1 , executable + ': failed LAZY_BINDINGS' ))
141+                 (1 , executable + ': failed NOUNDEFS' ))
144142            self .assertEqual (call_security_check (cc , source , executable , ['-Wl,-bind_at_load' ,'-fstack-protector-all' ]),
145143                (0 , '' ))
146144
0 commit comments