@@ -120,13 +120,13 @@ def test_MACHO(self):
120
120
121
121
if arch == lief .ARCHITECTURES .X86 :
122
122
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' ))
124
124
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' ))
126
126
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' ))
128
128
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' ))
130
130
self .assertEqual (call_security_check (cc , source , executable , ['-Wl,-no_pie' ,'-Wl,-bind_at_load' ,'-fstack-protector-all' ]),
131
131
(1 , executable + ': failed PIE CONTROL_FLOW' ))
132
132
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):
136
136
else :
137
137
# arm64 darwin doesn't support non-PIE binaries, control flow or executable stacks
138
138
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' ))
140
140
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' ))
144
142
self .assertEqual (call_security_check (cc , source , executable , ['-Wl,-bind_at_load' ,'-fstack-protector-all' ]),
145
143
(0 , '' ))
146
144
0 commit comments