Skip to content

llvm-readelf does not support compressed sections #82507

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

Closed
emaste opened this issue Feb 21, 2024 · 0 comments · Fixed by #82594
Closed

llvm-readelf does not support compressed sections #82507

emaste opened this issue Feb 21, 2024 · 0 comments · Fixed by #82594

Comments

@emaste
Copy link
Member

emaste commented Feb 21, 2024

GNU binutils readelf and ELF Tool Chain readelf support -z to handle compressed sections (typically debug sections). From ELF Tool Chain's manpage:

     -z | --decompress
             Decompress contents of sections specified by -x or -p before
             displaying.  If the specified section is not compressed, it is
             displayed as is.

We are planning to migrate to LLVM's binutils-like tools and this is one issue identified during that process.
(FreeBSD bug reference https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258872)

@MaskRay MaskRay self-assigned this Feb 21, 2024
MaskRay added a commit that referenced this issue Feb 22, 2024
When a section has the SHF_COMPRESSED flag, -p/-x dump the compressed
content by default. In GNU readelf, if --decompress/-z is specified,
-p/-x will dump the decompressed content. This patch implements the
option.

Close #82507
llvmbot pushed a commit to llvmbot/llvm-project that referenced this issue Feb 22, 2024
When a section has the SHF_COMPRESSED flag, -p/-x dump the compressed
content by default. In GNU readelf, if --decompress/-z is specified,
-p/-x will dump the decompressed content. This patch implements the
option.

Close llvm#82507

(cherry picked from commit 26d71d9)
brad0 added a commit to brad0/llvm-project that referenced this issue Feb 23, 2024
When a section has the SHF_COMPRESSED flag, -p/-x dump the compressed
content by default. In GNU readelf, if --decompress/-z is specified,
-p/-x will dump the decompressed content. This patch implements the
option.

Close llvm#82507

(cherry picked from commit 26d71d9)
llvmbot pushed a commit to llvmbot/llvm-project that referenced this issue Feb 23, 2024
When a section has the SHF_COMPRESSED flag, -p/-x dump the compressed
content by default. In GNU readelf, if --decompress/-z is specified,
-p/-x will dump the decompressed content. This patch implements the
option.

Close llvm#82507

(cherry picked from commit 26d71d9)
llvmbot pushed a commit to llvmbot/llvm-project that referenced this issue Feb 23, 2024
When a section has the SHF_COMPRESSED flag, -p/-x dump the compressed
content by default. In GNU readelf, if --decompress/-z is specified,
-p/-x will dump the decompressed content. This patch implements the
option.

Close llvm#82507

(cherry picked from commit 26d71d9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants