← Back to issue list

elf: search dynamic tags within sections, not segment

View original Github issue

Metadata

Project
snapcraft
Number
#3149
Type
pull request
State
merged
Author
cjp256
Labels
Created
Updated
Closed

Current evaluation

Merged fix resolving snapcraft failures on invalid tag data caused by patchelf mangling. Resolved by iterating over dynamic sections instead of segments. Successfully merged into master.

Suggested action:

No scores available.

Issue body

Due to yet more patchelf mangling, snapcraft was tripping on invalid tag data. We can avoid this by iteration over the dynamic sections. LP: 1879519 Signed-off-by: Chris Patterson <chris.patterson@canonical.com> - [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `./runtests.sh static`? - [ ] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged fix resolving snapcraft failures on invalid tag data caused by patchelf mangling. Resolved by iterating over dynamic sections instead of segments. Successfully merged into master.
qwen3.6-35b-a3b-mtp-q6 Merged into master. Updates ELF dynamic tag parsing to iterate over sections instead of segments, resolving invalid tag data errors from patchelf mangling and fixing LP 1879519.
qwen3.6-35b-a3b-mtp-q6 Merged into master. Updates ELF dynamic tag parsing to iterate over sections instead of segments, resolving failures caused by patchelf mangling and invalid tag data. Closes LP: 1879519.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#3111 elf: fix parsing of notes after patchelf mangling snapcraft merged Merged fix for ELF note parsing after patchelf modifications. Iterates over sections instead of the note segment to reliably extract note data, resolving snapcraft build-time failures with patched binaries. Fixes SNAPCRAFT-1K4 and SNAPCRAFT-1ET.
74%