-
Notifications
You must be signed in to change notification settings - Fork 514
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 GNU note property and CFI support #587
Conversation
jerryzj
commented
Dec 17, 2024
- Based on Add program property and PLT for CFI extension riscv-non-isa/riscv-elf-psabi-doc#417
Signed-off-by: Jerry Zhang Jian <[email protected]>
Looks like the RISCV people took a page from the ARM people. :) No objections - once the autotest passes. EDIT: now that I look at that - no new binaries. I take it, one of the existing binaries in the corpus had RISCV notes, and GNU readelf doesn't dump them properly, and neither did pyelftools, but now pyelftools does and there is a discrepancy in readelf output? If that's the case, deal with it how we normally deal with readelf deficiencies: file a bug against binutils (https://sourceware.org/bugzilla/), and exclude the offending file from the relevant readelf test (with a comment mentioning bug no). Like it was done in #563. |
f46e97e
to
8164ccb
Compare
@sevaa yeap, since CFI is still a new feature for RISC-V, the binutils support is still not upstreamed by us. But my local testing shows the newly added binary test can PASS
Maybe we should keep this as a draft until the binutils are supported. |
Signed-off-by: Jerry Zhang Jian <[email protected]>
Signed-off-by: Jerry Zhang Jian <[email protected]>
8164ccb
to
6be2cd4
Compare
If we keep this as a draft until the next release of binutils (and there is no guarantee the fix will make it into their next release), the main branch of pyelftools will get more commits and this PR would need a rebase and maybe even a manual merge. If you ask me, we should exclude the binary/test combination with a comment, merge now, and remove the test exclusion when GNU readelf catches up. @eliben what do you think? |
@sevaa yep that sounds reasonable to me |
6be2cd4
to
62cfc3f
Compare