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

Add SHT_LLVM_DEPENDENT_LIBRARIES #737

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

purplesyringa
Copy link
Contributor

I've seen this section in some binaries linked with clang. Builder understandably denied parsing the ELF due to an unknown section, so here we go.

There's some docs for it and it seems easy to parse, but AFAIK notes aren't parsed and no one's angry about that, so I'm leaving this as Data.

Does this approach look okay?

Copy link
Contributor

@philipc philipc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this approach is good (maybe in future we want to add something generic for SHF_STRINGS sections instead), but can you move it up with the SHT_PROGBITS arm, and also add to

const FLAGS_SHT: &[Flag<u32>] = &flags!(

@purplesyringa
Copy link
Contributor Author

Done and done.

Copy link
Contributor

@philipc philipc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@philipc philipc merged commit 61dc7b0 into gimli-rs:master Oct 18, 2024
10 checks passed
@purplesyringa purplesyringa deleted the llvm-dependent-libraries branch October 19, 2024 01:59
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