-
Notifications
You must be signed in to change notification settings - Fork 109
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
Add support for XCOFF #635
Conversation
@philipc Thanks for your quick review. Are there any new tests should be added for XCOFF? I know there are some generated files under Also, since this part of code is to make addr2line work, I might send another PR in addr2line to make it work for XCOFF. |
We don't have file format specific tests currently, and don't really need to because gimli is meant to be independent of the object file format. We do test the dwarfdump example on linux and macos executables in github actions, but I doubt there is a way to do the same for AIX. I don't think there is a need to add more test fixtures though. Before sending a PR for addr2line, it'd be better to get the dwarfdump example working in this crate too. Maybe it did with your original changes, but it won't now. We'll need to choose section names based on the file format. |
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.
Thanks!
While I'm fine with adding |
I think |
Thanks for this info, that sounds more smooth if get the work done in object crate. I'll take a look at this code path. If I find that's viable for XCOFF too, reverting this PR is fine to me, since it becomes dead code then :). |
XCOFF has different names for debug sections. This PR adds support for XCOFF which is the default object file format on AIX. Tests on AIX server all pass.