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

Remove static ELF binary support #19

Merged
merged 1 commit into from
Feb 8, 2024
Merged

Conversation

0152la
Copy link
Contributor

@0152la 0152la commented Feb 8, 2024

Since we moved to supporting dynamic so ELFs, support for static ELFs has likely been broken. For code quality, we currently remove code that handle static ELFs, as well as intercepts that were introduced primarily for use with static ELFs.

@0152la 0152la requested a review from ltratt February 8, 2024 12:06
assert(new_comp->elf_type == ET_DYN || new_comp->elf_type == ET_EXEC);
if (new_comp->elf_type != ET_DYN)
{
errx(1, "Only supporting DYN ELF types!");
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess this means "Only DYN ELF is supported"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, as per the Type property in readelf -h. Should I reword?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes please!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in 18f6c8f.

@ltratt
Copy link
Contributor

ltratt commented Feb 8, 2024

Please squash.

Since we moved to supporting dynamic `so` ELFs, support for static ELFs
has likely been broken. For code quality, we currently remove code that
handle static ELFs, as well as intercepts that were introduced primarily
for use with static ELFs.
@0152la
Copy link
Contributor Author

0152la commented Feb 8, 2024

Squashed.

@ltratt ltratt added this pull request to the merge queue Feb 8, 2024
Merged via the queue into capablevms:master with commit adffdc5 Feb 8, 2024
2 checks passed
@0152la 0152la mentioned this pull request Feb 8, 2024
7 tasks
@0152la 0152la deleted the static_cleanup branch February 8, 2024 12:25
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