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

[RISCV] add test for GNU note property and CFI support #589

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jerryzj
Copy link
Contributor

@jerryzj jerryzj commented Dec 23, 2024

Signed-off-by: Jerry Zhang Jian <jerry.zhangjian@sifive.com>
Signed-off-by: Jerry Zhang Jian <jerry.zhangjian@sifive.com>
Signed-off-by: Jerry Zhang Jian <jerry.zhangjian@sifive.com>
Signed-off-by: Jerry Zhang Jian <jerry.zhangjian@sifive.com>
@sevaa
Copy link
Contributor

sevaa commented Dec 23, 2024

My only concern is the test strategy. A test against a hand constructed notes section is not indicative of what the binaries in the wild, where the notes section was built by a compiler, would look like.

@jerryzj
Copy link
Contributor Author

jerryzj commented Dec 24, 2024

Well... I am following the implementation in https://github.com/eliben/pyelftools/blob/main/test/testfiles_for_readelf/note_gnu_property.S

Maybe we can have a C code test case after the entire CFI support being implemented on the toolchain side.

@sevaa
Copy link
Contributor

sevaa commented Dec 24, 2024

That was before my time :) Anyway, if you can get a C[++] compiler to emit the right notes section, I think that'd be better. This PR will be sitting for a while anyway.

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