mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
Check for unpaired .cfi_remember_state
Reviewed-by: Richard Levitte <levitte@openssl.org> GH: #8109
This commit is contained in:
parent
c0e8e5007b
commit
e09633107b
@ -649,7 +649,13 @@ my %globals;
|
||||
# why it starts with -8. Recall that CFA is top of caller's
|
||||
# stack...
|
||||
/startproc/ && do { ($cfa_reg, $cfa_rsp) = ("%rsp", -8); last; };
|
||||
/endproc/ && do { ($cfa_reg, $cfa_rsp) = ("%rsp", 0); last; };
|
||||
/endproc/ && do { ($cfa_reg, $cfa_rsp) = ("%rsp", 0);
|
||||
# .cfi_remember_state directives that are not
|
||||
# matched with .cfi_restore_state are
|
||||
# unnecessary.
|
||||
die "unpaired .cfi_remember_state" if (@cfa_stack);
|
||||
last;
|
||||
};
|
||||
/def_cfa_register/
|
||||
&& do { $cfa_reg = $$line; last; };
|
||||
/def_cfa_offset/
|
||||
|
Loading…
Reference in New Issue
Block a user