Skip to content

Conversation

@giladreti
Copy link

at some point in the past it seems like the argument constraint went from "r" (rgeneral register) to "g" (anything but non-general registers) since all syscall callers are changing the stack pointer by pushing ebx on the stack without the compiler's knowledge, this causes bugs when the compiler chooses to save the argument on the stack, as it cannot reference it correctly later.

switch back to "r" constraint to resolve this issue.

at some point in the past it seems like the argument constraint went from "r"  (rgeneral register) to "g" (anything but non-general registers)
since all syscall callers are changing the stack pointer by pushing ebx on the stack without the compiler's knowledge, this causes bugs when the compiler chooses to save the argument on the stack, as it cannot reference it correctly later.

switch back to "r" constraint to resolve this issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant