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

Better diffs #33

Merged
merged 3 commits into from
Nov 20, 2023
Merged

Better diffs #33

merged 3 commits into from
Nov 20, 2023

Conversation

roblabla
Copy link
Member

Introduce a new kind of build, the "diff build", that uses the GNU assembler to place globals at fixed location in memory. This removes noise in the diff caused by static data being at the wrong location.

This doesn't fix all cases of static data at the wrong location (a lot of static data is auto-inserted by the compiler and we have no control over them - things like strings, or the stack cookie). But it does fix a fair amount. Furthermore, it shows a handful of cases where we write to the wrong offset, showing that our structs are likely slightly off.

@roblabla
Copy link
Member Author

TODO:

  • Write some docs
  • Use 32-bit cygwin on linux

@roblabla roblabla force-pushed the better-diff-globals branch from c0773ab to 8018ce8 Compare November 20, 2023 18:46
@roblabla roblabla force-pushed the better-diff-globals branch from 8018ce8 to d96b398 Compare November 20, 2023 21:21
@roblabla roblabla merged commit 1e64340 into happyhavoc:master Nov 20, 2023
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.

2 participants