Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear DF flag to conform to x86-64 calling convention #15

Open
tangruize opened this issue Dec 2, 2024 · 0 comments
Open

Clear DF flag to conform to x86-64 calling convention #15

tangruize opened this issue Dec 2, 2024 · 0 comments

Comments

@tangruize
Copy link

The X86-64 System V ABI requires the DF flag (Direction Flag) to be cleared (DF = 0) on function entry and return. If DF is not cleared, it can lead to undefined and unpredictable behavior during string operations.

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

No branches or pull requests

1 participant