-
Notifications
You must be signed in to change notification settings - Fork 31
Add call frame information (CFI) annotations #214
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
Draft
jargh
wants to merge
27
commits into
awslabs:main
Choose a base branch
from
jargh:cfi
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
5b78cf7
Wrap most CFI-relevant instructions up as macros
jargh 0a66845
Undo CFI macro transformations inside comments
jargh 1ca8a84
Add CFI start directives for standard ABI forms in Windows subcalls
jargh 89726d6
Merge branch 'awslabs:main' into cfi
jargh b0126a7
Add CFI start directives at internal/nested procedure entry points
jargh 07dce91
Add CFI directives for non-push/pop save and restore
jargh e0deebf
Add actual cfi_startproc and cfi_endproc directives
jargh 7da27e9
Incorporate actual relative CFA offsets into CFI macros
jargh 4bc18f5
Add saved register offsets to the CFI macro definitions
jargh bb401ed
Add explicit private prefix L to all non-global labels
jargh 597ff3a
Regenerate AT&T forms of CFI-enabled code
jargh 11416fa
Add local prefix to a rogue label that was missing it
jargh 85bc16c
Update local header file name in the ARM unopt code as well
jargh 87b4e76
Add a function type directive for each toplevel function
jargh 08f8ce5
Add a function type directive for internally called functions
jargh 87df1a1
Merge branch 'awslabs:main' into cfi
jargh 3d48f62
Merge branch 'awslabs:main' into cfi
jargh 418d53b
Merge branch 'awslabs:main' into cfi
jargh df81139
Merge branch 'awslabs:main' into cfi
jargh 8abbd61
Merge remote-tracking branch 'awslabs/main' into cfi
jargh 707c5d4
Merge branch 'awslabs:main' into cfi
jargh 2c038d9
Merge branch 'awslabs:main' into cfi
jargh c357785
Merge branch 'awslabs:main' into cfi
jargh 956e288
Merge remote-tracking branch 'awslabs/main' into cfi
jargh 5715ba9
Adopt refinement to _CET_ENDBR definition in bifurcated include files
jargh f5ddda4
Merge branch 'awslabs:main' into cfi
jargh 742a142
Merge branch 'awslabs:main' into cfi
jargh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a bit confused here. Is the idea that
bignum_cmul_p25519
andbignum_cmul_p25519_alt
are the same function, i.e. one is an alias for the other? I wonder if this pattern is allowed by all ABIs and/or if it might be the source of some of the issues here. In OpenSSL when they have such aliases, the alias is implemented as a whole separate function thatjmp
s to the function it is aliasing.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were initially trying to support a uniform naming scheme for both ARM and x86. The bifurcation into "alt" and "non-alt" arises when for at least one architecture there is value in different variants with different microarchitectural targets. Cases like this where the same function has both names reflect those where on the other architecture (only) there is value in two versions, but on this architecture it didn't seem worth it. Currently, consumers like AWS-LC handle the dispatch according to uarch. Now, we no longer quite maintain the uniformity of this naming scheme since there are a few extra functions for ARM, so perhaps we should revisit this.